@Stability(value=Stable)
public static interface EmrCreateCluster.InstanceTypeConfigProperty
extends software.amazon.jsii.JsiiSerializable
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.stepfunctions.tasks.*;
import software.amazon.awscdk.core.*;
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().GP2)
// 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 |
EmrCreateCluster.InstanceTypeConfigProperty.Builder
A builder for
EmrCreateCluster.InstanceTypeConfigProperty |
static class |
EmrCreateCluster.InstanceTypeConfigProperty.Jsii$Proxy
An implementation for
EmrCreateCluster.InstanceTypeConfigProperty |
| Modifier and Type | Method and Description |
|---|---|
static EmrCreateCluster.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.
|
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 EmrCreateCluster.EbsConfigurationProperty |
getEbsConfiguration()
The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by InstanceType.
|
String |
getInstanceType()
An EC2 instance type.
|
default Number |
getWeightedCapacity()
The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in the InstanceFleetConfig.
|
@Stability(value=Stable) @NotNull String getInstanceType()
@Stability(value=Stable) @Nullable default String getBidPrice()
Expressed in USD.
Default: - None
@Stability(value=Stable) @Nullable default Number getBidPriceAsPercentageOfOnDemandPrice()
Default: - None
@Stability(value=Stable) @Nullable default List<EmrCreateCluster.ConfigurationProperty> getConfigurations()
Default: - None
@Stability(value=Stable) @Nullable default EmrCreateCluster.EbsConfigurationProperty getEbsConfiguration()
Default: - None
@Stability(value=Stable) @Nullable default Number getWeightedCapacity()
Default: - None
@Stability(value=Stable) static EmrCreateCluster.InstanceTypeConfigProperty.Builder builder()
Copyright © 2022. All rights reserved.