module Stratosphere.ARCRegionSwitch.Plan.AssociatedAlarmProperty (
AssociatedAlarmProperty(..), mkAssociatedAlarmProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AssociatedAlarmProperty
=
AssociatedAlarmProperty {AssociatedAlarmProperty -> ()
haddock_workaround_ :: (),
AssociatedAlarmProperty -> Value Text
alarmType :: (Value Prelude.Text),
AssociatedAlarmProperty -> Maybe (Value Text)
crossAccountRole :: (Prelude.Maybe (Value Prelude.Text)),
AssociatedAlarmProperty -> Maybe (Value Text)
externalId :: (Prelude.Maybe (Value Prelude.Text)),
AssociatedAlarmProperty -> Value Text
resourceIdentifier :: (Value Prelude.Text)}
deriving stock (AssociatedAlarmProperty -> AssociatedAlarmProperty -> Bool
(AssociatedAlarmProperty -> AssociatedAlarmProperty -> Bool)
-> (AssociatedAlarmProperty -> AssociatedAlarmProperty -> Bool)
-> Eq AssociatedAlarmProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AssociatedAlarmProperty -> AssociatedAlarmProperty -> Bool
== :: AssociatedAlarmProperty -> AssociatedAlarmProperty -> Bool
$c/= :: AssociatedAlarmProperty -> AssociatedAlarmProperty -> Bool
/= :: AssociatedAlarmProperty -> AssociatedAlarmProperty -> Bool
Prelude.Eq, Int -> AssociatedAlarmProperty -> ShowS
[AssociatedAlarmProperty] -> ShowS
AssociatedAlarmProperty -> String
(Int -> AssociatedAlarmProperty -> ShowS)
-> (AssociatedAlarmProperty -> String)
-> ([AssociatedAlarmProperty] -> ShowS)
-> Show AssociatedAlarmProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AssociatedAlarmProperty -> ShowS
showsPrec :: Int -> AssociatedAlarmProperty -> ShowS
$cshow :: AssociatedAlarmProperty -> String
show :: AssociatedAlarmProperty -> String
$cshowList :: [AssociatedAlarmProperty] -> ShowS
showList :: [AssociatedAlarmProperty] -> ShowS
Prelude.Show)
mkAssociatedAlarmProperty ::
Value Prelude.Text -> Value Prelude.Text -> AssociatedAlarmProperty
mkAssociatedAlarmProperty :: Value Text -> Value Text -> AssociatedAlarmProperty
mkAssociatedAlarmProperty Value Text
alarmType Value Text
resourceIdentifier
= AssociatedAlarmProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), alarmType :: Value Text
alarmType = Value Text
alarmType,
resourceIdentifier :: Value Text
resourceIdentifier = Value Text
resourceIdentifier,
crossAccountRole :: Maybe (Value Text)
crossAccountRole = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, externalId :: Maybe (Value Text)
externalId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AssociatedAlarmProperty where
toResourceProperties :: AssociatedAlarmProperty -> ResourceProperties
toResourceProperties AssociatedAlarmProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AssociatedAlarmProperty -> ()
alarmType :: AssociatedAlarmProperty -> Value Text
crossAccountRole :: AssociatedAlarmProperty -> Maybe (Value Text)
externalId :: AssociatedAlarmProperty -> Maybe (Value Text)
resourceIdentifier :: AssociatedAlarmProperty -> Value Text
haddock_workaround_ :: ()
alarmType :: Value Text
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
resourceIdentifier :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ARCRegionSwitch::Plan.AssociatedAlarm",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"AlarmType" 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
alarmType,
Key
"ResourceIdentifier" 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
resourceIdentifier]
([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
"CrossAccountRole" (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)
crossAccountRole,
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
"ExternalId" (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)
externalId]))}
instance JSON.ToJSON AssociatedAlarmProperty where
toJSON :: AssociatedAlarmProperty -> Value
toJSON AssociatedAlarmProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AssociatedAlarmProperty -> ()
alarmType :: AssociatedAlarmProperty -> Value Text
crossAccountRole :: AssociatedAlarmProperty -> Maybe (Value Text)
externalId :: AssociatedAlarmProperty -> Maybe (Value Text)
resourceIdentifier :: AssociatedAlarmProperty -> Value Text
haddock_workaround_ :: ()
alarmType :: Value Text
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
resourceIdentifier :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"AlarmType" 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
alarmType,
Key
"ResourceIdentifier" 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
resourceIdentifier]
([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
"CrossAccountRole" (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)
crossAccountRole,
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
"ExternalId" (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)
externalId])))
instance Property "AlarmType" AssociatedAlarmProperty where
type PropertyType "AlarmType" AssociatedAlarmProperty = Value Prelude.Text
set :: PropertyType "AlarmType" AssociatedAlarmProperty
-> AssociatedAlarmProperty -> AssociatedAlarmProperty
set PropertyType "AlarmType" AssociatedAlarmProperty
newValue AssociatedAlarmProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AssociatedAlarmProperty -> ()
alarmType :: AssociatedAlarmProperty -> Value Text
crossAccountRole :: AssociatedAlarmProperty -> Maybe (Value Text)
externalId :: AssociatedAlarmProperty -> Maybe (Value Text)
resourceIdentifier :: AssociatedAlarmProperty -> Value Text
haddock_workaround_ :: ()
alarmType :: Value Text
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
resourceIdentifier :: Value Text
..}
= AssociatedAlarmProperty {alarmType :: Value Text
alarmType = PropertyType "AlarmType" AssociatedAlarmProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
resourceIdentifier :: Value Text
haddock_workaround_ :: ()
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
resourceIdentifier :: Value Text
..}
instance Property "CrossAccountRole" AssociatedAlarmProperty where
type PropertyType "CrossAccountRole" AssociatedAlarmProperty = Value Prelude.Text
set :: PropertyType "CrossAccountRole" AssociatedAlarmProperty
-> AssociatedAlarmProperty -> AssociatedAlarmProperty
set PropertyType "CrossAccountRole" AssociatedAlarmProperty
newValue AssociatedAlarmProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AssociatedAlarmProperty -> ()
alarmType :: AssociatedAlarmProperty -> Value Text
crossAccountRole :: AssociatedAlarmProperty -> Maybe (Value Text)
externalId :: AssociatedAlarmProperty -> Maybe (Value Text)
resourceIdentifier :: AssociatedAlarmProperty -> Value Text
haddock_workaround_ :: ()
alarmType :: Value Text
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
resourceIdentifier :: Value Text
..}
= AssociatedAlarmProperty
{crossAccountRole :: Maybe (Value Text)
crossAccountRole = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CrossAccountRole" AssociatedAlarmProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
alarmType :: Value Text
externalId :: Maybe (Value Text)
resourceIdentifier :: Value Text
haddock_workaround_ :: ()
alarmType :: Value Text
externalId :: Maybe (Value Text)
resourceIdentifier :: Value Text
..}
instance Property "ExternalId" AssociatedAlarmProperty where
type PropertyType "ExternalId" AssociatedAlarmProperty = Value Prelude.Text
set :: PropertyType "ExternalId" AssociatedAlarmProperty
-> AssociatedAlarmProperty -> AssociatedAlarmProperty
set PropertyType "ExternalId" AssociatedAlarmProperty
newValue AssociatedAlarmProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AssociatedAlarmProperty -> ()
alarmType :: AssociatedAlarmProperty -> Value Text
crossAccountRole :: AssociatedAlarmProperty -> Maybe (Value Text)
externalId :: AssociatedAlarmProperty -> Maybe (Value Text)
resourceIdentifier :: AssociatedAlarmProperty -> Value Text
haddock_workaround_ :: ()
alarmType :: Value Text
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
resourceIdentifier :: Value Text
..}
= AssociatedAlarmProperty {externalId :: Maybe (Value Text)
externalId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExternalId" AssociatedAlarmProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
alarmType :: Value Text
crossAccountRole :: Maybe (Value Text)
resourceIdentifier :: Value Text
haddock_workaround_ :: ()
alarmType :: Value Text
crossAccountRole :: Maybe (Value Text)
resourceIdentifier :: Value Text
..}
instance Property "ResourceIdentifier" AssociatedAlarmProperty where
type PropertyType "ResourceIdentifier" AssociatedAlarmProperty = Value Prelude.Text
set :: PropertyType "ResourceIdentifier" AssociatedAlarmProperty
-> AssociatedAlarmProperty -> AssociatedAlarmProperty
set PropertyType "ResourceIdentifier" AssociatedAlarmProperty
newValue AssociatedAlarmProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AssociatedAlarmProperty -> ()
alarmType :: AssociatedAlarmProperty -> Value Text
crossAccountRole :: AssociatedAlarmProperty -> Maybe (Value Text)
externalId :: AssociatedAlarmProperty -> Maybe (Value Text)
resourceIdentifier :: AssociatedAlarmProperty -> Value Text
haddock_workaround_ :: ()
alarmType :: Value Text
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
resourceIdentifier :: Value Text
..}
= AssociatedAlarmProperty {resourceIdentifier :: Value Text
resourceIdentifier = PropertyType "ResourceIdentifier" AssociatedAlarmProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
alarmType :: Value Text
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
haddock_workaround_ :: ()
alarmType :: Value Text
crossAccountRole :: Maybe (Value Text)
externalId :: Maybe (Value Text)
..}