Interface EmrCreateCluster.InstanceTypeConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EmrCreateCluster.InstanceTypeConfigProperty.Jsii$Proxy
- Enclosing class:
EmrCreateCluster
@Stability(Stable)
public static interface EmrCreateCluster.InstanceTypeConfigProperty
extends software.amazon.jsii.JsiiSerializable
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.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.*; import software.amazon.awscdk.services.stepfunctions.tasks.*; ConfigurationProperty configurationProperty_; Size size; InstanceTypeConfigProperty instanceTypeConfigProperty = InstanceTypeConfigProperty.builder() .instanceType("instanceType") // the properties below are optional .bidPrice("bidPrice") .bidPriceAsPercentageOfOnDemandPrice(123) .configurations(List.of(ConfigurationProperty.builder() .classification("classification") .configurations(List.of(configurationProperty_)) .properties(Map.of( "propertiesKey", "properties")) .build())) .ebsConfiguration(EbsConfigurationProperty.builder() .ebsBlockDeviceConfigs(List.of(EbsBlockDeviceConfigProperty.builder() .volumeSpecification(VolumeSpecificationProperty.builder() .volumeSize(size) .volumeType(EmrCreateCluster.getEbsBlockDeviceVolumeType().GP3) // the properties below are optional .iops(123) .build()) // the properties below are optional .volumesPerInstance(123) .build())) .ebsOptimized(false) .build()) .weightedCapacity(123) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEmrCreateCluster.InstanceTypeConfigProperty
static final class
An implementation forEmrCreateCluster.InstanceTypeConfigProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The bid price for each EC2 Spot instance type as defined by InstanceType.default Number
The bid price, as a percentage of On-Demand price.A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by InstanceType.An EC2 instance type.default Number
The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in the InstanceFleetConfig.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInstanceType
An EC2 instance type. -
getBidPrice
The bid price for each EC2 Spot instance type as defined by InstanceType. Expressed in USD.Cannot specify both
bidPrice
andbidPriceAsPercentageOfOnDemandPrice
.Default: - None
-
getBidPriceAsPercentageOfOnDemandPrice
The bid price, as a percentage of On-Demand price.Cannot specify both
bidPrice
andbidPriceAsPercentageOfOnDemandPrice
.Default: - None
-
getConfigurations
@Stability(Stable) @Nullable default List<EmrCreateCluster.ConfigurationProperty> getConfigurations()A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.Default: - None
-
getEbsConfiguration
@Stability(Stable) @Nullable default EmrCreateCluster.EbsConfigurationProperty getEbsConfiguration()The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by InstanceType.Default: - None
-
getWeightedCapacity
The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in the InstanceFleetConfig.Default: - None
-
builder
-