Class CfnInstanceGroupConfigPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceGroupConfigPropsMixin>
- Enclosing class:
CfnInstanceGroupConfigPropsMixin
CfnInstanceGroupConfigPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionautoScalingPolicy(CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty autoScalingPolicy) AutoScalingPolicyis a subproperty ofInstanceGroupConfig.autoScalingPolicy(IResolvable autoScalingPolicy) AutoScalingPolicyis a subproperty ofInstanceGroupConfig.If specified, indicates that the instance group uses Spot Instances.build()configurations(List<? extends Object> configurations) configurations(IResolvable configurations) create()create(CfnPropertyMixinOptions options) customAmiId(String customAmiId) The custom AMI ID to use for the provisioned instance group.ebsConfiguration(CfnInstanceGroupConfigPropsMixin.EbsConfigurationProperty ebsConfiguration) EbsConfigurationdetermines the EBS volumes to attach to EMR cluster instances.ebsConfiguration(IResolvable ebsConfiguration) EbsConfigurationdetermines the EBS volumes to attach to EMR cluster instances.instanceCount(Number instanceCount) Target number of instances for the instance group.instanceRole(String instanceRole) The role of the instance group in the cluster.instanceType(String instanceType) The Amazon EC2 instance type for all instances in the instance group.The ID of an Amazon EMR cluster that you want to associate this instance group with.Market type of the Amazon EC2 instances used to create a cluster node.Friendly name given to the instance group.
-
Method Details
-
create
@Stability(Stable) public static CfnInstanceGroupConfigPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnInstanceGroupConfigPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnInstanceGroupConfigPropsMixin.Builder.
-
autoScalingPolicy
@Stability(Stable) public CfnInstanceGroupConfigPropsMixin.Builder autoScalingPolicy(IResolvable autoScalingPolicy) AutoScalingPolicyis a subproperty ofInstanceGroupConfig.AutoScalingPolicydefines 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 .- Parameters:
autoScalingPolicy-AutoScalingPolicyis a subproperty ofInstanceGroupConfig. This parameter is required.- Returns:
this- See Also:
-
autoScalingPolicy
@Stability(Stable) public CfnInstanceGroupConfigPropsMixin.Builder autoScalingPolicy(CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty autoScalingPolicy) AutoScalingPolicyis a subproperty ofInstanceGroupConfig.AutoScalingPolicydefines 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 .- Parameters:
autoScalingPolicy-AutoScalingPolicyis a subproperty ofInstanceGroupConfig. This parameter is required.- Returns:
this- See Also:
-
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
OnDemandPriceto set the amount equal to the On-Demand price, or specify an amount in USD.- Parameters:
bidPrice- If specified, indicates that the instance group uses Spot Instances. This parameter is required.- Returns:
this- See Also:
-
configurations
@Stability(Stable) public CfnInstanceGroupConfigPropsMixin.Builder configurations(IResolvable configurations) Amazon EMR releases 4.x or later.
The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
- Parameters:
configurations-
This parameter is required.Amazon EMR releases 4.x or later.
- Returns:
this- See Also:
-
configurations
@Stability(Stable) public CfnInstanceGroupConfigPropsMixin.Builder configurations(List<? extends Object> configurations) Amazon EMR releases 4.x or later.
The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
- Parameters:
configurations-
This parameter is required.Amazon EMR releases 4.x or later.
- Returns:
this- See Also:
-
customAmiId
The custom AMI ID to use for the provisioned instance group.- Parameters:
customAmiId- The custom AMI ID to use for the provisioned instance group. This parameter is required.- Returns:
this- See Also:
-
ebsConfiguration
@Stability(Stable) public CfnInstanceGroupConfigPropsMixin.Builder ebsConfiguration(IResolvable ebsConfiguration) EbsConfigurationdetermines the EBS volumes to attach to EMR cluster instances.- Parameters:
ebsConfiguration-EbsConfigurationdetermines the EBS volumes to attach to EMR cluster instances. This parameter is required.- Returns:
this- See Also:
-
ebsConfiguration
@Stability(Stable) public CfnInstanceGroupConfigPropsMixin.Builder ebsConfiguration(CfnInstanceGroupConfigPropsMixin.EbsConfigurationProperty ebsConfiguration) EbsConfigurationdetermines the EBS volumes to attach to EMR cluster instances.- Parameters:
ebsConfiguration-EbsConfigurationdetermines the EBS volumes to attach to EMR cluster instances. This parameter is required.- Returns:
this- See Also:
-
instanceCount
@Stability(Stable) public CfnInstanceGroupConfigPropsMixin.Builder instanceCount(Number instanceCount) Target number of instances for the instance group.- Parameters:
instanceCount- Target number of instances for the instance group. This parameter is required.- Returns:
this- See Also:
-
instanceRole
@Stability(Stable) public CfnInstanceGroupConfigPropsMixin.Builder instanceRole(String instanceRole) The role of the instance group in the cluster.Allowed Values : TASK
- Parameters:
instanceRole- The role of the instance group in the cluster. This parameter is required.- Returns:
this- See Also:
-
instanceType
@Stability(Stable) public CfnInstanceGroupConfigPropsMixin.Builder instanceType(String instanceType) The Amazon EC2 instance type for all instances in the instance group.- Parameters:
instanceType- The Amazon EC2 instance type for all instances in the instance group. This parameter is required.- Returns:
this- See Also:
-
jobFlowId
The ID of an Amazon EMR cluster that you want to associate this instance group with.- Parameters:
jobFlowId- The ID of an Amazon EMR cluster that you want to associate this instance group with. This parameter is required.- Returns:
this- See Also:
-
market
Market type of the Amazon EC2 instances used to create a cluster node.- Parameters:
market- Market type of the Amazon EC2 instances used to create a cluster node. This parameter is required.- Returns:
this- See Also:
-
name
Friendly name given to the instance group.- Parameters:
name- Friendly name given to the instance group. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstanceGroupConfigPropsMixin>- Returns:
- a newly built instance of
CfnInstanceGroupConfigPropsMixin.
-