module Stratosphere.EC2.EC2Fleet.SpotOptionsRequestProperty (
module Exports, SpotOptionsRequestProperty(..),
mkSpotOptionsRequestProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EC2.EC2Fleet.MaintenanceStrategiesProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SpotOptionsRequestProperty
=
SpotOptionsRequestProperty {SpotOptionsRequestProperty -> ()
haddock_workaround_ :: (),
SpotOptionsRequestProperty -> Maybe (Value Text)
allocationStrategy :: (Prelude.Maybe (Value Prelude.Text)),
SpotOptionsRequestProperty -> Maybe (Value Text)
instanceInterruptionBehavior :: (Prelude.Maybe (Value Prelude.Text)),
SpotOptionsRequestProperty -> Maybe (Value Integer)
instancePoolsToUseCount :: (Prelude.Maybe (Value Prelude.Integer)),
SpotOptionsRequestProperty -> Maybe MaintenanceStrategiesProperty
maintenanceStrategies :: (Prelude.Maybe MaintenanceStrategiesProperty),
SpotOptionsRequestProperty -> Maybe (Value Text)
maxTotalPrice :: (Prelude.Maybe (Value Prelude.Text)),
SpotOptionsRequestProperty -> Maybe (Value Integer)
minTargetCapacity :: (Prelude.Maybe (Value Prelude.Integer)),
SpotOptionsRequestProperty -> Maybe (Value Bool)
singleAvailabilityZone :: (Prelude.Maybe (Value Prelude.Bool)),
SpotOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (SpotOptionsRequestProperty -> SpotOptionsRequestProperty -> Bool
(SpotOptionsRequestProperty -> SpotOptionsRequestProperty -> Bool)
-> (SpotOptionsRequestProperty
-> SpotOptionsRequestProperty -> Bool)
-> Eq SpotOptionsRequestProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SpotOptionsRequestProperty -> SpotOptionsRequestProperty -> Bool
== :: SpotOptionsRequestProperty -> SpotOptionsRequestProperty -> Bool
$c/= :: SpotOptionsRequestProperty -> SpotOptionsRequestProperty -> Bool
/= :: SpotOptionsRequestProperty -> SpotOptionsRequestProperty -> Bool
Prelude.Eq, Int -> SpotOptionsRequestProperty -> ShowS
[SpotOptionsRequestProperty] -> ShowS
SpotOptionsRequestProperty -> String
(Int -> SpotOptionsRequestProperty -> ShowS)
-> (SpotOptionsRequestProperty -> String)
-> ([SpotOptionsRequestProperty] -> ShowS)
-> Show SpotOptionsRequestProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SpotOptionsRequestProperty -> ShowS
showsPrec :: Int -> SpotOptionsRequestProperty -> ShowS
$cshow :: SpotOptionsRequestProperty -> String
show :: SpotOptionsRequestProperty -> String
$cshowList :: [SpotOptionsRequestProperty] -> ShowS
showList :: [SpotOptionsRequestProperty] -> ShowS
Prelude.Show)
mkSpotOptionsRequestProperty :: SpotOptionsRequestProperty
mkSpotOptionsRequestProperty :: SpotOptionsRequestProperty
mkSpotOptionsRequestProperty
= SpotOptionsRequestProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), allocationStrategy :: Maybe (Value Text)
allocationStrategy = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
instanceInterruptionBehavior :: Maybe (Value Text)
instanceInterruptionBehavior = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
instancePoolsToUseCount :: Maybe (Value Integer)
instancePoolsToUseCount = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maintenanceStrategies = Maybe MaintenanceStrategiesProperty
forall a. Maybe a
Prelude.Nothing,
maxTotalPrice :: Maybe (Value Text)
maxTotalPrice = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
minTargetCapacity :: Maybe (Value Integer)
minTargetCapacity = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
singleAvailabilityZone :: Maybe (Value Bool)
singleAvailabilityZone = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
singleInstanceType :: Maybe (Value Bool)
singleInstanceType = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SpotOptionsRequestProperty where
toResourceProperties :: SpotOptionsRequestProperty -> ResourceProperties
toResourceProperties SpotOptionsRequestProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MaintenanceStrategiesProperty
()
haddock_workaround_ :: SpotOptionsRequestProperty -> ()
allocationStrategy :: SpotOptionsRequestProperty -> Maybe (Value Text)
instanceInterruptionBehavior :: SpotOptionsRequestProperty -> Maybe (Value Text)
instancePoolsToUseCount :: SpotOptionsRequestProperty -> Maybe (Value Integer)
maintenanceStrategies :: SpotOptionsRequestProperty -> Maybe MaintenanceStrategiesProperty
maxTotalPrice :: SpotOptionsRequestProperty -> Maybe (Value Text)
minTargetCapacity :: SpotOptionsRequestProperty -> Maybe (Value Integer)
singleAvailabilityZone :: SpotOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: SpotOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EC2::EC2Fleet.SpotOptionsRequest",
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
"AllocationStrategy" (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)
allocationStrategy,
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
"InstanceInterruptionBehavior"
(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)
instanceInterruptionBehavior,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InstancePoolsToUseCount"
(Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
instancePoolsToUseCount,
Key -> MaintenanceStrategiesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaintenanceStrategies"
(MaintenanceStrategiesProperty -> (Key, Value))
-> Maybe MaintenanceStrategiesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MaintenanceStrategiesProperty
maintenanceStrategies,
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
"MaxTotalPrice" (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)
maxTotalPrice,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MinTargetCapacity" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
minTargetCapacity,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SingleAvailabilityZone"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
singleAvailabilityZone,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SingleInstanceType" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
singleInstanceType])}
instance JSON.ToJSON SpotOptionsRequestProperty where
toJSON :: SpotOptionsRequestProperty -> Value
toJSON SpotOptionsRequestProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MaintenanceStrategiesProperty
()
haddock_workaround_ :: SpotOptionsRequestProperty -> ()
allocationStrategy :: SpotOptionsRequestProperty -> Maybe (Value Text)
instanceInterruptionBehavior :: SpotOptionsRequestProperty -> Maybe (Value Text)
instancePoolsToUseCount :: SpotOptionsRequestProperty -> Maybe (Value Integer)
maintenanceStrategies :: SpotOptionsRequestProperty -> Maybe MaintenanceStrategiesProperty
maxTotalPrice :: SpotOptionsRequestProperty -> Maybe (Value Text)
minTargetCapacity :: SpotOptionsRequestProperty -> Maybe (Value Integer)
singleAvailabilityZone :: SpotOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: SpotOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
= [(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
"AllocationStrategy" (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)
allocationStrategy,
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
"InstanceInterruptionBehavior"
(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)
instanceInterruptionBehavior,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InstancePoolsToUseCount"
(Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
instancePoolsToUseCount,
Key -> MaintenanceStrategiesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaintenanceStrategies"
(MaintenanceStrategiesProperty -> (Key, Value))
-> Maybe MaintenanceStrategiesProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MaintenanceStrategiesProperty
maintenanceStrategies,
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
"MaxTotalPrice" (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)
maxTotalPrice,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MinTargetCapacity" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
minTargetCapacity,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SingleAvailabilityZone"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
singleAvailabilityZone,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SingleInstanceType" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
singleInstanceType]))
instance Property "AllocationStrategy" SpotOptionsRequestProperty where
type PropertyType "AllocationStrategy" SpotOptionsRequestProperty = Value Prelude.Text
set :: PropertyType "AllocationStrategy" SpotOptionsRequestProperty
-> SpotOptionsRequestProperty -> SpotOptionsRequestProperty
set PropertyType "AllocationStrategy" SpotOptionsRequestProperty
newValue SpotOptionsRequestProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MaintenanceStrategiesProperty
()
haddock_workaround_ :: SpotOptionsRequestProperty -> ()
allocationStrategy :: SpotOptionsRequestProperty -> Maybe (Value Text)
instanceInterruptionBehavior :: SpotOptionsRequestProperty -> Maybe (Value Text)
instancePoolsToUseCount :: SpotOptionsRequestProperty -> Maybe (Value Integer)
maintenanceStrategies :: SpotOptionsRequestProperty -> Maybe MaintenanceStrategiesProperty
maxTotalPrice :: SpotOptionsRequestProperty -> Maybe (Value Text)
minTargetCapacity :: SpotOptionsRequestProperty -> Maybe (Value Integer)
singleAvailabilityZone :: SpotOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: SpotOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
= SpotOptionsRequestProperty
{allocationStrategy :: Maybe (Value Text)
allocationStrategy = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AllocationStrategy" SpotOptionsRequestProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MaintenanceStrategiesProperty
()
haddock_workaround_ :: ()
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
haddock_workaround_ :: ()
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
instance Property "InstanceInterruptionBehavior" SpotOptionsRequestProperty where
type PropertyType "InstanceInterruptionBehavior" SpotOptionsRequestProperty = Value Prelude.Text
set :: PropertyType
"InstanceInterruptionBehavior" SpotOptionsRequestProperty
-> SpotOptionsRequestProperty -> SpotOptionsRequestProperty
set PropertyType
"InstanceInterruptionBehavior" SpotOptionsRequestProperty
newValue SpotOptionsRequestProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MaintenanceStrategiesProperty
()
haddock_workaround_ :: SpotOptionsRequestProperty -> ()
allocationStrategy :: SpotOptionsRequestProperty -> Maybe (Value Text)
instanceInterruptionBehavior :: SpotOptionsRequestProperty -> Maybe (Value Text)
instancePoolsToUseCount :: SpotOptionsRequestProperty -> Maybe (Value Integer)
maintenanceStrategies :: SpotOptionsRequestProperty -> Maybe MaintenanceStrategiesProperty
maxTotalPrice :: SpotOptionsRequestProperty -> Maybe (Value Text)
minTargetCapacity :: SpotOptionsRequestProperty -> Maybe (Value Integer)
singleAvailabilityZone :: SpotOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: SpotOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
= SpotOptionsRequestProperty
{instanceInterruptionBehavior :: Maybe (Value Text)
instanceInterruptionBehavior = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"InstanceInterruptionBehavior" SpotOptionsRequestProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MaintenanceStrategiesProperty
()
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
instance Property "InstancePoolsToUseCount" SpotOptionsRequestProperty where
type PropertyType "InstancePoolsToUseCount" SpotOptionsRequestProperty = Value Prelude.Integer
set :: PropertyType "InstancePoolsToUseCount" SpotOptionsRequestProperty
-> SpotOptionsRequestProperty -> SpotOptionsRequestProperty
set PropertyType "InstancePoolsToUseCount" SpotOptionsRequestProperty
newValue SpotOptionsRequestProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MaintenanceStrategiesProperty
()
haddock_workaround_ :: SpotOptionsRequestProperty -> ()
allocationStrategy :: SpotOptionsRequestProperty -> Maybe (Value Text)
instanceInterruptionBehavior :: SpotOptionsRequestProperty -> Maybe (Value Text)
instancePoolsToUseCount :: SpotOptionsRequestProperty -> Maybe (Value Integer)
maintenanceStrategies :: SpotOptionsRequestProperty -> Maybe MaintenanceStrategiesProperty
maxTotalPrice :: SpotOptionsRequestProperty -> Maybe (Value Text)
minTargetCapacity :: SpotOptionsRequestProperty -> Maybe (Value Integer)
singleAvailabilityZone :: SpotOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: SpotOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
= SpotOptionsRequestProperty
{instancePoolsToUseCount :: Maybe (Value Integer)
instancePoolsToUseCount = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InstancePoolsToUseCount" SpotOptionsRequestProperty
Value Integer
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MaintenanceStrategiesProperty
()
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
instance Property "MaintenanceStrategies" SpotOptionsRequestProperty where
type PropertyType "MaintenanceStrategies" SpotOptionsRequestProperty = MaintenanceStrategiesProperty
set :: PropertyType "MaintenanceStrategies" SpotOptionsRequestProperty
-> SpotOptionsRequestProperty -> SpotOptionsRequestProperty
set PropertyType "MaintenanceStrategies" SpotOptionsRequestProperty
newValue SpotOptionsRequestProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MaintenanceStrategiesProperty
()
haddock_workaround_ :: SpotOptionsRequestProperty -> ()
allocationStrategy :: SpotOptionsRequestProperty -> Maybe (Value Text)
instanceInterruptionBehavior :: SpotOptionsRequestProperty -> Maybe (Value Text)
instancePoolsToUseCount :: SpotOptionsRequestProperty -> Maybe (Value Integer)
maintenanceStrategies :: SpotOptionsRequestProperty -> Maybe MaintenanceStrategiesProperty
maxTotalPrice :: SpotOptionsRequestProperty -> Maybe (Value Text)
minTargetCapacity :: SpotOptionsRequestProperty -> Maybe (Value Integer)
singleAvailabilityZone :: SpotOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: SpotOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
= SpotOptionsRequestProperty
{maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maintenanceStrategies = MaintenanceStrategiesProperty
-> Maybe MaintenanceStrategiesProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MaintenanceStrategies" SpotOptionsRequestProperty
MaintenanceStrategiesProperty
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
instance Property "MaxTotalPrice" SpotOptionsRequestProperty where
type PropertyType "MaxTotalPrice" SpotOptionsRequestProperty = Value Prelude.Text
set :: PropertyType "MaxTotalPrice" SpotOptionsRequestProperty
-> SpotOptionsRequestProperty -> SpotOptionsRequestProperty
set PropertyType "MaxTotalPrice" SpotOptionsRequestProperty
newValue SpotOptionsRequestProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MaintenanceStrategiesProperty
()
haddock_workaround_ :: SpotOptionsRequestProperty -> ()
allocationStrategy :: SpotOptionsRequestProperty -> Maybe (Value Text)
instanceInterruptionBehavior :: SpotOptionsRequestProperty -> Maybe (Value Text)
instancePoolsToUseCount :: SpotOptionsRequestProperty -> Maybe (Value Integer)
maintenanceStrategies :: SpotOptionsRequestProperty -> Maybe MaintenanceStrategiesProperty
maxTotalPrice :: SpotOptionsRequestProperty -> Maybe (Value Text)
minTargetCapacity :: SpotOptionsRequestProperty -> Maybe (Value Integer)
singleAvailabilityZone :: SpotOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: SpotOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
= SpotOptionsRequestProperty
{maxTotalPrice :: Maybe (Value Text)
maxTotalPrice = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MaxTotalPrice" SpotOptionsRequestProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MaintenanceStrategiesProperty
()
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
instance Property "MinTargetCapacity" SpotOptionsRequestProperty where
type PropertyType "MinTargetCapacity" SpotOptionsRequestProperty = Value Prelude.Integer
set :: PropertyType "MinTargetCapacity" SpotOptionsRequestProperty
-> SpotOptionsRequestProperty -> SpotOptionsRequestProperty
set PropertyType "MinTargetCapacity" SpotOptionsRequestProperty
newValue SpotOptionsRequestProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MaintenanceStrategiesProperty
()
haddock_workaround_ :: SpotOptionsRequestProperty -> ()
allocationStrategy :: SpotOptionsRequestProperty -> Maybe (Value Text)
instanceInterruptionBehavior :: SpotOptionsRequestProperty -> Maybe (Value Text)
instancePoolsToUseCount :: SpotOptionsRequestProperty -> Maybe (Value Integer)
maintenanceStrategies :: SpotOptionsRequestProperty -> Maybe MaintenanceStrategiesProperty
maxTotalPrice :: SpotOptionsRequestProperty -> Maybe (Value Text)
minTargetCapacity :: SpotOptionsRequestProperty -> Maybe (Value Integer)
singleAvailabilityZone :: SpotOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: SpotOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
= SpotOptionsRequestProperty
{minTargetCapacity :: Maybe (Value Integer)
minTargetCapacity = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MinTargetCapacity" SpotOptionsRequestProperty
Value Integer
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MaintenanceStrategiesProperty
()
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
instance Property "SingleAvailabilityZone" SpotOptionsRequestProperty where
type PropertyType "SingleAvailabilityZone" SpotOptionsRequestProperty = Value Prelude.Bool
set :: PropertyType "SingleAvailabilityZone" SpotOptionsRequestProperty
-> SpotOptionsRequestProperty -> SpotOptionsRequestProperty
set PropertyType "SingleAvailabilityZone" SpotOptionsRequestProperty
newValue SpotOptionsRequestProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MaintenanceStrategiesProperty
()
haddock_workaround_ :: SpotOptionsRequestProperty -> ()
allocationStrategy :: SpotOptionsRequestProperty -> Maybe (Value Text)
instanceInterruptionBehavior :: SpotOptionsRequestProperty -> Maybe (Value Text)
instancePoolsToUseCount :: SpotOptionsRequestProperty -> Maybe (Value Integer)
maintenanceStrategies :: SpotOptionsRequestProperty -> Maybe MaintenanceStrategiesProperty
maxTotalPrice :: SpotOptionsRequestProperty -> Maybe (Value Text)
minTargetCapacity :: SpotOptionsRequestProperty -> Maybe (Value Integer)
singleAvailabilityZone :: SpotOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: SpotOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
= SpotOptionsRequestProperty
{singleAvailabilityZone :: Maybe (Value Bool)
singleAvailabilityZone = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SingleAvailabilityZone" SpotOptionsRequestProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MaintenanceStrategiesProperty
()
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleInstanceType :: Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleInstanceType :: Maybe (Value Bool)
..}
instance Property "SingleInstanceType" SpotOptionsRequestProperty where
type PropertyType "SingleInstanceType" SpotOptionsRequestProperty = Value Prelude.Bool
set :: PropertyType "SingleInstanceType" SpotOptionsRequestProperty
-> SpotOptionsRequestProperty -> SpotOptionsRequestProperty
set PropertyType "SingleInstanceType" SpotOptionsRequestProperty
newValue SpotOptionsRequestProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MaintenanceStrategiesProperty
()
haddock_workaround_ :: SpotOptionsRequestProperty -> ()
allocationStrategy :: SpotOptionsRequestProperty -> Maybe (Value Text)
instanceInterruptionBehavior :: SpotOptionsRequestProperty -> Maybe (Value Text)
instancePoolsToUseCount :: SpotOptionsRequestProperty -> Maybe (Value Integer)
maintenanceStrategies :: SpotOptionsRequestProperty -> Maybe MaintenanceStrategiesProperty
maxTotalPrice :: SpotOptionsRequestProperty -> Maybe (Value Text)
minTargetCapacity :: SpotOptionsRequestProperty -> Maybe (Value Integer)
singleAvailabilityZone :: SpotOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: SpotOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
= SpotOptionsRequestProperty
{singleInstanceType :: Maybe (Value Bool)
singleInstanceType = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SingleInstanceType" SpotOptionsRequestProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe MaintenanceStrategiesProperty
()
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
instanceInterruptionBehavior :: Maybe (Value Text)
instancePoolsToUseCount :: Maybe (Value Integer)
maintenanceStrategies :: Maybe MaintenanceStrategiesProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
..}