Skip to content
v2.278.0

CfnApplicationProps Struct ​

Properties for defining a CfnApplication.

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 cfnApplicationProps: emrserverless.CfnApplicationProps = {
  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_props = emrserverless.CfnApplicationProps(
    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_;

CfnApplicationProps cfnApplicationProps = CfnApplicationProps.builder()
        .releaseLabel("releaseLabel")
        .type("type")

        // the properties below are optional
        .architecture("architecture")
        .autoStartConfiguration(AutoStartConfigurationProperty.builder()
                .enabled(false)
                .build())
        .autoStopConfiguration(AutoStopConfigurationProperty.builder()
                .enabled(false)
                .idleTimeoutMinutes(123)
                .build())
        .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 cfnApplicationProps = 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

cfnApplicationProps := &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"),
			},
		},
	},
}

Properties ​

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.