@Stability(value=Stable)
public static interface CfnCluster.InstanceGroupConfigProperty
extends software.amazon.jsii.JsiiSerializable
A cluster can not use both instance groups and instance fleets. For more information, see Create a Cluster with Instance Fleets or Uniform Instance Groups in the Amazon EMR Management Guide .
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.emr.*;
ConfigurationProperty configurationProperty_;
InstanceGroupConfigProperty instanceGroupConfigProperty = InstanceGroupConfigProperty.builder()
.instanceCount(123)
.instanceType("instanceType")
// the properties below are optional
.autoScalingPolicy(AutoScalingPolicyProperty.builder()
.constraints(ScalingConstraintsProperty.builder()
.maxCapacity(123)
.minCapacity(123)
.build())
.rules(List.of(ScalingRuleProperty.builder()
.action(ScalingActionProperty.builder()
.simpleScalingPolicyConfiguration(SimpleScalingPolicyConfigurationProperty.builder()
.scalingAdjustment(123)
// the properties below are optional
.adjustmentType("adjustmentType")
.coolDown(123)
.build())
// the properties below are optional
.market("market")
.build())
.name("name")
.trigger(ScalingTriggerProperty.builder()
.cloudWatchAlarmDefinition(CloudWatchAlarmDefinitionProperty.builder()
.comparisonOperator("comparisonOperator")
.metricName("metricName")
.period(123)
.threshold(123)
// the properties below are optional
.dimensions(List.of(MetricDimensionProperty.builder()
.key("key")
.value("value")
.build()))
.evaluationPeriods(123)
.namespace("namespace")
.statistic("statistic")
.unit("unit")
.build())
.build())
// the properties below are optional
.description("description")
.build()))
.build())
.bidPrice("bidPrice")
.configurations(List.of(ConfigurationProperty.builder()
.classification("classification")
.configurationProperties(Map.of(
"configurationPropertiesKey", "configurationProperties"))
.configurations(List.of(configurationProperty_))
.build()))
.customAmiId("customAmiId")
.ebsConfiguration(EbsConfigurationProperty.builder()
.ebsBlockDeviceConfigs(List.of(EbsBlockDeviceConfigProperty.builder()
.volumeSpecification(VolumeSpecificationProperty.builder()
.sizeInGb(123)
.volumeType("volumeType")
// the properties below are optional
.iops(123)
.build())
// the properties below are optional
.volumesPerInstance(123)
.build()))
.ebsOptimized(false)
.build())
.market("market")
.name("name")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnCluster.InstanceGroupConfigProperty.Builder
A builder for
CfnCluster.InstanceGroupConfigProperty |
static class |
CfnCluster.InstanceGroupConfigProperty.Jsii$Proxy
An implementation for
CfnCluster.InstanceGroupConfigProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnCluster.InstanceGroupConfigProperty.Builder |
builder() |
default Object |
getAutoScalingPolicy()
`AutoScalingPolicy` is a subproperty of the [InstanceGroupConfig](https://docs.aws.amazon.com//AWSCloudFormation/latest/UserGuide/aws-properties-emr-cluster-jobflowinstancesconfig-instancegroupconfig.html) property type that specifies the constraints and rules of an automatic scaling policy in Amazon EMR .
|
default String |
getBidPrice()
If specified, indicates that the instance group uses Spot Instances.
|
default Object |
getConfigurations()
> Amazon EMR releases 4.x or later.
|
default String |
getCustomAmiId()
The custom AMI ID to use for the provisioned instance group.
|
default Object |
getEbsConfiguration()
EBS configurations that will be attached to each EC2 instance in the instance group.
|
Number |
getInstanceCount()
Target number of instances for the instance group.
|
String |
getInstanceType()
The EC2 instance type for all instances in the instance group.
|
default String |
getMarket()
Market type of the EC2 instances used to create a cluster node.
|
default String |
getName()
Friendly name given to the instance group.
|
@Stability(value=Stable) @NotNull Number getInstanceCount()
@Stability(value=Stable) @NotNull String getInstanceType()
@Stability(value=Stable) @Nullable default Object getAutoScalingPolicy()
@Stability(value=Stable) @Nullable default String getBidPrice()
This is the maximum price you are willing to pay for Spot Instances. Specify OnDemandPrice to set the amount equal to the On-Demand price, or specify an amount in USD.
@Stability(value=Stable) @Nullable default Object getConfigurations()
The list of configurations supplied for an EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
@Stability(value=Stable) @Nullable default String getCustomAmiId()
@Stability(value=Stable) @Nullable default Object getEbsConfiguration()
@Stability(value=Stable) @Nullable default String getMarket()
@Stability(value=Stable) @Nullable default String getName()
@Stability(value=Stable) static CfnCluster.InstanceGroupConfigProperty.Builder builder()
Copyright © 2022. All rights reserved.