Skip to content
v2.278.0

CfnApplication L1 construct ​

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 ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_emrserverless as emrserverless } from 'aws-cdk-lib';

declare const configurationObjectProperty_: emrserverless.CfnApplication.ConfigurationObjectProperty;
const cfnApplication = new emrserverless.CfnApplication(this, 'MyCfnApplication', {
  releaseLabel: 'releaseLabel',
  type: 'type',

  // the properties below are optional
  architecture: 'architecture',
  autoStartConfiguration: {
    enabled: false,
  },
  autoStopConfiguration: {
    enabled: false,
    idleTimeoutMinutes: 123,
  },
  identityCenterConfiguration: {
    identityCenterInstanceArn: 'identityCenterInstanceArn',
    userBackgroundSessionsEnabled: false,
  },
  imageConfiguration: {
    imageUri: 'imageUri',
  },
  initialCapacity: [{
    key: 'key',
    value: {
      workerConfiguration: {
        cpu: 'cpu',
        memory: 'memory',

        // the properties below are optional
        disk: 'disk',
        diskType: 'diskType',
      },
      workerCount: 123,
    },
  }],
  interactiveConfiguration: {
    livyEndpointEnabled: false,
    sessionEnabled: false,
    studioEnabled: false,
  },
  maximumCapacity: {
    cpu: 'cpu',
    memory: 'memory',

    // the properties below are optional
    disk: 'disk',
  },
  monitoringConfiguration: {
    cloudWatchLoggingConfiguration: {
      enabled: false,
      encryptionKeyArn: 'encryptionKeyArn',
      logGroupName: 'logGroupName',
      logStreamNamePrefix: 'logStreamNamePrefix',
      logTypeMap: [{
        key: 'key',
        value: ['value'],
      }],
    },
    managedPersistenceMonitoringConfiguration: {
      enabled: false,
      encryptionKeyArn: 'encryptionKeyArn',
    },
    prometheusMonitoringConfiguration: {
      remoteWriteUrl: 'remoteWriteUrl',
    },
    s3MonitoringConfiguration: {
      encryptionKeyArn: 'encryptionKeyArn',
      logUri: 'logUri',
    },
  },
  name: 'name',
  networkConfiguration: {
    securityGroupIds: ['securityGroupIds'],
    subnetIds: ['subnetIds'],
  },
  runtimeConfiguration: [{
    classification: 'classification',

    // the properties below are optional
    configurations: [configurationObjectProperty_],
    properties: {
      propertiesKey: 'properties',
    },
  }],
  schedulerConfiguration: {
    maxConcurrentRuns: 123,
    queueTimeoutMinutes: 123,
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
  workerTypeSpecifications: {
    workerTypeSpecificationsKey: {
      imageConfiguration: {
        imageUri: 'imageUri',
      },
    },
  },
});
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_emrserverless as emrserverless

# configuration_object_property_: emrserverless.CfnApplication.ConfigurationObjectProperty

cfn_application = emrserverless.CfnApplication(self, "MyCfnApplication",
    release_label="releaseLabel",
    type="type",

    # the properties below are optional
    architecture="architecture",
    auto_start_configuration=emrserverless.CfnApplication.AutoStartConfigurationProperty(
        enabled=False
    ),
    auto_stop_configuration=emrserverless.CfnApplication.AutoStopConfigurationProperty(
        enabled=False,
        idle_timeout_minutes=123
    ),
    identity_center_configuration=emrserverless.CfnApplication.IdentityCenterConfigurationProperty(
        identity_center_instance_arn="identityCenterInstanceArn",
        user_background_sessions_enabled=False
    ),
    image_configuration=emrserverless.CfnApplication.ImageConfigurationInputProperty(
        image_uri="imageUri"
    ),
    initial_capacity=[emrserverless.CfnApplication.InitialCapacityConfigKeyValuePairProperty(
        key="key",
        value=emrserverless.CfnApplication.InitialCapacityConfigProperty(
            worker_configuration=emrserverless.CfnApplication.WorkerConfigurationProperty(
                cpu="cpu",
                memory="memory",

                # the properties below are optional
                disk="disk",
                disk_type="diskType"
            ),
            worker_count=123
        )
    )],
    interactive_configuration=emrserverless.CfnApplication.InteractiveConfigurationProperty(
        livy_endpoint_enabled=False,
        session_enabled=False,
        studio_enabled=False
    ),
    maximum_capacity=emrserverless.CfnApplication.MaximumAllowedResourcesProperty(
        cpu="cpu",
        memory="memory",

        # the properties below are optional
        disk="disk"
    ),
    monitoring_configuration=emrserverless.CfnApplication.MonitoringConfigurationProperty(
        cloud_watch_logging_configuration=emrserverless.CfnApplication.CloudWatchLoggingConfigurationProperty(
            enabled=False,
            encryption_key_arn="encryptionKeyArn",
            log_group_name="logGroupName",
            log_stream_name_prefix="logStreamNamePrefix",
            log_type_map=[emrserverless.CfnApplication.LogTypeMapKeyValuePairProperty(
                key="key",
                value=["value"]
            )]
        ),
        managed_persistence_monitoring_configuration=emrserverless.CfnApplication.ManagedPersistenceMonitoringConfigurationProperty(
            enabled=False,
            encryption_key_arn="encryptionKeyArn"
        ),
        prometheus_monitoring_configuration=emrserverless.CfnApplication.PrometheusMonitoringConfigurationProperty(
            remote_write_url="remoteWriteUrl"
        ),
        s3_monitoring_configuration=emrserverless.CfnApplication.S3MonitoringConfigurationProperty(
            encryption_key_arn="encryptionKeyArn",
            log_uri="logUri"
        )
    ),
    name="name",
    network_configuration=emrserverless.CfnApplication.NetworkConfigurationProperty(
        security_group_ids=["securityGroupIds"],
        subnet_ids=["subnetIds"]
    ),
    runtime_configuration=[emrserverless.CfnApplication.ConfigurationObjectProperty(
        classification="classification",

        # the properties below are optional
        configurations=[configuration_object_property_],
        properties={
            "properties_key": "properties"
        }
    )],
    scheduler_configuration=emrserverless.CfnApplication.SchedulerConfigurationProperty(
        max_concurrent_runs=123,
        queue_timeout_minutes=123
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    worker_type_specifications={
        "worker_type_specifications_key": emrserverless.CfnApplication.WorkerTypeSpecificationInputProperty(
            image_configuration=emrserverless.CfnApplication.ImageConfigurationInputProperty(
                image_uri="imageUri"
            )
        )
    }
)
java
// 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")
                .userBackgroundSessionsEnabled(false)
                .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)
                .sessionEnabled(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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EMRServerless;

ConfigurationObjectProperty configurationObjectProperty_;

var cfnApplication = new CfnApplication(this, "MyCfnApplication", new CfnApplicationProps {
    ReleaseLabel = "releaseLabel",
    Type = "type",

    // the properties below are optional
    Architecture = "architecture",
    AutoStartConfiguration = new AutoStartConfigurationProperty {
        Enabled = false
    },
    AutoStopConfiguration = new AutoStopConfigurationProperty {
        Enabled = false,
        IdleTimeoutMinutes = 123
    },
    IdentityCenterConfiguration = new IdentityCenterConfigurationProperty {
        IdentityCenterInstanceArn = "identityCenterInstanceArn",
        UserBackgroundSessionsEnabled = false
    },
    ImageConfiguration = new ImageConfigurationInputProperty {
        ImageUri = "imageUri"
    },
    InitialCapacity = new [] { new InitialCapacityConfigKeyValuePairProperty {
        Key = "key",
        Value = new InitialCapacityConfigProperty {
            WorkerConfiguration = new WorkerConfigurationProperty {
                Cpu = "cpu",
                Memory = "memory",

                // the properties below are optional
                Disk = "disk",
                DiskType = "diskType"
            },
            WorkerCount = 123
        }
    } },
    InteractiveConfiguration = new InteractiveConfigurationProperty {
        LivyEndpointEnabled = false,
        SessionEnabled = false,
        StudioEnabled = false
    },
    MaximumCapacity = new MaximumAllowedResourcesProperty {
        Cpu = "cpu",
        Memory = "memory",

        // the properties below are optional
        Disk = "disk"
    },
    MonitoringConfiguration = new MonitoringConfigurationProperty {
        CloudWatchLoggingConfiguration = new CloudWatchLoggingConfigurationProperty {
            Enabled = false,
            EncryptionKeyArn = "encryptionKeyArn",
            LogGroupName = "logGroupName",
            LogStreamNamePrefix = "logStreamNamePrefix",
            LogTypeMap = new [] { new LogTypeMapKeyValuePairProperty {
                Key = "key",
                Value = new [] { "value" }
            } }
        },
        ManagedPersistenceMonitoringConfiguration = new ManagedPersistenceMonitoringConfigurationProperty {
            Enabled = false,
            EncryptionKeyArn = "encryptionKeyArn"
        },
        PrometheusMonitoringConfiguration = new PrometheusMonitoringConfigurationProperty {
            RemoteWriteUrl = "remoteWriteUrl"
        },
        S3MonitoringConfiguration = new S3MonitoringConfigurationProperty {
            EncryptionKeyArn = "encryptionKeyArn",
            LogUri = "logUri"
        }
    },
    Name = "name",
    NetworkConfiguration = new NetworkConfigurationProperty {
        SecurityGroupIds = new [] { "securityGroupIds" },
        SubnetIds = new [] { "subnetIds" }
    },
    RuntimeConfiguration = new [] { new ConfigurationObjectProperty {
        Classification = "classification",

        // the properties below are optional
        Configurations = new [] { configurationObjectProperty_ },
        Properties = new Dictionary<string, string> {
            { "propertiesKey", "properties" }
        }
    } },
    SchedulerConfiguration = new SchedulerConfigurationProperty {
        MaxConcurrentRuns = 123,
        QueueTimeoutMinutes = 123
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    WorkerTypeSpecifications = new Dictionary<string, object> {
        { "workerTypeSpecificationsKey", new WorkerTypeSpecificationInputProperty {
            ImageConfiguration = new ImageConfigurationInputProperty {
                ImageUri = "imageUri"
            }
        } }
    }
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var configurationObjectProperty_ ConfigurationObjectProperty

cfnApplication := awscdk.Aws_emrserverless.NewCfnApplication(this, jsii.String("MyCfnApplication"), &CfnApplicationProps{
	ReleaseLabel: jsii.String("releaseLabel"),
	Type: jsii.String("type"),

	// the properties below are optional
	Architecture: jsii.String("architecture"),
	AutoStartConfiguration: &AutoStartConfigurationProperty{
		Enabled: jsii.Boolean(false),
	},
	AutoStopConfiguration: &AutoStopConfigurationProperty{
		Enabled: jsii.Boolean(false),
		IdleTimeoutMinutes: jsii.Number(123),
	},
	IdentityCenterConfiguration: &IdentityCenterConfigurationProperty{
		IdentityCenterInstanceArn: jsii.String("identityCenterInstanceArn"),
		UserBackgroundSessionsEnabled: jsii.Boolean(false),
	},
	ImageConfiguration: &ImageConfigurationInputProperty{
		ImageUri: jsii.String("imageUri"),
	},
	InitialCapacity: []interface{}{
		&InitialCapacityConfigKeyValuePairProperty{
			Key: jsii.String("key"),
			Value: &InitialCapacityConfigProperty{
				WorkerConfiguration: &WorkerConfigurationProperty{
					Cpu: jsii.String("cpu"),
					Memory: jsii.String("memory"),

					// the properties below are optional
					Disk: jsii.String("disk"),
					DiskType: jsii.String("diskType"),
				},
				WorkerCount: jsii.Number(123),
			},
		},
	},
	InteractiveConfiguration: &InteractiveConfigurationProperty{
		LivyEndpointEnabled: jsii.Boolean(false),
		SessionEnabled: jsii.Boolean(false),
		StudioEnabled: jsii.Boolean(false),
	},
	MaximumCapacity: &MaximumAllowedResourcesProperty{
		Cpu: jsii.String("cpu"),
		Memory: jsii.String("memory"),

		// the properties below are optional
		Disk: jsii.String("disk"),
	},
	MonitoringConfiguration: &MonitoringConfigurationProperty{
		CloudWatchLoggingConfiguration: &CloudWatchLoggingConfigurationProperty{
			Enabled: jsii.Boolean(false),
			EncryptionKeyArn: jsii.String("encryptionKeyArn"),
			LogGroupName: jsii.String("logGroupName"),
			LogStreamNamePrefix: jsii.String("logStreamNamePrefix"),
			LogTypeMap: []interface{}{
				&LogTypeMapKeyValuePairProperty{
					Key: jsii.String("key"),
					Value: []*string{
						jsii.String("value"),
					},
				},
			},
		},
		ManagedPersistenceMonitoringConfiguration: &ManagedPersistenceMonitoringConfigurationProperty{
			Enabled: jsii.Boolean(false),
			EncryptionKeyArn: jsii.String("encryptionKeyArn"),
		},
		PrometheusMonitoringConfiguration: &PrometheusMonitoringConfigurationProperty{
			RemoteWriteUrl: jsii.String("remoteWriteUrl"),
		},
		S3MonitoringConfiguration: &S3MonitoringConfigurationProperty{
			EncryptionKeyArn: jsii.String("encryptionKeyArn"),
			LogUri: jsii.String("logUri"),
		},
	},
	Name: jsii.String("name"),
	NetworkConfiguration: &NetworkConfigurationProperty{
		SecurityGroupIds: []*string{
			jsii.String("securityGroupIds"),
		},
		SubnetIds: []*string{
			jsii.String("subnetIds"),
		},
	},
	RuntimeConfiguration: []interface{}{
		&ConfigurationObjectProperty{
			Classification: jsii.String("classification"),

			// the properties below are optional
			Configurations: []interface{}{
				configurationObjectProperty_,
			},
			Properties: map[string]*string{
				"propertiesKey": jsii.String("properties"),
			},
		},
	},
	SchedulerConfiguration: &SchedulerConfigurationProperty{
		MaxConcurrentRuns: jsii.Number(123),
		QueueTimeoutMinutes: jsii.Number(123),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	WorkerTypeSpecifications: map[string]interface{}{
		"workerTypeSpecificationsKey": &WorkerTypeSpecificationInputProperty{
			"imageConfiguration": &ImageConfigurationInputProperty{
				"imageUri": jsii.String("imageUri"),
			},
		},
	},
})

Initializer ​

ts
new CfnApplication(scope: Construct, id: string, props: CfnApplicationProps)
python
CfnApplication(scope: Construct, id: str, props: CfnApplicationProps)
java
new CfnApplication(Construct scope, String id, CfnApplicationProps props)
csharp
new CfnApplication(Construct scope, string id, CfnApplicationProps props)
go
NewCfnApplication(Scope Construct, Id *string, Props CfnApplicationProps)

Construct Props ​

architectureoptionalstringarchitectureoptionalstrarchitectureoptionalStringArchitectureoptionalstringArchitectureoptional*string #
The CPU architecture of an application.
autoStartConfigurationoptionalIResolvable | CfnApplication.AutoStartConfigurationPropertyauto_start_configurationoptionaltyping.Union[IResolvable, AutoStartConfigurationProperty]autoStartConfigurationoptionalIResolvableAutoStartConfigurationoptionalIResolvableAutoStartConfigurationoptionalinterface{} #
The configuration for an application to automatically start on job submission.
autoStopConfigurationoptionalIResolvable | CfnApplication.AutoStopConfigurationPropertyauto_stop_configurationoptionaltyping.Union[IResolvable, AutoStopConfigurationProperty]autoStopConfigurationoptionalIResolvableAutoStopConfigurationoptionalIResolvableAutoStopConfigurationoptionalinterface{} #
The configuration for an application to automatically stop after a certain amount of time being idle.
identityCenterConfigurationoptionalIResolvable | CfnApplication.IdentityCenterConfigurationPropertyidentity_center_configurationoptionaltyping.Union[IResolvable, IdentityCenterConfigurationProperty]identityCenterConfigurationoptionalIResolvableIdentityCenterConfigurationoptionalIResolvableIdentityCenterConfigurationoptionalinterface{} #
The IAM Identity Center configuration applied to enable trusted identity propagation.
imageConfigurationoptionalIResolvable | CfnApplication.ImageConfigurationInputPropertyimage_configurationoptionaltyping.Union[IResolvable, ImageConfigurationInputProperty]imageConfigurationoptionalIResolvableImageConfigurationoptionalIResolvableImageConfigurationoptionalinterface{} #
The image configuration applied to all worker types.
initialCapacityoptionalIResolvable | IResolvable | CfnApplication.InitialCapacityConfigKeyValuePairProperty[]initial_capacityoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, InitialCapacityConfigKeyValuePairProperty]]]initialCapacityoptionalIResolvableInitialCapacityoptionalIResolvableInitialCapacityoptionalinterface{} #
The initial capacity of the application.
interactiveConfigurationoptionalIResolvable | CfnApplication.InteractiveConfigurationPropertyinteractive_configurationoptionaltyping.Union[IResolvable, InteractiveConfigurationProperty]interactiveConfigurationoptionalIResolvableInteractiveConfigurationoptionalIResolvableInteractiveConfigurationoptionalinterface{} #
The interactive configuration object that enables the interactive use cases for an application.
maximumCapacityoptionalIResolvable | CfnApplication.MaximumAllowedResourcesPropertymaximum_capacityoptionaltyping.Union[IResolvable, MaximumAllowedResourcesProperty]maximumCapacityoptionalIResolvableMaximumCapacityoptionalIResolvableMaximumCapacityoptionalinterface{} #
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.

monitoringConfigurationoptionalIResolvable | CfnApplication.MonitoringConfigurationPropertymonitoring_configurationoptionaltyping.Union[IResolvable, MonitoringConfigurationProperty]monitoringConfigurationoptionalIResolvableMonitoringConfigurationoptionalIResolvableMonitoringConfigurationoptionalinterface{} #
A configuration specification to be used when provisioning an application.

A configuration consists of a classification, properties, and optional nested configurations. A classification refers to an application-specific configuration file. Properties are the settings you want to change in that file.

nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string #
The name of the application.
networkConfigurationoptionalIResolvable | CfnApplication.NetworkConfigurationPropertynetwork_configurationoptionaltyping.Union[IResolvable, NetworkConfigurationProperty]networkConfigurationoptionalIResolvableNetworkConfigurationoptionalIResolvableNetworkConfigurationoptionalinterface{} #
The network configuration for customer VPC connectivity for the application.
releaseLabelstringrelease_labelstrreleaseLabelStringReleaseLabelstringReleaseLabel*string required #
The EMR release associated with the application.
runtimeConfigurationoptionalIResolvable | IResolvable | CfnApplication.ConfigurationObjectProperty[]runtime_configurationoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ConfigurationObjectProperty]]]runtimeConfigurationoptionalIResolvableRuntimeConfigurationoptionalIResolvableRuntimeConfigurationoptionalinterface{} #
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.
schedulerConfigurationoptionalIResolvable | CfnApplication.SchedulerConfigurationPropertyscheduler_configurationoptionaltyping.Union[IResolvable, SchedulerConfigurationProperty]schedulerConfigurationoptionalIResolvableSchedulerConfigurationoptionalIResolvableSchedulerConfigurationoptionalinterface{} #
The scheduler configuration for batch and streaming jobs running on this application.

