module Stratosphere.EC2.EC2Fleet.FleetLaunchTemplateSpecificationRequestProperty (
        FleetLaunchTemplateSpecificationRequestProperty(..),
        mkFleetLaunchTemplateSpecificationRequestProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FleetLaunchTemplateSpecificationRequestProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html>
    FleetLaunchTemplateSpecificationRequestProperty {FleetLaunchTemplateSpecificationRequestProperty -> ()
haddock_workaround_ :: (),
                                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-launchtemplateid>
                                                     FleetLaunchTemplateSpecificationRequestProperty
-> Maybe (Value Text)
launchTemplateId :: (Prelude.Maybe (Value Prelude.Text)),
                                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-launchtemplatename>
                                                     FleetLaunchTemplateSpecificationRequestProperty
-> Maybe (Value Text)
launchTemplateName :: (Prelude.Maybe (Value Prelude.Text)),
                                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplatespecificationrequest-version>
                                                     FleetLaunchTemplateSpecificationRequestProperty -> Value Text
version :: (Value Prelude.Text)}
  deriving stock (FleetLaunchTemplateSpecificationRequestProperty
-> FleetLaunchTemplateSpecificationRequestProperty -> Bool
(FleetLaunchTemplateSpecificationRequestProperty
 -> FleetLaunchTemplateSpecificationRequestProperty -> Bool)
-> (FleetLaunchTemplateSpecificationRequestProperty
    -> FleetLaunchTemplateSpecificationRequestProperty -> Bool)
-> Eq FleetLaunchTemplateSpecificationRequestProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FleetLaunchTemplateSpecificationRequestProperty
-> FleetLaunchTemplateSpecificationRequestProperty -> Bool
== :: FleetLaunchTemplateSpecificationRequestProperty
-> FleetLaunchTemplateSpecificationRequestProperty -> Bool
$c/= :: FleetLaunchTemplateSpecificationRequestProperty
-> FleetLaunchTemplateSpecificationRequestProperty -> Bool
/= :: FleetLaunchTemplateSpecificationRequestProperty
-> FleetLaunchTemplateSpecificationRequestProperty -> Bool
Prelude.Eq, Int -> FleetLaunchTemplateSpecificationRequestProperty -> ShowS
[FleetLaunchTemplateSpecificationRequestProperty] -> ShowS
FleetLaunchTemplateSpecificationRequestProperty -> String
(Int -> FleetLaunchTemplateSpecificationRequestProperty -> ShowS)
-> (FleetLaunchTemplateSpecificationRequestProperty -> String)
-> ([FleetLaunchTemplateSpecificationRequestProperty] -> ShowS)
-> Show FleetLaunchTemplateSpecificationRequestProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FleetLaunchTemplateSpecificationRequestProperty -> ShowS
showsPrec :: Int -> FleetLaunchTemplateSpecificationRequestProperty -> ShowS
$cshow :: FleetLaunchTemplateSpecificationRequestProperty -> String
show :: FleetLaunchTemplateSpecificationRequestProperty -> String
$cshowList :: [FleetLaunchTemplateSpecificationRequestProperty] -> ShowS
showList :: [FleetLaunchTemplateSpecificationRequestProperty] -> ShowS
Prelude.Show)
mkFleetLaunchTemplateSpecificationRequestProperty ::
  Value Prelude.Text
  -> FleetLaunchTemplateSpecificationRequestProperty
mkFleetLaunchTemplateSpecificationRequestProperty :: Value Text -> FleetLaunchTemplateSpecificationRequestProperty
mkFleetLaunchTemplateSpecificationRequestProperty Value Text
version
  = FleetLaunchTemplateSpecificationRequestProperty
      {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 FleetLaunchTemplateSpecificationRequestProperty where
  toResourceProperties :: FleetLaunchTemplateSpecificationRequestProperty
-> ResourceProperties
toResourceProperties
    FleetLaunchTemplateSpecificationRequestProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FleetLaunchTemplateSpecificationRequestProperty -> ()
launchTemplateId :: FleetLaunchTemplateSpecificationRequestProperty
-> Maybe (Value Text)
launchTemplateName :: FleetLaunchTemplateSpecificationRequestProperty
-> Maybe (Value Text)
version :: FleetLaunchTemplateSpecificationRequestProperty -> Value Text
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
version :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::EC2Fleet.FleetLaunchTemplateSpecificationRequest",
         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 FleetLaunchTemplateSpecificationRequestProperty where
  toJSON :: FleetLaunchTemplateSpecificationRequestProperty -> Value
toJSON FleetLaunchTemplateSpecificationRequestProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FleetLaunchTemplateSpecificationRequestProperty -> ()
launchTemplateId :: FleetLaunchTemplateSpecificationRequestProperty
-> Maybe (Value Text)
launchTemplateName :: FleetLaunchTemplateSpecificationRequestProperty
-> Maybe (Value Text)
version :: FleetLaunchTemplateSpecificationRequestProperty -> 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" FleetLaunchTemplateSpecificationRequestProperty where
  type PropertyType "LaunchTemplateId" FleetLaunchTemplateSpecificationRequestProperty = Value Prelude.Text
  set :: PropertyType
  "LaunchTemplateId" FleetLaunchTemplateSpecificationRequestProperty
-> FleetLaunchTemplateSpecificationRequestProperty
-> FleetLaunchTemplateSpecificationRequestProperty
set PropertyType
  "LaunchTemplateId" FleetLaunchTemplateSpecificationRequestProperty
newValue FleetLaunchTemplateSpecificationRequestProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FleetLaunchTemplateSpecificationRequestProperty -> ()
launchTemplateId :: FleetLaunchTemplateSpecificationRequestProperty
-> Maybe (Value Text)
launchTemplateName :: FleetLaunchTemplateSpecificationRequestProperty
-> Maybe (Value Text)
version :: FleetLaunchTemplateSpecificationRequestProperty -> Value Text
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
version :: Value Text
..}
    = FleetLaunchTemplateSpecificationRequestProperty
        {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" FleetLaunchTemplateSpecificationRequestProperty
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" FleetLaunchTemplateSpecificationRequestProperty where
  type PropertyType "LaunchTemplateName" FleetLaunchTemplateSpecificationRequestProperty = Value Prelude.Text
  set :: PropertyType
  "LaunchTemplateName"
  FleetLaunchTemplateSpecificationRequestProperty
-> FleetLaunchTemplateSpecificationRequestProperty
-> FleetLaunchTemplateSpecificationRequestProperty
set PropertyType
  "LaunchTemplateName"
  FleetLaunchTemplateSpecificationRequestProperty
newValue FleetLaunchTemplateSpecificationRequestProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FleetLaunchTemplateSpecificationRequestProperty -> ()
launchTemplateId :: FleetLaunchTemplateSpecificationRequestProperty
-> Maybe (Value Text)
launchTemplateName :: FleetLaunchTemplateSpecificationRequestProperty
-> Maybe (Value Text)
version :: FleetLaunchTemplateSpecificationRequestProperty -> Value Text
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
version :: Value Text
..}
    = FleetLaunchTemplateSpecificationRequestProperty
        {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"
  FleetLaunchTemplateSpecificationRequestProperty
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" FleetLaunchTemplateSpecificationRequestProperty where
  type PropertyType "Version" FleetLaunchTemplateSpecificationRequestProperty = Value Prelude.Text
  set :: PropertyType
  "Version" FleetLaunchTemplateSpecificationRequestProperty
-> FleetLaunchTemplateSpecificationRequestProperty
-> FleetLaunchTemplateSpecificationRequestProperty
set PropertyType
  "Version" FleetLaunchTemplateSpecificationRequestProperty
newValue FleetLaunchTemplateSpecificationRequestProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FleetLaunchTemplateSpecificationRequestProperty -> ()
launchTemplateId :: FleetLaunchTemplateSpecificationRequestProperty
-> Maybe (Value Text)
launchTemplateName :: FleetLaunchTemplateSpecificationRequestProperty
-> Maybe (Value Text)
version :: FleetLaunchTemplateSpecificationRequestProperty -> Value Text
haddock_workaround_ :: ()
launchTemplateId :: Maybe (Value Text)
launchTemplateName :: Maybe (Value Text)
version :: Value Text
..}
    = FleetLaunchTemplateSpecificationRequestProperty
        {version :: Value Text
version = PropertyType
  "Version" FleetLaunchTemplateSpecificationRequestProperty
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)
..}