libZSservicesZSamazonka-emrZSamazonka-emr
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.EMR.Types.InstanceFleetConfig

Description

 
Synopsis

Documentation

data InstanceFleetConfig Source #

The configuration that defines an instance fleet.

The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.

See: newInstanceFleetConfig smart constructor.

Constructors

InstanceFleetConfig' 

Fields

  • instanceTypeConfigs :: Maybe [InstanceTypeConfig]

    The instance type configurations that define the EC2 instances in the instance fleet.

  • targetOnDemandCapacity :: Maybe Natural

    The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand Instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an On-Demand Instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units.

    If not specified or set to 0, only Spot Instances are provisioned for the instance fleet using TargetSpotCapacity. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

  • name :: Maybe Text

    The friendly name of the instance fleet.

  • targetSpotCapacity :: Maybe Natural

    The target capacity of Spot units for the instance fleet, which determines how many Spot Instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot Instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units.

    If not specified or set to 0, only On-Demand Instances are provisioned for the instance fleet. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

  • launchSpecifications :: Maybe InstanceFleetProvisioningSpecifications

    The launch specification for the instance fleet.

  • instanceFleetType :: InstanceFleetType

    The node type that the instance fleet hosts. Valid values are MASTER, CORE, and TASK.

Instances

Instances details
Eq InstanceFleetConfig Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceFleetConfig

Read InstanceFleetConfig Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceFleetConfig

Show InstanceFleetConfig Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceFleetConfig

Generic InstanceFleetConfig Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceFleetConfig

Associated Types

type Rep InstanceFleetConfig :: Type -> Type #

NFData InstanceFleetConfig Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceFleetConfig

Methods

rnf :: InstanceFleetConfig -> () #

Hashable InstanceFleetConfig Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceFleetConfig

ToJSON InstanceFleetConfig Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceFleetConfig

type Rep InstanceFleetConfig Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceFleetConfig

type Rep InstanceFleetConfig = D1 ('MetaData "InstanceFleetConfig" "Amazonka.EMR.Types.InstanceFleetConfig" "libZSservicesZSamazonka-emrZSamazonka-emr" 'False) (C1 ('MetaCons "InstanceFleetConfig'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "instanceTypeConfigs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InstanceTypeConfig])) :*: (S1 ('MetaSel ('Just "targetOnDemandCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "targetSpotCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "launchSpecifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceFleetProvisioningSpecifications)) :*: S1 ('MetaSel ('Just "instanceFleetType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 InstanceFleetType)))))

newInstanceFleetConfig Source #

Create a value of InstanceFleetConfig with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:instanceTypeConfigs:InstanceFleetConfig', instanceFleetConfig_instanceTypeConfigs - The instance type configurations that define the EC2 instances in the instance fleet.

$sel:targetOnDemandCapacity:InstanceFleetConfig', instanceFleetConfig_targetOnDemandCapacity - The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand Instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an On-Demand Instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units.

If not specified or set to 0, only Spot Instances are provisioned for the instance fleet using TargetSpotCapacity. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

$sel:name:InstanceFleetConfig', instanceFleetConfig_name - The friendly name of the instance fleet.

$sel:targetSpotCapacity:InstanceFleetConfig', instanceFleetConfig_targetSpotCapacity - The target capacity of Spot units for the instance fleet, which determines how many Spot Instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot Instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units.

If not specified or set to 0, only On-Demand Instances are provisioned for the instance fleet. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

$sel:launchSpecifications:InstanceFleetConfig', instanceFleetConfig_launchSpecifications - The launch specification for the instance fleet.

$sel:instanceFleetType:InstanceFleetConfig', instanceFleetConfig_instanceFleetType - The node type that the instance fleet hosts. Valid values are MASTER, CORE, and TASK.

instanceFleetConfig_instanceTypeConfigs :: Lens' InstanceFleetConfig (Maybe [InstanceTypeConfig]) Source #

The instance type configurations that define the EC2 instances in the instance fleet.

instanceFleetConfig_targetOnDemandCapacity :: Lens' InstanceFleetConfig (Maybe Natural) Source #

The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand Instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an On-Demand Instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units.

If not specified or set to 0, only Spot Instances are provisioned for the instance fleet using TargetSpotCapacity. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

instanceFleetConfig_name :: Lens' InstanceFleetConfig (Maybe Text) Source #

The friendly name of the instance fleet.

instanceFleetConfig_targetSpotCapacity :: Lens' InstanceFleetConfig (Maybe Natural) Source #

The target capacity of Spot units for the instance fleet, which determines how many Spot Instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot Instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot Instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units.

If not specified or set to 0, only On-Demand Instances are provisioned for the instance fleet. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.

instanceFleetConfig_instanceFleetType :: Lens' InstanceFleetConfig InstanceFleetType Source #

The node type that the instance fleet hosts. Valid values are MASTER, CORE, and TASK.