ReleaseLabel

class aws_cdk.aws_stepfunctions_tasks.ReleaseLabel(label)

Bases: object

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');

ExampleMetadata:

infused

Example:

tasks.EmrContainersStartJobRun(self, "EMR Containers Start Job Run",
    virtual_cluster=tasks.VirtualClusterInput.from_virtual_cluster_id("de92jdei2910fwedz"),
    release_label=tasks.ReleaseLabel.EMR_6_2_0,
    job_name="EMR-Containers-Job",
    job_driver=tasks.JobDriver(
        spark_submit_job_driver=tasks.SparkSubmitJobDriver(
            entry_point=sfn.TaskInput.from_text("local:///usr/lib/spark/examples/src/main/python/pi.py")
        )
    ),
    application_config=[tasks.ApplicationConfiguration(
        classification=tasks.Classification.SPARK_DEFAULTS,
        properties={
            "spark.executor.instances": "1",
            "spark.executor.memory": "512M"
        }
    )]
)

Initializes the label string.

Parameters:

label (str) – A literal string that contains the release-version ex. ‘emr-x.x.x-latest’

Attributes

EMR_5_32_0 = <aws_cdk.aws_stepfunctions_tasks.ReleaseLabel object>
EMR_5_33_0 = <aws_cdk.aws_stepfunctions_tasks.ReleaseLabel object>
EMR_6_2_0 = <aws_cdk.aws_stepfunctions_tasks.ReleaseLabel object>
EMR_6_3_0 = <aws_cdk.aws_stepfunctions_tasks.ReleaseLabel object>
label

A literal string that contains the release-version ex.

‘emr-x.x.x-latest’