java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.stepfunctions.tasks.ReleaseLabel
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:48.131Z") @Stability(Stable) public class ReleaseLabel extends software.amazon.jsii.JsiiObject
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:

 EmrContainersStartJobRun.Builder.create(this, "EMR Containers Start Job Run")
         .virtualCluster(VirtualClusterInput.fromVirtualClusterId("de92jdei2910fwedz"))
         .releaseLabel(ReleaseLabel.EMR_6_2_0)
         .jobName("EMR-Containers-Job")
         .jobDriver(JobDriver.builder()
                 .sparkSubmitJobDriver(SparkSubmitJobDriver.builder()
                         .entryPoint(TaskInput.fromText("local:///usr/lib/spark/examples/src/main/python/pi.py"))
                         .build())
                 .build())
         .applicationConfig(List.of(ApplicationConfiguration.builder()
                 .classification(Classification.SPARK_DEFAULTS)
                 .properties(Map.of(
                         "spark.executor.instances", "1",
                         "spark.executor.memory", "512M"))
                 .build()))
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ReleaseLabel
    EMR Release version 5.32.0.
    static final ReleaseLabel
    EMR Release version 5.33.0.
    static final ReleaseLabel
    EMR Release version 6.2.0.
    static final ReleaseLabel
    EMR Release version 6.3.0.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    Initializes the label string.
    protected
    ReleaseLabel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    ReleaseLabel(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    A literal string that contains the release-version ex.

    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, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Field Details

    • EMR_5_32_0

      @Stability(Stable) public static final ReleaseLabel EMR_5_32_0
      EMR Release version 5.32.0.
    • EMR_5_33_0

      @Stability(Stable) public static final ReleaseLabel EMR_5_33_0
      EMR Release version 5.33.0.
    • EMR_6_2_0

      @Stability(Stable) public static final ReleaseLabel EMR_6_2_0
      EMR Release version 6.2.0.
    • EMR_6_3_0

      @Stability(Stable) public static final ReleaseLabel EMR_6_3_0
      EMR Release version 6.3.0.
  • Constructor Details

    • ReleaseLabel

      protected ReleaseLabel(software.amazon.jsii.JsiiObjectRef objRef)
    • ReleaseLabel

      protected ReleaseLabel(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ReleaseLabel

      @Stability(Stable) public ReleaseLabel(@NotNull String label)
      Initializes the label string.

      Parameters:
      label - A literal string that contains the release-version ex. This parameter is required.
  • Method Details

    • getLabel

      @Stability(Stable) @NotNull public String getLabel()
      A literal string that contains the release-version ex.

      'emr-x.x.x-latest'