Class EmrCreateClusterJsonPathProps.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateClusterJsonPathProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmrCreateClusterJsonPathProps>
- Enclosing interface:
EmrCreateClusterJsonPathProps
@Stability(Stable)
public static final class EmrCreateClusterJsonPathProps.Builder
extends Object
implements software.amazon.jsii.Builder<EmrCreateClusterJsonPathProps>
A builder for
EmrCreateClusterJsonPathProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalInfo
(String additionalInfo) Sets the value ofEmrCreateClusterJsonPathProps.getAdditionalInfo()
applications
(List<? extends EmrCreateCluster.ApplicationConfigProperty> applications) Sets the value ofEmrCreateClusterJsonPathProps.getApplications()
Sets the value ofAssignableStateOptions.getAssign()
autoScalingRole
(IRole autoScalingRole) Sets the value ofEmrCreateClusterJsonPathProps.getAutoScalingRole()
autoTerminationPolicyIdleTimeout
(Duration autoTerminationPolicyIdleTimeout) Sets the value ofEmrCreateClusterJsonPathProps.getAutoTerminationPolicyIdleTimeout()
bootstrapActions
(List<? extends EmrCreateCluster.BootstrapActionConfigProperty> bootstrapActions) Sets the value ofEmrCreateClusterJsonPathProps.getBootstrapActions()
build()
Builds the configured instance.clusterRole
(IRole clusterRole) Sets the value ofEmrCreateClusterJsonPathProps.getClusterRole()
Sets the value ofStateBaseProps.getComment()
configurations
(List<? extends EmrCreateCluster.ConfigurationProperty> configurations) Sets the value ofEmrCreateClusterJsonPathProps.getConfigurations()
credentials
(Credentials credentials) Sets the value ofTaskStateBaseOptions.getCredentials()
customAmiId
(String customAmiId) Sets the value ofEmrCreateClusterJsonPathProps.getCustomAmiId()
ebsRootVolumeSize
(Size ebsRootVolumeSize) Sets the value ofEmrCreateClusterJsonPathProps.getEbsRootVolumeSize()
Deprecated.use `heartbeatTimeout`heartbeatTimeout
(Timeout heartbeatTimeout) Sets the value ofTaskStateBaseOptions.getHeartbeatTimeout()
Sets the value ofJsonPathCommonOptions.getInputPath()
Sets the value ofEmrCreateClusterJsonPathProps.getInstances()
integrationPattern
(IntegrationPattern integrationPattern) Sets the value ofTaskStateBaseOptions.getIntegrationPattern()
kerberosAttributes
(EmrCreateCluster.KerberosAttributesProperty kerberosAttributes) Sets the value ofEmrCreateClusterJsonPathProps.getKerberosAttributes()
Sets the value ofEmrCreateClusterJsonPathProps.getLogUri()
Sets the value ofEmrCreateClusterJsonPathProps.getName()
outputPath
(String outputPath) Sets the value ofJsonPathCommonOptions.getOutputPath()
queryLanguage
(QueryLanguage queryLanguage) Sets the value ofStateBaseProps.getQueryLanguage()
releaseLabel
(String releaseLabel) Sets the value ofEmrCreateClusterJsonPathProps.getReleaseLabel()
resultPath
(String resultPath) Sets the value ofTaskStateJsonPathBaseProps.getResultPath()
resultSelector
(Map<String, ? extends Object> resultSelector) Sets the value ofTaskStateJsonPathBaseProps.getResultSelector()
scaleDownBehavior
(EmrCreateCluster.EmrClusterScaleDownBehavior scaleDownBehavior) Sets the value ofEmrCreateClusterJsonPathProps.getScaleDownBehavior()
securityConfiguration
(String securityConfiguration) Sets the value ofEmrCreateClusterJsonPathProps.getSecurityConfiguration()
serviceRole
(IRole serviceRole) Sets the value ofEmrCreateClusterJsonPathProps.getServiceRole()
Sets the value ofStateBaseProps.getStateName()
stepConcurrencyLevel
(Number stepConcurrencyLevel) Sets the value ofEmrCreateClusterJsonPathProps.getStepConcurrencyLevel()
Sets the value ofEmrCreateClusterJsonPathProps.getTags()
taskTimeout
(Timeout taskTimeout) Sets the value ofTaskStateBaseOptions.getTaskTimeout()
Deprecated.use `taskTimeout`visibleToAllUsers
(Boolean visibleToAllUsers) Sets the value ofEmrCreateClusterJsonPathProps.getVisibleToAllUsers()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instances
@Stability(Stable) public EmrCreateClusterJsonPathProps.Builder instances(EmrCreateCluster.InstancesConfigProperty instances) Sets the value ofEmrCreateClusterJsonPathProps.getInstances()
- Parameters:
instances
- A specification of the number and type of Amazon EC2 instances. This parameter is required.- Returns:
this
-
name
Sets the value ofEmrCreateClusterJsonPathProps.getName()
- Parameters:
name
- The Name of the Cluster. This parameter is required.- Returns:
this
-
additionalInfo
@Stability(Stable) public EmrCreateClusterJsonPathProps.Builder additionalInfo(String additionalInfo) Sets the value ofEmrCreateClusterJsonPathProps.getAdditionalInfo()
- Parameters:
additionalInfo
- A JSON string for selecting additional features.- Returns:
this
-
applications
@Stability(Stable) public EmrCreateClusterJsonPathProps.Builder applications(List<? extends EmrCreateCluster.ApplicationConfigProperty> applications) Sets the value ofEmrCreateClusterJsonPathProps.getApplications()
- Parameters:
applications
- A case-insensitive list of applications for Amazon EMR to install and configure when launching the cluster.- Returns:
this
-
autoScalingRole
@Stability(Stable) public EmrCreateClusterJsonPathProps.Builder autoScalingRole(IRole autoScalingRole) Sets the value ofEmrCreateClusterJsonPathProps.getAutoScalingRole()
- Parameters:
autoScalingRole
- An IAM role for automatic scaling policies.- Returns:
this
-
autoTerminationPolicyIdleTimeout
@Stability(Stable) public EmrCreateClusterJsonPathProps.Builder autoTerminationPolicyIdleTimeout(Duration autoTerminationPolicyIdleTimeout) Sets the value ofEmrCreateClusterJsonPathProps.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 EmrCreateClusterJsonPathProps.Builder bootstrapActions(List<? extends EmrCreateCluster.BootstrapActionConfigProperty> bootstrapActions) Sets the value ofEmrCreateClusterJsonPathProps.getBootstrapActions()
- Parameters:
bootstrapActions
- A list of bootstrap actions to run before Hadoop starts on the cluster nodes.- Returns:
this
-
clusterRole
Sets the value ofEmrCreateClusterJsonPathProps.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 EmrCreateClusterJsonPathProps.Builder configurations(List<? extends EmrCreateCluster.ConfigurationProperty> configurations) Sets the value ofEmrCreateClusterJsonPathProps.getConfigurations()
- Parameters:
configurations
- The list of configurations supplied for the EMR cluster you are creating.- Returns:
this
-
customAmiId
Sets the value ofEmrCreateClusterJsonPathProps.getCustomAmiId()
- Parameters:
customAmiId
- The ID of a custom Amazon EBS-backed Linux AMI.- Returns:
this
-
ebsRootVolumeSize
@Stability(Stable) public EmrCreateClusterJsonPathProps.Builder ebsRootVolumeSize(Size ebsRootVolumeSize) Sets the value ofEmrCreateClusterJsonPathProps.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 EmrCreateClusterJsonPathProps.Builder kerberosAttributes(EmrCreateCluster.KerberosAttributesProperty kerberosAttributes) Sets the value ofEmrCreateClusterJsonPathProps.getKerberosAttributes()
- Parameters:
kerberosAttributes
- Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration.- Returns:
this
-
logUri
Sets the value ofEmrCreateClusterJsonPathProps.getLogUri()
- Parameters:
logUri
- The location in Amazon S3 to write the log files of the job flow.- Returns:
this
-
releaseLabel
Sets the value ofEmrCreateClusterJsonPathProps.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 EmrCreateClusterJsonPathProps.Builder scaleDownBehavior(EmrCreateCluster.EmrClusterScaleDownBehavior scaleDownBehavior) Sets the value ofEmrCreateClusterJsonPathProps.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 EmrCreateClusterJsonPathProps.Builder securityConfiguration(String securityConfiguration) Sets the value ofEmrCreateClusterJsonPathProps.getSecurityConfiguration()
- Parameters:
securityConfiguration
- The name of a security configuration to apply to the cluster.- Returns:
this
-
serviceRole
Sets the value ofEmrCreateClusterJsonPathProps.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 EmrCreateClusterJsonPathProps.Builder stepConcurrencyLevel(Number stepConcurrencyLevel) Sets the value ofEmrCreateClusterJsonPathProps.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 ofEmrCreateClusterJsonPathProps.getTags()
- Parameters:
tags
- A list of tags to associate with a cluster and propagate to Amazon EC2 instances.- Returns:
this
-
visibleToAllUsers
@Stability(Stable) public EmrCreateClusterJsonPathProps.Builder visibleToAllUsers(Boolean visibleToAllUsers) Sets the value ofEmrCreateClusterJsonPathProps.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
-
resultPath
Sets the value ofTaskStateJsonPathBaseProps.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 EmrCreateClusterJsonPathProps.Builder resultSelector(Map<String, ? extends Object> resultSelector) Sets the value ofTaskStateJsonPathBaseProps.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
-
comment
Sets the value ofStateBaseProps.getComment()
- Parameters:
comment
- A comment describing this state.- Returns:
this
-
queryLanguage
@Stability(Stable) public EmrCreateClusterJsonPathProps.Builder queryLanguage(QueryLanguage queryLanguage) Sets the value ofStateBaseProps.getQueryLanguage()
- Parameters:
queryLanguage
- The name of the query language used by the state. If the state does not contain aqueryLanguage
field, then it will use the query language specified in the top-levelqueryLanguage
field.- Returns:
this
-
stateName
Sets the value ofStateBaseProps.getStateName()
- Parameters:
stateName
- Optional name for this state.- Returns:
this
-
credentials
@Stability(Stable) public EmrCreateClusterJsonPathProps.Builder credentials(Credentials credentials) Sets the value ofTaskStateBaseOptions.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 EmrCreateClusterJsonPathProps.Builder heartbeat(Duration heartbeat) Deprecated.use `heartbeatTimeout`Sets the value ofTaskStateBaseOptions.getHeartbeat()
- Parameters:
heartbeat
- Timeout for the heartbeat.- Returns:
this
-
heartbeatTimeout
@Stability(Stable) public EmrCreateClusterJsonPathProps.Builder heartbeatTimeout(Timeout heartbeatTimeout) Sets the value ofTaskStateBaseOptions.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
-
integrationPattern
@Stability(Stable) public EmrCreateClusterJsonPathProps.Builder integrationPattern(IntegrationPattern integrationPattern) Sets the value ofTaskStateBaseOptions.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
-
taskTimeout
Sets the value ofTaskStateBaseOptions.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
@Stability(Deprecated) @Deprecated public EmrCreateClusterJsonPathProps.Builder timeout(Duration timeout) Deprecated.use `taskTimeout`Sets the value ofTaskStateBaseOptions.getTimeout()
- Parameters:
timeout
- Timeout for the task.- Returns:
this
-
assign
@Stability(Stable) public EmrCreateClusterJsonPathProps.Builder assign(Map<String, ? extends Object> assign) Sets the value ofAssignableStateOptions.getAssign()
- Parameters:
assign
- Workflow variables to store in this step. Using workflow variables, you can store data in a step and retrieve that data in future steps.- Returns:
this
-
inputPath
Sets the value ofJsonPathCommonOptions.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
-
outputPath
Sets the value ofJsonPathCommonOptions.getOutputPath()
- Parameters:
outputPath
- JSONPath expression to select part of the state to be the output to this state. May also be the special value JsonPath.DISCARD, which will cause the effective output to be the empty object {}.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EmrCreateClusterJsonPathProps>
- Returns:
- a new instance of
EmrCreateClusterJsonPathProps
- Throws:
NullPointerException
- if any required attribute was not provided
-