module Stratosphere.Connect.PredefinedAttribute.AttributeConfigurationProperty (
AttributeConfigurationProperty(..),
mkAttributeConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AttributeConfigurationProperty
=
AttributeConfigurationProperty {AttributeConfigurationProperty -> ()
haddock_workaround_ :: (),
AttributeConfigurationProperty -> Maybe (Value Bool)
enableValueValidationOnAssociation :: (Prelude.Maybe (Value Prelude.Bool)),
AttributeConfigurationProperty -> Maybe (Value Bool)
isReadOnly :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (AttributeConfigurationProperty
-> AttributeConfigurationProperty -> Bool
(AttributeConfigurationProperty
-> AttributeConfigurationProperty -> Bool)
-> (AttributeConfigurationProperty
-> AttributeConfigurationProperty -> Bool)
-> Eq AttributeConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AttributeConfigurationProperty
-> AttributeConfigurationProperty -> Bool
== :: AttributeConfigurationProperty
-> AttributeConfigurationProperty -> Bool
$c/= :: AttributeConfigurationProperty
-> AttributeConfigurationProperty -> Bool
/= :: AttributeConfigurationProperty
-> AttributeConfigurationProperty -> Bool
Prelude.Eq, Int -> AttributeConfigurationProperty -> ShowS
[AttributeConfigurationProperty] -> ShowS
AttributeConfigurationProperty -> String
(Int -> AttributeConfigurationProperty -> ShowS)
-> (AttributeConfigurationProperty -> String)
-> ([AttributeConfigurationProperty] -> ShowS)
-> Show AttributeConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AttributeConfigurationProperty -> ShowS
showsPrec :: Int -> AttributeConfigurationProperty -> ShowS
$cshow :: AttributeConfigurationProperty -> String
show :: AttributeConfigurationProperty -> String
$cshowList :: [AttributeConfigurationProperty] -> ShowS
showList :: [AttributeConfigurationProperty] -> ShowS
Prelude.Show)
mkAttributeConfigurationProperty :: AttributeConfigurationProperty
mkAttributeConfigurationProperty :: AttributeConfigurationProperty
mkAttributeConfigurationProperty
= AttributeConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
enableValueValidationOnAssociation :: Maybe (Value Bool)
enableValueValidationOnAssociation = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
isReadOnly :: Maybe (Value Bool)
isReadOnly = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AttributeConfigurationProperty where
toResourceProperties :: AttributeConfigurationProperty -> ResourceProperties
toResourceProperties AttributeConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: AttributeConfigurationProperty -> ()
enableValueValidationOnAssociation :: AttributeConfigurationProperty -> Maybe (Value Bool)
isReadOnly :: AttributeConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enableValueValidationOnAssociation :: Maybe (Value Bool)
isReadOnly :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Connect::PredefinedAttribute.AttributeConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EnableValueValidationOnAssociation"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enableValueValidationOnAssociation,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IsReadOnly" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
isReadOnly])}
instance JSON.ToJSON AttributeConfigurationProperty where
toJSON :: AttributeConfigurationProperty -> Value
toJSON AttributeConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: AttributeConfigurationProperty -> ()
enableValueValidationOnAssociation :: AttributeConfigurationProperty -> Maybe (Value Bool)
isReadOnly :: AttributeConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enableValueValidationOnAssociation :: Maybe (Value Bool)
isReadOnly :: Maybe (Value Bool)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EnableValueValidationOnAssociation"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enableValueValidationOnAssociation,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IsReadOnly" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
isReadOnly]))
instance Property "EnableValueValidationOnAssociation" AttributeConfigurationProperty where
type PropertyType "EnableValueValidationOnAssociation" AttributeConfigurationProperty = Value Prelude.Bool
set :: PropertyType
"EnableValueValidationOnAssociation" AttributeConfigurationProperty
-> AttributeConfigurationProperty -> AttributeConfigurationProperty
set PropertyType
"EnableValueValidationOnAssociation" AttributeConfigurationProperty
newValue AttributeConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: AttributeConfigurationProperty -> ()
enableValueValidationOnAssociation :: AttributeConfigurationProperty -> Maybe (Value Bool)
isReadOnly :: AttributeConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enableValueValidationOnAssociation :: Maybe (Value Bool)
isReadOnly :: Maybe (Value Bool)
..}
= AttributeConfigurationProperty
{enableValueValidationOnAssociation :: Maybe (Value Bool)
enableValueValidationOnAssociation = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"EnableValueValidationOnAssociation" AttributeConfigurationProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
isReadOnly :: Maybe (Value Bool)
haddock_workaround_ :: ()
isReadOnly :: Maybe (Value Bool)
..}
instance Property "IsReadOnly" AttributeConfigurationProperty where
type PropertyType "IsReadOnly" AttributeConfigurationProperty = Value Prelude.Bool
set :: PropertyType "IsReadOnly" AttributeConfigurationProperty
-> AttributeConfigurationProperty -> AttributeConfigurationProperty
set PropertyType "IsReadOnly" AttributeConfigurationProperty
newValue AttributeConfigurationProperty {Maybe (Value Bool)
()
haddock_workaround_ :: AttributeConfigurationProperty -> ()
enableValueValidationOnAssociation :: AttributeConfigurationProperty -> Maybe (Value Bool)
isReadOnly :: AttributeConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
enableValueValidationOnAssociation :: Maybe (Value Bool)
isReadOnly :: Maybe (Value Bool)
..}
= AttributeConfigurationProperty
{isReadOnly :: Maybe (Value Bool)
isReadOnly = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IsReadOnly" AttributeConfigurationProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
enableValueValidationOnAssociation :: Maybe (Value Bool)
haddock_workaround_ :: ()
enableValueValidationOnAssociation :: Maybe (Value Bool)
..}