module Stratosphere.EC2.EC2Fleet.OnDemandOptionsRequestProperty (
        module Exports, OnDemandOptionsRequestProperty(..),
        mkOnDemandOptionsRequestProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EC2.EC2Fleet.CapacityReservationOptionsRequestProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OnDemandOptionsRequestProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html>
    OnDemandOptionsRequestProperty {OnDemandOptionsRequestProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-allocationstrategy>
                                    OnDemandOptionsRequestProperty -> Maybe (Value Text)
allocationStrategy :: (Prelude.Maybe (Value Prelude.Text)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-capacityreservationoptions>
                                    OnDemandOptionsRequestProperty
-> Maybe CapacityReservationOptionsRequestProperty
capacityReservationOptions :: (Prelude.Maybe CapacityReservationOptionsRequestProperty),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-maxtotalprice>
                                    OnDemandOptionsRequestProperty -> Maybe (Value Text)
maxTotalPrice :: (Prelude.Maybe (Value Prelude.Text)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-mintargetcapacity>
                                    OnDemandOptionsRequestProperty -> Maybe (Value Integer)
minTargetCapacity :: (Prelude.Maybe (Value Prelude.Integer)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-singleavailabilityzone>
                                    OnDemandOptionsRequestProperty -> Maybe (Value Bool)
singleAvailabilityZone :: (Prelude.Maybe (Value Prelude.Bool)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-ondemandoptionsrequest.html#cfn-ec2-ec2fleet-ondemandoptionsrequest-singleinstancetype>
                                    OnDemandOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (OnDemandOptionsRequestProperty
-> OnDemandOptionsRequestProperty -> Bool
(OnDemandOptionsRequestProperty
 -> OnDemandOptionsRequestProperty -> Bool)
-> (OnDemandOptionsRequestProperty
    -> OnDemandOptionsRequestProperty -> Bool)
-> Eq OnDemandOptionsRequestProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OnDemandOptionsRequestProperty
-> OnDemandOptionsRequestProperty -> Bool
== :: OnDemandOptionsRequestProperty
-> OnDemandOptionsRequestProperty -> Bool
$c/= :: OnDemandOptionsRequestProperty
-> OnDemandOptionsRequestProperty -> Bool
/= :: OnDemandOptionsRequestProperty
-> OnDemandOptionsRequestProperty -> Bool
Prelude.Eq, Int -> OnDemandOptionsRequestProperty -> ShowS
[OnDemandOptionsRequestProperty] -> ShowS
OnDemandOptionsRequestProperty -> String
(Int -> OnDemandOptionsRequestProperty -> ShowS)
-> (OnDemandOptionsRequestProperty -> String)
-> ([OnDemandOptionsRequestProperty] -> ShowS)
-> Show OnDemandOptionsRequestProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OnDemandOptionsRequestProperty -> ShowS
showsPrec :: Int -> OnDemandOptionsRequestProperty -> ShowS
$cshow :: OnDemandOptionsRequestProperty -> String
show :: OnDemandOptionsRequestProperty -> String
$cshowList :: [OnDemandOptionsRequestProperty] -> ShowS
showList :: [OnDemandOptionsRequestProperty] -> ShowS
Prelude.Show)
mkOnDemandOptionsRequestProperty :: OnDemandOptionsRequestProperty
mkOnDemandOptionsRequestProperty :: OnDemandOptionsRequestProperty
mkOnDemandOptionsRequestProperty
  = OnDemandOptionsRequestProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), allocationStrategy :: Maybe (Value Text)
allocationStrategy = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
capacityReservationOptions = Maybe CapacityReservationOptionsRequestProperty
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 OnDemandOptionsRequestProperty where
  toResourceProperties :: OnDemandOptionsRequestProperty -> ResourceProperties
toResourceProperties OnDemandOptionsRequestProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe CapacityReservationOptionsRequestProperty
()
haddock_workaround_ :: OnDemandOptionsRequestProperty -> ()
allocationStrategy :: OnDemandOptionsRequestProperty -> Maybe (Value Text)
capacityReservationOptions :: OnDemandOptionsRequestProperty
-> Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: OnDemandOptionsRequestProperty -> Maybe (Value Text)
minTargetCapacity :: OnDemandOptionsRequestProperty -> Maybe (Value Integer)
singleAvailabilityZone :: OnDemandOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: OnDemandOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::EC2Fleet.OnDemandOptionsRequest",
         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 -> CapacityReservationOptionsRequestProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CapacityReservationOptions"
                              (CapacityReservationOptionsRequestProperty -> (Key, Value))
-> Maybe CapacityReservationOptionsRequestProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CapacityReservationOptionsRequestProperty
capacityReservationOptions,
                            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 OnDemandOptionsRequestProperty where
  toJSON :: OnDemandOptionsRequestProperty -> Value
toJSON OnDemandOptionsRequestProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe CapacityReservationOptionsRequestProperty
()
haddock_workaround_ :: OnDemandOptionsRequestProperty -> ()
allocationStrategy :: OnDemandOptionsRequestProperty -> Maybe (Value Text)
capacityReservationOptions :: OnDemandOptionsRequestProperty
-> Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: OnDemandOptionsRequestProperty -> Maybe (Value Text)
minTargetCapacity :: OnDemandOptionsRequestProperty -> Maybe (Value Integer)
singleAvailabilityZone :: OnDemandOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: OnDemandOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
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 -> CapacityReservationOptionsRequestProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CapacityReservationOptions"
                 (CapacityReservationOptionsRequestProperty -> (Key, Value))
-> Maybe CapacityReservationOptionsRequestProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CapacityReservationOptionsRequestProperty
capacityReservationOptions,
               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" OnDemandOptionsRequestProperty where
  type PropertyType "AllocationStrategy" OnDemandOptionsRequestProperty = Value Prelude.Text
  set :: PropertyType "AllocationStrategy" OnDemandOptionsRequestProperty
-> OnDemandOptionsRequestProperty -> OnDemandOptionsRequestProperty
set PropertyType "AllocationStrategy" OnDemandOptionsRequestProperty
newValue OnDemandOptionsRequestProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe CapacityReservationOptionsRequestProperty
()
haddock_workaround_ :: OnDemandOptionsRequestProperty -> ()
allocationStrategy :: OnDemandOptionsRequestProperty -> Maybe (Value Text)
capacityReservationOptions :: OnDemandOptionsRequestProperty
-> Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: OnDemandOptionsRequestProperty -> Maybe (Value Text)
minTargetCapacity :: OnDemandOptionsRequestProperty -> Maybe (Value Integer)
singleAvailabilityZone :: OnDemandOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: OnDemandOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
    = OnDemandOptionsRequestProperty
        {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" OnDemandOptionsRequestProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe CapacityReservationOptionsRequestProperty
()
haddock_workaround_ :: ()
capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
haddock_workaround_ :: ()
capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
instance Property "CapacityReservationOptions" OnDemandOptionsRequestProperty where
  type PropertyType "CapacityReservationOptions" OnDemandOptionsRequestProperty = CapacityReservationOptionsRequestProperty
  set :: PropertyType
  "CapacityReservationOptions" OnDemandOptionsRequestProperty
-> OnDemandOptionsRequestProperty -> OnDemandOptionsRequestProperty
set PropertyType
  "CapacityReservationOptions" OnDemandOptionsRequestProperty
newValue OnDemandOptionsRequestProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe CapacityReservationOptionsRequestProperty
()
haddock_workaround_ :: OnDemandOptionsRequestProperty -> ()
allocationStrategy :: OnDemandOptionsRequestProperty -> Maybe (Value Text)
capacityReservationOptions :: OnDemandOptionsRequestProperty
-> Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: OnDemandOptionsRequestProperty -> Maybe (Value Text)
minTargetCapacity :: OnDemandOptionsRequestProperty -> Maybe (Value Integer)
singleAvailabilityZone :: OnDemandOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: OnDemandOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
    = OnDemandOptionsRequestProperty
        {capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
capacityReservationOptions = CapacityReservationOptionsRequestProperty
-> Maybe CapacityReservationOptionsRequestProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "CapacityReservationOptions" OnDemandOptionsRequestProperty
CapacityReservationOptionsRequestProperty
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
instance Property "MaxTotalPrice" OnDemandOptionsRequestProperty where
  type PropertyType "MaxTotalPrice" OnDemandOptionsRequestProperty = Value Prelude.Text
  set :: PropertyType "MaxTotalPrice" OnDemandOptionsRequestProperty
-> OnDemandOptionsRequestProperty -> OnDemandOptionsRequestProperty
set PropertyType "MaxTotalPrice" OnDemandOptionsRequestProperty
newValue OnDemandOptionsRequestProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe CapacityReservationOptionsRequestProperty
()
haddock_workaround_ :: OnDemandOptionsRequestProperty -> ()
allocationStrategy :: OnDemandOptionsRequestProperty -> Maybe (Value Text)
capacityReservationOptions :: OnDemandOptionsRequestProperty
-> Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: OnDemandOptionsRequestProperty -> Maybe (Value Text)
minTargetCapacity :: OnDemandOptionsRequestProperty -> Maybe (Value Integer)
singleAvailabilityZone :: OnDemandOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: OnDemandOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
    = OnDemandOptionsRequestProperty
        {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" OnDemandOptionsRequestProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe CapacityReservationOptionsRequestProperty
()
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
instance Property "MinTargetCapacity" OnDemandOptionsRequestProperty where
  type PropertyType "MinTargetCapacity" OnDemandOptionsRequestProperty = Value Prelude.Integer
  set :: PropertyType "MinTargetCapacity" OnDemandOptionsRequestProperty
-> OnDemandOptionsRequestProperty -> OnDemandOptionsRequestProperty
set PropertyType "MinTargetCapacity" OnDemandOptionsRequestProperty
newValue OnDemandOptionsRequestProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe CapacityReservationOptionsRequestProperty
()
haddock_workaround_ :: OnDemandOptionsRequestProperty -> ()
allocationStrategy :: OnDemandOptionsRequestProperty -> Maybe (Value Text)
capacityReservationOptions :: OnDemandOptionsRequestProperty
-> Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: OnDemandOptionsRequestProperty -> Maybe (Value Text)
minTargetCapacity :: OnDemandOptionsRequestProperty -> Maybe (Value Integer)
singleAvailabilityZone :: OnDemandOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: OnDemandOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
    = OnDemandOptionsRequestProperty
        {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" OnDemandOptionsRequestProperty
Value Integer
newValue, Maybe (Value Bool)
Maybe (Value Text)
Maybe CapacityReservationOptionsRequestProperty
()
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: Maybe (Value Text)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: Maybe (Value Text)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
instance Property "SingleAvailabilityZone" OnDemandOptionsRequestProperty where
  type PropertyType "SingleAvailabilityZone" OnDemandOptionsRequestProperty = Value Prelude.Bool
  set :: PropertyType
  "SingleAvailabilityZone" OnDemandOptionsRequestProperty
-> OnDemandOptionsRequestProperty -> OnDemandOptionsRequestProperty
set PropertyType
  "SingleAvailabilityZone" OnDemandOptionsRequestProperty
newValue OnDemandOptionsRequestProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe CapacityReservationOptionsRequestProperty
()
haddock_workaround_ :: OnDemandOptionsRequestProperty -> ()
allocationStrategy :: OnDemandOptionsRequestProperty -> Maybe (Value Text)
capacityReservationOptions :: OnDemandOptionsRequestProperty
-> Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: OnDemandOptionsRequestProperty -> Maybe (Value Text)
minTargetCapacity :: OnDemandOptionsRequestProperty -> Maybe (Value Integer)
singleAvailabilityZone :: OnDemandOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: OnDemandOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
    = OnDemandOptionsRequestProperty
        {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" OnDemandOptionsRequestProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe CapacityReservationOptionsRequestProperty
()
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleInstanceType :: Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleInstanceType :: Maybe (Value Bool)
..}
instance Property "SingleInstanceType" OnDemandOptionsRequestProperty where
  type PropertyType "SingleInstanceType" OnDemandOptionsRequestProperty = Value Prelude.Bool
  set :: PropertyType "SingleInstanceType" OnDemandOptionsRequestProperty
-> OnDemandOptionsRequestProperty -> OnDemandOptionsRequestProperty
set PropertyType "SingleInstanceType" OnDemandOptionsRequestProperty
newValue OnDemandOptionsRequestProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe CapacityReservationOptionsRequestProperty
()
haddock_workaround_ :: OnDemandOptionsRequestProperty -> ()
allocationStrategy :: OnDemandOptionsRequestProperty -> Maybe (Value Text)
capacityReservationOptions :: OnDemandOptionsRequestProperty
-> Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: OnDemandOptionsRequestProperty -> Maybe (Value Text)
minTargetCapacity :: OnDemandOptionsRequestProperty -> Maybe (Value Integer)
singleAvailabilityZone :: OnDemandOptionsRequestProperty -> Maybe (Value Bool)
singleInstanceType :: OnDemandOptionsRequestProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
singleInstanceType :: Maybe (Value Bool)
..}
    = OnDemandOptionsRequestProperty
        {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" OnDemandOptionsRequestProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
Maybe CapacityReservationOptionsRequestProperty
()
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
haddock_workaround_ :: ()
allocationStrategy :: Maybe (Value Text)
capacityReservationOptions :: Maybe CapacityReservationOptionsRequestProperty
maxTotalPrice :: Maybe (Value Text)
minTargetCapacity :: Maybe (Value Integer)
singleAvailabilityZone :: Maybe (Value Bool)
..}