Interface CfnCluster.InstanceTypeConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCluster.InstanceTypeConfigProperty.Jsii$Proxy
- Enclosing class:
CfnCluster
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 software.amazon.awscdk.services.emr.*;
ConfigurationProperty configurationProperty_;
InstanceTypeConfigProperty instanceTypeConfigProperty = InstanceTypeConfigProperty.builder()
.instanceType("instanceType")
// the properties below are optional
.bidPrice("bidPrice")
.bidPriceAsPercentageOfOnDemandPrice(123)
.configurations(List.of(ConfigurationProperty.builder()
.classification("classification")
.configurationProperties(Map.of(
"configurationPropertiesKey", "configurationProperties"))
.configurations(List.of(configurationProperty_))
.build()))
.customAmiId("customAmiId")
.ebsConfiguration(EbsConfigurationProperty.builder()
.ebsBlockDeviceConfigs(List.of(EbsBlockDeviceConfigProperty.builder()
.volumeSpecification(VolumeSpecificationProperty.builder()
.sizeInGb(123)
.volumeType("volumeType")
// the properties below are optional
.iops(123)
.throughput(123)
.build())
// the properties below are optional
.volumesPerInstance(123)
.build()))
.ebsOptimized(false)
.build())
.priority(123)
.weightedCapacity(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnCluster.InstanceTypeConfigPropertystatic final classAn implementation forCfnCluster.InstanceTypeConfigProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe bid price for each Amazon EC2 Spot Instance type as defined byInstanceType.default NumberThe bid price, as a percentage of On-Demand price, for each Amazon EC2 Spot Instance as defined byInstanceType.default ObjectA configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.default StringThe custom AMI ID to use for the instance type.default ObjectThe configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined byInstanceType.An Amazon EC2 instance type, such asm3.xlarge.default NumberThe priority at which Amazon EMR launches the Amazon EC2 instances with this instance type.default NumberThe number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined inInstanceFleetConfig.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInstanceType
An Amazon EC2 instance type, such asm3.xlarge.- See Also:
-
getBidPrice
The bid price for each Amazon EC2 Spot Instance type as defined byInstanceType.Expressed in USD. If neither
BidPricenorBidPriceAsPercentageOfOnDemandPriceis provided,BidPriceAsPercentageOfOnDemandPricedefaults to 100%.- See Also:
-
getBidPriceAsPercentageOfOnDemandPrice
The bid price, as a percentage of On-Demand price, for each Amazon EC2 Spot Instance as defined byInstanceType.Expressed as a number (for example, 20 specifies 20%). If neither
BidPricenorBidPriceAsPercentageOfOnDemandPriceis provided,BidPriceAsPercentageOfOnDemandPricedefaults to 100%.- See Also:
-
getConfigurations
A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnCluster.ConfigurationProperty>- See Also:
-
getCustomAmiId
The custom AMI ID to use for the instance type.- See Also:
-
getEbsConfiguration
The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined byInstanceType.Returns union: either
IResolvableorCfnCluster.EbsConfigurationProperty- See Also:
-
getPriority
The priority at which Amazon EMR launches the Amazon EC2 instances with this instance type.Priority starts at 0, which is the highest priority. Amazon EMR considers the highest priority first.
- See Also:
-
getWeightedCapacity
The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined inInstanceFleetConfig.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.
- See Also:
-
builder
-