module Stratosphere.AutoScaling.AutoScalingGroup.InstancesDistributionProperty (
        InstancesDistributionProperty(..), mkInstancesDistributionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InstancesDistributionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-instancesdistribution.html>
    InstancesDistributionProperty {InstancesDistributionProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-instancesdistribution.html#cfn-autoscaling-autoscalinggroup-instancesdistribution-ondemandallocationstrategy>
                                   InstancesDistributionProperty -> Maybe (Value Text)
onDemandAllocationStrategy :: (Prelude.Maybe (Value Prelude.Text)),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-instancesdistribution.html#cfn-autoscaling-autoscalinggroup-instancesdistribution-ondemandbasecapacity>
                                   InstancesDistributionProperty -> Maybe (Value Integer)
onDemandBaseCapacity :: (Prelude.Maybe (Value Prelude.Integer)),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-instancesdistribution.html#cfn-autoscaling-autoscalinggroup-instancesdistribution-ondemandpercentageabovebasecapacity>
                                   InstancesDistributionProperty -> Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: (Prelude.Maybe (Value Prelude.Integer)),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-instancesdistribution.html#cfn-autoscaling-autoscalinggroup-instancesdistribution-spotallocationstrategy>
                                   InstancesDistributionProperty -> Maybe (Value Text)
spotAllocationStrategy :: (Prelude.Maybe (Value Prelude.Text)),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-instancesdistribution.html#cfn-autoscaling-autoscalinggroup-instancesdistribution-spotinstancepools>
                                   InstancesDistributionProperty -> Maybe (Value Integer)
spotInstancePools :: (Prelude.Maybe (Value Prelude.Integer)),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-instancesdistribution.html#cfn-autoscaling-autoscalinggroup-instancesdistribution-spotmaxprice>
                                   InstancesDistributionProperty -> Maybe (Value Text)
spotMaxPrice :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (InstancesDistributionProperty
-> InstancesDistributionProperty -> Bool
(InstancesDistributionProperty
 -> InstancesDistributionProperty -> Bool)
-> (InstancesDistributionProperty
    -> InstancesDistributionProperty -> Bool)
-> Eq InstancesDistributionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InstancesDistributionProperty
-> InstancesDistributionProperty -> Bool
== :: InstancesDistributionProperty
-> InstancesDistributionProperty -> Bool
$c/= :: InstancesDistributionProperty
-> InstancesDistributionProperty -> Bool
/= :: InstancesDistributionProperty
-> InstancesDistributionProperty -> Bool
Prelude.Eq, Int -> InstancesDistributionProperty -> ShowS
[InstancesDistributionProperty] -> ShowS
InstancesDistributionProperty -> String
(Int -> InstancesDistributionProperty -> ShowS)
-> (InstancesDistributionProperty -> String)
-> ([InstancesDistributionProperty] -> ShowS)
-> Show InstancesDistributionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InstancesDistributionProperty -> ShowS
showsPrec :: Int -> InstancesDistributionProperty -> ShowS
$cshow :: InstancesDistributionProperty -> String
show :: InstancesDistributionProperty -> String
$cshowList :: [InstancesDistributionProperty] -> ShowS
showList :: [InstancesDistributionProperty] -> ShowS
Prelude.Show)
mkInstancesDistributionProperty :: InstancesDistributionProperty
mkInstancesDistributionProperty :: InstancesDistributionProperty
mkInstancesDistributionProperty
  = InstancesDistributionProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       onDemandAllocationStrategy :: Maybe (Value Text)
onDemandAllocationStrategy = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       onDemandBaseCapacity :: Maybe (Value Integer)
onDemandBaseCapacity = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       spotAllocationStrategy :: Maybe (Value Text)
spotAllocationStrategy = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       spotInstancePools :: Maybe (Value Integer)
spotInstancePools = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       spotMaxPrice :: Maybe (Value Text)
spotMaxPrice = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InstancesDistributionProperty where
  toResourceProperties :: InstancesDistributionProperty -> ResourceProperties
toResourceProperties InstancesDistributionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: InstancesDistributionProperty -> ()
onDemandAllocationStrategy :: InstancesDistributionProperty -> Maybe (Value Text)
onDemandBaseCapacity :: InstancesDistributionProperty -> Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: InstancesDistributionProperty -> Maybe (Value Integer)
spotAllocationStrategy :: InstancesDistributionProperty -> Maybe (Value Text)
spotInstancePools :: InstancesDistributionProperty -> Maybe (Value Integer)
spotMaxPrice :: InstancesDistributionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
onDemandAllocationStrategy :: Maybe (Value Text)
onDemandBaseCapacity :: Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
spotAllocationStrategy :: Maybe (Value Text)
spotInstancePools :: Maybe (Value Integer)
spotMaxPrice :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AutoScaling::AutoScalingGroup.InstancesDistribution",
         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
"OnDemandAllocationStrategy"
                              (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)
onDemandAllocationStrategy,
                            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
"OnDemandBaseCapacity" (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)
onDemandBaseCapacity,
                            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
"OnDemandPercentageAboveBaseCapacity"
                              (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)
onDemandPercentageAboveBaseCapacity,
                            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
"SpotAllocationStrategy"
                              (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)
spotAllocationStrategy,
                            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
"SpotInstancePools" (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)
spotInstancePools,
                            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
"SpotMaxPrice" (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)
spotMaxPrice])}
instance JSON.ToJSON InstancesDistributionProperty where
  toJSON :: InstancesDistributionProperty -> Value