Supported with release labels emr-7.0.0 and above.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags assigned to the application.
typestringtypestrtypeStringTypestringType*string required #
The type of application, such as Spark or Hive.
workerTypeSpecificationsoptionalIResolvable | { [key: string]: IResolvable | CfnApplication.WorkerTypeSpecificationInputProperty }worker_type_specificationsoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, WorkerTypeSpecificationInputProperty]]]workerTypeSpecificationsoptionalIResolvableWorkerTypeSpecificationsoptionalIResolvableWorkerTypeSpecificationsoptionalinterface{} #
The specification applied to each worker type.

Properties ​

applicationRefApplicationReferenceapplication_refApplicationReferenceapplicationRefApplicationReferenceApplicationRefApplicationReferenceApplicationRefApplicationReference #
A reference to a Application resource.
architecturemay be undefinedstringarchitecturemay be undefinedstrarchitecturemay be undefinedStringArchitecturemay be undefinedstringArchitecturemay be undefined*string #
The CPU architecture of an application.
attrApplicationIdstringattr_application_idstrattrApplicationIdStringAttrApplicationIdstringAttrApplicationId*string #
The ID of the application, such as `ab4rp1abcs8xz47n3x0example` .
attrArnstringattr_arnstrattrArnStringAttrArnstringAttrArn*string #
The Amazon Resource Name (ARN) of the EMR Serverless Application.
autoStartConfigurationmay be undefinedIResolvable | CfnApplication.AutoStartConfigurationPropertyauto_start_configurationmay be undefinedtyping.Union[IResolvable, AutoStartConfigurationProperty]autoStartConfigurationmay be undefinedIResolvableAutoStartConfigurationmay be undefinedIResolvableAutoStartConfigurationmay be undefinedinterface{} #
The configuration for an application to automatically start on job submission.
autoStopConfigurationmay be undefinedIResolvable | CfnApplication.AutoStopConfigurationPropertyauto_stop_configurationmay be undefinedtyping.Union[IResolvable, AutoStopConfigurationProperty]autoStopConfigurationmay be undefinedIResolvableAutoStopConfigurationmay be undefinedIResolvableAutoStopConfigurationmay be undefinedinterface{} #
The configuration for an application to automatically stop after a certain amount of time being idle.
CFN_RESOURCE_TYPE_NAMEstringCFN_RESOURCE_TYPE_NAMEstrCFN_RESOURCE_TYPE_NAMEStringCFN_RESOURCE_TYPE_NAMEstringCFN_RESOURCE_TYPE_NAME*string static #
The CloudFormation resource type name for this resource class.
Options for this resource, such as condition, update policy etc.
cfnResourceTypestringcfn_resource_typestrcfnResourceTypeStringCfnResourceTypestringCfnResourceType*string #
AWS resource type.
creationStackstring[]creation_stacktyping.List[str]creationStackList<String>CreationStackstring[]CreationStack*[]*string #
identityCenterConfigurationmay be undefinedIResolvable | CfnApplication.IdentityCenterConfigurationPropertyidentity_center_configurationmay be undefinedtyping.Union[IResolvable, IdentityCenterConfigurationProperty]identityCenterConfigurationmay be undefinedIResolvableIdentityCenterConfigurationmay be undefinedIResolvableIdentityCenterConfigurationmay be undefinedinterface{} #
The IAM Identity Center configuration applied to enable trusted identity propagation.
imageConfigurationmay be undefinedIResolvable | CfnApplication.ImageConfigurationInputPropertyimage_configurationmay be undefinedtyping.Union[IResolvable, ImageConfigurationInputProperty]imageConfigurationmay be undefinedIResolvableImageConfigurationmay be undefinedIResolvableImageConfigurationmay be undefinedinterface{} #
The image configuration applied to all worker types.
initialCapacitymay be undefinedIResolvable | IResolvable | CfnApplication.InitialCapacityConfigKeyValuePairProperty[]initial_capacitymay be undefinedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, InitialCapacityConfigKeyValuePairProperty]]]initialCapacitymay be undefinedIResolvableInitialCapacitymay be undefinedIResolvableInitialCapacitymay be undefinedinterface{} #
The initial capacity of the application.
interactiveConfigurationmay be undefinedIResolvable | CfnApplication.InteractiveConfigurationPropertyinteractive_configurationmay be undefinedtyping.Union[IResolvable, InteractiveConfigurationProperty]interactiveConfigurationmay be undefinedIResolvableInteractiveConfigurationmay be undefinedIResolvableInteractiveConfigurationmay be undefinedinterface{} #
The interactive configuration object that enables the interactive use cases for an application.
logicalIdstringlogical_idstrlogicalIdStringLogicalIdstringLogicalId*string #
The logical ID for this CloudFormation stack element.

