CfnApplicationProps

class aws_cdk.aws_emrserverless.CfnApplicationProps(*, release_label, type, architecture=None, auto_start_configuration=None, auto_stop_configuration=None, image_configuration=None, initial_capacity=None, maximum_capacity=None, name=None, network_configuration=None, tags=None, worker_type_specifications=None)

Bases: object

Properties for defining a CfnApplication.

Parameters:
  • release_label (str) – The EMR release version associated with the application. Minimum : 1 Maximum : 64 Pattern : ^[A-Za-z0-9._/-]+$

  • type (str) – The type of application, such as Spark or Hive.

  • architecture (Optional[str]) – The CPU architecture type of the application. Allowed values: X86_64 or ARM64

  • auto_start_configuration (Union[AutoStartConfigurationProperty, Dict[str, Any], IResolvable, None]) – The configuration for an application to automatically start on job submission.

  • auto_stop_configuration (Union[IResolvable, AutoStopConfigurationProperty, Dict[str, Any], None]) – The configuration for an application to automatically stop after a certain amount of time being idle.

  • image_configuration (Union[IResolvable, ImageConfigurationInputProperty, Dict[str, Any], None]) – AWS::EMRServerless::Application.ImageConfiguration.

  • initial_capacity (Union[IResolvable, Sequence[Union[IResolvable, InitialCapacityConfigKeyValuePairProperty, Dict[str, Any]]], None]) – The initial capacity of the application.

  • maximum_capacity (Union[IResolvable, MaximumAllowedResourcesProperty, Dict[str, Any], None]) – 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.

  • name (Optional[str]) – The name of the application. Minimum : 1 Maximum : 64 Pattern : ^[A-Za-z0-9._\\/#-]+$

  • network_configuration (Union[IResolvable, NetworkConfigurationProperty, Dict[str, Any], None]) – The network configuration for customer VPC connectivity for the application.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – The tags assigned to the application.

  • worker_type_specifications (Union[IResolvable, Mapping[str, Union[IResolvable, WorkerTypeSpecificationInputProperty, Dict[str, Any]]], None]) – AWS::EMRServerless::Application.WorkerTypeSpecifications.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_emrserverless as emrserverless

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
    ),
    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"
            ),
            worker_count=123
        )
    )],
    maximum_capacity=emrserverless.CfnApplication.MaximumAllowedResourcesProperty(
        cpu="cpu",
        memory="memory",

        # the properties below are optional
        disk="disk"
    ),
    name="name",
    network_configuration=emrserverless.CfnApplication.NetworkConfigurationProperty(
        security_group_ids=["securityGroupIds"],
        subnet_ids=["subnetIds"]
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    worker_type_specifications={
        "worker_type_specifications_key": emrserverless.CfnApplication.WorkerTypeSpecificationInputProperty(
            image_configuration=emrserverless.CfnApplication.ImageConfigurationInputProperty(
                image_uri="imageUri"
            )
        )
    }
)

Attributes

architecture

The CPU architecture type of the application.

Allowed values: X86_64 or ARM64

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-architecture

auto_start_configuration

The configuration for an application to automatically start on job submission.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-autostartconfiguration

auto_stop_configuration

The configuration for an application to automatically stop after a certain amount of time being idle.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-autostopconfiguration

image_configuration

AWS::EMRServerless::Application.ImageConfiguration.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-imageconfiguration

initial_capacity

The initial capacity of the application.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-initialcapacity

maximum_capacity

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.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-maximumcapacity

name

The name of the application.

Minimum : 1

Maximum : 64

Pattern : ^[A-Za-z0-9._\\/#-]+$

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-name

network_configuration

The network configuration for customer VPC connectivity for the application.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-networkconfiguration

release_label

The EMR release version associated with the application.

Minimum : 1

Maximum : 64

Pattern : ^[A-Za-z0-9._/-]+$

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-releaselabel

tags

The tags assigned to the application.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-tags

type

The type of application, such as Spark or Hive.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-type

worker_type_specifications

AWS::EMRServerless::Application.WorkerTypeSpecifications.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emrserverless-application.html#cfn-emrserverless-application-workertypespecifications