toJSON InstancesDistributionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: InstancesDistributionProperty -> ()
onDemandAllocationStrategy :: InstancesDistributionProperty -> Maybe (Value Text)
onDemandBaseCapacity :: InstancesDistributionProperty -> Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: InstancesDistributionProperty -> Maybe (Value Integer)
spotAllocationStrategy :: InstancesDistributionProperty -> Maybe (Value Text)
spotInstancePools :: InstancesDistributionProperty -> Maybe (Value Integer)
spotMaxPrice :: InstancesDistributionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
onDemandAllocationStrategy :: Maybe (Value Text)
onDemandBaseCapacity :: Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
spotAllocationStrategy :: Maybe (Value Text)
spotInstancePools :: Maybe (Value Integer)
spotMaxPrice :: Maybe (Value Text)
..}
    = [(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
"OnDemandAllocationStrategy"
                 (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)
onDemandAllocationStrategy,
               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
"OnDemandBaseCapacity" (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)
onDemandBaseCapacity,
               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
"OnDemandPercentageAboveBaseCapacity"
                 (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)
onDemandPercentageAboveBaseCapacity,
               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
"SpotAllocationStrategy"
                 (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)
spotAllocationStrategy,
               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
"SpotInstancePools" (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)
spotInstancePools,
               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
"SpotMaxPrice" (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)
spotMaxPrice]))
instance Property "OnDemandAllocationStrategy" InstancesDistributionProperty where
  type PropertyType "OnDemandAllocationStrategy" InstancesDistributionProperty = Value Prelude.Text
  set :: PropertyType
  "OnDemandAllocationStrategy" InstancesDistributionProperty
-> InstancesDistributionProperty -> InstancesDistributionProperty
set PropertyType
  "OnDemandAllocationStrategy" InstancesDistributionProperty
newValue InstancesDistributionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: InstancesDistributionProperty -> ()
onDemandAllocationStrategy :: InstancesDistributionProperty -> Maybe (Value Text)
onDemandBaseCapacity :: InstancesDistributionProperty -> Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: InstancesDistributionProperty -> Maybe (Value Integer)
spotAllocationStrategy :: InstancesDistributionProperty -> Maybe (Value Text)
spotInstancePools :: InstancesDistributionProperty -> Maybe (Value Integer)
spotMaxPrice :: InstancesDistributionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
onDemandAllocationStrategy :: Maybe (Value Text)
onDemandBaseCapacity :: Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
spotAllocationStrategy :: Maybe (Value Text)
spotInstancePools :: Maybe (Value Integer)
spotMaxPrice :: Maybe (Value Text)
..}
    = InstancesDistributionProperty
        {onDemandAllocationStrategy :: Maybe (Value Text)
onDemandAllocationStrategy = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "OnDemandAllocationStrategy" InstancesDistributionProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
onDemandBaseCapacity :: Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
spotAllocationStrategy :: Maybe (Value Text)
spotInstancePools :: Maybe (Value Integer)
spotMaxPrice :: Maybe (Value Text)
haddock_workaround_ :: ()
onDemandBaseCapacity :: Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
spotAllocationStrategy :: Maybe (Value Text)
spotInstancePools :: Maybe (Value Integer)
spotMaxPrice :: Maybe (Value Text)
..}
instance Property "OnDemandBaseCapacity" InstancesDistributionProperty where
  type PropertyType "OnDemandBaseCapacity" InstancesDistributionProperty = Value Prelude.Integer
  set :: PropertyType "OnDemandBaseCapacity" InstancesDistributionProperty
