public static final class CfnCluster.Builder
extends java.lang.Object
CfnCluster
.Modifier and Type | Method and Description |
---|---|
CfnCluster.Builder |
additionalInfo(java.lang.Object additionalInfo)
A JSON string for selecting additional features.
|
CfnCluster.Builder |
applications(IResolvable applications)
The applications to install on this cluster, for example, Spark, Flink, Oozie, Zeppelin, and so on.
|
CfnCluster.Builder |
applications(java.util.List<? extends java.lang.Object> applications)
The applications to install on this cluster, for example, Spark, Flink, Oozie, Zeppelin, and so on.
|
CfnCluster.Builder |
autoScalingRole(java.lang.String autoScalingRole)
An IAM role for automatic scaling policies.
|
CfnCluster.Builder |
bootstrapActions(IResolvable bootstrapActions)
A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
|
CfnCluster.Builder |
bootstrapActions(java.util.List<? extends java.lang.Object> bootstrapActions)
A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
|
CfnCluster |
build() |
CfnCluster.Builder |
configurations(IResolvable configurations)
Applies only to Amazon EMR releases 4.x and later.
|
CfnCluster.Builder |
configurations(java.util.List<? extends java.lang.Object> configurations)
Applies only to Amazon EMR releases 4.x and later.
|
static CfnCluster.Builder |
create(Construct scope,
java.lang.String id) |
CfnCluster.Builder |
customAmiId(java.lang.String customAmiId)
Available only in Amazon EMR version 5.7.0 and later.
|
CfnCluster.Builder |
ebsRootVolumeSize(java.lang.Number ebsRootVolumeSize)
The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each EC2 instance.
|
CfnCluster.Builder |
instances(CfnCluster.JobFlowInstancesConfigProperty instances)
A specification of the number and type of Amazon EC2 instances.
|
CfnCluster.Builder |
instances(IResolvable instances)
A specification of the number and type of Amazon EC2 instances.
|
CfnCluster.Builder |
jobFlowRole(java.lang.String jobFlowRole)
Also called instance profile and EC2 role.
|
CfnCluster.Builder |
kerberosAttributes(CfnCluster.KerberosAttributesProperty kerberosAttributes)
Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration.
|
CfnCluster.Builder |
kerberosAttributes(IResolvable kerberosAttributes)
Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration.
|
CfnCluster.Builder |
logEncryptionKmsKeyId(java.lang.String logEncryptionKmsKeyId)
The AWS KMS key used for encrypting log files.
|
CfnCluster.Builder |
logUri(java.lang.String logUri)
The path to the Amazon S3 location where logs for this cluster are stored.
|
CfnCluster.Builder |
managedScalingPolicy(CfnCluster.ManagedScalingPolicyProperty managedScalingPolicy)
Creates or updates a managed scaling policy for an Amazon EMR cluster.
|
CfnCluster.Builder |
managedScalingPolicy(IResolvable managedScalingPolicy)
Creates or updates a managed scaling policy for an Amazon EMR cluster.
|
CfnCluster.Builder |
name(java.lang.String name)
The name of the cluster.
|
CfnCluster.Builder |
releaseLabel(java.lang.String releaseLabel)
The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster.
|
CfnCluster.Builder |
scaleDownBehavior(java.lang.String scaleDownBehavior)
The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized.
|
CfnCluster.Builder |
securityConfiguration(java.lang.String securityConfiguration)
The name of the security configuration applied to the cluster.
|
CfnCluster.Builder |
serviceRole(java.lang.String serviceRole)
The IAM role that Amazon EMR assumes in order to access AWS resources on your behalf.
|
CfnCluster.Builder |
stepConcurrencyLevel(java.lang.Number stepConcurrencyLevel)
Specifies the number of steps that can be executed concurrently.
|
CfnCluster.Builder |
steps(IResolvable steps)
A list of steps to run.
|
CfnCluster.Builder |
steps(java.util.List<? extends java.lang.Object> steps)
A list of steps to run.
|
CfnCluster.Builder |
tags(java.util.List<? extends CfnTag> tags)
A list of tags associated with a cluster.
|
CfnCluster.Builder |
visibleToAllUsers(java.lang.Boolean visibleToAllUsers)
Indicates whether the cluster is visible to all IAM users of the AWS account associated with the cluster.
|
CfnCluster.Builder |
visibleToAllUsers(IResolvable visibleToAllUsers)
Indicates whether the cluster is visible to all IAM users of the AWS account associated with the cluster.
|
public static CfnCluster.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnCluster.ApplicationProperty.Builder
.public CfnCluster.Builder instances(CfnCluster.JobFlowInstancesConfigProperty instances)
instances
- A specification of the number and type of Amazon EC2 instances. This parameter is required.this
public CfnCluster.Builder instances(IResolvable instances)
instances
- A specification of the number and type of Amazon EC2 instances. This parameter is required.this
public CfnCluster.Builder jobFlowRole(java.lang.String jobFlowRole)
An IAM role for an EMR cluster. The EC2 instances of the cluster assume this role. The default role is EMR_EC2_DefaultRole
. In order to use the default role, you must have already created it using the CLI or console.
jobFlowRole
- Also called instance profile and EC2 role. This parameter is required.this
public CfnCluster.Builder name(java.lang.String name)
name
- The name of the cluster. This parameter is required.this
public CfnCluster.Builder serviceRole(java.lang.String serviceRole)
serviceRole
- The IAM role that Amazon EMR assumes in order to access AWS resources on your behalf. This parameter is required.this
public CfnCluster.Builder additionalInfo(java.lang.Object additionalInfo)
additionalInfo
- A JSON string for selecting additional features. This parameter is required.this
public CfnCluster.Builder applications(IResolvable applications)
applications
- The applications to install on this cluster, for example, Spark, Flink, Oozie, Zeppelin, and so on. This parameter is required.this
public CfnCluster.Builder applications(java.util.List<? extends java.lang.Object> applications)
applications
- The applications to install on this cluster, for example, Spark, Flink, Oozie, Zeppelin, and so on. This parameter is required.this
public CfnCluster.Builder autoScalingRole(java.lang.String autoScalingRole)
The default role is EMR_AutoScaling_DefaultRole
. The IAM role provides permissions that the automatic scaling feature requires to launch and terminate EC2 instances in an instance group.
autoScalingRole
- An IAM role for automatic scaling policies. This parameter is required.this
public CfnCluster.Builder bootstrapActions(IResolvable bootstrapActions)
bootstrapActions
- A list of bootstrap actions to run before Hadoop starts on the cluster nodes. This parameter is required.this
public CfnCluster.Builder bootstrapActions(java.util.List<? extends java.lang.Object> bootstrapActions)
bootstrapActions
- A list of bootstrap actions to run before Hadoop starts on the cluster nodes. This parameter is required.this
public CfnCluster.Builder configurations(IResolvable configurations)
configurations
- Applies only to Amazon EMR releases 4.x and later. The list of Configurations supplied to the EMR cluster. This parameter is required.this
public CfnCluster.Builder configurations(java.util.List<? extends java.lang.Object> configurations)
configurations
- Applies only to Amazon EMR releases 4.x and later. The list of Configurations supplied to the EMR cluster. This parameter is required.this
public CfnCluster.Builder customAmiId(java.lang.String customAmiId)
customAmiId
- Available only in Amazon EMR version 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI if the cluster uses a custom AMI. This parameter is required.this
public CfnCluster.Builder ebsRootVolumeSize(java.lang.Number ebsRootVolumeSize)
Available in Amazon EMR version 4.x and later.
ebsRootVolumeSize
- The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each EC2 instance. This parameter is required.this
public CfnCluster.Builder kerberosAttributes(IResolvable kerberosAttributes)
For more information see Use Kerberos Authentication in the Amazon EMR Management Guide .
kerberosAttributes
- Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. This parameter is required.this
public CfnCluster.Builder kerberosAttributes(CfnCluster.KerberosAttributesProperty kerberosAttributes)
For more information see Use Kerberos Authentication in the Amazon EMR Management Guide .
kerberosAttributes
- Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. This parameter is required.this
public CfnCluster.Builder logEncryptionKmsKeyId(java.lang.String logEncryptionKmsKeyId)
This attribute is only available with EMR version 5.30.0 and later, excluding EMR 6.0.0.
logEncryptionKmsKeyId
- The AWS KMS key used for encrypting log files. This parameter is required.this
public CfnCluster.Builder logUri(java.lang.String logUri)
logUri
- The path to the Amazon S3 location where logs for this cluster are stored. This parameter is required.this
public CfnCluster.Builder managedScalingPolicy(IResolvable managedScalingPolicy)
The managed scaling policy defines the limits for resources, such as EC2 instances that can be added or terminated from a cluster. The policy only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
managedScalingPolicy
- Creates or updates a managed scaling policy for an Amazon EMR cluster. This parameter is required.this
public CfnCluster.Builder managedScalingPolicy(CfnCluster.ManagedScalingPolicyProperty managedScalingPolicy)
The managed scaling policy defines the limits for resources, such as EC2 instances that can be added or terminated from a cluster. The policy only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
managedScalingPolicy
- Creates or updates a managed scaling policy for an Amazon EMR cluster. This parameter is required.this
public CfnCluster.Builder releaseLabel(java.lang.String releaseLabel)
Release labels are in the form emr-x.x.x
, where x.x.x is an Amazon EMR release version such as emr-5.14.0
. For more information about Amazon EMR release versions and included application versions and features, see . The release label applies only to Amazon EMR releases version 4.0 and later. Earlier versions use AmiVersion
.
releaseLabel
- The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster. This parameter is required.this
public CfnCluster.Builder scaleDownBehavior(java.lang.String scaleDownBehavior)
TERMINATE_AT_INSTANCE_HOUR
indicates that Amazon EMR terminates nodes at the instance-hour boundary, regardless of when the request to terminate the instance was submitted. This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version. TERMINATE_AT_TASK_COMPLETION
indicates that Amazon EMR adds nodes to a deny list and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to HDFS corruption. TERMINATE_AT_TASK_COMPLETION
is available only in Amazon EMR version 4.1.0 and later, and is the default for versions of Amazon EMR earlier than 5.1.0.
scaleDownBehavior
- The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. This parameter is required.this
public CfnCluster.Builder securityConfiguration(java.lang.String securityConfiguration)
securityConfiguration
- The name of the security configuration applied to the cluster. This parameter is required.this
public CfnCluster.Builder stepConcurrencyLevel(java.lang.Number stepConcurrencyLevel)
The default value is 1
. The maximum value is 256
.
stepConcurrencyLevel
- Specifies the number of steps that can be executed concurrently. This parameter is required.this
public CfnCluster.Builder steps(IResolvable steps)
steps
- A list of steps to run. This parameter is required.this
public CfnCluster.Builder steps(java.util.List<? extends java.lang.Object> steps)
steps
- A list of steps to run. This parameter is required.this
public CfnCluster.Builder tags(java.util.List<? extends CfnTag> tags)
tags
- A list of tags associated with a cluster. This parameter is required.this
public CfnCluster.Builder visibleToAllUsers(java.lang.Boolean visibleToAllUsers)
If this value is set to true
, all IAM users of that AWS account can view and manage the cluster if they have the proper policy permissions set. If this value is false
, only the IAM user that created the cluster can view and manage it. This value can be changed using the SetVisibleToAllUsers action.
When you create clusters directly through the EMR console or API, this value is set to
true
by default. However, forAWS::EMR::Cluster
resources in CloudFormation, the default isfalse
.
visibleToAllUsers
- Indicates whether the cluster is visible to all IAM users of the AWS account associated with the cluster. This parameter is required.this
public CfnCluster.Builder visibleToAllUsers(IResolvable visibleToAllUsers)
If this value is set to true
, all IAM users of that AWS account can view and manage the cluster if they have the proper policy permissions set. If this value is false
, only the IAM user that created the cluster can view and manage it. This value can be changed using the SetVisibleToAllUsers action.
When you create clusters directly through the EMR console or API, this value is set to
true
by default. However, forAWS::EMR::Cluster
resources in CloudFormation, the default isfalse
.
visibleToAllUsers
- Indicates whether the cluster is visible to all IAM users of the AWS account associated with the cluster. This parameter is required.this
public CfnCluster build()