public static final class EmrCreateClusterProps.Builder
extends java.lang.Object
EmrCreateClusterProps
Constructor and Description |
---|
Builder() |
public EmrCreateClusterProps.Builder instances(EmrCreateCluster.InstancesConfigProperty instances)
EmrCreateClusterProps.getInstances()
instances
- A specification of the number and type of Amazon EC2 instances. This parameter is required.this
public EmrCreateClusterProps.Builder name(java.lang.String name)
EmrCreateClusterProps.getName()
name
- The Name of the Cluster. This parameter is required.this
public EmrCreateClusterProps.Builder additionalInfo(java.lang.String additionalInfo)
EmrCreateClusterProps.getAdditionalInfo()
additionalInfo
- A JSON string for selecting additional features.this
public EmrCreateClusterProps.Builder applications(java.util.List<? extends EmrCreateCluster.ApplicationConfigProperty> applications)
EmrCreateClusterProps.getApplications()
applications
- A case-insensitive list of applications for Amazon EMR to install and configure when launching the cluster.this
public EmrCreateClusterProps.Builder autoScalingRole(IRole autoScalingRole)
EmrCreateClusterProps.getAutoScalingRole()
autoScalingRole
- An IAM role for automatic scaling policies.this
public EmrCreateClusterProps.Builder bootstrapActions(java.util.List<? extends EmrCreateCluster.BootstrapActionConfigProperty> bootstrapActions)
EmrCreateClusterProps.getBootstrapActions()
bootstrapActions
- A list of bootstrap actions to run before Hadoop starts on the cluster nodes.this
public EmrCreateClusterProps.Builder clusterRole(IRole clusterRole)
EmrCreateClusterProps.getClusterRole()
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.
this
public EmrCreateClusterProps.Builder configurations(java.util.List<? extends EmrCreateCluster.ConfigurationProperty> configurations)
EmrCreateClusterProps.getConfigurations()
configurations
- The list of configurations supplied for the EMR cluster you are creating.this
public EmrCreateClusterProps.Builder customAmiId(java.lang.String customAmiId)
EmrCreateClusterProps.getCustomAmiId()
customAmiId
- The ID of a custom Amazon EBS-backed Linux AMI.this
public EmrCreateClusterProps.Builder ebsRootVolumeSize(Size ebsRootVolumeSize)
EmrCreateClusterProps.getEbsRootVolumeSize()
ebsRootVolumeSize
- The size of the EBS root device volume of the Linux AMI that is used for each EC2 instance.this
public EmrCreateClusterProps.Builder kerberosAttributes(EmrCreateCluster.KerberosAttributesProperty kerberosAttributes)
EmrCreateClusterProps.getKerberosAttributes()
kerberosAttributes
- Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration.this
public EmrCreateClusterProps.Builder logUri(java.lang.String logUri)
EmrCreateClusterProps.getLogUri()
logUri
- The location in Amazon S3 to write the log files of the job flow.this
public EmrCreateClusterProps.Builder releaseLabel(java.lang.String releaseLabel)
EmrCreateClusterProps.getReleaseLabel()
releaseLabel
- The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster.this
public EmrCreateClusterProps.Builder scaleDownBehavior(EmrCreateCluster.EmrClusterScaleDownBehavior scaleDownBehavior)
EmrCreateClusterProps.getScaleDownBehavior()
scaleDownBehavior
- Specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized.this
public EmrCreateClusterProps.Builder securityConfiguration(java.lang.String securityConfiguration)
EmrCreateClusterProps.getSecurityConfiguration()
securityConfiguration
- The name of a security configuration to apply to the cluster.this
public EmrCreateClusterProps.Builder serviceRole(IRole serviceRole)
EmrCreateClusterProps.getServiceRole()
serviceRole
- The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.this
public EmrCreateClusterProps.Builder stepConcurrencyLevel(java.lang.Number stepConcurrencyLevel)
EmrCreateClusterProps.getStepConcurrencyLevel()
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].this
public EmrCreateClusterProps.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
EmrCreateClusterProps.getTags()
tags
- A list of tags to associate with a cluster and propagate to Amazon EC2 instances.this
public EmrCreateClusterProps.Builder visibleToAllUsers(java.lang.Boolean visibleToAllUsers)
EmrCreateClusterProps.getVisibleToAllUsers()
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.this
public EmrCreateClusterProps.Builder comment(java.lang.String comment)
TaskStateBaseProps.getComment()
comment
- An optional description for this state.this
public EmrCreateClusterProps.Builder heartbeat(Duration heartbeat)
TaskStateBaseProps.getHeartbeat()
heartbeat
- Timeout for the heartbeat.this
public EmrCreateClusterProps.Builder inputPath(java.lang.String inputPath)
TaskStateBaseProps.getInputPath()
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 {}.this
public EmrCreateClusterProps.Builder integrationPattern(IntegrationPattern integrationPattern)
TaskStateBaseProps.getIntegrationPattern()
integrationPattern
- AWS Step Functions integrates with services directly in the Amazon States Language.
You can control these AWS services using service integration patternsthis
public EmrCreateClusterProps.Builder outputPath(java.lang.String outputPath)
TaskStateBaseProps.getOutputPath()
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 {}.this
public EmrCreateClusterProps.Builder resultPath(java.lang.String resultPath)
TaskStateBaseProps.getResultPath()
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.this
public EmrCreateClusterProps.Builder resultSelector(java.util.Map<java.lang.String,? extends java.lang.Object> resultSelector)
TaskStateBaseProps.getResultSelector()
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.this
public EmrCreateClusterProps.Builder timeout(Duration timeout)
TaskStateBaseProps.getTimeout()
timeout
- Timeout for the state machine.this
public EmrCreateClusterProps build()
EmrCreateClusterProps
java.lang.NullPointerException
- if any required attribute was not provided