Interface CfnApplicationProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnApplicationProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:56.697Z") @Stability(Stable) public interface CfnApplicationProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnApplication.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.emrserverless.*;
 CfnApplicationProps cfnApplicationProps = CfnApplicationProps.builder()
         .releaseLabel("releaseLabel")
         .type("type")
         // the properties below are optional
         .architecture("architecture")
         .autoStartConfiguration(AutoStartConfigurationProperty.builder()
                 .enabled(false)
                 .build())
         .autoStopConfiguration(AutoStopConfigurationProperty.builder()
                 .enabled(false)
                 .idleTimeoutMinutes(123)
                 .build())
         .imageConfiguration(ImageConfigurationInputProperty.builder()
                 .imageUri("imageUri")
                 .build())
         .initialCapacity(List.of(InitialCapacityConfigKeyValuePairProperty.builder()
                 .key("key")
                 .value(InitialCapacityConfigProperty.builder()
                         .workerConfiguration(WorkerConfigurationProperty.builder()
                                 .cpu("cpu")
                                 .memory("memory")
                                 // the properties below are optional
                                 .disk("disk")
                                 .build())
                         .workerCount(123)
                         .build())
                 .build()))
         .maximumCapacity(MaximumAllowedResourcesProperty.builder()
                 .cpu("cpu")
                 .memory("memory")
                 // the properties below are optional
                 .disk("disk")
                 .build())
         .name("name")
         .networkConfiguration(NetworkConfigurationProperty.builder()
                 .securityGroupIds(List.of("securityGroupIds"))
                 .subnetIds(List.of("subnetIds"))
                 .build())
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .workerTypeSpecifications(Map.of(
                 "workerTypeSpecificationsKey", WorkerTypeSpecificationInputProperty.builder()
                         .imageConfiguration(ImageConfigurationInputProperty.builder()
                                 .imageUri("imageUri")
                                 .build())
                         .build()))
         .build();
 
  • Method Details

    • getReleaseLabel

      @Stability(Stable) @NotNull String getReleaseLabel()
      The EMR release version associated with the application.

      Minimum : 1

      Maximum : 64

      Pattern : ^[A-Za-z0-9._/-]+$

    • getType

      @Stability(Stable) @NotNull String getType()
      The type of application, such as Spark or Hive.
    • getArchitecture

      @Stability(Stable) @Nullable default String getArchitecture()
      The CPU architecture type of the application.

      Allowed values: X86_64 or ARM64

    • getAutoStartConfiguration

      @Stability(Stable) @Nullable default Object getAutoStartConfiguration()
      The configuration for an application to automatically start on job submission.
    • getAutoStopConfiguration

      @Stability(Stable) @Nullable default Object getAutoStopConfiguration()
      The configuration for an application to automatically stop after a certain amount of time being idle.
    • getImageConfiguration

      @Stability(Stable) @Nullable default Object getImageConfiguration()
      AWS::EMRServerless::Application.ImageConfiguration.
    • getInitialCapacity

      @Stability(Stable) @Nullable default Object getInitialCapacity()
      The initial capacity of the application.
    • getMaximumCapacity

      @Stability(Stable) @Nullable default Object getMaximumCapacity()
      The maximum capacity of the application.

      This is cumulative across all workers at any given point in time during the lifespan of the application is created. No new resources will be created once any one of the defined limits is hit.

    • getName

      @Stability(Stable) @Nullable default String getName()
      The name of the application.

      Minimum : 1

      Maximum : 64

      Pattern : ^[A-Za-z0-9._\\/#-]+$

    • getNetworkConfiguration

      @Stability(Stable) @Nullable default Object getNetworkConfiguration()
      The network configuration for customer VPC connectivity for the application.
    • getTags

      @Stability(Stable) @Nullable default List<CfnTag> getTags()
      The tags assigned to the application.
    • getWorkerTypeSpecifications

      @Stability(Stable) @Nullable default Object getWorkerTypeSpecifications()
      AWS::EMRServerless::Application.WorkerTypeSpecifications.
    • builder

      @Stability(Stable) static CfnApplicationProps.Builder builder()
      Returns:
      a CfnApplicationProps.Builder of CfnApplicationProps