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.InstanceTypeConfig

Description

 
Synopsis

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.

Constructors

InstanceTypeConfig' 

Fields

  • ebsConfiguration :: Maybe EbsConfiguration

    The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by InstanceType.

  • bidPrice :: Maybe Text

    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%.

  • weightedCapacity :: Maybe Natural

    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.

  • configurations :: Maybe [Configuration]

    A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.

  • customAmiId :: Maybe Text

    The custom AMI ID to use for the instance type.

  • bidPriceAsPercentageOfOnDemandPrice :: Maybe Double

    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%.

  • instanceType :: Text

    An EC2 instance type, such as m3.xlarge.

Instances

Instances details
Eq InstanceTypeConfig Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceTypeConfig

Read InstanceTypeConfig Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceTypeConfig

Show InstanceTypeConfig Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceTypeConfig

Generic InstanceTypeConfig Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceTypeConfig

Associated Types

type Rep InstanceTypeConfig :: Type -> Type #

NFData InstanceTypeConfig Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceTypeConfig

Methods

rnf :: InstanceTypeConfig -> () #

Hashable InstanceTypeConfig Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceTypeConfig

ToJSON InstanceTypeConfig Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceTypeConfig

type Rep InstanceTypeConfig Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceTypeConfig

type Rep InstanceTypeConfig = D1 ('MetaData "InstanceTypeConfig" "Amazonka.EMR.Types.InstanceTypeConfig" "libZSservicesZSamazonka-emrZSamazonka-emr" 'False) (C1 ('MetaCons "InstanceTypeConfig'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ebsConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EbsConfiguration)) :*: (S1 ('MetaSel ('Just "bidPrice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "weightedCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))) :*: ((S1 ('MetaSel ('Just "configurations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Configuration])) :*: S1 ('MetaSel ('Just "customAmiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "bidPriceAsPercentageOfOnDemandPrice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "instanceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

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.