module Stratosphere.Budgets.BudgetsAction.DefinitionProperty (
module Exports, DefinitionProperty(..), mkDefinitionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Budgets.BudgetsAction.IamActionDefinitionProperty as Exports
import {-# SOURCE #-} Stratosphere.Budgets.BudgetsAction.ScpActionDefinitionProperty as Exports
import {-# SOURCE #-} Stratosphere.Budgets.BudgetsAction.SsmActionDefinitionProperty as Exports
import Stratosphere.ResourceProperties
data DefinitionProperty
=
DefinitionProperty {DefinitionProperty -> ()
haddock_workaround_ :: (),
DefinitionProperty -> Maybe IamActionDefinitionProperty
iamActionDefinition :: (Prelude.Maybe IamActionDefinitionProperty),
DefinitionProperty -> Maybe ScpActionDefinitionProperty
scpActionDefinition :: (Prelude.Maybe ScpActionDefinitionProperty),
DefinitionProperty -> Maybe SsmActionDefinitionProperty
ssmActionDefinition :: (Prelude.Maybe SsmActionDefinitionProperty)}
deriving stock (DefinitionProperty -> DefinitionProperty -> Bool
(DefinitionProperty -> DefinitionProperty -> Bool)
-> (DefinitionProperty -> DefinitionProperty -> Bool)
-> Eq DefinitionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DefinitionProperty -> DefinitionProperty -> Bool
== :: DefinitionProperty -> DefinitionProperty -> Bool
$c/= :: DefinitionProperty -> DefinitionProperty -> Bool
/= :: DefinitionProperty -> DefinitionProperty -> Bool
Prelude.Eq, Int -> DefinitionProperty -> ShowS
[DefinitionProperty] -> ShowS
DefinitionProperty -> String
(Int -> DefinitionProperty -> ShowS)
-> (DefinitionProperty -> String)
-> ([DefinitionProperty] -> ShowS)
-> Show DefinitionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DefinitionProperty -> ShowS
showsPrec :: Int -> DefinitionProperty -> ShowS
$cshow :: DefinitionProperty -> String
show :: DefinitionProperty -> String
$cshowList :: [DefinitionProperty] -> ShowS
showList :: [DefinitionProperty] -> ShowS
Prelude.Show)
mkDefinitionProperty :: DefinitionProperty
mkDefinitionProperty :: DefinitionProperty
mkDefinitionProperty
= DefinitionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), iamActionDefinition :: Maybe IamActionDefinitionProperty
iamActionDefinition = Maybe IamActionDefinitionProperty
forall a. Maybe a
Prelude.Nothing,
scpActionDefinition :: Maybe ScpActionDefinitionProperty
scpActionDefinition = Maybe ScpActionDefinitionProperty
forall a. Maybe a
Prelude.Nothing,
ssmActionDefinition :: Maybe SsmActionDefinitionProperty
ssmActionDefinition = Maybe SsmActionDefinitionProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DefinitionProperty where
toResourceProperties :: DefinitionProperty -> ResourceProperties
toResourceProperties DefinitionProperty {Maybe IamActionDefinitionProperty
Maybe ScpActionDefinitionProperty
Maybe SsmActionDefinitionProperty
()
haddock_workaround_ :: DefinitionProperty -> ()
iamActionDefinition :: DefinitionProperty -> Maybe IamActionDefinitionProperty
scpActionDefinition :: DefinitionProperty -> Maybe ScpActionDefinitionProperty
ssmActionDefinition :: DefinitionProperty -> Maybe SsmActionDefinitionProperty
haddock_workaround_ :: ()
iamActionDefinition :: Maybe IamActionDefinitionProperty
scpActionDefinition :: Maybe ScpActionDefinitionProperty
ssmActionDefinition :: Maybe SsmActionDefinitionProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Budgets::BudgetsAction.Definition",
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 -> IamActionDefinitionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IamActionDefinition" (IamActionDefinitionProperty -> (Key, Value))
-> Maybe IamActionDefinitionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IamActionDefinitionProperty
iamActionDefinition,
Key -> ScpActionDefinitionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ScpActionDefinition" (ScpActionDefinitionProperty -> (Key, Value))
-> Maybe ScpActionDefinitionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ScpActionDefinitionProperty
scpActionDefinition,
Key -> SsmActionDefinitionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SsmActionDefinition" (SsmActionDefinitionProperty -> (Key, Value))
-> Maybe SsmActionDefinitionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SsmActionDefinitionProperty
ssmActionDefinition])}
instance JSON.ToJSON DefinitionProperty where
toJSON :: DefinitionProperty -> Value
toJSON DefinitionProperty {Maybe IamActionDefinitionProperty
Maybe ScpActionDefinitionProperty
Maybe SsmActionDefinitionProperty
()
haddock_workaround_ :: DefinitionProperty -> ()
iamActionDefinition :: DefinitionProperty -> Maybe IamActionDefinitionProperty
scpActionDefinition :: DefinitionProperty -> Maybe ScpActionDefinitionProperty
ssmActionDefinition :: DefinitionProperty -> Maybe SsmActionDefinitionProperty
haddock_workaround_ :: ()
iamActionDefinition :: Maybe IamActionDefinitionProperty
scpActionDefinition :: Maybe ScpActionDefinitionProperty
ssmActionDefinition :: Maybe SsmActionDefinitionProperty
..}
= [(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 -> IamActionDefinitionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IamActionDefinition" (IamActionDefinitionProperty -> (Key, Value))
-> Maybe IamActionDefinitionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IamActionDefinitionProperty
iamActionDefinition,
Key -> ScpActionDefinitionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ScpActionDefinition" (ScpActionDefinitionProperty -> (Key, Value))
-> Maybe ScpActionDefinitionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ScpActionDefinitionProperty
scpActionDefinition,
Key -> SsmActionDefinitionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SsmActionDefinition" (SsmActionDefinitionProperty -> (Key, Value))
-> Maybe SsmActionDefinitionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SsmActionDefinitionProperty
ssmActionDefinition]))
instance Property "IamActionDefinition" DefinitionProperty where
type PropertyType "IamActionDefinition" DefinitionProperty = IamActionDefinitionProperty
set :: PropertyType "IamActionDefinition" DefinitionProperty
-> DefinitionProperty -> DefinitionProperty
set PropertyType "IamActionDefinition" DefinitionProperty
newValue DefinitionProperty {Maybe IamActionDefinitionProperty
Maybe ScpActionDefinitionProperty
Maybe SsmActionDefinitionProperty
()
haddock_workaround_ :: DefinitionProperty -> ()
iamActionDefinition :: DefinitionProperty -> Maybe IamActionDefinitionProperty
scpActionDefinition :: DefinitionProperty -> Maybe ScpActionDefinitionProperty
ssmActionDefinition :: DefinitionProperty -> Maybe SsmActionDefinitionProperty
haddock_workaround_ :: ()
iamActionDefinition :: Maybe IamActionDefinitionProperty
scpActionDefinition :: Maybe ScpActionDefinitionProperty
ssmActionDefinition :: Maybe SsmActionDefinitionProperty
..}
= DefinitionProperty
{iamActionDefinition :: Maybe IamActionDefinitionProperty
iamActionDefinition = IamActionDefinitionProperty -> Maybe IamActionDefinitionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IamActionDefinition" DefinitionProperty
IamActionDefinitionProperty
newValue, Maybe ScpActionDefinitionProperty
Maybe SsmActionDefinitionProperty
()
haddock_workaround_ :: ()
scpActionDefinition :: Maybe ScpActionDefinitionProperty
ssmActionDefinition :: Maybe SsmActionDefinitionProperty
haddock_workaround_ :: ()
scpActionDefinition :: Maybe ScpActionDefinitionProperty
ssmActionDefinition :: Maybe SsmActionDefinitionProperty
..}
instance Property "ScpActionDefinition" DefinitionProperty where
type PropertyType "ScpActionDefinition" DefinitionProperty = ScpActionDefinitionProperty
set :: PropertyType "ScpActionDefinition" DefinitionProperty
-> DefinitionProperty -> DefinitionProperty
set PropertyType "ScpActionDefinition" DefinitionProperty
newValue DefinitionProperty {Maybe IamActionDefinitionProperty
Maybe ScpActionDefinitionProperty
Maybe SsmActionDefinitionProperty
()
haddock_workaround_ :: DefinitionProperty -> ()
iamActionDefinition :: DefinitionProperty -> Maybe IamActionDefinitionProperty
scpActionDefinition :: DefinitionProperty -> Maybe ScpActionDefinitionProperty
ssmActionDefinition :: DefinitionProperty -> Maybe SsmActionDefinitionProperty
haddock_workaround_ :: ()
iamActionDefinition :: Maybe IamActionDefinitionProperty
scpActionDefinition :: Maybe ScpActionDefinitionProperty
ssmActionDefinition :: Maybe SsmActionDefinitionProperty
..}
= DefinitionProperty
{scpActionDefinition :: Maybe ScpActionDefinitionProperty
scpActionDefinition = ScpActionDefinitionProperty -> Maybe ScpActionDefinitionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ScpActionDefinition" DefinitionProperty
ScpActionDefinitionProperty
newValue, Maybe IamActionDefinitionProperty
Maybe SsmActionDefinitionProperty
()
haddock_workaround_ :: ()
iamActionDefinition :: Maybe IamActionDefinitionProperty
ssmActionDefinition :: Maybe SsmActionDefinitionProperty
haddock_workaround_ :: ()
iamActionDefinition :: Maybe IamActionDefinitionProperty
ssmActionDefinition :: Maybe SsmActionDefinitionProperty
..}
instance Property "SsmActionDefinition" DefinitionProperty where
type PropertyType "SsmActionDefinition" DefinitionProperty = SsmActionDefinitionProperty
set :: PropertyType "SsmActionDefinition" DefinitionProperty
-> DefinitionProperty -> DefinitionProperty
set PropertyType "SsmActionDefinition" DefinitionProperty
newValue DefinitionProperty {Maybe IamActionDefinitionProperty
Maybe ScpActionDefinitionProperty
Maybe SsmActionDefinitionProperty
()
haddock_workaround_ :: DefinitionProperty -> ()
iamActionDefinition :: DefinitionProperty -> Maybe IamActionDefinitionProperty
scpActionDefinition :: DefinitionProperty -> Maybe ScpActionDefinitionProperty
ssmActionDefinition :: DefinitionProperty -> Maybe SsmActionDefinitionProperty
haddock_workaround_ :: ()
iamActionDefinition :: Maybe IamActionDefinitionProperty
scpActionDefinition :: Maybe ScpActionDefinitionProperty
ssmActionDefinition :: Maybe SsmActionDefinitionProperty
..}
= DefinitionProperty
{ssmActionDefinition :: Maybe SsmActionDefinitionProperty
ssmActionDefinition = SsmActionDefinitionProperty -> Maybe SsmActionDefinitionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SsmActionDefinition" DefinitionProperty
SsmActionDefinitionProperty
newValue, Maybe IamActionDefinitionProperty
Maybe ScpActionDefinitionProperty
()
haddock_workaround_ :: ()
iamActionDefinition :: Maybe IamActionDefinitionProperty
scpActionDefinition :: Maybe ScpActionDefinitionProperty
haddock_workaround_ :: ()
iamActionDefinition :: Maybe IamActionDefinitionProperty
scpActionDefinition :: Maybe ScpActionDefinitionProperty
..}