CfnApplicationPropsMixin

class aws_cdk.mixins_preview.aws_emrserverless.mixins.CfnApplicationPropsMixin(props, *, strategy=None)

Bases: Mixin

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.

See:

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

CloudformationResource:

AWS::EMRServerless::Application

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

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

# configuration_object_property_: emrserverless_mixins.CfnApplicationPropsMixin.ConfigurationObjectProperty

cfn_application_props_mixin = emrserverless_mixins.CfnApplicationPropsMixin(emrserverless_mixins.CfnApplicationMixinProps(
    architecture="architecture",
    auto_start_configuration=emrserverless_mixins.CfnApplicationPropsMixin.AutoStartConfigurationProperty(
        enabled=False
    ),
    auto_stop_configuration=emrserverless_mixins.CfnApplicationPropsMixin.AutoStopConfigurationProperty(
        enabled=False,
        idle_timeout_minutes=123
    ),
    identity_center_configuration=emrserverless_mixins.CfnApplicationPropsMixin.IdentityCenterConfigurationProperty(
        identity_center_instance_arn="identityCenterInstanceArn"
    ),
    image_configuration=emrserverless_mixins.CfnApplicationPropsMixin.ImageConfigurationInputProperty(
        image_uri="imageUri"
    ),
    initial_capacity=[emrserverless_mixins.CfnApplicationPropsMixin.InitialCapacityConfigKeyValuePairProperty(
        key="key",
        value=emrserverless_mixins.CfnApplicationPropsMixin.InitialCapacityConfigProperty(
            worker_configuration=emrserverless_mixins.CfnApplicationPropsMixin.WorkerConfigurationProperty(
                cpu="cpu",
                disk="disk",
                disk_type="diskType",
                memory="memory"
            ),
            worker_count=123
        )
    )],
    interactive_configuration=emrserverless_mixins.CfnApplicationPropsMixin.InteractiveConfigurationProperty(
        livy_endpoint_enabled=False,
        studio_enabled=False
    ),
    maximum_capacity=emrserverless_mixins.CfnApplicationPropsMixin.MaximumAllowedResourcesProperty(
        cpu="cpu",
        disk="disk",
        memory="memory"
    ),
    monitoring_configuration=emrserverless_mixins.CfnApplicationPropsMixin.MonitoringConfigurationProperty(
        cloud_watch_logging_configuration=emrserverless_mixins.CfnApplicationPropsMixin.CloudWatchLoggingConfigurationProperty(
            enabled=False,
            encryption_key_arn="encryptionKeyArn",
            log_group_name="logGroupName",
            log_stream_name_prefix="logStreamNamePrefix",
            log_type_map=[emrserverless_mixins.CfnApplicationPropsMixin.LogTypeMapKeyValuePairProperty(
                key="key",
                value=["value"]
            )]
        ),
        managed_persistence_monitoring_configuration=emrserverless_mixins.CfnApplicationPropsMixin.ManagedPersistenceMonitoringConfigurationProperty(
            enabled=False,
            encryption_key_arn="encryptionKeyArn"
        ),
        prometheus_monitoring_configuration=emrserverless_mixins.CfnApplicationPropsMixin.PrometheusMonitoringConfigurationProperty(
            remote_write_url="remoteWriteUrl"
        ),
        s3_monitoring_configuration=emrserverless_mixins.CfnApplicationPropsMixin.S3MonitoringConfigurationProperty(
            encryption_key_arn="encryptionKeyArn",
            log_uri="logUri"
        )
    ),
    name="name",
    network_configuration=emrserverless_mixins.CfnApplicationPropsMixin.NetworkConfigurationProperty(
        security_group_ids=["securityGroupIds"],
        subnet_ids=["subnetIds"]
    ),
    release_label="releaseLabel",
    runtime_configuration=[emrserverless_mixins.CfnApplicationPropsMixin.ConfigurationObjectProperty(
        classification="classification",
        configurations=[configuration_object_property_],
        properties={
            "properties_key": "properties"
        }
    )],
    scheduler_configuration=emrserverless_mixins.CfnApplicationPropsMixin.SchedulerConfigurationProperty(
        max_concurrent_runs=123,
        queue_timeout_minutes=123
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    type="type",
    worker_type_specifications={
        "worker_type_specifications_key": emrserverless_mixins.CfnApplicationPropsMixin.WorkerTypeSpecificationInputProperty(
            image_configuration=emrserverless_mixins.CfnApplicationPropsMixin.ImageConfigurationInputProperty(
                image_uri="imageUri"
            )
        )
    }
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::EMRServerless::Application.

Parameters:
  • props (Union[CfnApplicationMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['architecture', 'autoStartConfiguration', 'autoStopConfiguration', 'identityCenterConfiguration', 'imageConfiguration', 'initialCapacity', 'interactiveConfiguration', 'maximumCapacity', 'monitoringConfiguration', 'name', 'networkConfiguration', 'releaseLabel', 'runtimeConfiguration', 'schedulerConfiguration', 'tags', 'type', 'workerTypeSpecifications']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

AutoStartConfigurationProperty

class CfnApplicationPropsMixin.AutoStartConfigurationProperty(*, enabled=None)

Bases: object

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

Parameters:

enabled (Union[bool, IResolvable, None]) – Enables the application to automatically start on job submission. Default: - true

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

auto_start_configuration_property = emrserverless_mixins.CfnApplicationPropsMixin.AutoStartConfigurationProperty(
    enabled=False
)

Attributes

enabled

Enables the application to automatically start on job submission.

Default:
  • true

See:

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

AutoStopConfigurationProperty

class CfnApplicationPropsMixin.AutoStopConfigurationProperty(*, enabled=None, idle_timeout_minutes=None)

Bases: object

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

Parameters:
  • enabled (Union[bool, IResolvable, None]) – Enables the application to automatically stop after a certain amount of time being idle. Defaults to true. Default: - true

  • idle_timeout_minutes (Union[int, float, None]) – The amount of idle time in minutes after which your application will automatically stop. Defaults to 15 minutes.

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

auto_stop_configuration_property = emrserverless_mixins.CfnApplicationPropsMixin.AutoStopConfigurationProperty(
    enabled=False,
    idle_timeout_minutes=123
)

Attributes

enabled

Enables the application to automatically stop after a certain amount of time being idle.

Defaults to true.

Default:
  • true

See:

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

idle_timeout_minutes

The amount of idle time in minutes after which your application will automatically stop.

Defaults to 15 minutes.

See:

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

CloudWatchLoggingConfigurationProperty

class CfnApplicationPropsMixin.CloudWatchLoggingConfigurationProperty(*, enabled=None, encryption_key_arn=None, log_group_name=None, log_stream_name_prefix=None, log_type_map=None)

Bases: object

The Amazon CloudWatch configuration for monitoring logs.

You can configure your jobs to send log information to CloudWatch.

Parameters:
  • enabled (Union[bool, IResolvable, None]) – Enables CloudWatch logging. Default: - false

  • encryption_key_arn (Optional[str]) – The AWS Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.

  • log_group_name (Optional[str]) – The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.

  • log_stream_name_prefix (Optional[str]) – Prefix for the CloudWatch log stream name.

  • log_type_map (Union[IResolvable, Sequence[Union[IResolvable, LogTypeMapKeyValuePairProperty, Dict[str, Any]]], None]) – The specific log-streams which need to be uploaded to CloudWatch.

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

cloud_watch_logging_configuration_property = emrserverless_mixins.CfnApplicationPropsMixin.CloudWatchLoggingConfigurationProperty(
    enabled=False,
    encryption_key_arn="encryptionKeyArn",
    log_group_name="logGroupName",
    log_stream_name_prefix="logStreamNamePrefix",
    log_type_map=[emrserverless_mixins.CfnApplicationPropsMixin.LogTypeMapKeyValuePairProperty(
        key="key",
        value=["value"]
    )]
)

Attributes

enabled

Enables CloudWatch logging.

Default:
  • false

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-cloudwatchloggingconfiguration.html#cfn-emrserverless-application-cloudwatchloggingconfiguration-enabled

encryption_key_arn

The AWS Key Management Service (KMS) key ARN to encrypt the logs that you store in CloudWatch Logs.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-cloudwatchloggingconfiguration.html#cfn-emrserverless-application-cloudwatchloggingconfiguration-encryptionkeyarn

log_group_name

The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-cloudwatchloggingconfiguration.html#cfn-emrserverless-application-cloudwatchloggingconfiguration-loggroupname

log_stream_name_prefix

Prefix for the CloudWatch log stream name.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-cloudwatchloggingconfiguration.html#cfn-emrserverless-application-cloudwatchloggingconfiguration-logstreamnameprefix

log_type_map

The specific log-streams which need to be uploaded to CloudWatch.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-cloudwatchloggingconfiguration.html#cfn-emrserverless-application-cloudwatchloggingconfiguration-logtypemap

ConfigurationObjectProperty

class CfnApplicationPropsMixin.ConfigurationObjectProperty(*, classification=None, configurations=None, properties=None)

Bases: object

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.

Parameters:
  • classification (Optional[str]) – The classification within a configuration.

  • configurations (Union[IResolvable, Sequence[Union[IResolvable, ConfigurationObjectProperty, Dict[str, Any]]], None]) – A list of additional configurations to apply within a configuration object.

  • properties (Union[Mapping[str, str], IResolvable, None]) – A set of properties specified within a configuration classification.

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

# configuration_object_property_: emrserverless_mixins.CfnApplicationPropsMixin.ConfigurationObjectProperty

configuration_object_property = emrserverless_mixins.CfnApplicationPropsMixin.ConfigurationObjectProperty(
    classification="classification",
    configurations=[configuration_object_property_],
    properties={
        "properties_key": "properties"
    }
)

Attributes

classification

The classification within a configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-configurationobject.html#cfn-emrserverless-application-configurationobject-classification

configurations

A list of additional configurations to apply within a configuration object.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-configurationobject.html#cfn-emrserverless-application-configurationobject-configurations

properties

A set of properties specified within a configuration classification.

See:

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

IdentityCenterConfigurationProperty

class CfnApplicationPropsMixin.IdentityCenterConfigurationProperty(*, identity_center_instance_arn=None)

Bases: object

The IAM Identity Center Configuration accepts the Identity Center instance parameter required to enable trusted identity propagation.

This configuration allows identity propagation between integrated services and the Identity Center instance.

Parameters:

identity_center_instance_arn (Optional[str]) – The ARN of the IAM Identity Center instance.

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

identity_center_configuration_property = emrserverless_mixins.CfnApplicationPropsMixin.IdentityCenterConfigurationProperty(
    identity_center_instance_arn="identityCenterInstanceArn"
)

Attributes

identity_center_instance_arn

The ARN of the IAM Identity Center instance.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-identitycenterconfiguration.html#cfn-emrserverless-application-identitycenterconfiguration-identitycenterinstancearn

ImageConfigurationInputProperty

class CfnApplicationPropsMixin.ImageConfigurationInputProperty(*, image_uri=None)

Bases: object

The image configuration.

Parameters:

image_uri (Optional[str]) – The URI of an image in the Amazon ECR registry. This field is required when you create a new application. If you leave this field blank in an update, Amazon EMR will remove the image configuration.

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

image_configuration_input_property = emrserverless_mixins.CfnApplicationPropsMixin.ImageConfigurationInputProperty(
    image_uri="imageUri"
)

Attributes

image_uri

The URI of an image in the Amazon ECR registry.

This field is required when you create a new application. If you leave this field blank in an update, Amazon EMR will remove the image configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-imageconfigurationinput.html#cfn-emrserverless-application-imageconfigurationinput-imageuri

InitialCapacityConfigKeyValuePairProperty

class CfnApplicationPropsMixin.InitialCapacityConfigKeyValuePairProperty(*, key=None, value=None)

Bases: object

Parameters:
See:

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

ExampleMetadata:

fixture=_generated

Example:

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

initial_capacity_config_key_value_pair_property = emrserverless_mixins.CfnApplicationPropsMixin.InitialCapacityConfigKeyValuePairProperty(
    key="key",
    value=emrserverless_mixins.CfnApplicationPropsMixin.InitialCapacityConfigProperty(
        worker_configuration=emrserverless_mixins.CfnApplicationPropsMixin.WorkerConfigurationProperty(
            cpu="cpu",
            disk="disk",
            disk_type="diskType",
            memory="memory"
        ),
        worker_count=123
    )
)

Attributes

key

Worker type for an analytics framework.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-initialcapacityconfigkeyvaluepair.html#cfn-emrserverless-application-initialcapacityconfigkeyvaluepair-key

value

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-initialcapacityconfigkeyvaluepair.html#cfn-emrserverless-application-initialcapacityconfigkeyvaluepair-value

Type:

see

InitialCapacityConfigProperty

class CfnApplicationPropsMixin.InitialCapacityConfigProperty(*, worker_configuration=None, worker_count=None)

Bases: object

The initial capacity configuration per worker.

Parameters:
  • worker_configuration (Union[IResolvable, WorkerConfigurationProperty, Dict[str, Any], None]) – The resource configuration of the initial capacity configuration.

  • worker_count (Union[int, float, None]) – The number of workers in the initial capacity configuration.

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

initial_capacity_config_property = emrserverless_mixins.CfnApplicationPropsMixin.InitialCapacityConfigProperty(
    worker_configuration=emrserverless_mixins.CfnApplicationPropsMixin.WorkerConfigurationProperty(
        cpu="cpu",
        disk="disk",
        disk_type="diskType",
        memory="memory"
    ),
    worker_count=123
)

Attributes

worker_configuration

The resource configuration of the initial capacity configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-initialcapacityconfig.html#cfn-emrserverless-application-initialcapacityconfig-workerconfiguration

worker_count

The number of workers in the initial capacity configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-initialcapacityconfig.html#cfn-emrserverless-application-initialcapacityconfig-workercount

InteractiveConfigurationProperty

class CfnApplicationPropsMixin.InteractiveConfigurationProperty(*, livy_endpoint_enabled=None, studio_enabled=None)

Bases: object

The configuration to use to enable the different types of interactive use cases in an application.

Parameters:
  • livy_endpoint_enabled (Union[bool, IResolvable, None]) – Enables an Apache Livy endpoint that you can connect to and run interactive jobs. Default: - false

  • studio_enabled (Union[bool, IResolvable, None]) – Enables you to connect an application to Amazon EMR Studio to run interactive workloads in a notebook. Default: - false

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

interactive_configuration_property = emrserverless_mixins.CfnApplicationPropsMixin.InteractiveConfigurationProperty(
    livy_endpoint_enabled=False,
    studio_enabled=False
)

Attributes

livy_endpoint_enabled

Enables an Apache Livy endpoint that you can connect to and run interactive jobs.

Default:
  • false

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-interactiveconfiguration.html#cfn-emrserverless-application-interactiveconfiguration-livyendpointenabled

studio_enabled

Enables you to connect an application to Amazon EMR Studio to run interactive workloads in a notebook.

Default:
  • false

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-interactiveconfiguration.html#cfn-emrserverless-application-interactiveconfiguration-studioenabled

LogTypeMapKeyValuePairProperty

class CfnApplicationPropsMixin.LogTypeMapKeyValuePairProperty(*, key=None, value=None)

Bases: object

Parameters:
  • key (Optional[str])

  • value (Optional[Sequence[str]]) – List of Applicable values: [STDOUT, STDERR, HIVE_LOG, TEZ_AM, SYSTEM_LOGS].

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

log_type_map_key_value_pair_property = emrserverless_mixins.CfnApplicationPropsMixin.LogTypeMapKeyValuePairProperty(
    key="key",
    value=["value"]
)

Attributes

key

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-logtypemapkeyvaluepair.html#cfn-emrserverless-application-logtypemapkeyvaluepair-key

Type:

see

value

[STDOUT, STDERR, HIVE_LOG, TEZ_AM, SYSTEM_LOGS].

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-logtypemapkeyvaluepair.html#cfn-emrserverless-application-logtypemapkeyvaluepair-value

Type:

List of Applicable values

ManagedPersistenceMonitoringConfigurationProperty

class CfnApplicationPropsMixin.ManagedPersistenceMonitoringConfigurationProperty(*, enabled=None, encryption_key_arn=None)

Bases: object

The managed log persistence configuration for a job run.

Parameters:
  • enabled (Union[bool, IResolvable, None]) – Enables managed logging and defaults to true. If set to false, managed logging will be turned off. Default: - true

  • encryption_key_arn (Optional[str]) – The KMS key ARN to encrypt the logs stored in managed log persistence.

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

managed_persistence_monitoring_configuration_property = emrserverless_mixins.CfnApplicationPropsMixin.ManagedPersistenceMonitoringConfigurationProperty(
    enabled=False,
    encryption_key_arn="encryptionKeyArn"
)

Attributes

enabled

Enables managed logging and defaults to true.

If set to false, managed logging will be turned off.

Default:
  • true

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-managedpersistencemonitoringconfiguration.html#cfn-emrserverless-application-managedpersistencemonitoringconfiguration-enabled

encryption_key_arn

The KMS key ARN to encrypt the logs stored in managed log persistence.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-managedpersistencemonitoringconfiguration.html#cfn-emrserverless-application-managedpersistencemonitoringconfiguration-encryptionkeyarn

MaximumAllowedResourcesProperty

class CfnApplicationPropsMixin.MaximumAllowedResourcesProperty(*, cpu=None, disk=None, memory=None)

Bases: object

The maximum allowed cumulative resources for an application.

No new resources will be created once the limit is hit.

Parameters:
  • cpu (Optional[str]) – The maximum allowed CPU for an application.

  • disk (Optional[str]) – The maximum allowed disk for an application.

  • memory (Optional[str]) – The maximum allowed resources for an application.

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

maximum_allowed_resources_property = emrserverless_mixins.CfnApplicationPropsMixin.MaximumAllowedResourcesProperty(
    cpu="cpu",
    disk="disk",
    memory="memory"
)

Attributes

cpu

The maximum allowed CPU for an application.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-maximumallowedresources.html#cfn-emrserverless-application-maximumallowedresources-cpu

disk

The maximum allowed disk for an application.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-maximumallowedresources.html#cfn-emrserverless-application-maximumallowedresources-disk

memory

The maximum allowed resources for an application.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-maximumallowedresources.html#cfn-emrserverless-application-maximumallowedresources-memory

MonitoringConfigurationProperty

class CfnApplicationPropsMixin.MonitoringConfigurationProperty(*, cloud_watch_logging_configuration=None, managed_persistence_monitoring_configuration=None, prometheus_monitoring_configuration=None, s3_monitoring_configuration=None)

Bases: object

The configuration setting for monitoring logs.

Parameters:
See:

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

ExampleMetadata:

fixture=_generated

Example:

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

monitoring_configuration_property = emrserverless_mixins.CfnApplicationPropsMixin.MonitoringConfigurationProperty(
    cloud_watch_logging_configuration=emrserverless_mixins.CfnApplicationPropsMixin.CloudWatchLoggingConfigurationProperty(
        enabled=False,
        encryption_key_arn="encryptionKeyArn",
        log_group_name="logGroupName",
        log_stream_name_prefix="logStreamNamePrefix",
        log_type_map=[emrserverless_mixins.CfnApplicationPropsMixin.LogTypeMapKeyValuePairProperty(
            key="key",
            value=["value"]
        )]
    ),
    managed_persistence_monitoring_configuration=emrserverless_mixins.CfnApplicationPropsMixin.ManagedPersistenceMonitoringConfigurationProperty(
        enabled=False,
        encryption_key_arn="encryptionKeyArn"
    ),
    prometheus_monitoring_configuration=emrserverless_mixins.CfnApplicationPropsMixin.PrometheusMonitoringConfigurationProperty(
        remote_write_url="remoteWriteUrl"
    ),
    s3_monitoring_configuration=emrserverless_mixins.CfnApplicationPropsMixin.S3MonitoringConfigurationProperty(
        encryption_key_arn="encryptionKeyArn",
        log_uri="logUri"
    )
)

Attributes

cloud_watch_logging_configuration

The Amazon CloudWatch configuration for monitoring logs.

You can configure your jobs to send log information to CloudWatch.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-monitoringconfiguration.html#cfn-emrserverless-application-monitoringconfiguration-cloudwatchloggingconfiguration

managed_persistence_monitoring_configuration

The managed log persistence configuration for a job run.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-monitoringconfiguration.html#cfn-emrserverless-application-monitoringconfiguration-managedpersistencemonitoringconfiguration

prometheus_monitoring_configuration

The monitoring configuration object you can configure to send metrics to Amazon Managed Service for Prometheus for a job run.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-monitoringconfiguration.html#cfn-emrserverless-application-monitoringconfiguration-prometheusmonitoringconfiguration

s3_monitoring_configuration

The Amazon S3 configuration for monitoring log publishing.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-monitoringconfiguration.html#cfn-emrserverless-application-monitoringconfiguration-s3monitoringconfiguration

NetworkConfigurationProperty

class CfnApplicationPropsMixin.NetworkConfigurationProperty(*, security_group_ids=None, subnet_ids=None)

Bases: object

The network configuration for customer VPC connectivity.

Parameters:
  • security_group_ids (Optional[Sequence[str]]) – The array of security group Ids for customer VPC connectivity.

  • subnet_ids (Optional[Sequence[str]]) – The array of subnet Ids for customer VPC connectivity.

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

network_configuration_property = emrserverless_mixins.CfnApplicationPropsMixin.NetworkConfigurationProperty(
    security_group_ids=["securityGroupIds"],
    subnet_ids=["subnetIds"]
)

Attributes

security_group_ids

The array of security group Ids for customer VPC connectivity.

See:

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

subnet_ids

The array of subnet Ids for customer VPC connectivity.

See:

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

PrometheusMonitoringConfigurationProperty

class CfnApplicationPropsMixin.PrometheusMonitoringConfigurationProperty(*, remote_write_url=None)

Bases: object

The monitoring configuration object you can configure to send metrics to Amazon Managed Service for Prometheus for a job run.

Parameters:

remote_write_url (Optional[str]) – The remote write URL in the Amazon Managed Service for Prometheus workspace to send metrics to.

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

prometheus_monitoring_configuration_property = emrserverless_mixins.CfnApplicationPropsMixin.PrometheusMonitoringConfigurationProperty(
    remote_write_url="remoteWriteUrl"
)

Attributes

remote_write_url

The remote write URL in the Amazon Managed Service for Prometheus workspace to send metrics to.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-prometheusmonitoringconfiguration.html#cfn-emrserverless-application-prometheusmonitoringconfiguration-remotewriteurl

S3MonitoringConfigurationProperty

class CfnApplicationPropsMixin.S3MonitoringConfigurationProperty(*, encryption_key_arn=None, log_uri=None)

Bases: object

The Amazon S3 configuration for monitoring log publishing.

You can configure your jobs to send log information to Amazon S3.

Parameters:
  • encryption_key_arn (Optional[str]) – The KMS key ARN to encrypt the logs published to the given Amazon S3 destination.

  • log_uri (Optional[str]) – The Amazon S3 destination URI for log publishing.

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

s3_monitoring_configuration_property = emrserverless_mixins.CfnApplicationPropsMixin.S3MonitoringConfigurationProperty(
    encryption_key_arn="encryptionKeyArn",
    log_uri="logUri"
)

Attributes

encryption_key_arn

The KMS key ARN to encrypt the logs published to the given Amazon S3 destination.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-s3monitoringconfiguration.html#cfn-emrserverless-application-s3monitoringconfiguration-encryptionkeyarn

log_uri

The Amazon S3 destination URI for log publishing.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-s3monitoringconfiguration.html#cfn-emrserverless-application-s3monitoringconfiguration-loguri

SchedulerConfigurationProperty

class CfnApplicationPropsMixin.SchedulerConfigurationProperty(*, max_concurrent_runs=None, queue_timeout_minutes=None)

Bases: object

The scheduler configuration for batch and streaming jobs running on this application.

Supported with release labels emr-7.0.0 and above.

Parameters:
  • max_concurrent_runs (Union[int, float, None]) – The maximum concurrent job runs on this application. If scheduler configuration is enabled on your application, the default value is 15. The valid range is 1 to 1000.

  • queue_timeout_minutes (Union[int, float, None]) – The maximum duration in minutes for the job in QUEUED state. If scheduler configuration is enabled on your application, the default value is 360 minutes (6 hours). The valid range is from 15 to 720.

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

scheduler_configuration_property = emrserverless_mixins.CfnApplicationPropsMixin.SchedulerConfigurationProperty(
    max_concurrent_runs=123,
    queue_timeout_minutes=123
)

Attributes

max_concurrent_runs

The maximum concurrent job runs on this application.

If scheduler configuration is enabled on your application, the default value is 15. The valid range is 1 to 1000.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-schedulerconfiguration.html#cfn-emrserverless-application-schedulerconfiguration-maxconcurrentruns

queue_timeout_minutes

The maximum duration in minutes for the job in QUEUED state.

If scheduler configuration is enabled on your application, the default value is 360 minutes (6 hours). The valid range is from 15 to 720.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-schedulerconfiguration.html#cfn-emrserverless-application-schedulerconfiguration-queuetimeoutminutes

WorkerConfigurationProperty

class CfnApplicationPropsMixin.WorkerConfigurationProperty(*, cpu=None, disk=None, disk_type=None, memory=None)

Bases: object

The configuration of a worker.

For more information, see Supported worker configurations .

Parameters:
  • cpu (Optional[str]) – The CPU requirements of the worker configuration. Each worker can have 1, 2, 4, 8, or 16 vCPUs.

  • disk (Optional[str]) – The disk requirements of the worker configuration.

  • disk_type (Optional[str]) – The disk type for every worker instance of the work type. Shuffle optimized disks have higher performance characteristics and are better for shuffle heavy workloads. Default is STANDARD .

  • memory (Optional[str]) – The memory requirements of the worker configuration.

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

worker_configuration_property = emrserverless_mixins.CfnApplicationPropsMixin.WorkerConfigurationProperty(
    cpu="cpu",
    disk="disk",
    disk_type="diskType",
    memory="memory"
)

Attributes

cpu

The CPU requirements of the worker configuration.

Each worker can have 1, 2, 4, 8, or 16 vCPUs.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-workerconfiguration.html#cfn-emrserverless-application-workerconfiguration-cpu

disk

The disk requirements of the worker configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-workerconfiguration.html#cfn-emrserverless-application-workerconfiguration-disk

disk_type

The disk type for every worker instance of the work type.

Shuffle optimized disks have higher performance characteristics and are better for shuffle heavy workloads. Default is STANDARD .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-workerconfiguration.html#cfn-emrserverless-application-workerconfiguration-disktype

memory

The memory requirements of the worker configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emrserverless-application-workerconfiguration.html#cfn-emrserverless-application-workerconfiguration-memory

WorkerTypeSpecificationInputProperty

class CfnApplicationPropsMixin.WorkerTypeSpecificationInputProperty(*, image_configuration=None)

Bases: object

The specifications for a worker type.

Parameters:

image_configuration (Union[IResolvable, ImageConfigurationInputProperty, Dict[str, Any], None]) – The image configuration for a worker type.

See:

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

ExampleMetadata:

fixture=_generated

Example:

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

worker_type_specification_input_property = emrserverless_mixins.CfnApplicationPropsMixin.WorkerTypeSpecificationInputProperty(
    image_configuration=emrserverless_mixins.CfnApplicationPropsMixin.ImageConfigurationInputProperty(
        image_uri="imageUri"
    )
)

Attributes

image_configuration

The image configuration for a worker type.

See:

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