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.
| CloudFormation | AWS::EMRServerless::Application |
|---|---|
| Source | |
| Type last changed |
Example
// 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',
},
},
},
});
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"
)
)
}
)
// 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();
// 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"
}
} }
}
});
// 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
new CfnApplication(scope: Construct, id: string, props: CfnApplicationProps)
CfnApplication(scope: Construct, id: str, props: CfnApplicationProps)
new CfnApplication(Construct scope, String id, CfnApplicationProps props)
new CfnApplication(Construct scope, string id, CfnApplicationProps props)
NewCfnApplication(Scope Construct, Id *string, Props CfnApplicationProps)
Construct Props
architectureoptionalstringarchitectureoptionalstrarchitectureoptionalStringArchitectureoptionalstringArchitectureoptional*string #autoStartConfigurationoptionalIResolvable | CfnApplication.auto_start_configurationoptionaltyping.Union[IResolvable, AutoStartConfigurationProperty]autoStartConfigurationoptionalIResolvableAutoStartConfigurationoptionalIResolvableAutoStartConfigurationoptionalinterface{} #autoStopConfigurationoptionalIResolvable | CfnApplication.auto_stop_configurationoptionaltyping.Union[IResolvable, AutoStopConfigurationProperty]autoStopConfigurationoptionalIResolvableAutoStopConfigurationoptionalIResolvableAutoStopConfigurationoptionalinterface{} #identityCenterConfigurationoptionalIResolvable | CfnApplication.identity_center_configurationoptionaltyping.Union[IResolvable, IdentityCenterConfigurationProperty]identityCenterConfigurationoptionalIResolvableIdentityCenterConfigurationoptionalIResolvableIdentityCenterConfigurationoptionalinterface{} #imageConfigurationoptionalIResolvable | CfnApplication.image_configurationoptionaltyping.Union[IResolvable, ImageConfigurationInputProperty]imageConfigurationoptionalIResolvableImageConfigurationoptionalIResolvableImageConfigurationoptionalinterface{} #initialCapacityoptionalIResolvable | IResolvable | CfnApplication.initial_capacityoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, InitialCapacityConfigKeyValuePairProperty]]]initialCapacityoptionalIResolvableInitialCapacityoptionalIResolvableInitialCapacityoptionalinterface{} #interactiveConfigurationoptionalIResolvable | CfnApplication.interactive_configurationoptionaltyping.Union[IResolvable, InteractiveConfigurationProperty]interactiveConfigurationoptionalIResolvableInteractiveConfigurationoptionalIResolvableInteractiveConfigurationoptionalinterface{} #maximumCapacityoptionalIResolvable | CfnApplication.maximum_capacityoptionaltyping.Union[IResolvable, MaximumAllowedResourcesProperty]maximumCapacityoptionalIResolvableMaximumCapacityoptionalIResolvableMaximumCapacityoptionalinterface{} #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.monitoring_configurationoptionaltyping.Union[IResolvable, MonitoringConfigurationProperty]monitoringConfigurationoptionalIResolvableMonitoringConfigurationoptionalIResolvableMonitoringConfigurationoptionalinterface{} #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.
networkConfigurationoptionalIResolvable | CfnApplication.network_configurationoptionaltyping.Union[IResolvable, NetworkConfigurationProperty]networkConfigurationoptionalIResolvableNetworkConfigurationoptionalIResolvableNetworkConfigurationoptionalinterface{} #releaseLabelstringrelease_labelstrreleaseLabelStringReleaseLabelstringReleaseLabel*string required #runtimeConfigurationoptionalIResolvable | IResolvable | CfnApplication.runtime_configurationoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ConfigurationObjectProperty]]]runtimeConfigurationoptionalIResolvableRuntimeConfigurationoptionalIResolvableRuntimeConfigurationoptionalinterface{} #schedulerConfigurationoptionalIResolvable | CfnApplication.scheduler_configurationoptionaltyping.Union[IResolvable, SchedulerConfigurationProperty]schedulerConfigurationoptionalIResolvableSchedulerConfigurationoptionalIResolvableSchedulerConfigurationoptionalinterface{} #Supported with release labels emr-7.0.0 and above.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #workerTypeSpecificationsoptionalIResolvable | { [key: string]: IResolvable | CfnApplication.worker_type_specificationsoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, WorkerTypeSpecificationInputProperty]]]workerTypeSpecificationsoptionalIResolvableWorkerTypeSpecificationsoptionalIResolvableWorkerTypeSpecificationsoptionalinterface{} #Properties
applicationRefApplicationReferenceapplication_refApplicationReferenceapplicationRefApplicationReferenceApplicationRefApplicationReferenceApplicationRefApplicationReference #architecturemay be undefinedstringarchitecturemay be undefinedstrarchitecturemay be undefinedStringArchitecturemay be undefinedstringArchitecturemay be undefined*string #attrApplicationIdstringattr_application_idstrattrApplicationIdStringAttrApplicationIdstringAttrApplicationId*string #autoStartConfigurationmay be undefinedIResolvable | CfnApplication.auto_start_configurationmay be undefinedtyping.Union[IResolvable, AutoStartConfigurationProperty]autoStartConfigurationmay be undefinedIResolvableAutoStartConfigurationmay be undefinedIResolvableAutoStartConfigurationmay be undefinedinterface{} #autoStopConfigurationmay be undefinedIResolvable | CfnApplication.auto_stop_configurationmay be undefinedtyping.Union[IResolvable, AutoStopConfigurationProperty]autoStopConfigurationmay be undefinedIResolvableAutoStopConfigurationmay be undefinedIResolvableAutoStopConfigurationmay be undefinedinterface{} #CFN_RESOURCE_TYPE_NAMEstringCFN_RESOURCE_TYPE_NAMEstrCFN_RESOURCE_TYPE_NAMEStringCFN_RESOURCE_TYPE_NAMEstringCFN_RESOURCE_TYPE_NAME*string static #cfnOptionsICfnResourceOptionscfn_optionsICfnResourceOptionscfnOptionsICfnResourceOptionsCfnOptionsICfnResourceOptionsCfnOptionsICfnResourceOptions #cfnResourceTypestringcfn_resource_typestrcfnResourceTypeStringCfnResourceTypestringCfnResourceType*string #creationStackstring[]creation_stacktyping.List[str]creationStackList<String>CreationStackstring[]CreationStack*[]*string #identityCenterConfigurationmay be undefinedIResolvable | CfnApplication.identity_center_configurationmay be undefinedtyping.Union[IResolvable, IdentityCenterConfigurationProperty]identityCenterConfigurationmay be undefinedIResolvableIdentityCenterConfigurationmay be undefinedIResolvableIdentityCenterConfigurationmay be undefinedinterface{} #imageConfigurationmay be undefinedIResolvable | CfnApplication.image_configurationmay be undefinedtyping.Union[IResolvable, ImageConfigurationInputProperty]imageConfigurationmay be undefinedIResolvableImageConfigurationmay be undefinedIResolvableImageConfigurationmay be undefinedinterface{} #initialCapacitymay be undefinedIResolvable | IResolvable | CfnApplication.initial_capacitymay be undefinedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, InitialCapacityConfigKeyValuePairProperty]]]initialCapacitymay be undefinedIResolvableInitialCapacitymay be undefinedIResolvableInitialCapacitymay be undefinedinterface{} #interactiveConfigurationmay be undefinedIResolvable | CfnApplication.interactive_configurationmay be undefinedtyping.Union[IResolvable, InteractiveConfigurationProperty]interactiveConfigurationmay be undefinedIResolvableInteractiveConfigurationmay be undefinedIResolvableInteractiveConfigurationmay be undefinedinterface{} #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.maximum_capacitymay be undefinedtyping.Union[IResolvable, MaximumAllowedResourcesProperty]maximumCapacitymay be undefinedIResolvableMaximumCapacitymay be undefinedIResolvableMaximumCapacitymay be undefinedinterface{} #monitoringConfigurationmay be undefinedIResolvable | CfnApplication.monitoring_configurationmay be undefinedtyping.Union[IResolvable, MonitoringConfigurationProperty]monitoringConfigurationmay be undefinedIResolvableMonitoringConfigurationmay be undefinedIResolvableMonitoringConfigurationmay be undefinedinterface{} #namemay be undefinedstringnamemay be undefinedstrnamemay be undefinedStringNamemay be undefinedstringNamemay be undefined*string #networkConfigurationmay be undefinedIResolvable | CfnApplication.network_configurationmay be undefinedtyping.Union[IResolvable, NetworkConfigurationProperty]networkConfigurationmay be undefinedIResolvableNetworkConfigurationmay be undefinedIResolvableNetworkConfigurationmay be undefinedinterface{} #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 }).
runtimeConfigurationmay be undefinedIResolvable | IResolvable | CfnApplication.runtime_configurationmay be undefinedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ConfigurationObjectProperty]]]runtimeConfigurationmay be undefinedIResolvableRuntimeConfigurationmay be undefinedIResolvableRuntimeConfigurationmay be undefinedinterface{} #schedulerConfigurationmay be undefinedIResolvable | CfnApplication.scheduler_configurationmay be undefinedtyping.Union[IResolvable, SchedulerConfigurationProperty]schedulerConfigurationmay be undefinedIResolvableSchedulerConfigurationmay be undefinedIResolvableSchedulerConfigurationmay be undefinedinterface{} #CfnElements must be defined within a stack scope (directly or indirectly).
tagsRawmay be undefinedCfnTag[]tags_rawmay be undefinedtyping.List[CfnTag]tagsRawmay be undefinedList<CfnTag>TagsRawmay be undefinedCfnTag[]TagsRawmay be undefined*[]CfnTag #workerTypeSpecificationsmay be undefinedIResolvable | { [key: string]: IResolvable | CfnApplication.worker_type_specificationsmay be undefinedtyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, WorkerTypeSpecificationInputProperty]]]workerTypeSpecificationsmay be undefinedIResolvableWorkerTypeSpecificationsmay be undefinedIResolvableWorkerTypeSpecificationsmay be undefinedinterface{} #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) #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 #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 #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{}) #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{}) #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,
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
would add the overrides
"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) #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{}) #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) #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) #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) #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 #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 #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 #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{} #inspect(inspector: TreeInspector): voiddef inspect(self, inspector: TreeInspector) -> Nonepublic void inspect(TreeInspector inspector)public void Inspect(TreeInspector inspector)func Inspect(Inspector TreeInspector) #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 #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 #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 #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 #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{} #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) #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 #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) #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) #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
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 #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.