Class EmrCreateClusterProps.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateClusterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmrCreateClusterProps>
- Enclosing interface:
EmrCreateClusterProps
@Stability(Stable)
public static final class EmrCreateClusterProps.Builder
extends Object
implements software.amazon.jsii.Builder<EmrCreateClusterProps>
A builder for
EmrCreateClusterProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadditionalInfo
(String additionalInfo) Sets the value ofEmrCreateClusterProps.getAdditionalInfo()
applications
(List<? extends EmrCreateCluster.ApplicationConfigProperty> applications) Sets the value ofEmrCreateClusterProps.getApplications()
autoScalingRole
(IRole autoScalingRole) Sets the value ofEmrCreateClusterProps.getAutoScalingRole()
autoTerminationPolicyIdleTimeout
(Duration autoTerminationPolicyIdleTimeout) Sets the value ofEmrCreateClusterProps.getAutoTerminationPolicyIdleTimeout()
bootstrapActions
(List<? extends EmrCreateCluster.BootstrapActionConfigProperty> bootstrapActions) Sets the value ofEmrCreateClusterProps.getBootstrapActions()
build()
Builds the configured instance.clusterRole
(IRole clusterRole) Sets the value ofEmrCreateClusterProps.getClusterRole()
Sets the value ofTaskStateBaseProps.getComment()
configurations
(List<? extends EmrCreateCluster.ConfigurationProperty> configurations) Sets the value ofEmrCreateClusterProps.getConfigurations()
credentials
(Credentials credentials) Sets the value ofTaskStateBaseProps.getCredentials()
customAmiId
(String customAmiId) Sets the value ofEmrCreateClusterProps.getCustomAmiId()
ebsRootVolumeSize
(Size ebsRootVolumeSize) Sets the value ofEmrCreateClusterProps.getEbsRootVolumeSize()
Deprecated.use `heartbeatTimeout`heartbeatTimeout
(Timeout heartbeatTimeout) Sets the value ofTaskStateBaseProps.getHeartbeatTimeout()
Sets the value ofTaskStateBaseProps.getInputPath()
Sets the value ofEmrCreateClusterProps.getInstances()
integrationPattern
(IntegrationPattern integrationPattern) Sets the value ofTaskStateBaseProps.getIntegrationPattern()
kerberosAttributes
(EmrCreateCluster.KerberosAttributesProperty kerberosAttributes) Sets the value ofEmrCreateClusterProps.getKerberosAttributes()
Sets the value ofEmrCreateClusterProps.getLogUri()
Sets the value ofEmrCreateClusterProps.getName()
outputPath
(String outputPath) Sets the value ofTaskStateBaseProps.getOutputPath()
releaseLabel
(String releaseLabel) Sets the value ofEmrCreateClusterProps.getReleaseLabel()
resultPath
(String resultPath) Sets the value ofTaskStateBaseProps.getResultPath()
resultSelector
(Map<String, ? extends Object> resultSelector) Sets the value ofTaskStateBaseProps.getResultSelector()
scaleDownBehavior
(EmrCreateCluster.EmrClusterScaleDownBehavior scaleDownBehavior) Sets the value ofEmrCreateClusterProps.getScaleDownBehavior()
securityConfiguration
(String securityConfiguration) Sets the value ofEmrCreateClusterProps.getSecurityConfiguration()
serviceRole
(IRole serviceRole) Sets the value ofEmrCreateClusterProps.getServiceRole()
Sets the value ofTaskStateBaseProps.getStateName()
stepConcurrencyLevel
(Number stepConcurrencyLevel) Sets the value ofEmrCreateClusterProps.getStepConcurrencyLevel()
Sets the value ofEmrCreateClusterProps.getTags()
taskTimeout
(Timeout taskTimeout) Sets the value ofTaskStateBaseProps.getTaskTimeout()
Deprecated.use `taskTimeout`visibleToAllUsers
(Boolean visibleToAllUsers) Sets the value ofEmrCreateClusterProps.getVisibleToAllUsers()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instances
@Stability(Stable) public EmrCreateClusterProps.Builder instances(EmrCreateCluster.InstancesConfigProperty instances) Sets the value ofEmrCreateClusterProps.getInstances()
- Parameters:
instances
- A specification of the number and type of Amazon EC2 instances. This parameter is required.- Returns:
this
-
name
Sets the value ofEmrCreateClusterProps.getName()
- Parameters:
name
- The Name of the Cluster. This parameter is required.- Returns:
this
-
additionalInfo
Sets the value ofEmrCreateClusterProps.getAdditionalInfo()
- Parameters:
additionalInfo
- A JSON string for selecting additional features.- Returns:
this
-
applications
@Stability(Stable) public EmrCreateClusterProps.Builder applications(List<? extends EmrCreateCluster.ApplicationConfigProperty> applications) Sets the value ofEmrCreateClusterProps.getApplications()
- Parameters:
applications
- A case-insensitive list of applications for Amazon EMR to install and configure when launching the cluster.- Returns:
this
-
autoScalingRole
Sets the value ofEmrCreateClusterProps.getAutoScalingRole()
- Parameters:
autoScalingRole
- An IAM role for automatic scaling policies.- Returns:
this
-
autoTerminationPolicyIdleTimeout
@Stability(Stable) public EmrCreateClusterProps.Builder autoTerminationPolicyIdleTimeout(Duration autoTerminationPolicyIdleTimeout) Sets the value ofEmrCreateClusterProps.getAutoTerminationPolicyIdleTimeout()
- Parameters:
autoTerminationPolicyIdleTimeout
- The amount of idle time after which the cluster automatically terminates. You can specify a minimum of 60 seconds and a maximum of 604800 seconds (seven days).- Returns:
this
-
bootstrapActions
@Stability(Stable) public EmrCreateClusterProps.Builder bootstrapActions(List<? extends EmrCreateCluster.BootstrapActionConfigProperty> bootstrapActions) Sets the value ofEmrCreateClusterProps.getBootstrapActions()
- Parameters:
bootstrapActions
- A list of bootstrap actions to run before Hadoop starts on the cluster nodes.- Returns:
this
-
clusterRole
Sets the value ofEmrCreateClusterProps.getClusterRole()
- Parameters:
clusterRole
- Also called instance profile and EC2 role. An IAM role for an EMR cluster. The EC2 instances of the cluster assume this role.This attribute has been renamed from jobFlowRole to clusterRole to align with other ERM/StepFunction integration parameters.
- Returns:
this
-
configurations
@Stability(Stable) public EmrCreateClusterProps.Builder configurations(List<? extends EmrCreateCluster.ConfigurationProperty> configurations) Sets the value ofEmrCreateClusterProps.getConfigurations()
- Parameters:
configurations
- The list of configurations supplied for the EMR cluster you are creating.- Returns:
this
-
customAmiId
Sets the value ofEmrCreateClusterProps.getCustomAmiId()
- Parameters:
customAmiId
- The ID of a custom Amazon EBS-backed Linux AMI.- Returns:
this
-
ebsRootVolumeSize
Sets the value ofEmrCreateClusterProps.getEbsRootVolumeSize()
- Parameters:
ebsRootVolumeSize
- The size of the EBS root device volume of the Linux AMI that is used for each EC2 instance.- Returns:
this
-
kerberosAttributes
@Stability(Stable) public EmrCreateClusterProps.Builder kerberosAttributes(EmrCreateCluster.KerberosAttributesProperty kerberosAttributes) Sets the value ofEmrCreateClusterProps.getKerberosAttributes()
- Parameters:
kerberosAttributes
- Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration.- Returns:
this
-
logUri
Sets the value ofEmrCreateClusterProps.getLogUri()
- Parameters:
logUri
- The location in Amazon S3 to write the log files of the job flow.- Returns:
this
-
releaseLabel
Sets the value ofEmrCreateClusterProps.getReleaseLabel()
- Parameters:
releaseLabel
- The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster.- Returns:
this
-
scaleDownBehavior
@Stability(Stable) public EmrCreateClusterProps.Builder scaleDownBehavior(EmrCreateCluster.EmrClusterScaleDownBehavior scaleDownBehavior) Sets the value ofEmrCreateClusterProps.getScaleDownBehavior()
- Parameters:
scaleDownBehavior
- Specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized.- Returns:
this
-
securityConfiguration
@Stability(Stable) public EmrCreateClusterProps.Builder securityConfiguration(String securityConfiguration) Sets the value ofEmrCreateClusterProps.getSecurityConfiguration()
- Parameters:
securityConfiguration
- The name of a security configuration to apply to the cluster.- Returns:
this
-
serviceRole
Sets the value ofEmrCreateClusterProps.getServiceRole()
- Parameters:
serviceRole
- The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.- Returns:
this
-
stepConcurrencyLevel
@Stability(Stable) public EmrCreateClusterProps.Builder stepConcurrencyLevel(Number stepConcurrencyLevel) Sets the value ofEmrCreateClusterProps.getStepConcurrencyLevel()
- Parameters:
stepConcurrencyLevel
- Specifies the step concurrency level to allow multiple steps to run in parallel. Requires EMR release label 5.28.0 or above. Must be in range [1, 256].- Returns:
this
-
tags
Sets the value ofEmrCreateClusterProps.getTags()
- Parameters:
tags
- A list of tags to associate with a cluster and propagate to Amazon EC2 instances.- Returns:
this
-
visibleToAllUsers
@Stability(Stable) public EmrCreateClusterProps.Builder visibleToAllUsers(Boolean visibleToAllUsers) Sets the value ofEmrCreateClusterProps.getVisibleToAllUsers()
- Parameters:
visibleToAllUsers
- A value of true indicates that all IAM users in the AWS account can perform cluster actions if they have the proper IAM policy permissions.- Returns:
this
-
comment
Sets the value ofTaskStateBaseProps.getComment()
- Parameters:
comment
- An optional description for this state.- Returns:
this
-
credentials
Sets the value ofTaskStateBaseProps.getCredentials()
- Parameters:
credentials
- Credentials for an IAM Role that the State Machine assumes for executing the task. This enables cross-account resource invocations.- Returns:
this
-
heartbeat
@Stability(Deprecated) @Deprecated public EmrCreateClusterProps.Builder heartbeat(Duration heartbeat) Deprecated.use `heartbeatTimeout`Sets the value ofTaskStateBaseProps.getHeartbeat()
- Parameters:
heartbeat
- Timeout for the heartbeat.- Returns:
this
-
heartbeatTimeout
Sets the value ofTaskStateBaseProps.getHeartbeatTimeout()
- Parameters:
heartbeatTimeout
- Timeout for the heartbeat. [disable-awslint:duration-prop-type] is needed because all props interface in aws-stepfunctions-tasks extend this interface- Returns:
this
-
inputPath
Sets the value ofTaskStateBaseProps.getInputPath()
- Parameters:
inputPath
- JSONPath expression to select part of the state to be the input to this state. May also be the special value JsonPath.DISCARD, which will cause the effective input to be the empty object {}.- Returns:
this
-
integrationPattern
@Stability(Stable) public EmrCreateClusterProps.Builder integrationPattern(IntegrationPattern integrationPattern) Sets the value ofTaskStateBaseProps.getIntegrationPattern()
- Parameters:
integrationPattern
- AWS Step Functions integrates with services directly in the Amazon States Language. You can control these AWS services using service integration patterns.Depending on the AWS Service, the Service Integration Pattern availability will vary.
- Returns:
this
-
outputPath
Sets the value ofTaskStateBaseProps.getOutputPath()
- Parameters:
outputPath
- JSONPath expression to select select a portion of the state output to pass to the next state. May also be the special value JsonPath.DISCARD, which will cause the effective output to be the empty object {}.- Returns:
this
-
resultPath
Sets the value ofTaskStateBaseProps.getResultPath()
- Parameters:
resultPath
- JSONPath expression to indicate where to inject the state's output. May also be the special value JsonPath.DISCARD, which will cause the state's input to become its output.- Returns:
this
-
resultSelector
@Stability(Stable) public EmrCreateClusterProps.Builder resultSelector(Map<String, ? extends Object> resultSelector) Sets the value ofTaskStateBaseProps.getResultSelector()
- Parameters:
resultSelector
- The JSON that will replace the state's raw result and become the effective result before ResultPath is applied. You can use ResultSelector to create a payload with values that are static or selected from the state's raw result.- Returns:
this
-
stateName
Sets the value ofTaskStateBaseProps.getStateName()
- Parameters:
stateName
- Optional name for this state.- Returns:
this
-
taskTimeout
Sets the value ofTaskStateBaseProps.getTaskTimeout()
- Parameters:
taskTimeout
- Timeout for the task. [disable-awslint:duration-prop-type] is needed because all props interface in aws-stepfunctions-tasks extend this interface- Returns:
this
-
timeout
Deprecated.use `taskTimeout`Sets the value ofTaskStateBaseProps.getTimeout()
- Parameters:
timeout
- Timeout for the task.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EmrCreateClusterProps>
- Returns:
- a new instance of
EmrCreateClusterProps
- Throws:
NullPointerException
- if any required attribute was not provided
-