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