Class EmrCreateCluster
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.stepfunctions.State
software.amazon.awscdk.services.stepfunctions.TaskStateBase
software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster
- All Implemented Interfaces:
IChainable
,INextable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:10.324Z")
@Stability(Stable)
public class EmrCreateCluster
extends TaskStateBase
A Step Functions Task to create an EMR Cluster.
The ClusterConfiguration is defined as Parameters in the state machine definition.
OUTPUT: the ClusterId.
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();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Properties for the EMR Cluster Applications.static interface
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.static interface
Configuration of a bootstrap action.static final class
A fluent builder forEmrCreateCluster
.static enum
CloudWatch Alarm Comparison Operators.static interface
The definition of a CloudWatch metric alarm, which determines when an automatic scaling activity is triggered.static enum
CloudWatch Alarm Statistics.static enum
CloudWatch Alarm Units.static interface
An optional configuration specification to be used when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR.static interface
Configuration of requested EBS block device associated with the instance group with count of volumes that will be associated to every instance.static enum
EBS Volume Types.static interface
The Amazon EBS configuration of a cluster instance.static enum
The Cluster ScaleDownBehavior specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized.static interface
The configuration that defines an instance fleet.static interface
The launch specification for On-Demand and Spot instances in the fleet, which determines the defined duration and provisioning timeout behavior, and allocation strategy.static interface
Configuration defining a new instance group.static enum
EC2 Instance Market.static enum
Instance Role Types.static interface
A specification of the number and type of Amazon EC2 instances.static interface
An instance type configuration for each instance type in an instance fleet, which determines the EC2 instances Amazon EMR attempts to provision to fulfill On-Demand and Spot target capacities.static interface
Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration.static interface
A CloudWatch dimension, which is specified using a Key (known as a Name in CloudWatch), Value pair.static enum
On-Demand Allocation Strategies.static interface
The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy.static interface
The Amazon EC2 Availability Zone configuration of the cluster (job flow).static interface
The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment.static enum
AutoScaling Adjustment Type.static interface
The upper and lower EC2 instance limits for an automatic scaling policy.static interface
A scale-in or scale-out rule that defines scaling activity, including the CloudWatch metric alarm that triggers activity, how EC2 instances are added or removed, and the periodicity of adjustments.static interface
The conditions that trigger an automatic scaling activity and the definition of a CloudWatch metric alarm.static interface
Configuration of the script to run during a bootstrap action.static interface
An automatic scaling configuration, which describes how the policy adds or removes instances, the cooldown period, and the number of EC2 instances that will be added each time the CloudWatch metric alarm condition is satisfied.static enum
Spot Allocation Strategies.static interface
The launch specification for Spot instances in the instance fleet, which determines the defined duration and provisioning timeout behavior.static enum
Spot Timeout Actions.static interface
EBS volume specifications such as volume type, IOPS, and size (GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.stepfunctions.IChainable
IChainable.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.stepfunctions.INextable
INextable.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
EmrCreateCluster
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
EmrCreateCluster
(software.amazon.jsii.JsiiObjectRef objRef) EmrCreateCluster
(software.constructs.Construct scope, String id, EmrCreateClusterProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe autoscaling role for the EMR Cluster.The instance role for the EMR Cluster.The service role for the EMR Cluster.protected TaskMetricsConfig
protected List<PolicyStatement>
Methods inherited from class software.amazon.awscdk.services.stepfunctions.TaskStateBase
addCatch, addCatch, addRetry, addRetry, getEndStates, metric, metric, metricFailed, metricFailed, metricHeartbeatTimedOut, metricHeartbeatTimedOut, metricRunTime, metricRunTime, metricScheduled, metricScheduled, metricScheduleTime, metricScheduleTime, metricStarted, metricStarted, metricSucceeded, metricSucceeded, metricTime, metricTime, metricTimedOut, metricTimedOut, next, toStateJson, whenBoundToGraph
Methods inherited from class software.amazon.awscdk.services.stepfunctions.State
addBranch, addChoice, addChoice, addItemProcessor, addItemProcessor, addIterator, addPrefix, bindToGraph, filterNextables, findReachableEndStates, findReachableEndStates, findReachableStates, findReachableStates, getBranches, getComment, getDefaultChoice, getId, getInputPath, getIteration, getOutputPath, getParameters, getProcessor, getProcessorConfig, getProcessorMode, getResultPath, getResultSelector, getStartState, getStateId, getStateName, makeDefault, makeNext, prefixStates, renderBranches, renderChoices, renderInputOutput, renderItemProcessor, renderIterator, renderNextEnd, renderResultSelector, renderRetryCatch, setDefaultChoice, setIteration, setProcessor, setProcessorConfig, setProcessorMode, validateState
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
EmrCreateCluster
protected EmrCreateCluster(software.amazon.jsii.JsiiObjectRef objRef) -
EmrCreateCluster
protected EmrCreateCluster(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
EmrCreateCluster
@Stability(Stable) public EmrCreateCluster(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull EmrCreateClusterProps props) - Parameters:
scope
- This parameter is required.id
- Descriptive identifier for this chainable. This parameter is required.props
- This parameter is required.
-
-
Method Details
-
getAutoScalingRole
The autoscaling role for the EMR Cluster.Only available after task has been added to a state machine.
-
getClusterRole
The instance role for the EMR Cluster.Only available after task has been added to a state machine.
-
getServiceRole
The service role for the EMR Cluster.Only available after task has been added to a state machine.
-
getTaskMetrics
- Specified by:
getTaskMetrics
in classTaskStateBase
-
getTaskPolicies
- Specified by:
getTaskPolicies
in classTaskStateBase
-