-> InstancesDistributionProperty -> InstancesDistributionProperty
set PropertyType "OnDemandBaseCapacity" InstancesDistributionProperty
newValue InstancesDistributionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: InstancesDistributionProperty -> ()
onDemandAllocationStrategy :: InstancesDistributionProperty -> Maybe (Value Text)
onDemandBaseCapacity :: InstancesDistributionProperty -> Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: InstancesDistributionProperty -> Maybe (Value Integer)
spotAllocationStrategy :: InstancesDistributionProperty -> Maybe (Value Text)
spotInstancePools :: InstancesDistributionProperty -> Maybe (Value Integer)
spotMaxPrice :: InstancesDistributionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
onDemandAllocationStrategy :: Maybe (Value Text)
onDemandBaseCapacity :: Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
spotAllocationStrategy :: Maybe (Value Text)
spotInstancePools :: Maybe (Value Integer)
spotMaxPrice :: Maybe (Value Text)
..}
    = InstancesDistributionProperty
        {onDemandBaseCapacity :: Maybe (Value Integer)
onDemandBaseCapacity = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OnDemandBaseCapacity" InstancesDistributionProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
onDemandAllocationStrategy :: Maybe (Value Text)
onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
spotAllocationStrategy :: Maybe (Value Text)
spotInstancePools :: Maybe (Value Integer)
spotMaxPrice :: Maybe (Value Text)
haddock_workaround_ :: ()
onDemandAllocationStrategy :: Maybe (Value Text)
onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
spotAllocationStrategy :: Maybe (Value Text)
spotInstancePools :: Maybe (Value Integer)
spotMaxPrice :: Maybe (Value Text)
..}
instance Property "OnDemandPercentageAboveBaseCapacity" InstancesDistributionProperty where
  type PropertyType "OnDemandPercentageAboveBaseCapacity" InstancesDistributionProperty = Value Prelude.Integer
  set :: PropertyType
  "OnDemandPercentageAboveBaseCapacity" InstancesDistributionProperty
-> InstancesDistributionProperty -> InstancesDistributionProperty
set PropertyType
  "OnDemandPercentageAboveBaseCapacity" InstancesDistributionProperty
newValue InstancesDistributionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: InstancesDistributionProperty -> ()
onDemandAllocationStrategy :: InstancesDistributionProperty -> Maybe (Value Text)
onDemandBaseCapacity :: InstancesDistributionProperty -> Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: InstancesDistributionProperty -> Maybe (Value Integer)
spotAllocationStrategy :: InstancesDistributionProperty -> Maybe (Value Text)
spotInstancePools :: InstancesDistributionProperty -> Maybe (Value Integer)
spotMaxPrice :: InstancesDistributionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
onDemandAllocationStrategy :: Maybe (Value Text)
onDemandBaseCapacity :: Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
spotAllocationStrategy :: Maybe (Value Text)
spotInstancePools :: Maybe (Value Integer)
spotMaxPrice :: Maybe (Value Text)
..}
    = InstancesDistributionProperty
        {onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "OnDemandPercentageAboveBaseCapacity" InstancesDistributionProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
onDemandAllocationStrategy :: Maybe (Value Text)
onDemandBaseCapacity :: Maybe (Value Integer)
spotAllocationStrategy :: Maybe (Value Text)
spotInstancePools :: Maybe (Value Integer)
spotMaxPrice :: Maybe (Value Text)
haddock_workaround_ :: ()
onDemandAllocationStrategy :: Maybe (Value Text)
onDemandBaseCapacity :: Maybe (Value Integer)
spotAllocationStrategy :: Maybe (Value Text)
spotInstancePools :: Maybe (Value Integer)
spotMaxPrice :: Maybe (Value Text)
..}
instance Property "SpotAllocationStrategy" InstancesDistributionProperty where
  type PropertyType "SpotAllocationStrategy" InstancesDistributionProperty = Value Prelude.Text
  set :: PropertyType "SpotAllocationStrategy" InstancesDistributionProperty
