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