The logical ID of the element is calculated from the path of the resource node in the construct tree.

To override this value, use overrideLogicalId(newLogicalId).

maximumCapacitymay be undefinedIResolvable | CfnApplication.MaximumAllowedResourcesPropertymaximum_capacitymay be undefinedtyping.Union[IResolvable, MaximumAllowedResourcesProperty]maximumCapacitymay be undefinedIResolvableMaximumCapacitymay be undefinedIResolvableMaximumCapacitymay be undefinedinterface{} #
The maximum capacity of the application.
monitoringConfigurationmay be undefinedIResolvable | CfnApplication.MonitoringConfigurationPropertymonitoring_configurationmay be undefinedtyping.Union[IResolvable, MonitoringConfigurationProperty]monitoringConfigurationmay be undefinedIResolvableMonitoringConfigurationmay be undefinedIResolvableMonitoringConfigurationmay be undefinedinterface{} #
A configuration specification to be used when provisioning an application.
namemay be undefinedstringnamemay be undefinedstrnamemay be undefinedStringNamemay be undefinedstringNamemay be undefined*string #
The name of the application.
networkConfigurationmay be undefinedIResolvable | CfnApplication.NetworkConfigurationPropertynetwork_configurationmay be undefinedtyping.Union[IResolvable, NetworkConfigurationProperty]networkConfigurationmay be undefinedIResolvableNetworkConfigurationmay be undefinedIResolvableNetworkConfigurationmay be undefinedinterface{} #
The network configuration for customer VPC connectivity for the application.
nodeNodenodeNodenodeNodeNodeNodeNodeNode #
The tree node.
refstringrefstrrefStringRefstringRef*string #
Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.

