@Stability(value=Stable)
public static interface CfnCluster.InstanceTypeConfigProperty
extends software.amazon.jsii.JsiiSerializable
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)
.build())
// the properties below are optional
.volumesPerInstance(123)
.build()))
.ebsOptimized(false)
.build())
.weightedCapacity(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnCluster.InstanceTypeConfigProperty.Builder
A builder for
CfnCluster.InstanceTypeConfigProperty |
static class |
CfnCluster.InstanceTypeConfigProperty.Jsii$Proxy
An implementation for
CfnCluster.InstanceTypeConfigProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnCluster.InstanceTypeConfigProperty.Builder |
builder() |
default String |
getBidPrice()
The bid price for each EC2 Spot Instance type as defined by `InstanceType` .
|
default Number |
getBidPriceAsPercentageOfOnDemandPrice()
The bid price, as a percentage of On-Demand price, for each EC2 Spot Instance as defined by `InstanceType` .
|
default Object |
getConfigurations()
A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.
|
default String |
getCustomAmiId()
The custom AMI ID to use for the instance type.
|
default Object |
getEbsConfiguration()
The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by `InstanceType` .
|
String |
getInstanceType()
An EC2 instance type, such as `m3.xlarge` .
|
default Number |
getWeightedCapacity()
The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in `InstanceFleetConfig` .
|
@Stability(value=Stable) @NotNull String getInstanceType()
@Stability(value=Stable) @Nullable default String getBidPrice()
Expressed in USD. If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.
@Stability(value=Stable) @Nullable default Number getBidPriceAsPercentageOfOnDemandPrice()
Expressed as a number (for example, 20 specifies 20%). If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.
@Stability(value=Stable) @Nullable default Object getConfigurations()
@Stability(value=Stable) @Nullable default String getCustomAmiId()
@Stability(value=Stable) @Nullable default Object getEbsConfiguration()
@Stability(value=Stable) @Nullable default Number getWeightedCapacity()
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.
@Stability(value=Stable) static CfnCluster.InstanceTypeConfigProperty.Builder builder()
Copyright © 2022. All rights reserved.