Interface EmrCreateClusterProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,TaskStateBaseProps
- All Known Implementing Classes:
EmrCreateClusterProps.Jsii$Proxy
See the RunJobFlow API for complete documentation on input parameters
Example:
Role clusterRole = Role.Builder.create(this, "ClusterRole") .assumedBy(new ServicePrincipal("ec2.amazonaws.com")) .build(); Role serviceRole = Role.Builder.create(this, "ServiceRole") .assumedBy(new ServicePrincipal("elasticmapreduce.amazonaws.com")) .build(); Role autoScalingRole = Role.Builder.create(this, "AutoScalingRole") .assumedBy(new ServicePrincipal("elasticmapreduce.amazonaws.com")) .build(); autoScalingRole.assumeRolePolicy.addStatements( PolicyStatement.Builder.create() .effect(Effect.ALLOW) .principals(List.of( new ServicePrincipal("application-autoscaling.amazonaws.com"))) .actions(List.of("sts:AssumeRole")) .build()); EmrCreateCluster.Builder.create(this, "Create Cluster") .instances(InstancesConfigProperty.builder().build()) .clusterRole(clusterRole) .name(TaskInput.fromJsonPathAt("$.ClusterName").getValue()) .serviceRole(serviceRole) .autoScalingRole(autoScalingRole) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEmrCreateClusterProps
static final class
An implementation forEmrCreateClusterProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
A JSON string for selecting additional features.A case-insensitive list of applications for Amazon EMR to install and configure when launching the cluster.default IRole
An IAM role for automatic scaling policies.default Duration
The amount of idle time after which the cluster automatically terminates.A list of bootstrap actions to run before Hadoop starts on the cluster nodes.default IRole
Also called instance profile and EC2 role.The list of configurations supplied for the EMR cluster you are creating.default String
The ID of a custom Amazon EBS-backed Linux AMI.default Size
The size of the EBS root device volume of the Linux AMI that is used for each EC2 instance.A specification of the number and type of Amazon EC2 instances.Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration.default String
The location in Amazon S3 to write the log files of the job flow.getName()
The Name of the Cluster.default String
The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster.Specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized.default String
The name of a security configuration to apply to the cluster.default IRole
The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.default Number
Specifies the step concurrency level to allow multiple steps to run in parallel.getTags()
A list of tags to associate with a cluster and propagate to Amazon EC2 instances.default Boolean
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.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.stepfunctions.TaskStateBaseProps
getComment, getCredentials, getHeartbeat, getHeartbeatTimeout, getInputPath, getIntegrationPattern, getOutputPath, getResultPath, getResultSelector, getStateName, getTaskTimeout, getTimeout
-
Method Details
-
getInstances
A specification of the number and type of Amazon EC2 instances. -
getName
The Name of the Cluster. -
getAdditionalInfo
A JSON string for selecting additional features.Default: - None
-
getApplications
@Stability(Stable) @Nullable default List<EmrCreateCluster.ApplicationConfigProperty> getApplications()A case-insensitive list of applications for Amazon EMR to install and configure when launching the cluster.Default: - EMR selected default
-
getAutoScalingRole
An IAM role for automatic scaling policies.Default: - A role will be created.
-
getAutoTerminationPolicyIdleTimeout
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).
Default: - No timeout
-
getBootstrapActions
@Stability(Stable) @Nullable default List<EmrCreateCluster.BootstrapActionConfigProperty> getBootstrapActions()A list of bootstrap actions to run before Hadoop starts on the cluster nodes.Default: - None
-
getClusterRole
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.
Default: - * A Role will be created
-
getConfigurations
@Stability(Stable) @Nullable default List<EmrCreateCluster.ConfigurationProperty> getConfigurations()The list of configurations supplied for the EMR cluster you are creating.Default: - None
-
getCustomAmiId
The ID of a custom Amazon EBS-backed Linux AMI.Default: - None
-
getEbsRootVolumeSize
The size of the EBS root device volume of the Linux AMI that is used for each EC2 instance.Default: - EMR selected default
-
getKerberosAttributes
@Stability(Stable) @Nullable default EmrCreateCluster.KerberosAttributesProperty getKerberosAttributes()Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration.Default: - None
-
getLogUri
The location in Amazon S3 to write the log files of the job flow.Default: - None
-
getReleaseLabel
The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster.Default: - EMR selected default
-
getScaleDownBehavior
@Stability(Stable) @Nullable default EmrCreateCluster.EmrClusterScaleDownBehavior getScaleDownBehavior()Specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized.Default: - EMR selected default
-
getSecurityConfiguration
The name of a security configuration to apply to the cluster.Default: - None
-
getServiceRole
The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.Default: - A role will be created that Amazon EMR service can assume.
-
getStepConcurrencyLevel
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].
Default: 1 - no step concurrency allowed
-
getTags
A list of tags to associate with a cluster and propagate to Amazon EC2 instances.Default: - None
-
getVisibleToAllUsers
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.Default: true
-
builder
- Returns:
- a
EmrCreateClusterProps.Builder
ofEmrCreateClusterProps
-