module Stratosphere.AutoScaling.AutoScalingGroup.TagPropertyProperty (
        TagPropertyProperty(..), mkTagPropertyProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TagPropertyProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-tagproperty.html>
    TagPropertyProperty {TagPropertyProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-tagproperty.html#cfn-autoscaling-autoscalinggroup-tagproperty-key>
                         TagPropertyProperty -> Value Text
key :: (Value Prelude.Text),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-tagproperty.html#cfn-autoscaling-autoscalinggroup-tagproperty-propagateatlaunch>
                         TagPropertyProperty -> Value Bool
propagateAtLaunch :: (Value Prelude.Bool),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-tagproperty.html#cfn-autoscaling-autoscalinggroup-tagproperty-value>
                         TagPropertyProperty -> Value Text
value :: (Value Prelude.Text)}
  deriving stock (TagPropertyProperty -> TagPropertyProperty -> Bool
(TagPropertyProperty -> TagPropertyProperty -> Bool)
-> (TagPropertyProperty -> TagPropertyProperty -> Bool)
-> Eq TagPropertyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TagPropertyProperty -> TagPropertyProperty -> Bool
== :: TagPropertyProperty -> TagPropertyProperty -> Bool
$c/= :: TagPropertyProperty -> TagPropertyProperty -> Bool
/= :: TagPropertyProperty -> TagPropertyProperty -> Bool
Prelude.Eq, Int -> TagPropertyProperty -> ShowS
[TagPropertyProperty] -> ShowS
TagPropertyProperty -> String
(Int -> TagPropertyProperty -> ShowS)
-> (TagPropertyProperty -> String)
-> ([TagPropertyProperty] -> ShowS)
-> Show TagPropertyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TagPropertyProperty -> ShowS
showsPrec :: Int -> TagPropertyProperty -> ShowS
$cshow :: TagPropertyProperty -> String
show :: TagPropertyProperty -> String
$cshowList :: [TagPropertyProperty] -> ShowS
showList :: [TagPropertyProperty] -> ShowS
Prelude.Show)
mkTagPropertyProperty ::
  Value Prelude.Text
  -> Value Prelude.Bool -> Value Prelude.Text -> TagPropertyProperty
mkTagPropertyProperty :: Value Text -> Value Bool -> Value Text -> TagPropertyProperty
mkTagPropertyProperty Value Text
key Value Bool
propagateAtLaunch Value Text
value
  = TagPropertyProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), key :: Value Text
key = Value Text
key,
       propagateAtLaunch :: Value Bool
propagateAtLaunch = Value Bool
propagateAtLaunch, value :: Value Text
value = Value Text
value}
instance ToResourceProperties TagPropertyProperty where
  toResourceProperties :: TagPropertyProperty -> ResourceProperties
toResourceProperties TagPropertyProperty {()
Value Bool
Value Text
haddock_workaround_ :: TagPropertyProperty -> ()
key :: TagPropertyProperty -> Value Text
propagateAtLaunch :: TagPropertyProperty -> Value Bool
value :: TagPropertyProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
propagateAtLaunch :: Value Bool
value :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AutoScaling::AutoScalingGroup.TagProperty",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Key" 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
key,
                       Key
"PropagateAtLaunch" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
propagateAtLaunch,
                       Key
"Value" 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
value]}
instance JSON.ToJSON TagPropertyProperty where
  toJSON :: TagPropertyProperty -> Value
toJSON TagPropertyProperty {()
Value Bool
Value Text
haddock_workaround_ :: TagPropertyProperty -> ()
key :: TagPropertyProperty -> Value Text
propagateAtLaunch :: TagPropertyProperty -> Value Bool
value :: TagPropertyProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
propagateAtLaunch :: Value Bool
value :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"Key" 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
key, Key
"PropagateAtLaunch" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
propagateAtLaunch,
         Key
"Value" 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
value]
instance Property "Key" TagPropertyProperty where
  type PropertyType "Key" TagPropertyProperty = Value Prelude.Text
  set :: PropertyType "Key" TagPropertyProperty
-> TagPropertyProperty -> TagPropertyProperty
set PropertyType "Key" TagPropertyProperty
newValue TagPropertyProperty {()
Value Bool
Value Text
haddock_workaround_ :: TagPropertyProperty -> ()
key :: TagPropertyProperty -> Value Text
propagateAtLaunch :: TagPropertyProperty -> Value Bool
value :: TagPropertyProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
propagateAtLaunch :: Value Bool
value :: Value Text
..}
    = TagPropertyProperty {key :: Value Text
key = PropertyType "Key" TagPropertyProperty
Value Text
newValue, ()
Value Bool
Value Text
haddock_workaround_ :: ()
propagateAtLaunch :: Value Bool
value :: Value Text
haddock_workaround_ :: ()
propagateAtLaunch :: Value Bool
value :: Value Text
..}
instance Property "PropagateAtLaunch" TagPropertyProperty where
  type PropertyType "PropagateAtLaunch" TagPropertyProperty = Value Prelude.Bool
  set :: PropertyType "PropagateAtLaunch" TagPropertyProperty
-> TagPropertyProperty -> TagPropertyProperty
set PropertyType "PropagateAtLaunch" TagPropertyProperty
newValue TagPropertyProperty {()
Value Bool
Value Text
haddock_workaround_ :: TagPropertyProperty -> ()
key :: TagPropertyProperty -> Value Text
propagateAtLaunch :: TagPropertyProperty -> Value Bool
value :: TagPropertyProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
propagateAtLaunch :: Value Bool
value :: Value Text
..}
    = TagPropertyProperty {propagateAtLaunch :: Value Bool
propagateAtLaunch = PropertyType "PropagateAtLaunch" TagPropertyProperty
Value Bool
newValue, ()
Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
haddock_workaround_ :: ()
key :: Value Text
value :: Value Text
..}
instance Property "Value" TagPropertyProperty where
  type PropertyType "Value" TagPropertyProperty = Value Prelude.Text
  set :: PropertyType "Value" TagPropertyProperty
-> TagPropertyProperty -> TagPropertyProperty
set PropertyType "Value" TagPropertyProperty
newValue TagPropertyProperty {()
Value Bool
Value Text
haddock_workaround_ :: TagPropertyProperty -> ()
key :: TagPropertyProperty -> Value Text
propagateAtLaunch :: TagPropertyProperty -> Value Bool
value :: TagPropertyProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
propagateAtLaunch :: Value Bool
value :: Value Text
..}
    = TagPropertyProperty {value :: Value Text
value = PropertyType "Value" TagPropertyProperty
Value Text
newValue, ()
Value Bool
Value Text
haddock_workaround_ :: ()
key :: Value Text
propagateAtLaunch :: Value Bool
haddock_workaround_ :: ()
key :: Value Text
propagateAtLaunch :: Value Bool
..}