@Stability(value=Stable)
public static interface EmrCreateCluster.InstanceFleetConfigProperty
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;
InstanceFleetConfigProperty instanceFleetConfigProperty = InstanceFleetConfigProperty.builder()
.instanceFleetType(EmrCreateCluster.getInstanceRoleType().MASTER)
// the properties below are optional
.instanceTypeConfigs(List.of(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()))
.launchSpecifications(InstanceFleetProvisioningSpecificationsProperty.builder()
.spotSpecification(SpotProvisioningSpecificationProperty.builder()
.timeoutAction(EmrCreateCluster.getSpotTimeoutAction().SWITCH_TO_ON_DEMAND)
.timeoutDurationMinutes(123)
// the properties below are optional
.allocationStrategy(EmrCreateCluster.getSpotAllocationStrategy().CAPACITY_OPTIMIZED)
.blockDurationMinutes(123)
.build())
.build())
.name("name")
.targetOnDemandCapacity(123)
.targetSpotCapacity(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
EmrCreateCluster.InstanceFleetConfigProperty.Builder
A builder for
EmrCreateCluster.InstanceFleetConfigProperty |
static class |
EmrCreateCluster.InstanceFleetConfigProperty.Jsii$Proxy
An implementation for
EmrCreateCluster.InstanceFleetConfigProperty |
| Modifier and Type | Method and Description |
|---|---|
static EmrCreateCluster.InstanceFleetConfigProperty.Builder |
builder() |
EmrCreateCluster.InstanceRoleType |
getInstanceFleetType()
The node type that the instance fleet hosts.
|
default List<EmrCreateCluster.InstanceTypeConfigProperty> |
getInstanceTypeConfigs()
The instance type configurations that define the EC2 instances in the instance fleet.
|
default EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty |
getLaunchSpecifications()
The launch specification for the instance fleet.
|
default String |
getName()
The friendly name of the instance fleet.
|
default Number |
getTargetOnDemandCapacity()
The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
|
default Number |
getTargetSpotCapacity()
The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
|
@Stability(value=Stable) @NotNull EmrCreateCluster.InstanceRoleType getInstanceFleetType()
Valid values are MASTER,CORE,and TASK.
@Stability(value=Stable) @Nullable default List<EmrCreateCluster.InstanceTypeConfigProperty> getInstanceTypeConfigs()
Default: No instanceTpeConfigs
@Stability(value=Stable) @Nullable default EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty getLaunchSpecifications()
Default: No launchSpecifications
@Stability(value=Stable) @Nullable default String getName()
Default: No name
@Stability(value=Stable) @Nullable default Number getTargetOnDemandCapacity()
Default: No targetOnDemandCapacity
@Stability(value=Stable) @Nullable default Number getTargetSpotCapacity()
Default: No targetSpotCapacity
@Stability(value=Stable) static EmrCreateCluster.InstanceFleetConfigProperty.Builder builder()
Copyright © 2023. All rights reserved.