stratosphere-ec2-1.0.0: gen/Stratosphere/EC2/EC2Fleet/FleetLaunchTemplateOverridesRequestProperty.hs
module Stratosphere.EC2.EC2Fleet.FleetLaunchTemplateOverridesRequestProperty (
module Exports, FleetLaunchTemplateOverridesRequestProperty(..),
mkFleetLaunchTemplateOverridesRequestProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EC2.EC2Fleet.BlockDeviceMappingProperty as Exports
import {-# SOURCE #-} Stratosphere.EC2.EC2Fleet.InstanceRequirementsRequestProperty as Exports
import {-# SOURCE #-} Stratosphere.EC2.EC2Fleet.PlacementProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FleetLaunchTemplateOverridesRequestProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html>
FleetLaunchTemplateOverridesRequestProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest-availabilityzone>
availabilityZone :: (Prelude.Maybe (Value Prelude.Text)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest-blockdevicemappings>
blockDeviceMappings :: (Prelude.Maybe [BlockDeviceMappingProperty]),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest-instancerequirements>
instanceRequirements :: (Prelude.Maybe InstanceRequirementsRequestProperty),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest-instancetype>
instanceType :: (Prelude.Maybe (Value Prelude.Text)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest-maxprice>
maxPrice :: (Prelude.Maybe (Value Prelude.Text)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest-placement>
placement :: (Prelude.Maybe PlacementProperty),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest-priority>
priority :: (Prelude.Maybe (Value Prelude.Double)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest-subnetid>
subnetId :: (Prelude.Maybe (Value Prelude.Text)),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest.html#cfn-ec2-ec2fleet-fleetlaunchtemplateoverridesrequest-weightedcapacity>
weightedCapacity :: (Prelude.Maybe (Value Prelude.Double))}
deriving stock (Prelude.Eq, Prelude.Show)
mkFleetLaunchTemplateOverridesRequestProperty ::
FleetLaunchTemplateOverridesRequestProperty
mkFleetLaunchTemplateOverridesRequestProperty
= FleetLaunchTemplateOverridesRequestProperty
{haddock_workaround_ = (), availabilityZone = Prelude.Nothing,
blockDeviceMappings = Prelude.Nothing,
instanceRequirements = Prelude.Nothing,
instanceType = Prelude.Nothing, maxPrice = Prelude.Nothing,
placement = Prelude.Nothing, priority = Prelude.Nothing,
subnetId = Prelude.Nothing, weightedCapacity = Prelude.Nothing}
instance ToResourceProperties FleetLaunchTemplateOverridesRequestProperty where
toResourceProperties
FleetLaunchTemplateOverridesRequestProperty {..}
= ResourceProperties
{awsType = "AWS::EC2::EC2Fleet.FleetLaunchTemplateOverridesRequest",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "AvailabilityZone" Prelude.<$> availabilityZone,
(JSON..=) "BlockDeviceMappings" Prelude.<$> blockDeviceMappings,
(JSON..=) "InstanceRequirements" Prelude.<$> instanceRequirements,
(JSON..=) "InstanceType" Prelude.<$> instanceType,
(JSON..=) "MaxPrice" Prelude.<$> maxPrice,
(JSON..=) "Placement" Prelude.<$> placement,
(JSON..=) "Priority" Prelude.<$> priority,
(JSON..=) "SubnetId" Prelude.<$> subnetId,
(JSON..=) "WeightedCapacity" Prelude.<$> weightedCapacity])}
instance JSON.ToJSON FleetLaunchTemplateOverridesRequestProperty where
toJSON FleetLaunchTemplateOverridesRequestProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "AvailabilityZone" Prelude.<$> availabilityZone,
(JSON..=) "BlockDeviceMappings" Prelude.<$> blockDeviceMappings,
(JSON..=) "InstanceRequirements" Prelude.<$> instanceRequirements,
(JSON..=) "InstanceType" Prelude.<$> instanceType,
(JSON..=) "MaxPrice" Prelude.<$> maxPrice,
(JSON..=) "Placement" Prelude.<$> placement,
(JSON..=) "Priority" Prelude.<$> priority,
(JSON..=) "SubnetId" Prelude.<$> subnetId,
(JSON..=) "WeightedCapacity" Prelude.<$> weightedCapacity]))
instance Property "AvailabilityZone" FleetLaunchTemplateOverridesRequestProperty where
type PropertyType "AvailabilityZone" FleetLaunchTemplateOverridesRequestProperty = Value Prelude.Text
set newValue FleetLaunchTemplateOverridesRequestProperty {..}
= FleetLaunchTemplateOverridesRequestProperty
{availabilityZone = Prelude.pure newValue, ..}
instance Property "BlockDeviceMappings" FleetLaunchTemplateOverridesRequestProperty where
type PropertyType "BlockDeviceMappings" FleetLaunchTemplateOverridesRequestProperty = [BlockDeviceMappingProperty]
set newValue FleetLaunchTemplateOverridesRequestProperty {..}
= FleetLaunchTemplateOverridesRequestProperty
{blockDeviceMappings = Prelude.pure newValue, ..}
instance Property "InstanceRequirements" FleetLaunchTemplateOverridesRequestProperty where
type PropertyType "InstanceRequirements" FleetLaunchTemplateOverridesRequestProperty = InstanceRequirementsRequestProperty
set newValue FleetLaunchTemplateOverridesRequestProperty {..}
= FleetLaunchTemplateOverridesRequestProperty
{instanceRequirements = Prelude.pure newValue, ..}
instance Property "InstanceType" FleetLaunchTemplateOverridesRequestProperty where
type PropertyType "InstanceType" FleetLaunchTemplateOverridesRequestProperty = Value Prelude.Text
set newValue FleetLaunchTemplateOverridesRequestProperty {..}
= FleetLaunchTemplateOverridesRequestProperty
{instanceType = Prelude.pure newValue, ..}
instance Property "MaxPrice" FleetLaunchTemplateOverridesRequestProperty where
type PropertyType "MaxPrice" FleetLaunchTemplateOverridesRequestProperty = Value Prelude.Text
set newValue FleetLaunchTemplateOverridesRequestProperty {..}
= FleetLaunchTemplateOverridesRequestProperty
{maxPrice = Prelude.pure newValue, ..}
instance Property "Placement" FleetLaunchTemplateOverridesRequestProperty where
type PropertyType "Placement" FleetLaunchTemplateOverridesRequestProperty = PlacementProperty
set newValue FleetLaunchTemplateOverridesRequestProperty {..}
= FleetLaunchTemplateOverridesRequestProperty
{placement = Prelude.pure newValue, ..}
instance Property "Priority" FleetLaunchTemplateOverridesRequestProperty where
type PropertyType "Priority" FleetLaunchTemplateOverridesRequestProperty = Value Prelude.Double
set newValue FleetLaunchTemplateOverridesRequestProperty {..}
= FleetLaunchTemplateOverridesRequestProperty
{priority = Prelude.pure newValue, ..}
instance Property "SubnetId" FleetLaunchTemplateOverridesRequestProperty where
type PropertyType "SubnetId" FleetLaunchTemplateOverridesRequestProperty = Value Prelude.Text
set newValue FleetLaunchTemplateOverridesRequestProperty {..}
= FleetLaunchTemplateOverridesRequestProperty
{subnetId = Prelude.pure newValue, ..}
instance Property "WeightedCapacity" FleetLaunchTemplateOverridesRequestProperty where
type PropertyType "WeightedCapacity" FleetLaunchTemplateOverridesRequestProperty = Value Prelude.Double
set newValue FleetLaunchTemplateOverridesRequestProperty {..}
= FleetLaunchTemplateOverridesRequestProperty
{weightedCapacity = Prelude.pure newValue, ..}