Class EmrCreateClusterJsonataProps.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateClusterJsonataProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmrCreateClusterJsonataProps>
- Enclosing interface:
EmrCreateClusterJsonataProps
@Stability(Stable)
public static final class EmrCreateClusterJsonataProps.Builder
extends Object
implements software.amazon.jsii.Builder<EmrCreateClusterJsonataProps>
A builder for
EmrCreateClusterJsonataProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalInfo
(String additionalInfo) Sets the value ofEmrCreateClusterJsonataProps.getAdditionalInfo()
applications
(List<? extends EmrCreateCluster.ApplicationConfigProperty> applications) Sets the value ofEmrCreateClusterJsonataProps.getApplications()
Sets the value ofAssignableStateOptions.getAssign()
autoScalingRole
(IRole autoScalingRole) Sets the value ofEmrCreateClusterJsonataProps.getAutoScalingRole()
autoTerminationPolicyIdleTimeout
(Duration autoTerminationPolicyIdleTimeout) Sets the value ofEmrCreateClusterJsonataProps.getAutoTerminationPolicyIdleTimeout()
bootstrapActions
(List<? extends EmrCreateCluster.BootstrapActionConfigProperty> bootstrapActions) Sets the value ofEmrCreateClusterJsonataProps.getBootstrapActions()
build()
Builds the configured instance.clusterRole
(IRole clusterRole) Sets the value ofEmrCreateClusterJsonataProps.getClusterRole()
Sets the value ofStateBaseProps.getComment()
configurations
(List<? extends EmrCreateCluster.ConfigurationProperty> configurations) Sets the value ofEmrCreateClusterJsonataProps.getConfigurations()
credentials
(Credentials credentials) Sets the value ofTaskStateBaseOptions.getCredentials()
customAmiId
(String customAmiId) Sets the value ofEmrCreateClusterJsonataProps.getCustomAmiId()
ebsRootVolumeSize
(Size ebsRootVolumeSize) Sets the value ofEmrCreateClusterJsonataProps.getEbsRootVolumeSize()
Deprecated.use `heartbeatTimeout`heartbeatTimeout
(Timeout heartbeatTimeout) Sets the value ofTaskStateBaseOptions.getHeartbeatTimeout()
Sets the value ofEmrCreateClusterJsonataProps.getInstances()
integrationPattern
(IntegrationPattern integrationPattern) Sets the value ofTaskStateBaseOptions.getIntegrationPattern()
kerberosAttributes
(EmrCreateCluster.KerberosAttributesProperty kerberosAttributes) Sets the value ofEmrCreateClusterJsonataProps.getKerberosAttributes()
Sets the value ofEmrCreateClusterJsonataProps.getLogUri()
Sets the value ofEmrCreateClusterJsonataProps.getName()
Sets the value ofJsonataCommonOptions.getOutputs()
queryLanguage
(QueryLanguage queryLanguage) Sets the value ofStateBaseProps.getQueryLanguage()
releaseLabel
(String releaseLabel) Sets the value ofEmrCreateClusterJsonataProps.getReleaseLabel()
scaleDownBehavior
(EmrCreateCluster.EmrClusterScaleDownBehavior scaleDownBehavior) Sets the value ofEmrCreateClusterJsonataProps.getScaleDownBehavior()
securityConfiguration
(String securityConfiguration) Sets the value ofEmrCreateClusterJsonataProps.getSecurityConfiguration()
serviceRole
(IRole serviceRole) Sets the value ofEmrCreateClusterJsonataProps.getServiceRole()
Sets the value ofStateBaseProps.getStateName()
stepConcurrencyLevel
(Number stepConcurrencyLevel) Sets the value ofEmrCreateClusterJsonataProps.getStepConcurrencyLevel()
Sets the value ofEmrCreateClusterJsonataProps.getTags()
taskTimeout
(Timeout taskTimeout) Sets the value ofTaskStateBaseOptions.getTaskTimeout()
Deprecated.use `taskTimeout`visibleToAllUsers
(Boolean visibleToAllUsers) Sets the value ofEmrCreateClusterJsonataProps.getVisibleToAllUsers()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instances
@Stability(Stable) public EmrCreateClusterJsonataProps.Builder instances(EmrCreateCluster.InstancesConfigProperty instances) Sets the value ofEmrCreateClusterJsonataProps.getInstances()
- Parameters:
instances
- A specification of the number and type of Amazon EC2 instances. This parameter is required.- Returns:
this
-
name
Sets the value ofEmrCreateClusterJsonataProps.getName()
- Parameters:
name
- The Name of the Cluster. This parameter is required.- Returns:
this
-
additionalInfo
@Stability(Stable) public EmrCreateClusterJsonataProps.Builder additionalInfo(String additionalInfo) Sets the value ofEmrCreateClusterJsonataProps.getAdditionalInfo()
- Parameters:
additionalInfo
- A JSON string for selecting additional features.- Returns:
this
-
applications
@Stability(Stable) public EmrCreateClusterJsonataProps.Builder applications(List<? extends EmrCreateCluster.ApplicationConfigProperty> applications) Sets the value ofEmrCreateClusterJsonataProps.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 EmrCreateClusterJsonataProps.Builder autoScalingRole(IRole autoScalingRole) Sets the value ofEmrCreateClusterJsonataProps.getAutoScalingRole()
- Parameters:
autoScalingRole
- An IAM role for automatic scaling policies.- Returns:
this
-
autoTerminationPolicyIdleTimeout
@Stability(Stable) public EmrCreateClusterJsonataProps.Builder autoTerminationPolicyIdleTimeout(Duration autoTerminationPolicyIdleTimeout) Sets the value ofEmrCreateClusterJsonataProps.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 EmrCreateClusterJsonataProps.Builder bootstrapActions(List<? extends EmrCreateCluster.BootstrapActionConfigProperty> bootstrapActions) Sets the value ofEmrCreateClusterJsonataProps.getBootstrapActions()
- Parameters:
bootstrapActions
- A list of bootstrap actions to run before Hadoop starts on the cluster nodes.- Returns:
this
-
clusterRole
Sets the value ofEmrCreateClusterJsonataProps.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 EmrCreateClusterJsonataProps.Builder configurations(List<? extends EmrCreateCluster.ConfigurationProperty> configurations) Sets the value ofEmrCreateClusterJsonataProps.getConfigurations()
- Parameters:
configurations
- The list of configurations supplied for the EMR cluster you are creating.- Returns:
this
-
customAmiId
Sets the value ofEmrCreateClusterJsonataProps.getCustomAmiId()
- Parameters:
customAmiId
- The ID of a custom Amazon EBS-backed Linux AMI.- Returns:
this
-
ebsRootVolumeSize
@Stability(Stable) public EmrCreateClusterJsonataProps.Builder ebsRootVolumeSize(Size ebsRootVolumeSize) Sets the value ofEmrCreateClusterJsonataProps.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 EmrCreateClusterJsonataProps.Builder kerberosAttributes(EmrCreateCluster.KerberosAttributesProperty kerberosAttributes) Sets the value ofEmrCreateClusterJsonataProps.getKerberosAttributes()
- Parameters:
kerberosAttributes
- Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration.- Returns:
this
-
logUri
Sets the value ofEmrCreateClusterJsonataProps.getLogUri()
- Parameters:
logUri
- The location in Amazon S3 to write the log files of the job flow.- Returns:
this
-
releaseLabel
Sets the value ofEmrCreateClusterJsonataProps.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 EmrCreateClusterJsonataProps.Builder scaleDownBehavior(EmrCreateCluster.EmrClusterScaleDownBehavior scaleDownBehavior) Sets the value ofEmrCreateClusterJsonataProps.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 EmrCreateClusterJsonataProps.Builder securityConfiguration(String securityConfiguration) Sets the value ofEmrCreateClusterJsonataProps.getSecurityConfiguration()
- Parameters:
securityConfiguration
- The name of a security configuration to apply to the cluster.- Returns:
this
-
serviceRole
Sets the value ofEmrCreateClusterJsonataProps.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 EmrCreateClusterJsonataProps.Builder stepConcurrencyLevel(Number stepConcurrencyLevel) Sets the value ofEmrCreateClusterJsonataProps.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 ofEmrCreateClusterJsonataProps.getTags()
- Parameters:
tags
- A list of tags to associate with a cluster and propagate to Amazon EC2 instances.- Returns:
this
-
visibleToAllUsers
@Stability(Stable) public EmrCreateClusterJsonataProps.Builder visibleToAllUsers(Boolean visibleToAllUsers) Sets the value ofEmrCreateClusterJsonataProps.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 ofStateBaseProps.getComment()
- Parameters:
comment
- A comment describing this state.- Returns:
this
-
queryLanguage
@Stability(Stable) public EmrCreateClusterJsonataProps.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
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 EmrCreateClusterJsonataProps.Builder heartbeat(Duration heartbeat) Deprecated.use `heartbeatTimeout`Sets the value ofTaskStateBaseOptions.getHeartbeat()
- Parameters:
heartbeat
- Timeout for the heartbeat.- Returns:
this
-
heartbeatTimeout
@Stability(Stable) public EmrCreateClusterJsonataProps.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 EmrCreateClusterJsonataProps.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 EmrCreateClusterJsonataProps.Builder timeout(Duration timeout) Deprecated.use `taskTimeout`Sets the value ofTaskStateBaseOptions.getTimeout()
- Parameters:
timeout
- Timeout for the task.- Returns:
this
-
assign
@Stability(Stable) public EmrCreateClusterJsonataProps.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
-
outputs
Sets the value ofJsonataCommonOptions.getOutputs()
- Parameters:
outputs
- Used to specify and transform output from the state. When specified, the value overrides the state output default. The output field accepts any JSON value (object, array, string, number, boolean, null). Any string value, including those inside objects or arrays, will be evaluated as JSONata if surrounded by {% %} characters. Output also accepts a JSONata expression directly.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EmrCreateClusterJsonataProps>
- Returns:
- a new instance of
EmrCreateClusterJsonataProps
- Throws:
NullPointerException
- if any required attribute was not provided
-