stratosphere-controltower-1.0.0: gen/Stratosphere/ControlTower/EnabledControl/EnabledControlParameterProperty.hs
module Stratosphere.ControlTower.EnabledControl.EnabledControlParameterProperty (
EnabledControlParameterProperty(..),
mkEnabledControlParameterProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EnabledControlParameterProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-controltower-enabledcontrol-enabledcontrolparameter.html>
EnabledControlParameterProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-controltower-enabledcontrol-enabledcontrolparameter.html#cfn-controltower-enabledcontrol-enabledcontrolparameter-key>
key :: (Value Prelude.Text),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-controltower-enabledcontrol-enabledcontrolparameter.html#cfn-controltower-enabledcontrol-enabledcontrolparameter-value>
value :: JSON.Object}
deriving stock (Prelude.Eq, Prelude.Show)
mkEnabledControlParameterProperty ::
Value Prelude.Text
-> JSON.Object -> EnabledControlParameterProperty
mkEnabledControlParameterProperty key value
= EnabledControlParameterProperty
{haddock_workaround_ = (), key = key, value = value}
instance ToResourceProperties EnabledControlParameterProperty where
toResourceProperties EnabledControlParameterProperty {..}
= ResourceProperties
{awsType = "AWS::ControlTower::EnabledControl.EnabledControlParameter",
supportsTags = Prelude.False,
properties = ["Key" JSON..= key, "Value" JSON..= value]}
instance JSON.ToJSON EnabledControlParameterProperty where
toJSON EnabledControlParameterProperty {..}
= JSON.object ["Key" JSON..= key, "Value" JSON..= value]
instance Property "Key" EnabledControlParameterProperty where
type PropertyType "Key" EnabledControlParameterProperty = Value Prelude.Text
set newValue EnabledControlParameterProperty {..}
= EnabledControlParameterProperty {key = newValue, ..}
instance Property "Value" EnabledControlParameterProperty where
type PropertyType "Value" EnabledControlParameterProperty = JSON.Object
set newValue EnabledControlParameterProperty {..}
= EnabledControlParameterProperty {value = newValue, ..}