module Stratosphere.EC2.SpotFleet.LaunchTemplateOverridesProperty (
module Exports, LaunchTemplateOverridesProperty(..),
mkLaunchTemplateOverridesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EC2.SpotFleet.InstanceRequirementsRequestProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LaunchTemplateOverridesProperty
=
LaunchTemplateOverridesProperty {LaunchTemplateOverridesProperty -> ()
haddock_workaround_ :: (),
LaunchTemplateOverridesProperty -> Maybe (Value Text)
availabilityZone :: (Prelude.Maybe (Value Prelude.Text)),
LaunchTemplateOverridesProperty
-> Maybe InstanceRequirementsRequestProperty
instanceRequirements :: (Prelude.Maybe InstanceRequirementsRequestProperty),
LaunchTemplateOverridesProperty -> Maybe (Value Text)
instanceType :: (Prelude.Maybe (Value Prelude.Text)),
LaunchTemplateOverridesProperty -> Maybe (Value Double)
priority :: (Prelude.Maybe (Value Prelude.Double)),
LaunchTemplateOverridesProperty -> Maybe (Value Text)
spotPrice :: (Prelude.Maybe (Value Prelude.Text)),
LaunchTemplateOverridesProperty -> Maybe (Value Text)
subnetId :: (Prelude.Maybe (Value Prelude.Text)),
LaunchTemplateOverridesProperty -> Maybe (Value Double)
weightedCapacity :: (Prelude.Maybe (Value Prelude.Double))}
deriving stock (LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty -> Bool
(LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty -> Bool)
-> (LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty -> Bool)
-> Eq LaunchTemplateOverridesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty -> Bool
== :: LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty -> Bool
$c/= :: LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty -> Bool
/= :: LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty -> Bool
Prelude.Eq, Int -> LaunchTemplateOverridesProperty -> ShowS
[LaunchTemplateOverridesProperty] -> ShowS
LaunchTemplateOverridesProperty -> String
(Int -> LaunchTemplateOverridesProperty -> ShowS)
-> (LaunchTemplateOverridesProperty -> String)
-> ([LaunchTemplateOverridesProperty] -> ShowS)
-> Show LaunchTemplateOverridesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LaunchTemplateOverridesProperty -> ShowS
showsPrec :: Int -> LaunchTemplateOverridesProperty -> ShowS
$cshow :: LaunchTemplateOverridesProperty -> String
show :: LaunchTemplateOverridesProperty -> String
$cshowList :: [LaunchTemplateOverridesProperty] -> ShowS
showList :: [LaunchTemplateOverridesProperty] -> ShowS
Prelude.Show)
mkLaunchTemplateOverridesProperty ::
LaunchTemplateOverridesProperty
mkLaunchTemplateOverridesProperty :: LaunchTemplateOverridesProperty
mkLaunchTemplateOverridesProperty
= LaunchTemplateOverridesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), availabilityZone :: Maybe (Value Text)
availabilityZone = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceRequirements = Maybe InstanceRequirementsRequestProperty
forall a. Maybe a
Prelude.Nothing,
instanceType :: Maybe (Value Text)
instanceType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, priority :: Maybe (Value Double)
priority = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
spotPrice :: Maybe (Value Text)
spotPrice = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, subnetId :: Maybe (Value Text)
subnetId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
weightedCapacity :: Maybe (Value Double)
weightedCapacity = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LaunchTemplateOverridesProperty where
toResourceProperties :: LaunchTemplateOverridesProperty -> ResourceProperties
toResourceProperties LaunchTemplateOverridesProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe InstanceRequirementsRequestProperty
()
haddock_workaround_ :: LaunchTemplateOverridesProperty -> ()
availabilityZone :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
instanceRequirements :: LaunchTemplateOverridesProperty
-> Maybe InstanceRequirementsRequestProperty
instanceType :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
priority :: LaunchTemplateOverridesProperty -> Maybe (Value Double)
spotPrice :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
subnetId :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
weightedCapacity :: LaunchTemplateOverridesProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EC2::SpotFleet.LaunchTemplateOverrides",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"AvailabilityZone" (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)
availabilityZone,
Key -> InstanceRequirementsRequestProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InstanceRequirements" (InstanceRequirementsRequestProperty -> (Key, Value))
-> Maybe InstanceRequirementsRequestProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InstanceRequirementsRequestProperty
instanceRequirements,
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
"InstanceType" (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)
instanceType,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Priority" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
priority,
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
"SpotPrice" (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)
spotPrice,
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
"SubnetId" (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)
subnetId,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"WeightedCapacity" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
weightedCapacity])}
instance JSON.ToJSON LaunchTemplateOverridesProperty where
toJSON :: LaunchTemplateOverridesProperty -> Value
toJSON LaunchTemplateOverridesProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe InstanceRequirementsRequestProperty
()
haddock_workaround_ :: LaunchTemplateOverridesProperty -> ()
availabilityZone :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
instanceRequirements :: LaunchTemplateOverridesProperty
-> Maybe InstanceRequirementsRequestProperty
instanceType :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
priority :: LaunchTemplateOverridesProperty -> Maybe (Value Double)
spotPrice :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
subnetId :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
weightedCapacity :: LaunchTemplateOverridesProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"AvailabilityZone" (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)
availabilityZone,
Key -> InstanceRequirementsRequestProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InstanceRequirements" (InstanceRequirementsRequestProperty -> (Key, Value))
-> Maybe InstanceRequirementsRequestProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InstanceRequirementsRequestProperty
instanceRequirements,
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
"InstanceType" (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)
instanceType,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Priority" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
priority,
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
"SpotPrice" (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)
spotPrice,
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
"SubnetId" (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)
subnetId,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"WeightedCapacity" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
weightedCapacity]))
instance Property "AvailabilityZone" LaunchTemplateOverridesProperty where
type PropertyType "AvailabilityZone" LaunchTemplateOverridesProperty = Value Prelude.Text
set :: PropertyType "AvailabilityZone" LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty
set PropertyType "AvailabilityZone" LaunchTemplateOverridesProperty
newValue LaunchTemplateOverridesProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe InstanceRequirementsRequestProperty
()
haddock_workaround_ :: LaunchTemplateOverridesProperty -> ()
availabilityZone :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
instanceRequirements :: LaunchTemplateOverridesProperty
-> Maybe InstanceRequirementsRequestProperty
instanceType :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
priority :: LaunchTemplateOverridesProperty -> Maybe (Value Double)
spotPrice :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
subnetId :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
weightedCapacity :: LaunchTemplateOverridesProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
..}
= LaunchTemplateOverridesProperty
{availabilityZone :: Maybe (Value Text)
availabilityZone = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AvailabilityZone" LaunchTemplateOverridesProperty
Value Text
newValue, Maybe (Value Double)
Maybe (Value Text)
Maybe InstanceRequirementsRequestProperty
()
haddock_workaround_ :: ()
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
haddock_workaround_ :: ()
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
..}
instance Property "InstanceRequirements" LaunchTemplateOverridesProperty where
type PropertyType "InstanceRequirements" LaunchTemplateOverridesProperty = InstanceRequirementsRequestProperty
set :: PropertyType "InstanceRequirements" LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty
set PropertyType "InstanceRequirements" LaunchTemplateOverridesProperty
newValue LaunchTemplateOverridesProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe InstanceRequirementsRequestProperty
()
haddock_workaround_ :: LaunchTemplateOverridesProperty -> ()
availabilityZone :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
instanceRequirements :: LaunchTemplateOverridesProperty
-> Maybe InstanceRequirementsRequestProperty
instanceType :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
priority :: LaunchTemplateOverridesProperty -> Maybe (Value Double)
spotPrice :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
subnetId :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
weightedCapacity :: LaunchTemplateOverridesProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
..}
= LaunchTemplateOverridesProperty
{instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceRequirements = InstanceRequirementsRequestProperty
-> Maybe InstanceRequirementsRequestProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InstanceRequirements" LaunchTemplateOverridesProperty
InstanceRequirementsRequestProperty
newValue, Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
..}
instance Property "InstanceType" LaunchTemplateOverridesProperty where
type PropertyType "InstanceType" LaunchTemplateOverridesProperty = Value Prelude.Text
set :: PropertyType "InstanceType" LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty
set PropertyType "InstanceType" LaunchTemplateOverridesProperty
newValue LaunchTemplateOverridesProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe InstanceRequirementsRequestProperty
()
haddock_workaround_ :: LaunchTemplateOverridesProperty -> ()
availabilityZone :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
instanceRequirements :: LaunchTemplateOverridesProperty
-> Maybe InstanceRequirementsRequestProperty
instanceType :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
priority :: LaunchTemplateOverridesProperty -> Maybe (Value Double)
spotPrice :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
subnetId :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
weightedCapacity :: LaunchTemplateOverridesProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
..}
= LaunchTemplateOverridesProperty
{instanceType :: Maybe (Value Text)
instanceType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InstanceType" LaunchTemplateOverridesProperty
Value Text
newValue, Maybe (Value Double)
Maybe (Value Text)
Maybe InstanceRequirementsRequestProperty
()
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
..}
instance Property "Priority" LaunchTemplateOverridesProperty where
type PropertyType "Priority" LaunchTemplateOverridesProperty = Value Prelude.Double
set :: PropertyType "Priority" LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty
set PropertyType "Priority" LaunchTemplateOverridesProperty
newValue LaunchTemplateOverridesProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe InstanceRequirementsRequestProperty
()
haddock_workaround_ :: LaunchTemplateOverridesProperty -> ()
availabilityZone :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
instanceRequirements :: LaunchTemplateOverridesProperty
-> Maybe InstanceRequirementsRequestProperty
instanceType :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
priority :: LaunchTemplateOverridesProperty -> Maybe (Value Double)
spotPrice :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
subnetId :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
weightedCapacity :: LaunchTemplateOverridesProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
..}
= LaunchTemplateOverridesProperty
{priority :: Maybe (Value Double)
priority = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Priority" LaunchTemplateOverridesProperty
Value Double
newValue, Maybe (Value Double)
Maybe (Value Text)
Maybe InstanceRequirementsRequestProperty
()
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
..}
instance Property "SpotPrice" LaunchTemplateOverridesProperty where
type PropertyType "SpotPrice" LaunchTemplateOverridesProperty = Value Prelude.Text
set :: PropertyType "SpotPrice" LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty
set PropertyType "SpotPrice" LaunchTemplateOverridesProperty
newValue LaunchTemplateOverridesProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe InstanceRequirementsRequestProperty
()
haddock_workaround_ :: LaunchTemplateOverridesProperty -> ()
availabilityZone :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
instanceRequirements :: LaunchTemplateOverridesProperty
-> Maybe InstanceRequirementsRequestProperty
instanceType :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
priority :: LaunchTemplateOverridesProperty -> Maybe (Value Double)
spotPrice :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
subnetId :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
weightedCapacity :: LaunchTemplateOverridesProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
..}
= LaunchTemplateOverridesProperty
{spotPrice :: Maybe (Value Text)
spotPrice = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SpotPrice" LaunchTemplateOverridesProperty
Value Text
newValue, Maybe (Value Double)
Maybe (Value Text)
Maybe InstanceRequirementsRequestProperty
()
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
..}
instance Property "SubnetId" LaunchTemplateOverridesProperty where
type PropertyType "SubnetId" LaunchTemplateOverridesProperty = Value Prelude.Text
set :: PropertyType "SubnetId" LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty
set PropertyType "SubnetId" LaunchTemplateOverridesProperty
newValue LaunchTemplateOverridesProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe InstanceRequirementsRequestProperty
()
haddock_workaround_ :: LaunchTemplateOverridesProperty -> ()
availabilityZone :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
instanceRequirements :: LaunchTemplateOverridesProperty
-> Maybe InstanceRequirementsRequestProperty
instanceType :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
priority :: LaunchTemplateOverridesProperty -> Maybe (Value Double)
spotPrice :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
subnetId :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
weightedCapacity :: LaunchTemplateOverridesProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
..}
= LaunchTemplateOverridesProperty
{subnetId :: Maybe (Value Text)
subnetId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SubnetId" LaunchTemplateOverridesProperty
Value Text
newValue, Maybe (Value Double)
Maybe (Value Text)
Maybe InstanceRequirementsRequestProperty
()
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
..}
instance Property "WeightedCapacity" LaunchTemplateOverridesProperty where
type PropertyType "WeightedCapacity" LaunchTemplateOverridesProperty = Value Prelude.Double
set :: PropertyType "WeightedCapacity" LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty
-> LaunchTemplateOverridesProperty
set PropertyType "WeightedCapacity" LaunchTemplateOverridesProperty
newValue LaunchTemplateOverridesProperty {Maybe (Value Double)
Maybe (Value Text)
Maybe InstanceRequirementsRequestProperty
()
haddock_workaround_ :: LaunchTemplateOverridesProperty -> ()
availabilityZone :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
instanceRequirements :: LaunchTemplateOverridesProperty
-> Maybe InstanceRequirementsRequestProperty
instanceType :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
priority :: LaunchTemplateOverridesProperty -> Maybe (Value Double)
spotPrice :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
subnetId :: LaunchTemplateOverridesProperty -> Maybe (Value Text)
weightedCapacity :: LaunchTemplateOverridesProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
weightedCapacity :: Maybe (Value Double)
..}
= LaunchTemplateOverridesProperty
{weightedCapacity :: Maybe (Value Double)
weightedCapacity = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "WeightedCapacity" LaunchTemplateOverridesProperty
Value Double
newValue, Maybe (Value Double)
Maybe (Value Text)
Maybe InstanceRequirementsRequestProperty
()
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
haddock_workaround_ :: ()
availabilityZone :: Maybe (Value Text)
instanceRequirements :: Maybe InstanceRequirementsRequestProperty
instanceType :: Maybe (Value Text)
priority :: Maybe (Value Double)
spotPrice :: Maybe (Value Text)
subnetId :: Maybe (Value Text)
..}