aws-cdk-lib.aws_emr.CfnCluster.InstanceTypeConfigProperty

interface InstanceTypeConfigProperty

LanguageType name
.NETAmazon.CDK.AWS.EMR.CfnCluster.InstanceTypeConfigProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsemr#CfnCluster_InstanceTypeConfigProperty
Javasoftware.amazon.awscdk.services.emr.CfnCluster.InstanceTypeConfigProperty
Pythonaws_cdk.aws_emr.CfnCluster.InstanceTypeConfigProperty
TypeScript aws-cdk-lib » aws_emr » CfnCluster » InstanceTypeConfigProperty

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

InstanceTypeConfig is a sub-property of InstanceFleetConfig . InstanceTypeConfig determines the EC2 instances that Amazon EMR attempts to provision to fulfill On-Demand and Spot target capacities.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_emr as emr } from 'aws-cdk-lib';

declare const configurationProperty_: emr.CfnCluster.ConfigurationProperty;
const instanceTypeConfigProperty: emr.CfnCluster.InstanceTypeConfigProperty = {
  instanceType: 'instanceType',

  // the properties below are optional
  bidPrice: 'bidPrice',
  bidPriceAsPercentageOfOnDemandPrice: 123,
  configurations: [{
    classification: 'classification',
    configurationProperties: {
      configurationPropertiesKey: 'configurationProperties',
    },
    configurations: [configurationProperty_],
  }],
  customAmiId: 'customAmiId',
  ebsConfiguration: {
    ebsBlockDeviceConfigs: [{
      volumeSpecification: {
        sizeInGb: 123,
        volumeType: 'volumeType',

        // the properties below are optional
        iops: 123,
      },

      // the properties below are optional
      volumesPerInstance: 123,
    }],
    ebsOptimized: false,
  },
  weightedCapacity: 123,
};

Properties

NameTypeDescription
instanceTypestringAn Amazon EC2 instance type, such as m3.xlarge .
bidPrice?stringThe bid price for each Amazon EC2 Spot Instance type as defined by InstanceType .
bidPriceAsPercentageOfOnDemandPrice?numberThe bid price, as a percentage of On-Demand price, for each Amazon EC2 Spot Instance as defined by InstanceType .
configurations?IResolvable | IResolvable | ConfigurationProperty[]A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.
customAmiId?stringThe custom AMI ID to use for the instance type.
ebsConfiguration?IResolvable | EbsConfigurationPropertyThe configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by InstanceType .
weightedCapacity?numberThe number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig .

instanceType

Type: string

An Amazon EC2 instance type, such as m3.xlarge .


bidPrice?

Type: string (optional)

The bid price for each Amazon EC2 Spot Instance type as defined by InstanceType .

Expressed in USD. If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.


bidPriceAsPercentageOfOnDemandPrice?

Type: number (optional)

The bid price, as a percentage of On-Demand price, for each Amazon 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%.


configurations?

Type: IResolvable | IResolvable | ConfigurationProperty[] (optional)

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


customAmiId?

Type: string (optional)

The custom AMI ID to use for the instance type.


ebsConfiguration?

Type: IResolvable | EbsConfigurationProperty (optional)

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


weightedCapacity?

Type: number (optional)

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.