If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).

releaseLabelstringrelease_labelstrreleaseLabelStringReleaseLabelstringReleaseLabel*string #
The EMR release associated with the application.
runtimeConfigurationmay be undefinedIResolvable | IResolvable | CfnApplication.ConfigurationObjectProperty[]runtime_configurationmay be undefinedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ConfigurationObjectProperty]]]runtimeConfigurationmay be undefinedIResolvableRuntimeConfigurationmay be undefinedIResolvableRuntimeConfigurationmay be undefinedinterface{} #
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.
schedulerConfigurationmay be undefinedIResolvable | CfnApplication.SchedulerConfigurationPropertyscheduler_configurationmay be undefinedtyping.Union[IResolvable, SchedulerConfigurationProperty]schedulerConfigurationmay be undefinedIResolvableSchedulerConfigurationmay be undefinedIResolvableSchedulerConfigurationmay be undefinedinterface{} #
The scheduler configuration for batch and streaming jobs running on this application.
stackStackstackStackstackStackStackStackStackStack #
The stack in which this element is defined.

CfnElements must be defined within a stack scope (directly or indirectly).

Tag Manager which manages the tags for this resource.
tagsRawmay be undefinedCfnTag[]tags_rawmay be undefinedtyping.List[CfnTag]tagsRawmay be undefinedList<CfnTag>TagsRawmay be undefinedCfnTag[]TagsRawmay be undefined*[]CfnTag #
The tags assigned to the application.
typestringtypestrtypeStringTypestringType*string #
The type of application, such as Spark or Hive.
workerTypeSpecificationsmay be undefinedIResolvable | { [key: string]: IResolvable | CfnApplication.WorkerTypeSpecificationInputProperty }worker_type_specificationsmay be undefinedtyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, WorkerTypeSpecificationInputProperty]]]workerTypeSpecificationsmay be undefinedIResolvableWorkerTypeSpecificationsmay be undefinedIResolvableWorkerTypeSpecificationsmay be undefinedinterface{} #
The specification applied to each worker type.

