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