Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data InstanceTypeConfig = InstanceTypeConfig' {}
- newInstanceTypeConfig :: Text -> InstanceTypeConfig
- instanceTypeConfig_ebsConfiguration :: Lens' InstanceTypeConfig (Maybe EbsConfiguration)
- instanceTypeConfig_bidPrice :: Lens' InstanceTypeConfig (Maybe Text)
- instanceTypeConfig_weightedCapacity :: Lens' InstanceTypeConfig (Maybe Natural)
- instanceTypeConfig_configurations :: Lens' InstanceTypeConfig (Maybe [Configuration])
- instanceTypeConfig_customAmiId :: Lens' InstanceTypeConfig (Maybe Text)
- instanceTypeConfig_bidPriceAsPercentageOfOnDemandPrice :: Lens' InstanceTypeConfig (Maybe Double)
- instanceTypeConfig_instanceType :: Lens' InstanceTypeConfig Text
Documentation
data InstanceTypeConfig Source #
An instance type configuration for each instance type in an instance fleet, which determines the EC2 instances Amazon EMR attempts to provision to fulfill On-Demand and Spot target capacities. When you use an allocation strategy, you can include a maximum of 30 instance type configurations for a fleet. For more information about how to use an allocation strategy, see Configure Instance Fleets. Without an allocation strategy, you may specify a maximum of five instance type configurations for a fleet.
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
See: newInstanceTypeConfig
smart constructor.
InstanceTypeConfig' | |
|
Instances
newInstanceTypeConfig Source #
Create a value of InstanceTypeConfig
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:ebsConfiguration:InstanceTypeConfig'
, instanceTypeConfig_ebsConfiguration
- The configuration of Amazon Elastic Block Store (Amazon EBS) attached to
each instance as defined by InstanceType
.
$sel:bidPrice:InstanceTypeConfig'
, instanceTypeConfig_bidPrice
- The bid price for each EC2 Spot Instance type as defined by
InstanceType
. Expressed in USD. If neither BidPrice
nor
BidPriceAsPercentageOfOnDemandPrice
is provided,
BidPriceAsPercentageOfOnDemandPrice
defaults to 100%.
$sel:weightedCapacity:InstanceTypeConfig'
, instanceTypeConfig_weightedCapacity
- The number of units that a provisioned instance of this type provides
toward fulfilling the target capacities defined in InstanceFleetConfig.
This value is 1 for a master instance fleet, and must be 1 or greater
for core and task instance fleets. Defaults to 1 if not specified.
$sel:configurations:InstanceTypeConfig'
, instanceTypeConfig_configurations
- A configuration classification that applies when provisioning cluster
instances, which can include configurations for applications and
software that run on the cluster.
$sel:customAmiId:InstanceTypeConfig'
, instanceTypeConfig_customAmiId
- The custom AMI ID to use for the instance type.
$sel:bidPriceAsPercentageOfOnDemandPrice:InstanceTypeConfig'
, instanceTypeConfig_bidPriceAsPercentageOfOnDemandPrice
- The bid price, as a percentage of On-Demand price, for each EC2 Spot
Instance as defined by InstanceType
. Expressed as a number (for
example, 20 specifies 20%). If neither BidPrice
nor
BidPriceAsPercentageOfOnDemandPrice
is provided,
BidPriceAsPercentageOfOnDemandPrice
defaults to 100%.
$sel:instanceType:InstanceTypeConfig'
, instanceTypeConfig_instanceType
- An EC2 instance type, such as m3.xlarge
.
instanceTypeConfig_ebsConfiguration :: Lens' InstanceTypeConfig (Maybe EbsConfiguration) Source #
The configuration of Amazon Elastic Block Store (Amazon EBS) attached to
each instance as defined by InstanceType
.
instanceTypeConfig_bidPrice :: Lens' InstanceTypeConfig (Maybe Text) Source #
The bid price for each EC2 Spot Instance type as defined by
InstanceType
. Expressed in USD. If neither BidPrice
nor
BidPriceAsPercentageOfOnDemandPrice
is provided,
BidPriceAsPercentageOfOnDemandPrice
defaults to 100%.
instanceTypeConfig_weightedCapacity :: Lens' InstanceTypeConfig (Maybe Natural) Source #
The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig. This value is 1 for a master instance fleet, and must be 1 or greater for core and task instance fleets. Defaults to 1 if not specified.
instanceTypeConfig_configurations :: Lens' InstanceTypeConfig (Maybe [Configuration]) Source #
A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.
instanceTypeConfig_customAmiId :: Lens' InstanceTypeConfig (Maybe Text) Source #
The custom AMI ID to use for the instance type.
instanceTypeConfig_bidPriceAsPercentageOfOnDemandPrice :: Lens' InstanceTypeConfig (Maybe Double) Source #
The bid price, as a percentage of On-Demand price, for each EC2 Spot
Instance as defined by InstanceType
. Expressed as a number (for
example, 20 specifies 20%). If neither BidPrice
nor
BidPriceAsPercentageOfOnDemandPrice
is provided,
BidPriceAsPercentageOfOnDemandPrice
defaults to 100%.
instanceTypeConfig_instanceType :: Lens' InstanceTypeConfig Text Source #
An EC2 instance type, such as m3.xlarge
.