Methods ​

addDeletionOverride(path: string): voiddef add_deletion_override(self, path: str) -> Nonepublic void addDeletionOverride(String path)public void AddDeletionOverride(string path)func AddDeletionOverride(Path *string) #
Syntactic sugar for `addOverride(path, undefined)`.
1 parameter

Parameters

  • pathpathpathpathPath — The path of the value to delete.
addDependency(target: CfnResource): voiddef add_dependency(self, target: CfnResource) -> Nonepublic void addDependency(CfnResource target)public void AddDependency(CfnResource target)func AddDependency(Target CfnResource) deprecated #
Use `addResourceDependency` instead.

This method has been renamed to addResourceDependency to more clearly set it apart from construct.node.addDependency. See the documentation of that function for more details.

addDependsOn(target: CfnResource): voiddef add_depends_on(self, target: CfnResource) -> Nonepublic void addDependsOn(CfnResource target)public void AddDependsOn(CfnResource target)func AddDependsOn(Target CfnResource) deprecated #
Use `addResourceDependency` instead.
notes

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

This method has been renamed to addResourceDependency, which makes it more clear that this method operates at a different level from the construct-level construct.node.addDependency() mechanism.

addMetadata(key: string, value: any): voiddef add_metadata(self, key: str, value: Any) -> Nonepublic void addMetadata(String key, Object value)public void AddMetadata(string key, object value)func AddMetadata(Key *string, Value interface{}) #
Add a value to the CloudFormation Resource Metadata.
addOverride(path: string, value: any): voiddef add_override(self, path: str, value: Any) -> Nonepublic void addOverride(String path, Object value)public void AddOverride(string path, object value)func AddOverride(Path *string, Value interface{}) #
Adds an override to the synthesized CloudFormation resource.
notes · 2 parameters

