module Stratosphere.SSO.InstanceAccessControlAttributeConfiguration.AccessControlAttributeProperty (
module Exports, AccessControlAttributeProperty(..),
mkAccessControlAttributeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SSO.InstanceAccessControlAttributeConfiguration.AccessControlAttributeValueProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AccessControlAttributeProperty
=
AccessControlAttributeProperty {AccessControlAttributeProperty -> ()
haddock_workaround_ :: (),
AccessControlAttributeProperty -> Value Text
key :: (Value Prelude.Text),
AccessControlAttributeProperty
-> AccessControlAttributeValueProperty
value :: AccessControlAttributeValueProperty}
deriving stock (AccessControlAttributeProperty
-> AccessControlAttributeProperty -> Bool
(AccessControlAttributeProperty
-> AccessControlAttributeProperty -> Bool)
-> (AccessControlAttributeProperty
-> AccessControlAttributeProperty -> Bool)
-> Eq AccessControlAttributeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AccessControlAttributeProperty
-> AccessControlAttributeProperty -> Bool
== :: AccessControlAttributeProperty
-> AccessControlAttributeProperty -> Bool
$c/= :: AccessControlAttributeProperty
-> AccessControlAttributeProperty -> Bool
/= :: AccessControlAttributeProperty
-> AccessControlAttributeProperty -> Bool
Prelude.Eq, Int -> AccessControlAttributeProperty -> ShowS
[AccessControlAttributeProperty] -> ShowS
AccessControlAttributeProperty -> String
(Int -> AccessControlAttributeProperty -> ShowS)
-> (AccessControlAttributeProperty -> String)
-> ([AccessControlAttributeProperty] -> ShowS)
-> Show AccessControlAttributeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AccessControlAttributeProperty -> ShowS
showsPrec :: Int -> AccessControlAttributeProperty -> ShowS
$cshow :: AccessControlAttributeProperty -> String
show :: AccessControlAttributeProperty -> String
$cshowList :: [AccessControlAttributeProperty] -> ShowS
showList :: [AccessControlAttributeProperty] -> ShowS
Prelude.Show)
mkAccessControlAttributeProperty ::
Value Prelude.Text
-> AccessControlAttributeValueProperty
-> AccessControlAttributeProperty
mkAccessControlAttributeProperty :: Value Text
-> AccessControlAttributeValueProperty
-> AccessControlAttributeProperty
mkAccessControlAttributeProperty Value Text
key AccessControlAttributeValueProperty
value
= AccessControlAttributeProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), key :: Value Text
key = Value Text
key, value :: AccessControlAttributeValueProperty
value = AccessControlAttributeValueProperty
value}
instance ToResourceProperties AccessControlAttributeProperty where
toResourceProperties :: AccessControlAttributeProperty -> ResourceProperties
toResourceProperties AccessControlAttributeProperty {()
Value Text
AccessControlAttributeValueProperty
haddock_workaround_ :: AccessControlAttributeProperty -> ()
key :: AccessControlAttributeProperty -> Value Text
value :: AccessControlAttributeProperty
-> AccessControlAttributeValueProperty
haddock_workaround_ :: ()
key :: Value Text
value :: AccessControlAttributeValueProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SSO::InstanceAccessControlAttributeConfiguration.AccessControlAttribute",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Key" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
key, Key
"Value" Key -> AccessControlAttributeValueProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AccessControlAttributeValueProperty
value]}
instance JSON.ToJSON AccessControlAttributeProperty where
toJSON :: AccessControlAttributeProperty -> Value
toJSON AccessControlAttributeProperty {()
Value Text
AccessControlAttributeValueProperty
haddock_workaround_ :: AccessControlAttributeProperty -> ()
key :: AccessControlAttributeProperty -> Value Text
value :: AccessControlAttributeProperty
-> AccessControlAttributeValueProperty
haddock_workaround_ :: ()
key :: Value Text
value :: AccessControlAttributeValueProperty
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Key" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
key, Key
"Value" Key -> AccessControlAttributeValueProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AccessControlAttributeValueProperty
value]
instance Property "Key" AccessControlAttributeProperty where
type PropertyType "Key" AccessControlAttributeProperty = Value Prelude.Text
set :: PropertyType "Key" AccessControlAttributeProperty
-> AccessControlAttributeProperty -> AccessControlAttributeProperty
set PropertyType "Key" AccessControlAttributeProperty
newValue AccessControlAttributeProperty {()
Value Text
AccessControlAttributeValueProperty
haddock_workaround_ :: AccessControlAttributeProperty -> ()
key :: AccessControlAttributeProperty -> Value Text
value :: AccessControlAttributeProperty
-> AccessControlAttributeValueProperty
haddock_workaround_ :: ()
key :: Value Text
value :: AccessControlAttributeValueProperty
..}
= AccessControlAttributeProperty {key :: Value Text
key = PropertyType "Key" AccessControlAttributeProperty
Value Text
newValue, ()
AccessControlAttributeValueProperty
haddock_workaround_ :: ()
value :: AccessControlAttributeValueProperty
haddock_workaround_ :: ()
value :: AccessControlAttributeValueProperty
..}
instance Property "Value" AccessControlAttributeProperty where
type PropertyType "Value" AccessControlAttributeProperty = AccessControlAttributeValueProperty
set :: PropertyType "Value" AccessControlAttributeProperty
-> AccessControlAttributeProperty -> AccessControlAttributeProperty
set PropertyType "Value" AccessControlAttributeProperty
newValue AccessControlAttributeProperty {()
Value Text
AccessControlAttributeValueProperty
haddock_workaround_ :: AccessControlAttributeProperty -> ()
key :: AccessControlAttributeProperty -> Value Text
value :: AccessControlAttributeProperty
-> AccessControlAttributeValueProperty
haddock_workaround_ :: ()
key :: Value Text
value :: AccessControlAttributeValueProperty
..}
= AccessControlAttributeProperty {value :: AccessControlAttributeValueProperty
value = PropertyType "Value" AccessControlAttributeProperty
AccessControlAttributeValueProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
key :: Value Text
haddock_workaround_ :: ()
key :: Value Text
..}