module Stratosphere.SecurityLake.Subscriber.SubscriberIdentityProperty (
SubscriberIdentityProperty(..), mkSubscriberIdentityProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SubscriberIdentityProperty
=
SubscriberIdentityProperty {SubscriberIdentityProperty -> ()
haddock_workaround_ :: (),
SubscriberIdentityProperty -> Value Text
externalId :: (Value Prelude.Text),
SubscriberIdentityProperty -> Value Text
principal :: (Value Prelude.Text)}
deriving stock (SubscriberIdentityProperty -> SubscriberIdentityProperty -> Bool
(SubscriberIdentityProperty -> SubscriberIdentityProperty -> Bool)
-> (SubscriberIdentityProperty
-> SubscriberIdentityProperty -> Bool)
-> Eq SubscriberIdentityProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SubscriberIdentityProperty -> SubscriberIdentityProperty -> Bool
== :: SubscriberIdentityProperty -> SubscriberIdentityProperty -> Bool
$c/= :: SubscriberIdentityProperty -> SubscriberIdentityProperty -> Bool
/= :: SubscriberIdentityProperty -> SubscriberIdentityProperty -> Bool
Prelude.Eq, Int -> SubscriberIdentityProperty -> ShowS
[SubscriberIdentityProperty] -> ShowS
SubscriberIdentityProperty -> String
(Int -> SubscriberIdentityProperty -> ShowS)
-> (SubscriberIdentityProperty -> String)
-> ([SubscriberIdentityProperty] -> ShowS)
-> Show SubscriberIdentityProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SubscriberIdentityProperty -> ShowS
showsPrec :: Int -> SubscriberIdentityProperty -> ShowS
$cshow :: SubscriberIdentityProperty -> String
show :: SubscriberIdentityProperty -> String
$cshowList :: [SubscriberIdentityProperty] -> ShowS
showList :: [SubscriberIdentityProperty] -> ShowS
Prelude.Show)
mkSubscriberIdentityProperty ::
Value Prelude.Text
-> Value Prelude.Text -> SubscriberIdentityProperty
mkSubscriberIdentityProperty :: Value Text -> Value Text -> SubscriberIdentityProperty
mkSubscriberIdentityProperty Value Text
externalId Value Text
principal
= SubscriberIdentityProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), externalId :: Value Text
externalId = Value Text
externalId,
principal :: Value Text
principal = Value Text
principal}
instance ToResourceProperties SubscriberIdentityProperty where
toResourceProperties :: SubscriberIdentityProperty -> ResourceProperties
toResourceProperties SubscriberIdentityProperty {()
Value Text
haddock_workaround_ :: SubscriberIdentityProperty -> ()
externalId :: SubscriberIdentityProperty -> Value Text
principal :: SubscriberIdentityProperty -> Value Text
haddock_workaround_ :: ()
externalId :: Value Text
principal :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SecurityLake::Subscriber.SubscriberIdentity",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"ExternalId" 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
externalId,
Key
"Principal" 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
principal]}
instance JSON.ToJSON SubscriberIdentityProperty where
toJSON :: SubscriberIdentityProperty -> Value
toJSON SubscriberIdentityProperty {()
Value Text
haddock_workaround_ :: SubscriberIdentityProperty -> ()
externalId :: SubscriberIdentityProperty -> Value Text
principal :: SubscriberIdentityProperty -> Value Text
haddock_workaround_ :: ()
externalId :: Value Text
principal :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"ExternalId" 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
externalId, Key
"Principal" 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
principal]
instance Property "ExternalId" SubscriberIdentityProperty where
type PropertyType "ExternalId" SubscriberIdentityProperty = Value Prelude.Text
set :: PropertyType "ExternalId" SubscriberIdentityProperty
-> SubscriberIdentityProperty -> SubscriberIdentityProperty
set PropertyType "ExternalId" SubscriberIdentityProperty
newValue SubscriberIdentityProperty {()
Value Text
haddock_workaround_ :: SubscriberIdentityProperty -> ()
externalId :: SubscriberIdentityProperty -> Value Text
principal :: SubscriberIdentityProperty -> Value Text
haddock_workaround_ :: ()
externalId :: Value Text
principal :: Value Text
..}
= SubscriberIdentityProperty {externalId :: Value Text
externalId = PropertyType "ExternalId" SubscriberIdentityProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
principal :: Value Text
haddock_workaround_ :: ()
principal :: Value Text
..}
instance Property "Principal" SubscriberIdentityProperty where
type PropertyType "Principal" SubscriberIdentityProperty = Value Prelude.Text
set :: PropertyType "Principal" SubscriberIdentityProperty
-> SubscriberIdentityProperty -> SubscriberIdentityProperty
set PropertyType "Principal" SubscriberIdentityProperty
newValue SubscriberIdentityProperty {()
Value Text
haddock_workaround_ :: SubscriberIdentityProperty -> ()
externalId :: SubscriberIdentityProperty -> Value Text
principal :: SubscriberIdentityProperty -> Value Text
haddock_workaround_ :: ()
externalId :: Value Text
principal :: Value Text
..}
= SubscriberIdentityProperty {principal :: Value Text
principal = PropertyType "Principal" SubscriberIdentityProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
externalId :: Value Text
haddock_workaround_ :: ()
externalId :: Value Text
..}