To add a property override, either use addPropertyOverride or prefix path with "Properties." (i.e. Properties.TopicName).

If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.

To include a literal . in the property name, prefix with a \. In most programming languages you will need to write this as "\\." because the \ itself will need to be escaped.

For example,

typescript
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');

would add the overrides

json
"Properties": {
  "GlobalSecondaryIndexes": [
    {
      "Projection": {
        "NonKeyAttributes": [ "myattribute" ]
        ...
      }
      ...
    },
    {
      "ProjectionType": "INCLUDE"
      ...
    },
  ]
  ...
}

The value argument to addOverride will not be processed or translated in any way. Pass raw JSON values in here with the correct capitalization for CloudFormation. If you pass CDK classes or structs, they will be rendered with lowercased key names, and CloudFormation will reject the template.

Parameters

  • pathpathpathpathPath — - The path of the property, you can use dot notation to override values in complex types.
  • valuevaluevaluevalueValue — - The value.
addPropertyDeletionOverride(propertyPath: string): voiddef add_property_deletion_override(self, property_path: str) -> Nonepublic void addPropertyDeletionOverride(String propertyPath)public void AddPropertyDeletionOverride(string propertyPath)func AddPropertyDeletionOverride(PropertyPath *string) #
Adds an override that deletes the value of a property from the resource definition.
1 parameter

