stratosphere-budgets-1.0.0: gen/Stratosphere/Budgets/BudgetsAction/SsmActionDefinitionProperty.hs
module Stratosphere.Budgets.BudgetsAction.SsmActionDefinitionProperty (
SsmActionDefinitionProperty(..), mkSsmActionDefinitionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SsmActionDefinitionProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budgetsaction-ssmactiondefinition.html>
SsmActionDefinitionProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budgetsaction-ssmactiondefinition.html#cfn-budgets-budgetsaction-ssmactiondefinition-instanceids>
instanceIds :: (ValueList Prelude.Text),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budgetsaction-ssmactiondefinition.html#cfn-budgets-budgetsaction-ssmactiondefinition-region>
region :: (Value Prelude.Text),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-budgets-budgetsaction-ssmactiondefinition.html#cfn-budgets-budgetsaction-ssmactiondefinition-subtype>
subtype :: (Value Prelude.Text)}
deriving stock (Prelude.Eq, Prelude.Show)
mkSsmActionDefinitionProperty ::
ValueList Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> SsmActionDefinitionProperty
mkSsmActionDefinitionProperty instanceIds region subtype
= SsmActionDefinitionProperty
{haddock_workaround_ = (), instanceIds = instanceIds,
region = region, subtype = subtype}
instance ToResourceProperties SsmActionDefinitionProperty where
toResourceProperties SsmActionDefinitionProperty {..}
= ResourceProperties
{awsType = "AWS::Budgets::BudgetsAction.SsmActionDefinition",
supportsTags = Prelude.False,
properties = ["InstanceIds" JSON..= instanceIds,
"Region" JSON..= region, "Subtype" JSON..= subtype]}
instance JSON.ToJSON SsmActionDefinitionProperty where
toJSON SsmActionDefinitionProperty {..}
= JSON.object
["InstanceIds" JSON..= instanceIds, "Region" JSON..= region,
"Subtype" JSON..= subtype]
instance Property "InstanceIds" SsmActionDefinitionProperty where
type PropertyType "InstanceIds" SsmActionDefinitionProperty = ValueList Prelude.Text
set newValue SsmActionDefinitionProperty {..}
= SsmActionDefinitionProperty {instanceIds = newValue, ..}
instance Property "Region" SsmActionDefinitionProperty where
type PropertyType "Region" SsmActionDefinitionProperty = Value Prelude.Text
set newValue SsmActionDefinitionProperty {..}
= SsmActionDefinitionProperty {region = newValue, ..}
instance Property "Subtype" SsmActionDefinitionProperty where
type PropertyType "Subtype" SsmActionDefinitionProperty = Value Prelude.Text
set newValue SsmActionDefinitionProperty {..}
= SsmActionDefinitionProperty {subtype = newValue, ..}