public static final class CfnInstanceGroupConfigProps.Builder
extends java.lang.Object
CfnInstanceGroupConfigProps
Constructor and Description |
---|
Builder() |
public CfnInstanceGroupConfigProps.Builder instanceCount(java.lang.Number instanceCount)
CfnInstanceGroupConfigProps.getInstanceCount()
instanceCount
- Target number of instances for the instance group. This parameter is required.this
public CfnInstanceGroupConfigProps.Builder instanceRole(java.lang.String instanceRole)
CfnInstanceGroupConfigProps.getInstanceRole()
instanceRole
- The role of the instance group in the cluster. This parameter is required.
Allowed Values : TASKthis
public CfnInstanceGroupConfigProps.Builder instanceType(java.lang.String instanceType)
CfnInstanceGroupConfigProps.getInstanceType()
instanceType
- The EC2 instance type for all instances in the instance group. This parameter is required.this
public CfnInstanceGroupConfigProps.Builder jobFlowId(java.lang.String jobFlowId)
CfnInstanceGroupConfigProps.getJobFlowId()
jobFlowId
- The ID of an Amazon EMR cluster that you want to associate this instance group with. This parameter is required.this
public CfnInstanceGroupConfigProps.Builder autoScalingPolicy(IResolvable autoScalingPolicy)
CfnInstanceGroupConfigProps.getAutoScalingPolicy()
autoScalingPolicy
- `AutoScalingPolicy` is a subproperty of `InstanceGroupConfig` .
AutoScalingPolicy
defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. For more information, see Using Automatic Scaling in Amazon EMR in the Amazon EMR Management Guide .this
public CfnInstanceGroupConfigProps.Builder autoScalingPolicy(CfnInstanceGroupConfig.AutoScalingPolicyProperty autoScalingPolicy)
CfnInstanceGroupConfigProps.getAutoScalingPolicy()
autoScalingPolicy
- `AutoScalingPolicy` is a subproperty of `InstanceGroupConfig` .
AutoScalingPolicy
defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. For more information, see Using Automatic Scaling in Amazon EMR in the Amazon EMR Management Guide .this
public CfnInstanceGroupConfigProps.Builder bidPrice(java.lang.String bidPrice)
CfnInstanceGroupConfigProps.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 CfnInstanceGroupConfigProps.Builder configurations(IResolvable configurations)
CfnInstanceGroupConfigProps.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 CfnInstanceGroupConfigProps.Builder configurations(java.util.List<? extends java.lang.Object> configurations)
CfnInstanceGroupConfigProps.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 CfnInstanceGroupConfigProps.Builder customAmiId(java.lang.String customAmiId)
CfnInstanceGroupConfigProps.getCustomAmiId()
customAmiId
- The custom AMI ID to use for the provisioned instance group.this
public CfnInstanceGroupConfigProps.Builder ebsConfiguration(IResolvable ebsConfiguration)
CfnInstanceGroupConfigProps.getEbsConfiguration()
ebsConfiguration
- `EbsConfiguration` determines the EBS volumes to attach to EMR cluster instances.this
public CfnInstanceGroupConfigProps.Builder ebsConfiguration(CfnInstanceGroupConfig.EbsConfigurationProperty ebsConfiguration)
CfnInstanceGroupConfigProps.getEbsConfiguration()
ebsConfiguration
- `EbsConfiguration` determines the EBS volumes to attach to EMR cluster instances.this
public CfnInstanceGroupConfigProps.Builder market(java.lang.String market)
CfnInstanceGroupConfigProps.getMarket()
market
- Market type of the EC2 instances used to create a cluster node.this
public CfnInstanceGroupConfigProps.Builder name(java.lang.String name)
CfnInstanceGroupConfigProps.getName()
name
- Friendly name given to the instance group.this
public CfnInstanceGroupConfigProps build()
CfnInstanceGroupConfigProps
java.lang.NullPointerException
- if any required attribute was not provided