-> InstancesDistributionProperty -> InstancesDistributionProperty
set PropertyType "SpotAllocationStrategy" InstancesDistributionProperty
newValue InstancesDistributionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: InstancesDistributionProperty -> ()
onDemandAllocationStrategy :: InstancesDistributionProperty -> Maybe (Value Text)
onDemandBaseCapacity :: InstancesDistributionProperty -> Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: InstancesDistributionProperty -> Maybe (Value Integer)
spotAllocationStrategy :: InstancesDistributionProperty -> Maybe (Value Text)
spotInstancePools :: InstancesDistributionProperty -> Maybe (Value Integer)
spotMaxPrice :: InstancesDistributionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
onDemandAllocationStrategy :: Maybe (Value Text)
onDemandBaseCapacity :: Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
spotAllocationStrategy :: Maybe (Value Text)
spotInstancePools :: Maybe (Value Integer)
spotMaxPrice :: Maybe (Value Text)
..}
    = InstancesDistributionProperty
        {spotAllocationStrategy :: Maybe (Value Text)
spotAllocationStrategy = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SpotAllocationStrategy" InstancesDistributionProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
onDemandAllocationStrategy :: Maybe (Value Text)
onDemandBaseCapacity :: Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
spotInstancePools :: Maybe (Value Integer)
spotMaxPrice :: Maybe (Value Text)
haddock_workaround_ :: ()
onDemandAllocationStrategy :: Maybe (Value Text)
onDemandBaseCapacity :: Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
spotInstancePools :: Maybe (Value Integer)
spotMaxPrice :: Maybe (Value Text)
..}
instance Property "SpotInstancePools" InstancesDistributionProperty where
  type PropertyType "SpotInstancePools" InstancesDistributionProperty = Value Prelude.Integer
  set :: PropertyType "SpotInstancePools" InstancesDistributionProperty
-> InstancesDistributionProperty -> InstancesDistributionProperty
set PropertyType "SpotInstancePools" InstancesDistributionProperty
newValue InstancesDistributionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: InstancesDistributionProperty -> ()
onDemandAllocationStrategy :: InstancesDistributionProperty -> Maybe (Value Text)
onDemandBaseCapacity :: InstancesDistributionProperty -> Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: InstancesDistributionProperty -> Maybe (Value Integer)
spotAllocationStrategy :: InstancesDistributionProperty -> Maybe (Value Text)
spotInstancePools :: InstancesDistributionProperty -> Maybe (Value Integer)
spotMaxPrice :: InstancesDistributionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
onDemandAllocationStrategy :: Maybe (Value Text)
onDemandBaseCapacity :: Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
spotAllocationStrategy :: Maybe (Value Text)
spotInstancePools :: Maybe (Value Integer)
spotMaxPrice :: Maybe (Value Text)
..}
    = InstancesDistributionProperty
        {spotInstancePools :: Maybe (Value Integer)
spotInstancePools = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SpotInstancePools" InstancesDistributionProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
onDemandAllocationStrategy :: Maybe (Value Text)
onDemandBaseCapacity :: Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
spotAllocationStrategy :: Maybe (Value Text)
spotMaxPrice :: Maybe (Value Text)
haddock_workaround_ :: ()
onDemandAllocationStrategy :: Maybe (Value Text)
onDemandBaseCapacity :: Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
spotAllocationStrategy :: Maybe (Value Text)
spotMaxPrice :: Maybe (Value Text)
..}
instance Property "SpotMaxPrice" InstancesDistributionProperty where
  type PropertyType "SpotMaxPrice" InstancesDistributionProperty = Value Prelude.Text
  set :: PropertyType "SpotMaxPrice" InstancesDistributionProperty
-> InstancesDistributionProperty -> InstancesDistributionProperty
set PropertyType "SpotMaxPrice" InstancesDistributionProperty
newValue InstancesDistributionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: InstancesDistributionProperty -> ()
onDemandAllocationStrategy :: InstancesDistributionProperty -> Maybe (Value Text)
onDemandBaseCapacity :: InstancesDistributionProperty -> Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: InstancesDistributionProperty -> Maybe (Value Integer)
spotAllocationStrategy :: InstancesDistributionProperty -> Maybe (Value Text)
spotInstancePools :: InstancesDistributionProperty -> Maybe (Value Integer)
spotMaxPrice :: InstancesDistributionProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
onDemandAllocationStrategy :: Maybe (Value Text)
onDemandBaseCapacity :: Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
spotAllocationStrategy :: Maybe (Value Text)
spotInstancePools :: Maybe (Value Integer)
spotMaxPrice :: Maybe (Value Text)
..}
    = InstancesDistributionProperty
        {spotMaxPrice :: Maybe (Value Text)
spotMaxPrice = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SpotMaxPrice" InstancesDistributionProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
onDemandAllocationStrategy :: Maybe (Value Text)
onDemandBaseCapacity :: Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
spotAllocationStrategy :: Maybe (Value Text)
spotInstancePools :: Maybe (Value Integer)
haddock_workaround_ :: ()
onDemandAllocationStrategy :: Maybe (Value Text)
onDemandBaseCapacity :: Maybe (Value Integer)
onDemandPercentageAboveBaseCapacity :: Maybe (Value Integer)
spotAllocationStrategy :: Maybe (Value Text)
spotInstancePools :: Maybe (Value Integer)
..}