public static interface EmrCreateCluster.InstanceFleetConfigProperty
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 java.util.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 java.lang.String |
getName()
The friendly name of the instance fleet.
|
default java.lang.Number |
getTargetOnDemandCapacity()
The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.
|
default java.lang.Number |
getTargetSpotCapacity()
The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.
|
EmrCreateCluster.InstanceRoleType getInstanceFleetType()
Valid values are MASTER,CORE,and TASK.
default java.util.List<EmrCreateCluster.InstanceTypeConfigProperty> getInstanceTypeConfigs()
Default: No instanceTpeConfigs
default EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty getLaunchSpecifications()
Default: No launchSpecifications
default java.lang.String getName()
Default: No name
default java.lang.Number getTargetOnDemandCapacity()
Default: No targetOnDemandCapacity
default java.lang.Number getTargetSpotCapacity()
Default: No targetSpotCapacity
static EmrCreateCluster.InstanceFleetConfigProperty.Builder builder()