module Stratosphere.EMR.InstanceFleetConfig (
module Exports, InstanceFleetConfig(..), mkInstanceFleetConfig
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EMR.InstanceFleetConfig.InstanceFleetProvisioningSpecificationsProperty as Exports
import {-# SOURCE #-} Stratosphere.EMR.InstanceFleetConfig.InstanceFleetResizingSpecificationsProperty as Exports
import {-# SOURCE #-} Stratosphere.EMR.InstanceFleetConfig.InstanceTypeConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InstanceFleetConfig
=
InstanceFleetConfig {InstanceFleetConfig -> ()
haddock_workaround_ :: (),
InstanceFleetConfig -> Value Text
clusterId :: (Value Prelude.Text),
InstanceFleetConfig -> Value Text
instanceFleetType :: (Value Prelude.Text),
InstanceFleetConfig -> Maybe [InstanceTypeConfigProperty]
instanceTypeConfigs :: (Prelude.Maybe [InstanceTypeConfigProperty]),
InstanceFleetConfig
-> Maybe InstanceFleetProvisioningSpecificationsProperty
launchSpecifications :: (Prelude.Maybe InstanceFleetProvisioningSpecificationsProperty),
InstanceFleetConfig -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
InstanceFleetConfig
-> Maybe InstanceFleetResizingSpecificationsProperty
resizeSpecifications :: (Prelude.Maybe InstanceFleetResizingSpecificationsProperty),
InstanceFleetConfig -> Maybe (Value Integer)
targetOnDemandCapacity :: (Prelude.Maybe (Value Prelude.Integer)),
InstanceFleetConfig -> Maybe (Value Integer)
targetSpotCapacity :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (InstanceFleetConfig -> InstanceFleetConfig -> Bool
(InstanceFleetConfig -> InstanceFleetConfig -> Bool)
-> (InstanceFleetConfig -> InstanceFleetConfig -> Bool)
-> Eq InstanceFleetConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InstanceFleetConfig -> InstanceFleetConfig -> Bool
== :: InstanceFleetConfig -> InstanceFleetConfig -> Bool
$c/= :: InstanceFleetConfig -> InstanceFleetConfig -> Bool
/= :: InstanceFleetConfig -> InstanceFleetConfig -> Bool
Prelude.Eq, Int -> InstanceFleetConfig -> ShowS
[InstanceFleetConfig] -> ShowS
InstanceFleetConfig -> String
(Int -> InstanceFleetConfig -> ShowS)
-> (InstanceFleetConfig -> String)
-> ([InstanceFleetConfig] -> ShowS)
-> Show InstanceFleetConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InstanceFleetConfig -> ShowS
showsPrec :: Int -> InstanceFleetConfig -> ShowS
$cshow :: InstanceFleetConfig -> String
show :: InstanceFleetConfig -> String
$cshowList :: [InstanceFleetConfig] -> ShowS
showList :: [InstanceFleetConfig] -> ShowS
Prelude.Show)
mkInstanceFleetConfig ::
Value Prelude.Text -> Value Prelude.Text -> InstanceFleetConfig
mkInstanceFleetConfig :: Value Text -> Value Text -> InstanceFleetConfig
mkInstanceFleetConfig Value Text
clusterId Value Text
instanceFleetType
= InstanceFleetConfig
{haddock_workaround_ :: ()
haddock_workaround_ = (), clusterId :: Value Text
clusterId = Value Text
clusterId,
instanceFleetType :: Value Text
instanceFleetType = Value Text
instanceFleetType,
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 InstanceFleetConfig where
toResourceProperties :: InstanceFleetConfig -> ResourceProperties
toResourceProperties InstanceFleetConfig {Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
Value Text
haddock_workaround_ :: InstanceFleetConfig -> ()
clusterId :: InstanceFleetConfig -> Value Text
instanceFleetType :: InstanceFleetConfig -> Value Text
instanceTypeConfigs :: InstanceFleetConfig -> Maybe [InstanceTypeConfigProperty]
launchSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetProvisioningSpecificationsProperty
name :: InstanceFleetConfig -> Maybe (Value Text)
resizeSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
targetSpotCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
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::InstanceFleetConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"ClusterId" 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..= Value Text
clusterId,
Key
"InstanceFleetType" 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..= Value Text
instanceFleetType]
([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 InstanceFleetConfig where
toJSON :: InstanceFleetConfig -> Value
toJSON InstanceFleetConfig {Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
Value Text
haddock_workaround_ :: InstanceFleetConfig -> ()
clusterId :: InstanceFleetConfig -> Value Text
instanceFleetType :: InstanceFleetConfig -> Value Text
instanceTypeConfigs :: InstanceFleetConfig -> Maybe [InstanceTypeConfigProperty]
launchSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetProvisioningSpecificationsProperty
name :: InstanceFleetConfig -> Maybe (Value Text)
resizeSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
targetSpotCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
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
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"ClusterId" 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..= Value Text
clusterId,
Key
"InstanceFleetType" 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..= Value Text
instanceFleetType]
([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 "ClusterId" InstanceFleetConfig where
type PropertyType "ClusterId" InstanceFleetConfig = Value Prelude.Text
set :: PropertyType "ClusterId" InstanceFleetConfig
-> InstanceFleetConfig -> InstanceFleetConfig
set PropertyType "ClusterId" InstanceFleetConfig
newValue InstanceFleetConfig {Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
Value Text
haddock_workaround_ :: InstanceFleetConfig -> ()
clusterId :: InstanceFleetConfig -> Value Text
instanceFleetType :: InstanceFleetConfig -> Value Text
instanceTypeConfigs :: InstanceFleetConfig -> Maybe [InstanceTypeConfigProperty]
launchSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetProvisioningSpecificationsProperty
name :: InstanceFleetConfig -> Maybe (Value Text)
resizeSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
targetSpotCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
= InstanceFleetConfig {clusterId :: Value Text
clusterId = PropertyType "ClusterId" InstanceFleetConfig
Value Text
newValue, Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
Value Text
haddock_workaround_ :: ()
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
haddock_workaround_ :: ()
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
instance Property "InstanceFleetType" InstanceFleetConfig where
type PropertyType "InstanceFleetType" InstanceFleetConfig = Value Prelude.Text
set :: PropertyType "InstanceFleetType" InstanceFleetConfig
-> InstanceFleetConfig -> InstanceFleetConfig
set PropertyType "InstanceFleetType" InstanceFleetConfig
newValue InstanceFleetConfig {Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
Value Text
haddock_workaround_ :: InstanceFleetConfig -> ()
clusterId :: InstanceFleetConfig -> Value Text
instanceFleetType :: InstanceFleetConfig -> Value Text
instanceTypeConfigs :: InstanceFleetConfig -> Maybe [InstanceTypeConfigProperty]
launchSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetProvisioningSpecificationsProperty
name :: InstanceFleetConfig -> Maybe (Value Text)
resizeSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
targetSpotCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
= InstanceFleetConfig {instanceFleetType :: Value Text
instanceFleetType = PropertyType "InstanceFleetType" InstanceFleetConfig
Value Text
newValue, Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
Value Text
haddock_workaround_ :: ()
clusterId :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
haddock_workaround_ :: ()
clusterId :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
instance Property "InstanceTypeConfigs" InstanceFleetConfig where
type PropertyType "InstanceTypeConfigs" InstanceFleetConfig = [InstanceTypeConfigProperty]
set :: PropertyType "InstanceTypeConfigs" InstanceFleetConfig
-> InstanceFleetConfig -> InstanceFleetConfig
set PropertyType "InstanceTypeConfigs" InstanceFleetConfig
newValue InstanceFleetConfig {Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
Value Text
haddock_workaround_ :: InstanceFleetConfig -> ()
clusterId :: InstanceFleetConfig -> Value Text
instanceFleetType :: InstanceFleetConfig -> Value Text
instanceTypeConfigs :: InstanceFleetConfig -> Maybe [InstanceTypeConfigProperty]
launchSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetProvisioningSpecificationsProperty
name :: InstanceFleetConfig -> Maybe (Value Text)
resizeSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
targetSpotCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
= InstanceFleetConfig
{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" InstanceFleetConfig
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
Value Text
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
instance Property "LaunchSpecifications" InstanceFleetConfig where
type PropertyType "LaunchSpecifications" InstanceFleetConfig = InstanceFleetProvisioningSpecificationsProperty
set :: PropertyType "LaunchSpecifications" InstanceFleetConfig
-> InstanceFleetConfig -> InstanceFleetConfig
set PropertyType "LaunchSpecifications" InstanceFleetConfig
newValue InstanceFleetConfig {Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
Value Text
haddock_workaround_ :: InstanceFleetConfig -> ()
clusterId :: InstanceFleetConfig -> Value Text
instanceFleetType :: InstanceFleetConfig -> Value Text
instanceTypeConfigs :: InstanceFleetConfig -> Maybe [InstanceTypeConfigProperty]
launchSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetProvisioningSpecificationsProperty
name :: InstanceFleetConfig -> Maybe (Value Text)
resizeSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
targetSpotCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
= InstanceFleetConfig
{launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
launchSpecifications = InstanceFleetProvisioningSpecificationsProperty
-> Maybe InstanceFleetProvisioningSpecificationsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LaunchSpecifications" InstanceFleetConfig
InstanceFleetProvisioningSpecificationsProperty
newValue, Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetResizingSpecificationsProperty
()
Value Text
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
instance Property "Name" InstanceFleetConfig where
type PropertyType "Name" InstanceFleetConfig = Value Prelude.Text
set :: PropertyType "Name" InstanceFleetConfig
-> InstanceFleetConfig -> InstanceFleetConfig
set PropertyType "Name" InstanceFleetConfig
newValue InstanceFleetConfig {Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
Value Text
haddock_workaround_ :: InstanceFleetConfig -> ()
clusterId :: InstanceFleetConfig -> Value Text
instanceFleetType :: InstanceFleetConfig -> Value Text
instanceTypeConfigs :: InstanceFleetConfig -> Maybe [InstanceTypeConfigProperty]
launchSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetProvisioningSpecificationsProperty
name :: InstanceFleetConfig -> Maybe (Value Text)
resizeSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
targetSpotCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
= InstanceFleetConfig {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" InstanceFleetConfig
Value Text
newValue, Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
Value Text
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
instance Property "ResizeSpecifications" InstanceFleetConfig where
type PropertyType "ResizeSpecifications" InstanceFleetConfig = InstanceFleetResizingSpecificationsProperty
set :: PropertyType "ResizeSpecifications" InstanceFleetConfig
-> InstanceFleetConfig -> InstanceFleetConfig
set PropertyType "ResizeSpecifications" InstanceFleetConfig
newValue InstanceFleetConfig {Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
Value Text
haddock_workaround_ :: InstanceFleetConfig -> ()
clusterId :: InstanceFleetConfig -> Value Text
instanceFleetType :: InstanceFleetConfig -> Value Text
instanceTypeConfigs :: InstanceFleetConfig -> Maybe [InstanceTypeConfigProperty]
launchSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetProvisioningSpecificationsProperty
name :: InstanceFleetConfig -> Maybe (Value Text)
resizeSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
targetSpotCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
= InstanceFleetConfig
{resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
resizeSpecifications = InstanceFleetResizingSpecificationsProperty
-> Maybe InstanceFleetResizingSpecificationsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ResizeSpecifications" InstanceFleetConfig
InstanceFleetResizingSpecificationsProperty
newValue, Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
()
Value Text
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
instance Property "TargetOnDemandCapacity" InstanceFleetConfig where
type PropertyType "TargetOnDemandCapacity" InstanceFleetConfig = Value Prelude.Integer
set :: PropertyType "TargetOnDemandCapacity" InstanceFleetConfig
-> InstanceFleetConfig -> InstanceFleetConfig
set PropertyType "TargetOnDemandCapacity" InstanceFleetConfig
newValue InstanceFleetConfig {Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
Value Text
haddock_workaround_ :: InstanceFleetConfig -> ()
clusterId :: InstanceFleetConfig -> Value Text
instanceFleetType :: InstanceFleetConfig -> Value Text
instanceTypeConfigs :: InstanceFleetConfig -> Maybe [InstanceTypeConfigProperty]
launchSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetProvisioningSpecificationsProperty
name :: InstanceFleetConfig -> Maybe (Value Text)
resizeSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
targetSpotCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
= InstanceFleetConfig
{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" InstanceFleetConfig
Value Integer
newValue, Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
Value Text
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetSpotCapacity :: Maybe (Value Integer)
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetSpotCapacity :: Maybe (Value Integer)
..}
instance Property "TargetSpotCapacity" InstanceFleetConfig where
type PropertyType "TargetSpotCapacity" InstanceFleetConfig = Value Prelude.Integer
set :: PropertyType "TargetSpotCapacity" InstanceFleetConfig
-> InstanceFleetConfig -> InstanceFleetConfig
set PropertyType "TargetSpotCapacity" InstanceFleetConfig
newValue InstanceFleetConfig {Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
Value Text
haddock_workaround_ :: InstanceFleetConfig -> ()
clusterId :: InstanceFleetConfig -> Value Text
instanceFleetType :: InstanceFleetConfig -> Value Text
instanceTypeConfigs :: InstanceFleetConfig -> Maybe [InstanceTypeConfigProperty]
launchSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetProvisioningSpecificationsProperty
name :: InstanceFleetConfig -> Maybe (Value Text)
resizeSpecifications :: InstanceFleetConfig
-> Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
targetSpotCapacity :: InstanceFleetConfig -> Maybe (Value Integer)
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
targetSpotCapacity :: Maybe (Value Integer)
..}
= InstanceFleetConfig
{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" InstanceFleetConfig
Value Integer
newValue, Maybe [InstanceTypeConfigProperty]
Maybe (Value Integer)
Maybe (Value Text)
Maybe InstanceFleetProvisioningSpecificationsProperty
Maybe InstanceFleetResizingSpecificationsProperty
()
Value Text
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
haddock_workaround_ :: ()
clusterId :: Value Text
instanceFleetType :: Value Text
instanceTypeConfigs :: Maybe [InstanceTypeConfigProperty]
launchSpecifications :: Maybe InstanceFleetProvisioningSpecificationsProperty
name :: Maybe (Value Text)
resizeSpecifications :: Maybe InstanceFleetResizingSpecificationsProperty
targetOnDemandCapacity :: Maybe (Value Integer)
..}