Class CfnApplication
- All Implemented Interfaces:
IInspectable,ITaggable,IApplicationRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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())
.identityCenterConfiguration(IdentityCenterConfigurationProperty.builder()
.identityCenterInstanceArn("identityCenterInstanceArn")
.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")
.diskType("diskType")
.build())
.workerCount(123)
.build())
.build()))
.interactiveConfiguration(InteractiveConfigurationProperty.builder()
.livyEndpointEnabled(false)
.studioEnabled(false)
.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())
.prometheusMonitoringConfiguration(PrometheusMonitoringConfigurationProperty.builder()
.remoteWriteUrl("remoteWriteUrl")
.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()))
.schedulerConfiguration(SchedulerConfigurationProperty.builder()
.maxConcurrentRuns(123)
.queueTimeoutMinutes(123)
.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:
-
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 interfaceThe Amazon CloudWatch configuration for monitoring logs.static interfaceA configuration specification to be used when provisioning an application.static interfaceThe IAM Identity Center Configuration accepts the Identity Center instance parameter required to enable trusted identity propagation.static interfaceThe image configuration.static interfaceExample:static interfaceThe initial capacity configuration per worker.static interfaceThe configuration to use to enable the different types of interactive use cases in an application.static interfaceExample:static interfaceThe managed log persistence configuration for a job run.static interfaceThe maximum allowed cumulative resources for an application.static interfaceThe configuration setting for monitoring logs.static interfaceThe network configuration for customer VPC connectivity.static interfaceThe monitoring configuration object you can configure to send metrics to Amazon Managed Service for Prometheus for a job run.static interfaceThe Amazon S3 configuration for monitoring log publishing.static interfaceThe scheduler configuration for batch and streaming jobs running on this application.static interfaceThe configuration of a worker.static interfaceThe specifications for a worker type.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.emrserverless.IApplicationRef
IApplicationRef.Jsii$Default, IApplicationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnApplication(software.amazon.jsii.JsiiObjectRef objRef) CfnApplication(software.constructs.Construct scope, String id, CfnApplicationProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IApplicationReffromApplicationArn(software.constructs.Construct scope, String id, String arn) Creates a new IApplicationRef from an ARN.static IApplicationReffromApplicationId(software.constructs.Construct scope, String id, String applicationId) Creates a new IApplicationRef from a applicationId.A reference to a Application resource.The CPU architecture of an application.The ID of the application, such asab4rp1abcs8xz47n3x0example.The Amazon Resource Name (ARN) of the EMR Serverless Application.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.The IAM Identity Center configuration applied to enable trusted identity propagation.The image configuration applied to all worker types.The initial capacity of the application.The interactive configuration object that enables the interactive use cases for an application.The maximum capacity of the application.A configuration specification to be used when provisioning an application.getName()The name of the application.The network configuration for customer VPC connectivity for the application.The EMR release associated with the application.The Configuration specifications of an application.The scheduler configuration for batch and streaming jobs running on this application.getTags()Tag Manager which manages the tags for this resource.The tags assigned to the application.getType()The type of application, such as Spark or Hive.The specification applied to each worker type.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetArchitecture(String value) The CPU architecture of an 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.voidThe IAM Identity Center configuration applied to enable trusted identity propagation.voidThe IAM Identity Center configuration applied to enable trusted identity propagation.voidsetImageConfiguration(IResolvable value) The image configuration applied to all worker types.voidThe image configuration applied to all worker types.voidsetInitialCapacity(List<Object> value) The initial capacity of the application.voidsetInitialCapacity(IResolvable value) The initial capacity of the application.voidThe interactive configuration object that enables the interactive use cases for an application.voidThe interactive configuration object that enables the interactive use cases for an application.voidsetMaximumCapacity(IResolvable value) The maximum capacity of the application.voidThe maximum capacity of the application.voidA configuration specification to be used when provisioning an application.voidA configuration specification to be used when provisioning an 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 associated with the application.voidsetRuntimeConfiguration(List<Object> value) The Configuration specifications of an application.voidThe Configuration specifications of an application.voidThe scheduler configuration for batch and streaming jobs running on this application.voidThe scheduler configuration for batch and streaming jobs running on this application.voidsetTagsRaw(List<CfnTag> value) The tags assigned to the application.voidThe type of application, such as Spark or Hive.voidsetWorkerTypeSpecifications(Map<String, Object> value) The specification applied to each worker type.voidThe specification applied to each worker type.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods 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 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
-
fromApplicationArn
@Stability(Stable) @NotNull public static IApplicationRef fromApplicationArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IApplicationRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromApplicationId
@Stability(Stable) @NotNull public static IApplicationRef fromApplicationId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String applicationId) Creates a new IApplicationRef from a applicationId.- Parameters:
scope- This parameter is required.id- This parameter is required.applicationId- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getApplicationRef
A reference to a Application resource.- Specified by:
getApplicationRefin interfaceIApplicationRef
-
getAttrApplicationId
The ID of the application, such asab4rp1abcs8xz47n3x0example. -
getAttrArn
The Amazon Resource Name (ARN) of the EMR Serverless Application. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getReleaseLabel
The EMR release associated with the application. -
setReleaseLabel
The EMR release associated with the application. -
getType
The type of application, such as Spark or Hive. -
setType
The type of application, such as Spark or Hive. -
getArchitecture
The CPU architecture of an application. -
setArchitecture
The CPU architecture of an application. -
getAutoStartConfiguration
The configuration for an application to automatically start on job submission.Returns union: either
IResolvableorCfnApplication.AutoStartConfigurationProperty -
setAutoStartConfiguration
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
The configuration for an application to automatically stop after a certain amount of time being idle.Returns union: either
IResolvableorCfnApplication.AutoStopConfigurationProperty -
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. -
getIdentityCenterConfiguration
The IAM Identity Center configuration applied to enable trusted identity propagation.Returns union: either
IResolvableorCfnApplication.IdentityCenterConfigurationProperty -
setIdentityCenterConfiguration
The IAM Identity Center configuration applied to enable trusted identity propagation. -
setIdentityCenterConfiguration
@Stability(Stable) public void setIdentityCenterConfiguration(@Nullable CfnApplication.IdentityCenterConfigurationProperty value) The IAM Identity Center configuration applied to enable trusted identity propagation. -
getImageConfiguration
The image configuration applied to all worker types.Returns union: either
IResolvableorCfnApplication.ImageConfigurationInputProperty -
setImageConfiguration
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
The initial capacity of the application.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnApplication.InitialCapacityConfigKeyValuePairProperty> -
setInitialCapacity
The initial capacity of the application. -
setInitialCapacity
The initial capacity of the application. -
getInteractiveConfiguration
The interactive configuration object that enables the interactive use cases for an application.Returns union: either
IResolvableorCfnApplication.InteractiveConfigurationProperty -
setInteractiveConfiguration
The interactive configuration object that enables the interactive use cases for an application. -
setInteractiveConfiguration
@Stability(Stable) public void setInteractiveConfiguration(@Nullable CfnApplication.InteractiveConfigurationProperty value) The interactive configuration object that enables the interactive use cases for an application. -
getMaximumCapacity
The maximum capacity of the application.Returns union: either
IResolvableorCfnApplication.MaximumAllowedResourcesProperty -
setMaximumCapacity
The maximum capacity of the application. -
setMaximumCapacity
@Stability(Stable) public void setMaximumCapacity(@Nullable CfnApplication.MaximumAllowedResourcesProperty value) The maximum capacity of the application. -
getMonitoringConfiguration
A configuration specification to be used when provisioning an application.Returns union: either
IResolvableorCfnApplication.MonitoringConfigurationProperty -
setMonitoringConfiguration
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
The name of the application. -
setName
The name of the application. -
getNetworkConfiguration
The network configuration for customer VPC connectivity for the application.Returns union: either
IResolvableorCfnApplication.NetworkConfigurationProperty -
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. -
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.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnApplication.ConfigurationObjectProperty> -
setRuntimeConfiguration
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
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. -
getSchedulerConfiguration
The scheduler configuration for batch and streaming jobs running on this application.Returns union: either
IResolvableorCfnApplication.SchedulerConfigurationProperty -
setSchedulerConfiguration
The scheduler configuration for batch and streaming jobs running on this application. -
setSchedulerConfiguration
@Stability(Stable) public void setSchedulerConfiguration(@Nullable CfnApplication.SchedulerConfigurationProperty value) The scheduler configuration for batch and streaming jobs running on this application. -
getTagsRaw
The tags assigned to the application. -
setTagsRaw
The tags assigned to the application. -
getWorkerTypeSpecifications
The specification applied to each worker type.Returns union: either
IResolvableor Mapinvalid input: '<'String, eitherIResolvableorCfnApplication.WorkerTypeSpecificationInputProperty> -
setWorkerTypeSpecifications
The specification applied to each worker type. -
setWorkerTypeSpecifications
The specification applied to each worker type.
-