interface CfnClusterProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EMR.CfnClusterProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsemr#CfnClusterProps |
![]() | software.amazon.awscdk.services.emr.CfnClusterProps |
![]() | aws_cdk.aws_emr.CfnClusterProps |
![]() | aws-cdk-lib » aws_emr » CfnClusterProps |
Properties for defining a CfnCluster
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-cluster.html
Example
// The generated example for this type would exceed 500 lines,
// and has been elided for readability.
Properties
Name | Type | Description |
---|---|---|
instances | IResolvable | Job | A specification of the number and type of Amazon EC2 instances. |
job | string | Also called instance profile and Amazon EC2 role. |
name | string | The name of the cluster. |
service | string | The IAM role that Amazon EMR assumes in order to access AWS resources on your behalf. |
additional | any | A JSON string for selecting additional features. |
applications? | IResolvable | IResolvable | Application [] | The applications to install on this cluster, for example, Spark, Flink, Oozie, Zeppelin, and so on. |
auto | string | An IAM role for automatic scaling policies. |
auto | IResolvable | Auto | An auto-termination policy for an Amazon EMR cluster. |
bootstrap | IResolvable | IResolvable | Bootstrap [] | A list of bootstrap actions to run before Hadoop starts on the cluster nodes. |
configurations? | IResolvable | IResolvable | Configuration [] | Applies only to Amazon EMR releases 4.x and later. The list of configurations that are supplied to the Amazon EMR cluster. |
custom | string | Available only in Amazon EMR releases 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI if the cluster uses a custom AMI. |
ebs | number | The IOPS, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance. |
ebs | number | The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance. |
ebs | number | The throughput, in MiB/s, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance. |
kerberos | IResolvable | Kerberos | Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. |
log | string | The AWS KMS key used for encrypting log files. |
log | string | The path to the Amazon S3 location where logs for this cluster are stored. |
managed | IResolvable | Managed | Creates or updates a managed scaling policy for an Amazon EMR cluster. |
os | string | The Amazon Linux release specified in a cluster launch RunJobFlow request. |
placement | IResolvable | IResolvable | Placement [] | |
release | string | The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster. |
scale | string | The way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. |
security | string | The name of the security configuration applied to the cluster. |
step | number | Specifies the number of steps that can be executed concurrently. |
steps? | IResolvable | IResolvable | Step [] | A list of steps to run. |
tags? | Cfn [] | A list of tags associated with a cluster. |
visible | boolean | IResolvable | Indicates whether the cluster is visible to all IAM users of the AWS account associated with the cluster. |
instances
Type:
IResolvable
|
Job
A specification of the number and type of Amazon EC2 instances.
jobFlowRole
Type:
string
Also called instance profile and Amazon EC2 role.
An IAM role for an Amazon EMR cluster. The Amazon 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 AWS CLI or console.
name
Type:
string
The name of the cluster.
This parameter can't contain the characters <, >, $, |, or ` (backtick).
serviceRole
Type:
string
The IAM role that Amazon EMR assumes in order to access AWS resources on your behalf.
additionalInfo?
Type:
any
(optional)
A JSON string for selecting additional features.
applications?
Type:
IResolvable
|
IResolvable
|
Application
[]
(optional)
The applications to install on this cluster, for example, Spark, Flink, Oozie, Zeppelin, and so on.
autoScalingRole?
Type:
string
(optional)
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 Amazon EC2 instances in an instance group.
autoTerminationPolicy?
Type:
IResolvable
|
Auto
(optional)
An auto-termination policy for an Amazon EMR cluster.
An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see Control cluster termination .
bootstrapActions?
Type:
IResolvable
|
IResolvable
|
Bootstrap
[]
(optional)
A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
configurations?
Type:
IResolvable
|
IResolvable
|
Configuration
[]
(optional)
Applies only to Amazon EMR releases 4.x and later. The list of configurations that are supplied to the Amazon EMR cluster.
customAmiId?
Type:
string
(optional)
Available only in Amazon EMR releases 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI if the cluster uses a custom AMI.
ebsRootVolumeIops?
Type:
number
(optional)
The IOPS, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance.
Available in Amazon EMR releases 6.15.0 and later.
ebsRootVolumeSize?
Type:
number
(optional)
The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance.
Available in Amazon EMR releases 4.x and later.
ebsRootVolumeThroughput?
Type:
number
(optional)
The throughput, in MiB/s, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance.
Available in Amazon EMR releases 6.15.0 and later.
kerberosAttributes?
Type:
IResolvable
|
Kerberos
(optional)
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 .
logEncryptionKmsKeyId?
Type:
string
(optional)
The AWS KMS key used for encrypting log files.
This attribute is only available with Amazon EMR 5.30.0 and later, excluding Amazon EMR 6.0.0.
logUri?
Type:
string
(optional)
The path to the Amazon S3 location where logs for this cluster are stored.
managedScalingPolicy?
Type:
IResolvable
|
Managed
(optional)
Creates or updates a managed scaling policy for an Amazon EMR cluster.
The managed scaling policy defines the limits for resources, such as Amazon 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.
osReleaseLabel?
Type:
string
(optional)
The Amazon Linux release specified in a cluster launch RunJobFlow request.
If no Amazon Linux release was specified, the default Amazon Linux release is shown in the response.
placementGroupConfigs?
Type:
IResolvable
|
IResolvable
|
Placement
[]
(optional)
releaseLabel?
Type:
string
(optional)
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
.
scaleDownBehavior?
Type:
string
(optional)
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 releases 4.1.0 and later, and is the default for versions of Amazon EMR earlier than 5.1.0.
securityConfiguration?
Type:
string
(optional)
The name of the security configuration applied to the cluster.
stepConcurrencyLevel?
Type:
number
(optional)
Specifies the number of steps that can be executed concurrently.
The default value is 1
. The maximum value is 256
.
steps?
Type:
IResolvable
|
IResolvable
|
Step
[]
(optional)
A list of steps to run.
tags?
Type:
Cfn
[]
(optional)
A list of tags associated with a cluster.
visibleToAllUsers?
Type:
boolean |
IResolvable
(optional)
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
true
by default. However, forAWS::EMR::Cluster
resources in CloudFormation, the default isfalse
.