module Stratosphere.LakeFormation.DataLakeSettings.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
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-datalakesettings-datalakeprincipal.html>
    DataLakePrincipalProperty {DataLakePrincipalProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lakeformation-datalakesettings-datalakeprincipal.html#cfn-lakeformation-datalakesettings-datalakeprincipal-datalakeprincipalidentifier>
                               DataLakePrincipalProperty -> Value Text
dataLakePrincipalIdentifier :: (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 ::
  Value Prelude.Text -> DataLakePrincipalProperty
mkDataLakePrincipalProperty :: Value Text -> DataLakePrincipalProperty
mkDataLakePrincipalProperty Value Text
dataLakePrincipalIdentifier
  = DataLakePrincipalProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       dataLakePrincipalIdentifier :: Value Text
dataLakePrincipalIdentifier = Value Text
dataLakePrincipalIdentifier}
instance ToResourceProperties DataLakePrincipalProperty where
  toResourceProperties :: DataLakePrincipalProperty -> ResourceProperties
toResourceProperties DataLakePrincipalProperty {()
Value Text
haddock_workaround_ :: DataLakePrincipalProperty -> ()
dataLakePrincipalIdentifier :: DataLakePrincipalProperty -> Value Text
haddock_workaround_ :: ()
dataLakePrincipalIdentifier :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::LakeFormation::DataLakeSettings.DataLakePrincipal",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"DataLakePrincipalIdentifier"
                         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
dataLakePrincipalIdentifier]}
instance JSON.ToJSON DataLakePrincipalProperty where
  toJSON :: DataLakePrincipalProperty -> Value
toJSON DataLakePrincipalProperty {()
Value Text
haddock_workaround_ :: DataLakePrincipalProperty -> ()
dataLakePrincipalIdentifier :: DataLakePrincipalProperty -> Value Text
haddock_workaround_ :: ()
dataLakePrincipalIdentifier :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"DataLakePrincipalIdentifier" 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
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 {()
Value Text
haddock_workaround_ :: DataLakePrincipalProperty -> ()
dataLakePrincipalIdentifier :: DataLakePrincipalProperty -> Value Text
haddock_workaround_ :: ()
dataLakePrincipalIdentifier :: Value Text
..}
    = DataLakePrincipalProperty
        {dataLakePrincipalIdentifier :: Value Text
dataLakePrincipalIdentifier = PropertyType
  "DataLakePrincipalIdentifier" DataLakePrincipalProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}