Parameters

  • propertyPathproperty_pathpropertyPathpropertyPathPropertyPath — The path to the property.
addPropertyOverride(propertyPath: string, value: any): voiddef add_property_override(self, property_path: str, value: Any) -> Nonepublic void addPropertyOverride(String propertyPath, Object value)public void AddPropertyOverride(string propertyPath, object value)func AddPropertyOverride(PropertyPath *string, Value interface{}) #
Adds an override to a resource property.

Syntactic sugar for addOverride("Properties.<...>", value).

2 parameters

Parameters

  • propertyPathproperty_pathpropertyPathpropertyPathPropertyPath — The path of the property.
  • valuevaluevaluevalueValue — The value.
addResourceDependency(target: CfnResource, reason?: string): voiddef add_resource_dependency(self, target: CfnResource, reason: typing.Optional[str] = None) -> Nonepublic void addResourceDependency(CfnResource target, String reason)public void AddResourceDependency(CfnResource target, string? reason = null)func AddResourceDependency(Target CfnResource, Reason *string) #
Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
notes

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

This method only adds dependencies between L1 resources. If you are looking for a generic construct-to-construct dependency mechanism that works for all constructs including L2s, use construct.node.addDependency instead.

applyCrossStackReferenceStrength(strength: ReferenceStrength): voiddef apply_cross_stack_reference_strength(self, strength: ReferenceStrength) -> Nonepublic void applyCrossStackReferenceStrength(ReferenceStrength strength)public void ApplyCrossStackReferenceStrength(ReferenceStrength strength)func ApplyCrossStackReferenceStrength(Strength ReferenceStrength) #
Sets the cross-stack reference strength for this resource.

When set, any cross-stack reference to this resource will use the specified strength instead of the global default from the consuming stack's context.

1 parameter

Parameters

  • strengthstrengthstrengthstrengthStrength — - The reference strength to use for this resource.
applyRemovalPolicy(policy?: RemovalPolicy, options?: RemovalPolicyOptions): voiddef apply_removal_policy(self, policy: typing.Optional[RemovalPolicy] = None, options: typing.Optional[RemovalPolicyOptions] = None) -> Nonepublic void applyRemovalPolicy(RemovalPolicy policy, RemovalPolicyOptions options)public void ApplyRemovalPolicy(RemovalPolicy? policy = null, RemovalPolicyOptions? options = null)func ApplyRemovalPolicy(Policy RemovalPolicy, Options RemovalPolicyOptions) #
Sets the deletion policy of the resource based on the removal policy specified.
notes

The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.

The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN). In some cases, a snapshot can be taken of the resource prior to deletion (RemovalPolicy.SNAPSHOT). A list of resources that support this policy can be found in the following link:

arnForApplication(resource: IApplicationRef): string@staticmethod def arn_for_application(resource: IApplicationRef) -> strpublic static String arnForApplication(IApplicationRef resource)public static string ArnForApplication(IApplicationRef resource)func ArnForApplication(Resource IApplicationRef) *string static #
cfnPropertyName(cdkPropertyName: string): stringdef cfn_property_name(self, cdk_property_name: str) -> strpublic String cfnPropertyName(String cdkPropertyName)public string CfnPropertyName(string cdkPropertyName)func CfnPropertyName(CdkPropertyName *string) *string #
fromApplicationArn(scope: Construct, id: string, arn: string): IApplicationRef@staticmethod def from_application_arn(scope: Construct, id: str, arn: str) -> IApplicationRefpublic static IApplicationRef fromApplicationArn(Construct scope, String id, String arn)public static IApplicationRef FromApplicationArn(Construct scope, string id, string arn)func FromApplicationArn(Scope Construct, Id *string, Arn *string) IApplicationRef static #
Creates a new IApplicationRef from an ARN.
fromApplicationId(scope: Construct, id: string, applicationId: string): IApplicationRef@staticmethod def from_application_id(scope: Construct, id: str, application_id: str) -> IApplicationRefpublic static IApplicationRef fromApplicationId(Construct scope, String id, String applicationId)public static IApplicationRef FromApplicationId(Construct scope, string id, string applicationId)func FromApplicationId(Scope Construct, Id *string, ApplicationId *string) IApplicationRef static #
Creates a new IApplicationRef from a applicationId.
getAtt(attributeName: string, typeHint?: ResolutionTypeHint): Referencedef get_att(self, attribute_name: str, type_hint: typing.Optional[ResolutionTypeHint] = None) -> Referencepublic Reference getAtt(String attributeName, ResolutionTypeHint typeHint)public Reference GetAtt(string attributeName, ResolutionTypeHint? typeHint = null)func GetAtt(AttributeName *string, TypeHint ResolutionTypeHint) Reference #
Returns a token for an runtime attribute of this resource.

Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.

