@Stability(value=Stable) public static final class CfnClusterProps.Builder extends Object implements software.amazon.jsii.Builder<CfnClusterProps>
CfnClusterProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnClusterProps.Builder instances(CfnCluster.JobFlowInstancesConfigProperty instances)
CfnClusterProps.getInstances()instances - A specification of the number and type of Amazon EC2 instances. This parameter is required.this@Stability(value=Stable) public CfnClusterProps.Builder instances(IResolvable instances)
CfnClusterProps.getInstances()instances - A specification of the number and type of Amazon EC2 instances. This parameter is required.this@Stability(value=Stable) public CfnClusterProps.Builder jobFlowRole(String jobFlowRole)
CfnClusterProps.getJobFlowRole()jobFlowRole - Also called instance profile and EC2 role. This parameter is required.
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.this@Stability(value=Stable) public CfnClusterProps.Builder name(String name)
CfnClusterProps.getName()name - The name of the cluster. This parameter is required.this@Stability(value=Stable) public CfnClusterProps.Builder serviceRole(String serviceRole)
CfnClusterProps.getServiceRole()serviceRole - The IAM role that Amazon EMR assumes in order to access AWS resources on your behalf. This parameter is required.this@Stability(value=Stable) public CfnClusterProps.Builder additionalInfo(Object additionalInfo)
CfnClusterProps.getAdditionalInfo()additionalInfo - A JSON string for selecting additional features.this@Stability(value=Stable) public CfnClusterProps.Builder applications(IResolvable applications)
CfnClusterProps.getApplications()applications - The applications to install on this cluster, for example, Spark, Flink, Oozie, Zeppelin, and so on.this@Stability(value=Stable) public CfnClusterProps.Builder applications(List<? extends Object> applications)
CfnClusterProps.getApplications()applications - The applications to install on this cluster, for example, Spark, Flink, Oozie, Zeppelin, and so on.this@Stability(value=Stable) public CfnClusterProps.Builder autoScalingRole(String autoScalingRole)
CfnClusterProps.getAutoScalingRole()autoScalingRole - An IAM role for automatic scaling policies.
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.this@Stability(value=Stable) public CfnClusterProps.Builder autoTerminationPolicy(CfnCluster.AutoTerminationPolicyProperty autoTerminationPolicy)
CfnClusterProps.getAutoTerminationPolicy()autoTerminationPolicy - `AWS::EMR::Cluster.AutoTerminationPolicy`.this@Stability(value=Stable) public CfnClusterProps.Builder autoTerminationPolicy(IResolvable autoTerminationPolicy)
CfnClusterProps.getAutoTerminationPolicy()autoTerminationPolicy - `AWS::EMR::Cluster.AutoTerminationPolicy`.this@Stability(value=Stable) public CfnClusterProps.Builder bootstrapActions(IResolvable bootstrapActions)
CfnClusterProps.getBootstrapActions()bootstrapActions - A list of bootstrap actions to run before Hadoop starts on the cluster nodes.this@Stability(value=Stable) public CfnClusterProps.Builder bootstrapActions(List<? extends Object> bootstrapActions)
CfnClusterProps.getBootstrapActions()bootstrapActions - A list of bootstrap actions to run before Hadoop starts on the cluster nodes.this@Stability(value=Stable) public CfnClusterProps.Builder configurations(IResolvable configurations)
CfnClusterProps.getConfigurations()configurations - Applies only to Amazon EMR releases 4.x and later. The list of Configurations supplied to the EMR cluster.this@Stability(value=Stable) public CfnClusterProps.Builder configurations(List<? extends Object> configurations)
CfnClusterProps.getConfigurations()configurations - Applies only to Amazon EMR releases 4.x and later. The list of Configurations supplied to the EMR cluster.this@Stability(value=Stable) public CfnClusterProps.Builder customAmiId(String customAmiId)
CfnClusterProps.getCustomAmiId()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@Stability(value=Stable) public CfnClusterProps.Builder ebsRootVolumeSize(Number ebsRootVolumeSize)
CfnClusterProps.getEbsRootVolumeSize()ebsRootVolumeSize - The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each EC2 instance.
Available in Amazon EMR version 4.x and later.this@Stability(value=Stable) public CfnClusterProps.Builder kerberosAttributes(CfnCluster.KerberosAttributesProperty kerberosAttributes)
CfnClusterProps.getKerberosAttributes()kerberosAttributes - Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration.
For more information see Use Kerberos Authentication in the Amazon EMR Management Guide .this@Stability(value=Stable) public CfnClusterProps.Builder kerberosAttributes(IResolvable kerberosAttributes)
CfnClusterProps.getKerberosAttributes()kerberosAttributes - Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration.
For more information see Use Kerberos Authentication in the Amazon EMR Management Guide .this@Stability(value=Stable) public CfnClusterProps.Builder logEncryptionKmsKeyId(String logEncryptionKmsKeyId)
CfnClusterProps.getLogEncryptionKmsKeyId()logEncryptionKmsKeyId - The AWS KMS key used for encrypting log files.
This attribute is only available with EMR version 5.30.0 and later, excluding EMR 6.0.0.this@Stability(value=Stable) public CfnClusterProps.Builder logUri(String logUri)
CfnClusterProps.getLogUri()logUri - The path to the Amazon S3 location where logs for this cluster are stored.this@Stability(value=Stable) public CfnClusterProps.Builder managedScalingPolicy(CfnCluster.ManagedScalingPolicyProperty managedScalingPolicy)
CfnClusterProps.getManagedScalingPolicy()managedScalingPolicy - Creates or updates a managed scaling policy for an Amazon EMR cluster.
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.this@Stability(value=Stable) public CfnClusterProps.Builder managedScalingPolicy(IResolvable managedScalingPolicy)
CfnClusterProps.getManagedScalingPolicy()managedScalingPolicy - Creates or updates a managed scaling policy for an Amazon EMR cluster.
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.this@Stability(value=Stable) public CfnClusterProps.Builder releaseLabel(String releaseLabel)
CfnClusterProps.getReleaseLabel()releaseLabel - The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster.
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 .this@Stability(value=Stable) public CfnClusterProps.Builder scaleDownBehavior(String scaleDownBehavior)
CfnClusterProps.getScaleDownBehavior()scaleDownBehavior - The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized.
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.this@Stability(value=Stable) public CfnClusterProps.Builder securityConfiguration(String securityConfiguration)
CfnClusterProps.getSecurityConfiguration()securityConfiguration - The name of the security configuration applied to the cluster.this@Stability(value=Stable) public CfnClusterProps.Builder stepConcurrencyLevel(Number stepConcurrencyLevel)
CfnClusterProps.getStepConcurrencyLevel()stepConcurrencyLevel - Specifies the number of steps that can be executed concurrently.
The default value is 1 . The maximum value is 256 .this@Stability(value=Stable) public CfnClusterProps.Builder steps(IResolvable steps)
CfnClusterProps.getSteps()steps - A list of steps to run.this@Stability(value=Stable) public CfnClusterProps.Builder steps(List<? extends Object> steps)
CfnClusterProps.getSteps()steps - A list of steps to run.this@Stability(value=Stable) public CfnClusterProps.Builder tags(List<? extends CfnTag> tags)
CfnClusterProps.getTags()tags - A list of tags associated with a cluster.this@Stability(value=Stable) public CfnClusterProps.Builder visibleToAllUsers(Boolean visibleToAllUsers)
CfnClusterProps.getVisibleToAllUsers()visibleToAllUsers - Indicates whether the cluster is visible to all IAM users of the AWS account associated with the cluster.
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
trueby default. However, forAWS::EMR::Clusterresources in CloudFormation, the default isfalse.
this@Stability(value=Stable) public CfnClusterProps.Builder visibleToAllUsers(IResolvable visibleToAllUsers)
CfnClusterProps.getVisibleToAllUsers()visibleToAllUsers - Indicates whether the cluster is visible to all IAM users of the AWS account associated with the cluster.
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
trueby default. However, forAWS::EMR::Clusterresources in CloudFormation, the default isfalse.
this@Stability(value=Stable) public CfnClusterProps build()
build in interface software.amazon.jsii.Builder<CfnClusterProps>CfnClusterPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.