module Stratosphere.DataZone.Connection.IamPropertiesInputProperty (
IamPropertiesInputProperty(..), mkIamPropertiesInputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data IamPropertiesInputProperty
=
IamPropertiesInputProperty {IamPropertiesInputProperty -> ()
haddock_workaround_ :: (),
IamPropertiesInputProperty -> Maybe (Value Bool)
glueLineageSyncEnabled :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (IamPropertiesInputProperty -> IamPropertiesInputProperty -> Bool
(IamPropertiesInputProperty -> IamPropertiesInputProperty -> Bool)
-> (IamPropertiesInputProperty
-> IamPropertiesInputProperty -> Bool)
-> Eq IamPropertiesInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: IamPropertiesInputProperty -> IamPropertiesInputProperty -> Bool
== :: IamPropertiesInputProperty -> IamPropertiesInputProperty -> Bool
$c/= :: IamPropertiesInputProperty -> IamPropertiesInputProperty -> Bool
/= :: IamPropertiesInputProperty -> IamPropertiesInputProperty -> Bool
Prelude.Eq, Int -> IamPropertiesInputProperty -> ShowS
[IamPropertiesInputProperty] -> ShowS
IamPropertiesInputProperty -> String
(Int -> IamPropertiesInputProperty -> ShowS)
-> (IamPropertiesInputProperty -> String)
-> ([IamPropertiesInputProperty] -> ShowS)
-> Show IamPropertiesInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> IamPropertiesInputProperty -> ShowS
showsPrec :: Int -> IamPropertiesInputProperty -> ShowS
$cshow :: IamPropertiesInputProperty -> String
show :: IamPropertiesInputProperty -> String
$cshowList :: [IamPropertiesInputProperty] -> ShowS
showList :: [IamPropertiesInputProperty] -> ShowS
Prelude.Show)
mkIamPropertiesInputProperty :: IamPropertiesInputProperty
mkIamPropertiesInputProperty :: IamPropertiesInputProperty
mkIamPropertiesInputProperty
= IamPropertiesInputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
glueLineageSyncEnabled :: Maybe (Value Bool)
glueLineageSyncEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties IamPropertiesInputProperty where
toResourceProperties :: IamPropertiesInputProperty -> ResourceProperties
toResourceProperties IamPropertiesInputProperty {Maybe (Value Bool)
()
haddock_workaround_ :: IamPropertiesInputProperty -> ()
glueLineageSyncEnabled :: IamPropertiesInputProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
glueLineageSyncEnabled :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DataZone::Connection.IamPropertiesInput",
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
"GlueLineageSyncEnabled"
(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)
glueLineageSyncEnabled])}
instance JSON.ToJSON IamPropertiesInputProperty where
toJSON :: IamPropertiesInputProperty -> Value
toJSON IamPropertiesInputProperty {Maybe (Value Bool)
()
haddock_workaround_ :: IamPropertiesInputProperty -> ()
glueLineageSyncEnabled :: IamPropertiesInputProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
glueLineageSyncEnabled :: 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
"GlueLineageSyncEnabled"
(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)
glueLineageSyncEnabled]))
instance Property "GlueLineageSyncEnabled" IamPropertiesInputProperty where
type PropertyType "GlueLineageSyncEnabled" IamPropertiesInputProperty = Value Prelude.Bool
set :: PropertyType "GlueLineageSyncEnabled" IamPropertiesInputProperty
-> IamPropertiesInputProperty -> IamPropertiesInputProperty
set PropertyType "GlueLineageSyncEnabled" IamPropertiesInputProperty
newValue IamPropertiesInputProperty {Maybe (Value Bool)
()
haddock_workaround_ :: IamPropertiesInputProperty -> ()
glueLineageSyncEnabled :: IamPropertiesInputProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
glueLineageSyncEnabled :: Maybe (Value Bool)
..}
= IamPropertiesInputProperty
{glueLineageSyncEnabled :: Maybe (Value Bool)
glueLineageSyncEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "GlueLineageSyncEnabled" IamPropertiesInputProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}