Class CfnInstanceGroupConfigMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.emr.mixins.CfnInstanceGroupConfigMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceGroupConfigMixinProps>
- Enclosing interface:
CfnInstanceGroupConfigMixinProps
@Stability(Stable)
public static final class CfnInstanceGroupConfigMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceGroupConfigMixinProps>
A builder for
CfnInstanceGroupConfigMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoScalingPolicy(IResolvable autoScalingPolicy) Sets the value ofCfnInstanceGroupConfigMixinProps.getAutoScalingPolicy()autoScalingPolicy(CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty autoScalingPolicy) Sets the value ofCfnInstanceGroupConfigMixinProps.getAutoScalingPolicy()Sets the value ofCfnInstanceGroupConfigMixinProps.getBidPrice()build()Builds the configured instance.configurations(List<? extends Object> configurations) Sets the value ofCfnInstanceGroupConfigMixinProps.getConfigurations()configurations(IResolvable configurations) Sets the value ofCfnInstanceGroupConfigMixinProps.getConfigurations()customAmiId(String customAmiId) Sets the value ofCfnInstanceGroupConfigMixinProps.getCustomAmiId()ebsConfiguration(IResolvable ebsConfiguration) Sets the value ofCfnInstanceGroupConfigMixinProps.getEbsConfiguration()ebsConfiguration(CfnInstanceGroupConfigPropsMixin.EbsConfigurationProperty ebsConfiguration) Sets the value ofCfnInstanceGroupConfigMixinProps.getEbsConfiguration()instanceCount(Number instanceCount) Sets the value ofCfnInstanceGroupConfigMixinProps.getInstanceCount()instanceRole(String instanceRole) Sets the value ofCfnInstanceGroupConfigMixinProps.getInstanceRole()instanceType(String instanceType) Sets the value ofCfnInstanceGroupConfigMixinProps.getInstanceType()Sets the value ofCfnInstanceGroupConfigMixinProps.getJobFlowId()Sets the value ofCfnInstanceGroupConfigMixinProps.getMarket()Sets the value ofCfnInstanceGroupConfigMixinProps.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoScalingPolicy
@Stability(Stable) public CfnInstanceGroupConfigMixinProps.Builder autoScalingPolicy(IResolvable autoScalingPolicy) Sets the value ofCfnInstanceGroupConfigMixinProps.getAutoScalingPolicy()- Parameters:
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 .- Returns:
this
-
autoScalingPolicy
@Stability(Stable) public CfnInstanceGroupConfigMixinProps.Builder autoScalingPolicy(CfnInstanceGroupConfigPropsMixin.AutoScalingPolicyProperty autoScalingPolicy) Sets the value ofCfnInstanceGroupConfigMixinProps.getAutoScalingPolicy()- Parameters:
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 .- Returns:
this
-
bidPrice
Sets the value ofCfnInstanceGroupConfigMixinProps.getBidPrice()- Parameters:
bidPrice- If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. SpecifyOnDemandPriceto set the amount equal to the On-Demand price, or specify an amount in USD.- Returns:
this
-
configurations
@Stability(Stable) public CfnInstanceGroupConfigMixinProps.Builder configurations(IResolvable configurations) Sets the value ofCfnInstanceGroupConfigMixinProps.getConfigurations()- Parameters:
configurations-
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).Amazon EMR releases 4.x or later.
- Returns:
this
-
configurations
@Stability(Stable) public CfnInstanceGroupConfigMixinProps.Builder configurations(List<? extends Object> configurations) Sets the value ofCfnInstanceGroupConfigMixinProps.getConfigurations()- Parameters:
configurations-
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).Amazon EMR releases 4.x or later.
- Returns:
this
-
customAmiId
Sets the value ofCfnInstanceGroupConfigMixinProps.getCustomAmiId()- Parameters:
customAmiId- The custom AMI ID to use for the provisioned instance group.- Returns:
this
-
ebsConfiguration
@Stability(Stable) public CfnInstanceGroupConfigMixinProps.Builder ebsConfiguration(IResolvable ebsConfiguration) Sets the value ofCfnInstanceGroupConfigMixinProps.getEbsConfiguration()- Parameters:
ebsConfiguration-EbsConfigurationdetermines the EBS volumes to attach to EMR cluster instances.- Returns:
this
-
ebsConfiguration
@Stability(Stable) public CfnInstanceGroupConfigMixinProps.Builder ebsConfiguration(CfnInstanceGroupConfigPropsMixin.EbsConfigurationProperty ebsConfiguration) Sets the value ofCfnInstanceGroupConfigMixinProps.getEbsConfiguration()- Parameters:
ebsConfiguration-EbsConfigurationdetermines the EBS volumes to attach to EMR cluster instances.- Returns:
this
-
instanceCount
@Stability(Stable) public CfnInstanceGroupConfigMixinProps.Builder instanceCount(Number instanceCount) Sets the value ofCfnInstanceGroupConfigMixinProps.getInstanceCount()- Parameters:
instanceCount- Target number of instances for the instance group.- Returns:
this
-
instanceRole
@Stability(Stable) public CfnInstanceGroupConfigMixinProps.Builder instanceRole(String instanceRole) Sets the value ofCfnInstanceGroupConfigMixinProps.getInstanceRole()- Parameters:
instanceRole- The role of the instance group in the cluster. Allowed Values : TASK- Returns:
this
-
instanceType
@Stability(Stable) public CfnInstanceGroupConfigMixinProps.Builder instanceType(String instanceType) Sets the value ofCfnInstanceGroupConfigMixinProps.getInstanceType()- Parameters:
instanceType- The Amazon EC2 instance type for all instances in the instance group.- Returns:
this
-
jobFlowId
Sets the value ofCfnInstanceGroupConfigMixinProps.getJobFlowId()- Parameters:
jobFlowId- The ID of an Amazon EMR cluster that you want to associate this instance group with.- Returns:
this
-
market
Sets the value ofCfnInstanceGroupConfigMixinProps.getMarket()- Parameters:
market- Market type of the Amazon EC2 instances used to create a cluster node.- Returns:
this
-
name
Sets the value ofCfnInstanceGroupConfigMixinProps.getName()- Parameters:
name- Friendly name given to the instance group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstanceGroupConfigMixinProps>- Returns:
- a new instance of
CfnInstanceGroupConfigMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-