module Stratosphere.DataZone.EnvironmentBlueprintConfiguration.LakeFormationConfigurationProperty (
LakeFormationConfigurationProperty(..),
mkLakeFormationConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LakeFormationConfigurationProperty
=
LakeFormationConfigurationProperty {LakeFormationConfigurationProperty -> ()
haddock_workaround_ :: (),
LakeFormationConfigurationProperty -> Maybe (ValueList Text)
locationRegistrationExcludeS3Locations :: (Prelude.Maybe (ValueList Prelude.Text)),
LakeFormationConfigurationProperty -> Maybe (Value Text)
locationRegistrationRole :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty -> Bool
(LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty -> Bool)
-> (LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty -> Bool)
-> Eq LakeFormationConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty -> Bool
== :: LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty -> Bool
$c/= :: LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty -> Bool
/= :: LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty -> Bool
Prelude.Eq, Int -> LakeFormationConfigurationProperty -> ShowS
[LakeFormationConfigurationProperty] -> ShowS
LakeFormationConfigurationProperty -> String
(Int -> LakeFormationConfigurationProperty -> ShowS)
-> (LakeFormationConfigurationProperty -> String)
-> ([LakeFormationConfigurationProperty] -> ShowS)
-> Show LakeFormationConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LakeFormationConfigurationProperty -> ShowS
showsPrec :: Int -> LakeFormationConfigurationProperty -> ShowS
$cshow :: LakeFormationConfigurationProperty -> String
show :: LakeFormationConfigurationProperty -> String
$cshowList :: [LakeFormationConfigurationProperty] -> ShowS
showList :: [LakeFormationConfigurationProperty] -> ShowS
Prelude.Show)
mkLakeFormationConfigurationProperty ::
LakeFormationConfigurationProperty
mkLakeFormationConfigurationProperty :: LakeFormationConfigurationProperty
mkLakeFormationConfigurationProperty
= LakeFormationConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
locationRegistrationExcludeS3Locations :: Maybe (ValueList Text)
locationRegistrationExcludeS3Locations = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
locationRegistrationRole :: Maybe (Value Text)
locationRegistrationRole = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LakeFormationConfigurationProperty where
toResourceProperties :: LakeFormationConfigurationProperty -> ResourceProperties
toResourceProperties LakeFormationConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: LakeFormationConfigurationProperty -> ()
locationRegistrationExcludeS3Locations :: LakeFormationConfigurationProperty -> Maybe (ValueList Text)
locationRegistrationRole :: LakeFormationConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
locationRegistrationExcludeS3Locations :: Maybe (ValueList Text)
locationRegistrationRole :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DataZone::EnvironmentBlueprintConfiguration.LakeFormationConfiguration",
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 -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LocationRegistrationExcludeS3Locations"
(ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
locationRegistrationExcludeS3Locations,
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..=) Key
"LocationRegistrationRole"
(Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
locationRegistrationRole])}
instance JSON.ToJSON LakeFormationConfigurationProperty where
toJSON :: LakeFormationConfigurationProperty -> Value
toJSON LakeFormationConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: LakeFormationConfigurationProperty -> ()
locationRegistrationExcludeS3Locations :: LakeFormationConfigurationProperty -> Maybe (ValueList Text)
locationRegistrationRole :: LakeFormationConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
locationRegistrationExcludeS3Locations :: Maybe (ValueList Text)
locationRegistrationRole :: Maybe (Value Text)
..}
= [(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 -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LocationRegistrationExcludeS3Locations"
(ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
locationRegistrationExcludeS3Locations,
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..=) Key
"LocationRegistrationRole"
(Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
locationRegistrationRole]))
instance Property "LocationRegistrationExcludeS3Locations" LakeFormationConfigurationProperty where
type PropertyType "LocationRegistrationExcludeS3Locations" LakeFormationConfigurationProperty = ValueList Prelude.Text
set :: PropertyType
"LocationRegistrationExcludeS3Locations"
LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty
set PropertyType
"LocationRegistrationExcludeS3Locations"
LakeFormationConfigurationProperty
newValue LakeFormationConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: LakeFormationConfigurationProperty -> ()
locationRegistrationExcludeS3Locations :: LakeFormationConfigurationProperty -> Maybe (ValueList Text)
locationRegistrationRole :: LakeFormationConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
locationRegistrationExcludeS3Locations :: Maybe (ValueList Text)
locationRegistrationRole :: Maybe (Value Text)
..}
= LakeFormationConfigurationProperty
{locationRegistrationExcludeS3Locations :: Maybe (ValueList Text)
locationRegistrationExcludeS3Locations = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"LocationRegistrationExcludeS3Locations"
LakeFormationConfigurationProperty
ValueList Text
newValue,
Maybe (Value Text)
()
haddock_workaround_ :: ()
locationRegistrationRole :: Maybe (Value Text)
haddock_workaround_ :: ()
locationRegistrationRole :: Maybe (Value Text)
..}
instance Property "LocationRegistrationRole" LakeFormationConfigurationProperty where
type PropertyType "LocationRegistrationRole" LakeFormationConfigurationProperty = Value Prelude.Text
set :: PropertyType
"LocationRegistrationRole" LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty
-> LakeFormationConfigurationProperty
set PropertyType
"LocationRegistrationRole" LakeFormationConfigurationProperty
newValue LakeFormationConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: LakeFormationConfigurationProperty -> ()
locationRegistrationExcludeS3Locations :: LakeFormationConfigurationProperty -> Maybe (ValueList Text)
locationRegistrationRole :: LakeFormationConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
locationRegistrationExcludeS3Locations :: Maybe (ValueList Text)
locationRegistrationRole :: Maybe (Value Text)
..}
= LakeFormationConfigurationProperty
{locationRegistrationRole :: Maybe (Value Text)
locationRegistrationRole = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"LocationRegistrationRole" LakeFormationConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
locationRegistrationExcludeS3Locations :: Maybe (ValueList Text)
haddock_workaround_ :: ()
locationRegistrationExcludeS3Locations :: Maybe (ValueList Text)
..}