1 parameter

Parameters

  • attributeNameattribute_nameattributeNameattributeNameAttributeName — The name of the attribute.
getMetadata(key: string): anydef get_metadata(self, key: str) -> Anypublic Object getMetadata(String key)public object GetMetadata(string key)func GetMetadata(Key *string) interface{} #
Retrieve a value value from the CloudFormation Resource Metadata.
inspect(inspector: TreeInspector): voiddef inspect(self, inspector: TreeInspector) -> Nonepublic void inspect(TreeInspector inspector)public void Inspect(TreeInspector inspector)func Inspect(Inspector TreeInspector) #
Examines the CloudFormation resource and discloses attributes.
1 parameter

Parameters

  • inspectorinspectorinspectorinspectorInspector — tree inspector to collect and process attributes.
isCfnApplication(x: any): boolean@staticmethod def is_cfn_application(x: Any) -> boolpublic static Boolean isCfnApplication(Object x)public static bool IsCfnApplication(object x)func IsCfnApplication(X interface{}) *bool static #
Checks whether the given object is a CfnApplication.
isCfnElement(x: any): boolean@staticmethod def is_cfn_element(x: Any) -> boolpublic static Boolean isCfnElement(Object x)public static bool IsCfnElement(object x)func IsCfnElement(X interface{}) *bool static #
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.

returns

Returns: The construct as a stack element or undefined if it is not a stack element.

isCfnResource(x: any): boolean@staticmethod def is_cfn_resource(x: Any) -> boolpublic static Boolean isCfnResource(Object x)public static bool IsCfnResource(object x)func IsCfnResource(X interface{}) *bool static #
Check whether the given object is a CfnResource.
isConstruct(x: any): boolean@staticmethod def is_construct(x: Any) -> boolpublic static Boolean isConstruct(Object x)public static bool IsConstruct(object x)func IsConstruct(X interface{}) *bool static #
Checks if `x` is a construct.
notes · 1 parameter · returns

Use this method instead of instanceof to properly detect Construct instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the constructs library on disk are seen as independent, completely different libraries. As a consequence, the class Construct in each copy of the constructs library is seen as a different class, and an instance of one class will not test as instanceof the other class. npm install will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the constructs library can be accidentally installed, and instanceof will behave unpredictably. It is safest to avoid using instanceof, and using this type-testing method instead.

Parameters

  • xxxxX — Any object.

Returns: true if x is an object created from a class which extends Construct.

obtainDependencies(): Stack | CfnResource[]def obtain_dependencies(self, ) -> typing.List[typing.Union[Stack, CfnResource]]public List<Stack> obtainDependencies()public Stack[] ObtainDependencies()func ObtainDependencies() *[]interface{} #
Retrieves an array of resources and stacks this resource depends on.

For resources depended on directly, returns the CfnResource object. For dependencies on other stacks, returns the Stack object. The order of the array is not guaranteed.

overrideLogicalId(newLogicalId: string): voiddef override_logical_id(self, new_logical_id: str) -> Nonepublic void overrideLogicalId(String newLogicalId)public void OverrideLogicalId(string newLogicalId)func OverrideLogicalId(NewLogicalId *string) #
Overrides the auto-generated logical ID with a specific ID.
1 parameter

Parameters

  • newLogicalIdnew_logical_idnewLogicalIdnewLogicalIdNewLogicalId — The new logical ID to use for this stack element.
removeDependency(target: CfnResource): voiddef remove_dependency(self, target: CfnResource) -> Nonepublic void removeDependency(CfnResource target)public void RemoveDependency(CfnResource target)func RemoveDependency(Target CfnResource) deprecated #
Use `removeResourceDependency` instead

This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.

removeResourceDependency(target: CfnResource): voiddef remove_resource_dependency(self, target: CfnResource) -> Nonepublic void removeResourceDependency(CfnResource target)public void RemoveResourceDependency(CfnResource target)func RemoveResourceDependency(Target CfnResource) #
Indicates that this resource no longer depends on another resource.

This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.

replaceDependency(target: CfnResource, newTarget: CfnResource): voiddef replace_dependency(self, target: CfnResource, new_target: CfnResource) -> Nonepublic void replaceDependency(CfnResource target, CfnResource newTarget)public void ReplaceDependency(CfnResource target, CfnResource newTarget)func ReplaceDependency(Target CfnResource, NewTarget CfnResource) #
Replaces one dependency with another.
2 parameters

Parameters

  • targettargettargettargetTarget — The dependency to replace.
  • newTargetnew_targetnewTargetnewTargetNewTarget — The new dependency to add.
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string #
Returns a string representation of this construct.
returns

Returns: a string representation of this resource

with(...mixins: IMixin[]): IConstructdef with(self, mixins: IMixin) -> IConstructpublic IConstruct with(IMixin mixins)public IConstruct With(IMixin mixins)func With(Mixins IMixin) IConstruct #
Applies one or more mixins to this construct.

Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited. Use multiple with() calls if subsequent mixins should apply to added constructs.