aws-cdk-lib.aws_stepfunctions_tasks.ReleaseLabel

class ReleaseLabel

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.Tasks.ReleaseLabel
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#ReleaseLabel
Javasoftware.amazon.awscdk.services.stepfunctions.tasks.ReleaseLabel
Pythonaws_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

NameTypeDescription
labelstringA literal string that contains the release-version ex.
static EMR_5_32_0ReleaseLabelEMR Release version 5.32.0.
static EMR_5_33_0ReleaseLabelEMR Release version 5.33.0.
static EMR_6_2_0ReleaseLabelEMR Release version 6.2.0.
static EMR_6_3_0ReleaseLabelEMR 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: ReleaseLabel

EMR Release version 5.32.0.


static EMR_5_33_0

Type: ReleaseLabel

EMR Release version 5.33.0.


static EMR_6_2_0

Type: ReleaseLabel

EMR Release version 6.2.0.


static EMR_6_3_0

Type: ReleaseLabel

EMR Release version 6.3.0.