public static final class CfnCluster.InstanceGroupConfigProperty.Builder
extends java.lang.Object
CfnCluster.InstanceGroupConfigProperty
Constructor and Description |
---|
Builder() |
public CfnCluster.InstanceGroupConfigProperty.Builder instanceCount(java.lang.Number instanceCount)
CfnCluster.InstanceGroupConfigProperty.getInstanceCount()
instanceCount
- Target number of instances for the instance group. This parameter is required.this
public CfnCluster.InstanceGroupConfigProperty.Builder instanceType(java.lang.String instanceType)
CfnCluster.InstanceGroupConfigProperty.getInstanceType()
instanceType
- The EC2 instance type for all instances in the instance group. This parameter is required.this
public CfnCluster.InstanceGroupConfigProperty.Builder autoScalingPolicy(IResolvable autoScalingPolicy)
CfnCluster.InstanceGroupConfigProperty.getAutoScalingPolicy()
autoScalingPolicy
- `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 . The automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. Only core and task instance groups can use automatic scaling policies. For more information, see [Using Automatic Scaling in Amazon EMR](https://docs.aws.amazon.com//emr/latest/ManagementGuide/emr-automatic-scaling.html) .this
public CfnCluster.InstanceGroupConfigProperty.Builder autoScalingPolicy(CfnCluster.AutoScalingPolicyProperty autoScalingPolicy)
CfnCluster.InstanceGroupConfigProperty.getAutoScalingPolicy()
autoScalingPolicy
- `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 . The automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. Only core and task instance groups can use automatic scaling policies. For more information, see [Using Automatic Scaling in Amazon EMR](https://docs.aws.amazon.com//emr/latest/ManagementGuide/emr-automatic-scaling.html) .this
public CfnCluster.InstanceGroupConfigProperty.Builder bidPrice(java.lang.String bidPrice)
CfnCluster.InstanceGroupConfigProperty.getBidPrice()
bidPrice
- If specified, indicates that the instance group uses Spot Instances.
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.this
public CfnCluster.InstanceGroupConfigProperty.Builder configurations(IResolvable configurations)
CfnCluster.InstanceGroupConfigProperty.getConfigurations()
configurations
- > Amazon EMR releases 4.x or later.
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).this
public CfnCluster.InstanceGroupConfigProperty.Builder configurations(java.util.List<? extends java.lang.Object> configurations)
CfnCluster.InstanceGroupConfigProperty.getConfigurations()
configurations
- > Amazon EMR releases 4.x or later.
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).this
public CfnCluster.InstanceGroupConfigProperty.Builder customAmiId(java.lang.String customAmiId)
CfnCluster.InstanceGroupConfigProperty.getCustomAmiId()
customAmiId
- The custom AMI ID to use for the provisioned instance group.this
public CfnCluster.InstanceGroupConfigProperty.Builder ebsConfiguration(IResolvable ebsConfiguration)
CfnCluster.InstanceGroupConfigProperty.getEbsConfiguration()
ebsConfiguration
- EBS configurations that will be attached to each EC2 instance in the instance group.this
public CfnCluster.InstanceGroupConfigProperty.Builder ebsConfiguration(CfnCluster.EbsConfigurationProperty ebsConfiguration)
CfnCluster.InstanceGroupConfigProperty.getEbsConfiguration()
ebsConfiguration
- EBS configurations that will be attached to each EC2 instance in the instance group.this
public CfnCluster.InstanceGroupConfigProperty.Builder market(java.lang.String market)
CfnCluster.InstanceGroupConfigProperty.getMarket()
market
- Market type of the EC2 instances used to create a cluster node.this
public CfnCluster.InstanceGroupConfigProperty.Builder name(java.lang.String name)
CfnCluster.InstanceGroupConfigProperty.getName()
name
- Friendly name given to the instance group.this
public CfnCluster.InstanceGroupConfigProperty build()
CfnCluster.InstanceGroupConfigProperty
java.lang.NullPointerException
- if any required attribute was not provided