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:
  • Method Details

    • getInstanceType

      @Stability(Stable) @NotNull String getInstanceType()
      An EC2 instance type.
    • getBidPrice

      @Stability(Stable) @Nullable default String getBidPrice()
      The bid price for each EC2 Spot instance type as defined by InstanceType. Expressed in USD.

      Cannot specify both bidPrice and bidPriceAsPercentageOfOnDemandPrice.

      Default: - None

    • getBidPriceAsPercentageOfOnDemandPrice

      @Stability(Stable) @Nullable default Number getBidPriceAsPercentageOfOnDemandPrice()
      The bid price, as a percentage of On-Demand price.

      Cannot specify both bidPrice and bidPriceAsPercentageOfOnDemandPrice.

      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

      @Stability(Stable) @Nullable default Number 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

      @Stability(Stable) static EmrCreateCluster.InstanceTypeConfigProperty.Builder builder()
      Returns:
      a EmrCreateCluster.InstanceTypeConfigProperty.Builder of EmrCreateCluster.InstanceTypeConfigProperty