Class CfnApplication

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-04-10T22:22:28.133Z") @Stability(Stable) public class CfnApplication extends CfnResource implements IInspectable, ITaggable
The AWS::EMRServerless::Application resource specifies an EMR Serverless application.

An application uses open source analytics frameworks to run jobs that process data. To create an application, you must specify the release version for the open source framework version you want to use and the type of application you want, such as Apache Spark or Apache Hive. After you create an application, you can submit data processing jobs or interactive requests to it.

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.*;
 ConfigurationObjectProperty configurationObjectProperty_;
 CfnApplication cfnApplication = CfnApplication.Builder.create(this, "MyCfnApplication")
         .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())
         .monitoringConfiguration(MonitoringConfigurationProperty.builder()
                 .cloudWatchLoggingConfiguration(CloudWatchLoggingConfigurationProperty.builder()
                         .enabled(false)
                         .encryptionKeyArn("encryptionKeyArn")
                         .logGroupName("logGroupName")
                         .logStreamNamePrefix("logStreamNamePrefix")
                         .logTypeMap(List.of(LogTypeMapKeyValuePairProperty.builder()
                                 .key("key")
                                 .value(List.of("value"))
                                 .build()))
                         .build())
                 .managedPersistenceMonitoringConfiguration(ManagedPersistenceMonitoringConfigurationProperty.builder()
                         .enabled(false)
                         .encryptionKeyArn("encryptionKeyArn")
                         .build())
                 .s3MonitoringConfiguration(S3MonitoringConfigurationProperty.builder()
                         .encryptionKeyArn("encryptionKeyArn")
                         .logUri("logUri")
                         .build())
                 .build())
         .name("name")
         .networkConfiguration(NetworkConfigurationProperty.builder()
                 .securityGroupIds(List.of("securityGroupIds"))
                 .subnetIds(List.of("subnetIds"))
                 .build())
         .runtimeConfiguration(List.of(ConfigurationObjectProperty.builder()
                 .classification("classification")
                 // the properties below are optional
                 .configurations(List.of(configurationObjectProperty_))
                 .properties(Map.of(
                         "propertiesKey", "properties"))
                 .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();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnApplication

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

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

      @Stability(Stable) public CfnApplication(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnApplicationProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrApplicationId

      @Stability(Stable) @NotNull public String getAttrApplicationId()
      The ID of the application, such as ab4rp1abcs8xz47n3x0example .
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the project.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getReleaseLabel

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

      @Stability(Stable) public void setReleaseLabel(@NotNull String value)
      The EMR release associated with the application.
    • getType

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

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

      @Stability(Stable) @Nullable public String getArchitecture()
      The CPU architecture of an application.
    • setArchitecture

      @Stability(Stable) public void setArchitecture(@Nullable String value)
      The CPU architecture of an application.
    • getAutoStartConfiguration

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

      @Stability(Stable) public void setAutoStartConfiguration(@Nullable IResolvable value)
      The configuration for an application to automatically start on job submission.
    • setAutoStartConfiguration

      @Stability(Stable) public void setAutoStartConfiguration(@Nullable CfnApplication.AutoStartConfigurationProperty value)
      The configuration for an application to automatically start on job submission.
    • getAutoStopConfiguration

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

      @Stability(Stable) public void setAutoStopConfiguration(@Nullable IResolvable value)
      The configuration for an application to automatically stop after a certain amount of time being idle.
    • setAutoStopConfiguration

      @Stability(Stable) public void setAutoStopConfiguration(@Nullable CfnApplication.AutoStopConfigurationProperty value)
      The configuration for an application to automatically stop after a certain amount of time being idle.
    • getImageConfiguration

      @Stability(Stable) @Nullable public Object getImageConfiguration()
      The image configuration applied to all worker types.
    • setImageConfiguration

      @Stability(Stable) public void setImageConfiguration(@Nullable IResolvable value)
      The image configuration applied to all worker types.
    • setImageConfiguration

      @Stability(Stable) public void setImageConfiguration(@Nullable CfnApplication.ImageConfigurationInputProperty value)
      The image configuration applied to all worker types.
    • getInitialCapacity

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

      @Stability(Stable) public void setInitialCapacity(@Nullable IResolvable value)
      The initial capacity of the application.
    • setInitialCapacity

      @Stability(Stable) public void setInitialCapacity(@Nullable List<Object> value)
      The initial capacity of the application.
    • getMaximumCapacity

      @Stability(Stable) @Nullable public Object getMaximumCapacity()
      The maximum capacity of the application.
    • setMaximumCapacity

      @Stability(Stable) public void setMaximumCapacity(@Nullable IResolvable value)
      The maximum capacity of the application.
    • setMaximumCapacity

      @Stability(Stable) public void setMaximumCapacity(@Nullable CfnApplication.MaximumAllowedResourcesProperty value)
      The maximum capacity of the application.
    • getMonitoringConfiguration

      @Stability(Stable) @Nullable public Object getMonitoringConfiguration()
      A configuration specification to be used when provisioning an application.
    • setMonitoringConfiguration

      @Stability(Stable) public void setMonitoringConfiguration(@Nullable IResolvable value)
      A configuration specification to be used when provisioning an application.
    • setMonitoringConfiguration

      @Stability(Stable) public void setMonitoringConfiguration(@Nullable CfnApplication.MonitoringConfigurationProperty value)
      A configuration specification to be used when provisioning an application.
    • getName

      @Stability(Stable) @Nullable public String getName()
      The name of the application.
    • setName

      @Stability(Stable) public void setName(@Nullable String value)
      The name of the application.
    • getNetworkConfiguration

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

      @Stability(Stable) public void setNetworkConfiguration(@Nullable IResolvable value)
      The network configuration for customer VPC connectivity for the application.
    • setNetworkConfiguration

      @Stability(Stable) public void setNetworkConfiguration(@Nullable CfnApplication.NetworkConfigurationProperty value)
      The network configuration for customer VPC connectivity for the application.
    • getRuntimeConfiguration

      @Stability(Stable) @Nullable public Object getRuntimeConfiguration()
      The Configuration specifications of an application. Each configuration consists of a classification and properties. You use this parameter when creating or updating an application. To see the runtimeConfiguration object of an application, run the GetApplication API operation.
    • setRuntimeConfiguration

      @Stability(Stable) public void setRuntimeConfiguration(@Nullable IResolvable value)
      The Configuration specifications of an application. Each configuration consists of a classification and properties. You use this parameter when creating or updating an application. To see the runtimeConfiguration object of an application, run the GetApplication API operation.
    • setRuntimeConfiguration

      @Stability(Stable) public void setRuntimeConfiguration(@Nullable List<Object> value)
      The Configuration specifications of an application. Each configuration consists of a classification and properties. You use this parameter when creating or updating an application. To see the runtimeConfiguration object of an application, run the GetApplication API operation.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      The tags assigned to the application.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      The tags assigned to the application.
    • getWorkerTypeSpecifications

      @Stability(Stable) @Nullable public Object getWorkerTypeSpecifications()
      The specification applied to each worker type.
    • setWorkerTypeSpecifications

      @Stability(Stable) public void setWorkerTypeSpecifications(@Nullable IResolvable value)
      The specification applied to each worker type.
    • setWorkerTypeSpecifications

      @Stability(Stable) public void setWorkerTypeSpecifications(@Nullable Map<String,Object> value)
      The specification applied to each worker type.