CfnNotebookExecutionPropsMixin

class aws_cdk.cfn_property_mixins.aws_emr.CfnNotebookExecutionPropsMixin(props, *, strategy=None)

Bases: Mixin

An Amazon EMR Notebook execution.

A notebook execution is a specific instance that an Amazon EMR Notebook is run using the StartNotebookExecution action.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-emr-notebookexecution.html

CloudformationResource:

AWS::EMR::NotebookExecution

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.cfn_property_mixins import aws_emr as emr
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_notebook_execution_props_mixin = emr.CfnNotebookExecutionPropsMixin(emr.CfnNotebookExecutionMixinProps(
    environment_variables={
        "environment_variables_key": "environmentVariables"
    },
    execution_engine=emr.CfnNotebookExecutionPropsMixin.ExecutionEngineConfigProperty(
        id="id",
        type="type"
    ),
    notebook_execution_name="notebookExecutionName",
    notebook_params="notebookParams",
    notebook_s3_location=emr.CfnNotebookExecutionPropsMixin.NotebookS3LocationProperty(
        bucket="bucket",
        key="key"
    ),
    output_notebook_format="outputNotebookFormat",
    output_notebook_s3_location=emr.CfnNotebookExecutionPropsMixin.OutputNotebookS3LocationProperty(
        bucket="bucket",
        key="key"
    ),
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::EMR::NotebookExecution.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['environmentVariables', 'executionEngine', 'notebookExecutionName', 'notebookParams', 'notebookS3Location', 'outputNotebookFormat', 'outputNotebookS3Location', 'tags']

Static Methods

classmethod is_mixin(x)

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.

ExecutionEngineConfigProperty

class CfnNotebookExecutionPropsMixin.ExecutionEngineConfigProperty(*, id=None, type=None)

Bases: object

Specifies the execution engine (cluster) to run the notebook and perform the notebook execution.

Parameters:
  • id (Optional[str]) – The unique identifier of the execution engine. For an Amazon EMR cluster, this is the cluster ID.

  • type (Optional[str]) – The type of execution engine.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-notebookexecution-executionengineconfig.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.cfn_property_mixins import aws_emr as emr

execution_engine_config_property = emr.CfnNotebookExecutionPropsMixin.ExecutionEngineConfigProperty(
    id="id",
    type="type"
)

Attributes

id

The unique identifier of the execution engine.

For an Amazon EMR cluster, this is the cluster ID.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-notebookexecution-executionengineconfig.html#cfn-emr-notebookexecution-executionengineconfig-id

type

The type of execution engine.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-notebookexecution-executionengineconfig.html#cfn-emr-notebookexecution-executionengineconfig-type

NotebookS3LocationProperty

class CfnNotebookExecutionPropsMixin.NotebookS3LocationProperty(*, bucket=None, key=None)

Bases: object

The Amazon S3 location that stores the notebook execution input.

Parameters:
  • bucket (Optional[str]) – The Amazon S3 bucket that stores the notebook execution input.

  • key (Optional[str]) – The key to the Amazon S3 location that stores the notebook execution input.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-notebookexecution-notebooks3location.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.cfn_property_mixins import aws_emr as emr

notebook_s3_location_property = emr.CfnNotebookExecutionPropsMixin.NotebookS3LocationProperty(
    bucket="bucket",
    key="key"
)

Attributes

bucket

The Amazon S3 bucket that stores the notebook execution input.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-notebookexecution-notebooks3location.html#cfn-emr-notebookexecution-notebooks3location-bucket

key

The key to the Amazon S3 location that stores the notebook execution input.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-notebookexecution-notebooks3location.html#cfn-emr-notebookexecution-notebooks3location-key

OutputNotebookS3LocationProperty

class CfnNotebookExecutionPropsMixin.OutputNotebookS3LocationProperty(*, bucket=None, key=None)

Bases: object

The Amazon S3 location for the notebook execution output.

Parameters:
  • bucket (Optional[str]) – The Amazon S3 bucket that stores the notebook execution output.

  • key (Optional[str]) – The key to the Amazon S3 location that stores the notebook execution output.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-notebookexecution-outputnotebooks3location.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.cfn_property_mixins import aws_emr as emr

output_notebook_s3_location_property = emr.CfnNotebookExecutionPropsMixin.OutputNotebookS3LocationProperty(
    bucket="bucket",
    key="key"
)

Attributes

bucket

The Amazon S3 bucket that stores the notebook execution output.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-notebookexecution-outputnotebooks3location.html#cfn-emr-notebookexecution-outputnotebooks3location-bucket

key

The key to the Amazon S3 location that stores the notebook execution output.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-emr-notebookexecution-outputnotebooks3location.html#cfn-emr-notebookexecution-outputnotebooks3location-key