CfnApplicationProps

class aws_cdk.aws_emrserverless.CfnApplicationProps(*, release_label, type, auto_start_configuration=None, auto_stop_configuration=None, initial_capacity=None, maximum_capacity=None, name=None, network_configuration=None, tags=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.

  • 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.

  • 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.

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
    auto_start_configuration=emrserverless.CfnApplication.AutoStartConfigurationProperty(
        enabled=False
    ),
    auto_stop_configuration=emrserverless.CfnApplication.AutoStopConfigurationProperty(
        enabled=False,
        idle_timeout_minutes=123
    ),
    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"
    )]
)

Attributes

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

Return type

Union[AutoStartConfigurationProperty, IResolvable, None]

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

Return type

Union[IResolvable, AutoStopConfigurationProperty, None]

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

Return type

Union[IResolvable, List[Union[IResolvable, InitialCapacityConfigKeyValuePairProperty]], None]

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

Return type

Union[IResolvable, MaximumAllowedResourcesProperty, None]

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

Return type

Optional[str]

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

Return type

Union[IResolvable, NetworkConfigurationProperty, None]

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

Return type

str

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

Return type

Optional[List[CfnTag]]

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

Return type

str