Class CfnApplication
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::EMRServerless::Application.
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.*;
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())
.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();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe configuration for an application to automatically start on job submission.static interfaceThe configuration for an application to automatically stop after a certain amount of time being idle.static final classA fluent builder forCfnApplication.static interfaceExample:static interfaceThe initial capacity configuration per worker.static interfaceThe initial capacity configuration per worker.static interfaceThe maximum allowed cumulative resources for an application.static interfaceThe network configuration for customer VPC connectivity.static interfaceThe resource configuration of the initial capacity configuration.static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnApplication(Construct scope, String id, CfnApplicationProps props) Create a newAWS::EMRServerless::Application.protectedCfnApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnApplication(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe CPU architecture type of the application.The ID of the application, such asab4rp1abcs8xz47n3x0example.The Amazon Resource Name (ARN) of the project.The configuration for an application to automatically start on job submission.The configuration for an application to automatically stop after a certain amount of time being idle.AWS::EMRServerless::Application.ImageConfiguration.The initial capacity of the application.The maximum capacity of the application.getName()The name of the application.The network configuration for customer VPC connectivity for the application.The EMR release version associated with the application.getTags()The tags assigned to the application.getType()The type of application, such as Spark or Hive.AWS::EMRServerless::Application.WorkerTypeSpecifications.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetArchitecture(String value) The CPU architecture type of the application.voidThe configuration for an application to automatically start on job submission.voidThe configuration for an application to automatically start on job submission.voidThe configuration for an application to automatically stop after a certain amount of time being idle.voidThe configuration for an application to automatically stop after a certain amount of time being idle.voidsetImageConfiguration(IResolvable value) AWS::EMRServerless::Application.ImageConfiguration.voidAWS::EMRServerless::Application.ImageConfiguration.voidsetInitialCapacity(List<Object> value) The initial capacity of the application.voidsetInitialCapacity(IResolvable value) The initial capacity of the application.voidsetMaximumCapacity(IResolvable value) The maximum capacity of the application.voidThe maximum capacity of the application.voidThe name of the application.voidThe network configuration for customer VPC connectivity for the application.voidThe network configuration for customer VPC connectivity for the application.voidsetReleaseLabel(String value) The EMR release version associated with the application.voidThe type of application, such as Spark or Hive.voidsetWorkerTypeSpecifications(Map<String, Object> value) AWS::EMRServerless::Application.WorkerTypeSpecifications.voidAWS::EMRServerless::Application.WorkerTypeSpecifications.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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 Construct scope, @NotNull String id, @NotNull CfnApplicationProps props) Create a newAWS::EMRServerless::Application.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrApplicationId
The ID of the application, such asab4rp1abcs8xz47n3x0example. -
getAttrArn
The Amazon Resource Name (ARN) of the project. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
The tags assigned to the application. -
getReleaseLabel
The EMR release version associated with the application.Minimum : 1
Maximum : 64
Pattern :
^[A-Za-z0-9._/-]+$ -
setReleaseLabel
The EMR release version associated with the application.Minimum : 1
Maximum : 64
Pattern :
^[A-Za-z0-9._/-]+$ -
getType
The type of application, such as Spark or Hive. -
setType
The type of application, such as Spark or Hive. -
getArchitecture
The CPU architecture type of the application.Allowed values:
X86_64orARM64 -
setArchitecture
The CPU architecture type of the application.Allowed values:
X86_64orARM64 -
getAutoStartConfiguration
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. -
setAutoStartConfiguration
The configuration for an application to automatically start on job submission. -
getAutoStopConfiguration
The configuration for an application to automatically stop after a certain amount of time being idle. -
setAutoStopConfiguration
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
AWS::EMRServerless::Application.ImageConfiguration. -
setImageConfiguration
AWS::EMRServerless::Application.ImageConfiguration. -
setImageConfiguration
@Stability(Stable) public void setImageConfiguration(@Nullable CfnApplication.ImageConfigurationInputProperty value) AWS::EMRServerless::Application.ImageConfiguration. -
getInitialCapacity
The initial capacity of the application. -
setInitialCapacity
The initial capacity of the application. -
setInitialCapacity
The initial capacity of the application. -
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.
-
setMaximumCapacity
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.
-
setMaximumCapacity
@Stability(Stable) public void setMaximumCapacity(@Nullable CfnApplication.MaximumAllowedResourcesProperty value) 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
The name of the application.Minimum : 1
Maximum : 64
Pattern :
^[A-Za-z0-9._\\/#-]+$ -
setName
The name of the application.Minimum : 1
Maximum : 64
Pattern :
^[A-Za-z0-9._\\/#-]+$ -
getNetworkConfiguration
The network configuration for customer VPC connectivity for the application. -
setNetworkConfiguration
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. -
getWorkerTypeSpecifications
AWS::EMRServerless::Application.WorkerTypeSpecifications. -
setWorkerTypeSpecifications
AWS::EMRServerless::Application.WorkerTypeSpecifications. -
setWorkerTypeSpecifications
AWS::EMRServerless::Application.WorkerTypeSpecifications.
-