module Stratosphere.EMR.Cluster.InstanceFleetConfigProperty (
module Exports, InstanceFleetConfigProperty(..),
mkInstanceFleetConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EMR.Cluster.InstanceFleetProvisioningSpecificationsProperty as Exports
import {-# SOURCE #-} Stratosphere.EMR.Cluster.InstanceFleetResizingSpecificationsProperty as Exports
import {-# SOURCE #-} Stratosphere.EMR.Cluster.InstanceTypeConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InstanceFleetConfigProperty
=
InstanceFleetConfigProperty {InstanceFleetConfigProperty -> ()
haddock_workaround_ :: (),
InstanceFleetConfigProperty -> Maybe [InstanceTypeConfigProperty]
instanceTypeConfigs :: (Prelude.Maybe [InstanceTypeConfigProperty]),
InstanceFleetConfigProperty
-> Maybe InstanceFleetProvisioningSpecificationsProperty
launchSpecifications :: (Prelude.Maybe InstanceFleetProvisioningSpecificationsProperty),
InstanceFleetConfigProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
InstanceFleetConfigProperty
-> Maybe InstanceFleetResizingSpecificationsProperty
resizeSpecifications :: (Prelude.Maybe InstanceFleetResizingSpecificationsProperty),
InstanceFleetConfigProperty -> Maybe (Value Integer)
targetOnDemandCapacity :: (Prelude.Maybe (Value Prelude.Integer)),
InstanceFleetConfigProperty -> Maybe (Value Integer)
targetSpotCapacity :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (InstanceFleetConfigProperty -> InstanceFleetConfigProperty -> Bool
(InstanceFleetConfigProperty
-> InstanceFleetConfigProperty -> Bool)
-> (InstanceFleetConfigProperty
-> InstanceFleetConfigProperty -> Bool)
-> Eq InstanceFleetConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InstanceFleetConfigProperty -> InstanceFleetConfigProperty -> Bool
== :: InstanceFleetConfigProperty -> InstanceFleetConfigProperty -> Bool
$c/= :: InstanceFleetConfigProperty -> InstanceFleetConfigProperty -> Bool
/= :: InstanceFleetConfigProperty -> InstanceFleetConfigProperty -> Bool
Prelude.Eq, Int -> InstanceFleetConfigProperty -> ShowS
[InstanceFleetConfigProperty] -> ShowS
InstanceFleetConfigProperty -> String
(Int -> InstanceFleetConfigProperty -> ShowS)
-> (InstanceFleetConfigProperty -> String)
-> ([InstanceFleetConfigProperty] -> ShowS)
-> Show InstanceFleetConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InstanceFleetConfigProperty -> ShowS
showsPrec :: Int -> InstanceFleetConfigProperty -> ShowS
$cshow :: InstanceFleetConfigProperty -> String
show :: InstanceFleetConfigProperty -> String
$cshowList :: [InstanceFleetConfigProperty] -> ShowS
showList :: [InstanceFleetConfigProperty] -> ShowS
Prelude.Show)
mkInstanceFleetConfigProperty :: InstanceFleetConfigProperty
mkInstanceFleetConfigProperty :: InstanceFleetConfigProperty
mkInstanceFleetConfigProperty
= InstanceFleetConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
instanceTypeConfigs = Maybe [InstanceTypeConfigProperty]
forall a. Maybe a
Prelude.Nothing,
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
launchSpecifications = Maybe InstanceFleetProvisioningSpecificationsProperty
forall a. Maybe a
Prelude.Nothing, name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
resizeSpecifications = Maybe InstanceFleetResizingSpecificationsProperty
forall a. Maybe a
Prelude.Nothing,
targetOnDemandCapacity :: Maybe (Value Integer)
targetOnDemandCapacity = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
targetSpotCapacity :: Maybe (Value Integer)
targetSpotCapacity = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InstanceFleetConfigProperty where
toResourceProperties :: InstanceFleetConfigProperty -> ResourceProperties
toResourceProperties InstanceFleetConfigProperty {Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
haddock_workaround_ :: InstanceFleetConfigProperty -> ()
instanceTypeConfigs :: InstanceFleetConfigProperty -> Maybe [InstanceTypeConfigProperty]
launchSpecifications :: InstanceFleetConfigProperty
-> Maybe InstanceFleetProvisioningSpecificationsProperty
name :: InstanceFleetConfigProperty -> Maybe (Value Text)
resizeSpecifications :: InstanceFleetConfigProperty
-> Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: InstanceFleetConfigProperty -> Maybe (Value Integer)
targetSpotCapacity :: InstanceFleetConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EMR::Cluster.InstanceFleetConfig",
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 -> [InstanceTypeConfigProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InstanceTypeConfigs" ([InstanceTypeConfigProperty] -> (Key, Value))
-> Maybe [InstanceTypeConfigProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [InstanceTypeConfigProperty]
instanceTypeConfigs,
Key
-> InstanceFleetProvisioningSpecificationsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LaunchSpecifications" (InstanceFleetProvisioningSpecificationsProperty -> (Key, Value))
-> Maybe InstanceFleetProvisioningSpecificationsProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InstanceFleetProvisioningSpecificationsProperty
launchSpecifications,
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
"Name" (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)
name,
Key -> InstanceFleetResizingSpecificationsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ResizeSpecifications" (InstanceFleetResizingSpecificationsProperty -> (Key, Value))
-> Maybe InstanceFleetResizingSpecificationsProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InstanceFleetResizingSpecificationsProperty
resizeSpecifications,
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
"TargetOnDemandCapacity"
(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)
targetOnDemandCapacity,
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
"TargetSpotCapacity" (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)
targetSpotCapacity])}
instance JSON.ToJSON InstanceFleetConfigProperty where
toJSON :: InstanceFleetConfigProperty -> Value
toJSON InstanceFleetConfigProperty {Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
haddock_workaround_ :: InstanceFleetConfigProperty -> ()
instanceTypeConfigs :: InstanceFleetConfigProperty -> Maybe [InstanceTypeConfigProperty]
launchSpecifications :: InstanceFleetConfigProperty
-> Maybe InstanceFleetProvisioningSpecificationsProperty
name :: InstanceFleetConfigProperty -> Maybe (Value Text)
resizeSpecifications :: InstanceFleetConfigProperty
-> Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: InstanceFleetConfigProperty -> Maybe (Value Integer)
targetSpotCapacity :: InstanceFleetConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
= [(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 -> [InstanceTypeConfigProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InstanceTypeConfigs" ([InstanceTypeConfigProperty] -> (Key, Value))
-> Maybe [InstanceTypeConfigProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [InstanceTypeConfigProperty]
instanceTypeConfigs,
Key
-> InstanceFleetProvisioningSpecificationsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LaunchSpecifications" (InstanceFleetProvisioningSpecificationsProperty -> (Key, Value))
-> Maybe InstanceFleetProvisioningSpecificationsProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InstanceFleetProvisioningSpecificationsProperty
launchSpecifications,
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
"Name" (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)
name,
Key -> InstanceFleetResizingSpecificationsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ResizeSpecifications" (InstanceFleetResizingSpecificationsProperty -> (Key, Value))
-> Maybe InstanceFleetResizingSpecificationsProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InstanceFleetResizingSpecificationsProperty
resizeSpecifications,
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
"TargetOnDemandCapacity"
(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)
targetOnDemandCapacity,
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
"TargetSpotCapacity" (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)
targetSpotCapacity]))
instance Property "InstanceTypeConfigs" InstanceFleetConfigProperty where
type PropertyType "InstanceTypeConfigs" InstanceFleetConfigProperty = [InstanceTypeConfigProperty]
set :: PropertyType "InstanceTypeConfigs" InstanceFleetConfigProperty
-> InstanceFleetConfigProperty -> InstanceFleetConfigProperty
set PropertyType "InstanceTypeConfigs" InstanceFleetConfigProperty
newValue InstanceFleetConfigProperty {Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
haddock_workaround_ :: InstanceFleetConfigProperty -> ()
instanceTypeConfigs :: InstanceFleetConfigProperty -> Maybe [InstanceTypeConfigProperty]
launchSpecifications :: InstanceFleetConfigProperty
-> Maybe InstanceFleetProvisioningSpecificationsProperty
name :: InstanceFleetConfigProperty -> Maybe (Value Text)
resizeSpecifications :: InstanceFleetConfigProperty
-> Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: InstanceFleetConfigProperty -> Maybe (Value Integer)
targetSpotCapacity :: InstanceFleetConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
= InstanceFleetConfigProperty
{instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
instanceTypeConfigs = [InstanceTypeConfigProperty] -> Maybe [InstanceTypeConfigProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [InstanceTypeConfigProperty]
PropertyType "InstanceTypeConfigs" InstanceFleetConfigProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
haddock_workaround_ :: ()
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
haddock_workaround_ :: ()
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
instance Property "LaunchSpecifications" InstanceFleetConfigProperty where
type PropertyType "LaunchSpecifications" InstanceFleetConfigProperty = InstanceFleetProvisioningSpecificationsProperty
set :: PropertyType "LaunchSpecifications" InstanceFleetConfigProperty
-> InstanceFleetConfigProperty -> InstanceFleetConfigProperty
set PropertyType "LaunchSpecifications" InstanceFleetConfigProperty
newValue InstanceFleetConfigProperty {Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
haddock_workaround_ :: InstanceFleetConfigProperty -> ()
instanceTypeConfigs :: InstanceFleetConfigProperty -> Maybe [InstanceTypeConfigProperty]
launchSpecifications :: InstanceFleetConfigProperty
-> Maybe InstanceFleetProvisioningSpecificationsProperty
name :: InstanceFleetConfigProperty -> Maybe (Value Text)
resizeSpecifications :: InstanceFleetConfigProperty
-> Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: InstanceFleetConfigProperty -> Maybe (Value Integer)
targetSpotCapacity :: InstanceFleetConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
= InstanceFleetConfigProperty
{launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
launchSpecifications = InstanceFleetProvisioningSpecificationsProperty
-> Maybe InstanceFleetProvisioningSpecificationsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LaunchSpecifications" InstanceFleetConfigProperty
InstanceFleetProvisioningSpecificationsProperty
newValue, Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetResizingSpecificationsProperty
()
haddock_workaround_ :: ()
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
haddock_workaround_ :: ()
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
instance Property "Name" InstanceFleetConfigProperty where
type PropertyType "Name" InstanceFleetConfigProperty = Value Prelude.Text
set :: PropertyType "Name" InstanceFleetConfigProperty
-> InstanceFleetConfigProperty -> InstanceFleetConfigProperty
set PropertyType "Name" InstanceFleetConfigProperty
newValue InstanceFleetConfigProperty {Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
haddock_workaround_ :: InstanceFleetConfigProperty -> ()
instanceTypeConfigs :: InstanceFleetConfigProperty -> Maybe [InstanceTypeConfigProperty]
launchSpecifications :: InstanceFleetConfigProperty
-> Maybe InstanceFleetProvisioningSpecificationsProperty
name :: InstanceFleetConfigProperty -> Maybe (Value Text)
resizeSpecifications :: InstanceFleetConfigProperty
-> Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: InstanceFleetConfigProperty -> Maybe (Value Integer)
targetSpotCapacity :: InstanceFleetConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
= InstanceFleetConfigProperty {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" InstanceFleetConfigProperty
Value Text
newValue, Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
haddock_workaround_ :: ()
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
haddock_workaround_ :: ()
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
instance Property "ResizeSpecifications" InstanceFleetConfigProperty where
type PropertyType "ResizeSpecifications" InstanceFleetConfigProperty = InstanceFleetResizingSpecificationsProperty
set :: PropertyType "ResizeSpecifications" InstanceFleetConfigProperty
-> InstanceFleetConfigProperty -> InstanceFleetConfigProperty
set PropertyType "ResizeSpecifications" InstanceFleetConfigProperty
newValue InstanceFleetConfigProperty {Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
haddock_workaround_ :: InstanceFleetConfigProperty -> ()
instanceTypeConfigs :: InstanceFleetConfigProperty -> Maybe [InstanceTypeConfigProperty]
launchSpecifications :: InstanceFleetConfigProperty
-> Maybe InstanceFleetProvisioningSpecificationsProperty
name :: InstanceFleetConfigProperty -> Maybe (Value Text)
resizeSpecifications :: InstanceFleetConfigProperty
-> Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: InstanceFleetConfigProperty -> Maybe (Value Integer)
targetSpotCapacity :: InstanceFleetConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
= InstanceFleetConfigProperty
{resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
resizeSpecifications = InstanceFleetResizingSpecificationsProperty
-> Maybe InstanceFleetResizingSpecificationsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ResizeSpecifications" InstanceFleetConfigProperty
InstanceFleetResizingSpecificationsProperty
newValue, Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
()
haddock_workaround_ :: ()
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
haddock_workaround_ :: ()
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
instance Property "TargetOnDemandCapacity" InstanceFleetConfigProperty where
type PropertyType "TargetOnDemandCapacity" InstanceFleetConfigProperty = Value Prelude.Integer
set :: PropertyType "TargetOnDemandCapacity" InstanceFleetConfigProperty
-> InstanceFleetConfigProperty -> InstanceFleetConfigProperty
set PropertyType "TargetOnDemandCapacity" InstanceFleetConfigProperty
newValue InstanceFleetConfigProperty {Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
haddock_workaround_ :: InstanceFleetConfigProperty -> ()
instanceTypeConfigs :: InstanceFleetConfigProperty -> Maybe [InstanceTypeConfigProperty]
launchSpecifications :: InstanceFleetConfigProperty
-> Maybe InstanceFleetProvisioningSpecificationsProperty
name :: InstanceFleetConfigProperty -> Maybe (Value Text)
resizeSpecifications :: InstanceFleetConfigProperty
-> Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: InstanceFleetConfigProperty -> Maybe (Value Integer)
targetSpotCapacity :: InstanceFleetConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
= InstanceFleetConfigProperty
{targetOnDemandCapacity :: Maybe (Value Integer)
targetOnDemandCapacity = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TargetOnDemandCapacity" InstanceFleetConfigProperty
Value Integer
newValue, Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
haddock_workaround_ :: ()
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetSpotCapacity :: Maybe (Value Integer)
haddock_workaround_ :: ()
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetSpotCapacity :: Maybe (Value Integer)
..}
instance Property "TargetSpotCapacity" InstanceFleetConfigProperty where
type PropertyType "TargetSpotCapacity" InstanceFleetConfigProperty = Value Prelude.Integer
set :: PropertyType "TargetSpotCapacity" InstanceFleetConfigProperty
-> InstanceFleetConfigProperty -> InstanceFleetConfigProperty
set PropertyType "TargetSpotCapacity" InstanceFleetConfigProperty
newValue InstanceFleetConfigProperty {Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
haddock_workaround_ :: InstanceFleetConfigProperty -> ()
instanceTypeConfigs :: InstanceFleetConfigProperty -> Maybe [InstanceTypeConfigProperty]
launchSpecifications :: InstanceFleetConfigProperty
-> Maybe InstanceFleetProvisioningSpecificationsProperty
name :: InstanceFleetConfigProperty -> Maybe (Value Text)
resizeSpecifications :: InstanceFleetConfigProperty
-> Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: InstanceFleetConfigProperty -> Maybe (Value Integer)
targetSpotCapacity :: InstanceFleetConfigProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
= InstanceFleetConfigProperty
{targetSpotCapacity :: Maybe (Value Integer)
targetSpotCapacity = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TargetSpotCapacity" InstanceFleetConfigProperty
Value Integer
newValue, Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
haddock_workaround_ :: ()
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
haddock_workaround_ :: ()
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
..}