class ReleaseLabel
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.Tasks.ReleaseLabel |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#ReleaseLabel |
Java | software.amazon.awscdk.services.stepfunctions.tasks.ReleaseLabel |
Python | aws_cdk.aws_stepfunctions_tasks.ReleaseLabel |
TypeScript (source) | aws-cdk-lib » aws_stepfunctions_tasks » ReleaseLabel |
The Amazon EMR release version to use for the job run.
Can be extended to include new EMR releases
For example, new ReleaseLabel('emr-x.xx.x-latest');
Example
new tasks.EmrContainersStartJobRun(this, 'EMR Containers Start Job Run', {
virtualCluster: tasks.VirtualClusterInput.fromVirtualClusterId('de92jdei2910fwedz'),
releaseLabel: tasks.ReleaseLabel.EMR_6_2_0,
jobName: 'EMR-Containers-Job',
jobDriver: {
sparkSubmitJobDriver: {
entryPoint: sfn.TaskInput.fromText('local:///usr/lib/spark/examples/src/main/python/pi.py'),
},
},
applicationConfig: [{
classification: tasks.Classification.SPARK_DEFAULTS,
properties: {
'spark.executor.instances': '1',
'spark.executor.memory': '512M',
},
}],
});
Initializer
new ReleaseLabel(label: string)
Parameters
- label
string
— A literal string that contains the release-version ex.
Initializes the label string.
Properties
Name | Type | Description |
---|---|---|
label | string | A literal string that contains the release-version ex. |
static EMR_5_32_0 | Release | EMR Release version 5.32.0. |
static EMR_5_33_0 | Release | EMR Release version 5.33.0. |
static EMR_6_2_0 | Release | EMR Release version 6.2.0. |
static EMR_6_3_0 | Release | EMR Release version 6.3.0. |
label
Type:
string
A literal string that contains the release-version ex.
'emr-x.x.x-latest'
static EMR_5_32_0
Type:
Release
EMR Release version 5.32.0.
static EMR_5_33_0
Type:
Release
EMR Release version 5.33.0.
static EMR_6_2_0
Type:
Release
EMR Release version 6.2.0.
static EMR_6_3_0
Type:
Release
EMR Release version 6.3.0.