module Stratosphere.AutoScaling.AutoScalingGroup.LaunchTemplateSpecificationProperty (
        LaunchTemplateSpecificationProperty(..),
        mkLaunchTemplateSpecificationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LaunchTemplateSpecificationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplatespecification.html>
    LaunchTemplateSpecificationProperty {LaunchTemplateSpecificationProperty -> ()
haddock_workaround_ :: (),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplatespecification.html#cfn-autoscaling-autoscalinggroup-launchtemplatespecification-launchtemplateid>
                                         LaunchTemplateSpecificationProperty -> Maybe (Value Text)
launchTemplateId :: (Prelude.Maybe (Value Prelude.Text)),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplatespecification.html#cfn-autoscaling-autoscalinggroup-launchtemplatespecification-launchtemplatename>
                                         LaunchTemplateSpecificationProperty -> Maybe (Value Text)
launchTemplateName :: (Prelude.Maybe (Value Prelude.Text)),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplatespecification.html#cfn-autoscaling-autoscalinggroup-launchtemplatespecification-version>
                                         LaunchTemplateSpecificationProperty -> Value Text
version :: (Value Prelude.Text)}
  deriving stock (LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty -> Bool
(LaunchTemplateSpecificationProperty
 -> LaunchTemplateSpecificationProperty -> Bool)
-> (LaunchTemplateSpecificationProperty
    -> LaunchTemplateSpecificationProperty -> Bool)
-> Eq LaunchTemplateSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty -> Bool
== :: LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty -> Bool
$c/= :: LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty -> Bool
/= :: LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty -> Bool
Prelude.Eq, Int -> LaunchTemplateSpecificationProperty -> ShowS
[LaunchTemplateSpecificationProperty] -> ShowS
LaunchTemplateSpecificationProperty -> String
(Int -> LaunchTemplateSpecificationProperty -> ShowS)
-> (LaunchTemplateSpecificationProperty -> String)
-> ([LaunchTemplateSpecificationProperty] -> ShowS)
-> Show LaunchTemplateSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LaunchTemplateSpecificationProperty -> ShowS
showsPrec :: Int -> LaunchTemplateSpecificationProperty -> ShowS
$cshow :: LaunchTemplateSpecificationProperty -> String
show :: LaunchTemplateSpecificationProperty -> String
$cshowList :: [LaunchTemplateSpecificationProperty] -> ShowS
showList :: [LaunchTemplateSpecificationProperty] -> ShowS
Prelude.Show)
mkLaunchTemplateSpecificationProperty ::
  Value Prelude.Text -> LaunchTemplateSpecificationProperty
mkLaunchTemplateSpecificationProperty :: Value Text -> LaunchTemplateSpecificationProperty
mkLaunchTemplateSpecificationProperty Value Text
version
  = LaunchTemplateSpecificationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), version :: Value Text
version = Value Text
version,
       launchTemplateId :: Maybe (Value Text)
launchTemplateId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       launchTemplateName :: Maybe (Value Text)
launchTemplateName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LaunchTemplateSpecificationProperty where
  toResourceProperties :: LaunchTemplateSpecificationProperty -> ResourceProperties
toResourceProperties LaunchTemplateSpecificationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LaunchTemplateSpecificationProperty -> ()
launchTemplateId :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
launchTemplateName :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
version :: LaunchTemplateSpecificationProperty -> Value Text
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
version :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AutoScaling::AutoScalingGroup.LaunchTemplateSpecification",
         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
"Version" 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
version]
                           ([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
"LaunchTemplateId" (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)
launchTemplateId,
                               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
"LaunchTemplateName" (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)
launchTemplateName]))}
instance JSON.ToJSON LaunchTemplateSpecificationProperty where
  toJSON :: LaunchTemplateSpecificationProperty -> Value
toJSON LaunchTemplateSpecificationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LaunchTemplateSpecificationProperty -> ()
launchTemplateId :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
launchTemplateName :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
version :: LaunchTemplateSpecificationProperty -> Value Text
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
version :: 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
"Version" 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
version]
              ([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
"LaunchTemplateId" (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)
launchTemplateId,
                  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
"LaunchTemplateName" (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)
launchTemplateName])))
instance Property "LaunchTemplateId" LaunchTemplateSpecificationProperty where
  type PropertyType "LaunchTemplateId" LaunchTemplateSpecificationProperty = Value Prelude.Text
  set :: PropertyType "LaunchTemplateId" LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty
set PropertyType "LaunchTemplateId" LaunchTemplateSpecificationProperty
newValue LaunchTemplateSpecificationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LaunchTemplateSpecificationProperty -> ()
launchTemplateId :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
launchTemplateName :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
version :: LaunchTemplateSpecificationProperty -> Value Text
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
version :: Value Text
..}
    = LaunchTemplateSpecificationProperty
        {launchTemplateId :: Maybe (Value Text)
launchTemplateId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LaunchTemplateId" LaunchTemplateSpecificationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
launchTemplateName :: Maybe (Value Text)
version :: Value Text
haddock_workaround_ :: ()
launchTemplateName :: Maybe (Value Text)
version :: Value Text
..}
instance Property "LaunchTemplateName" LaunchTemplateSpecificationProperty where
  type PropertyType "LaunchTemplateName" LaunchTemplateSpecificationProperty = Value Prelude.Text
  set :: PropertyType
  "LaunchTemplateName" LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty
set PropertyType
  "LaunchTemplateName" LaunchTemplateSpecificationProperty
newValue LaunchTemplateSpecificationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LaunchTemplateSpecificationProperty -> ()
launchTemplateId :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
launchTemplateName :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
version :: LaunchTemplateSpecificationProperty -> Value Text
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
version :: Value Text
..}
    = LaunchTemplateSpecificationProperty
        {launchTemplateName :: Maybe (Value Text)
launchTemplateName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "LaunchTemplateName" LaunchTemplateSpecificationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
version :: Value Text
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
version :: Value Text
..}
instance Property "Version" LaunchTemplateSpecificationProperty where
  type PropertyType "Version" LaunchTemplateSpecificationProperty = Value Prelude.Text
  set :: PropertyType "Version" LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty
-> LaunchTemplateSpecificationProperty
set PropertyType "Version" LaunchTemplateSpecificationProperty
newValue LaunchTemplateSpecificationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LaunchTemplateSpecificationProperty -> ()
launchTemplateId :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
launchTemplateName :: LaunchTemplateSpecificationProperty -> Maybe (Value Text)
version :: LaunchTemplateSpecificationProperty -> Value Text
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
version :: Value Text
..}
    = LaunchTemplateSpecificationProperty {version :: Value Text
version = PropertyType "Version" LaunchTemplateSpecificationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
..}