CfnSessionPropsMixin

class aws_cdk.cfn_property_mixins.aws_glue.CfnSessionPropsMixin(props, *, strategy=None)

Bases: Mixin

Resource Type definition for AWS::Glue::Session.

Sessions provide an on-demand, serverless Apache Spark runtime environment for building, testing, and running data preparation and analytics applications.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-session.html

CloudformationResource:

AWS::Glue::Session

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_glue as glue
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_session_props_mixin = glue.CfnSessionPropsMixin(glue.CfnSessionMixinProps(
    command=glue.CfnSessionPropsMixin.SessionCommandProperty(
        name="name",
        python_version="pythonVersion"
    ),
    connections=glue.CfnSessionPropsMixin.ConnectionsListProperty(
        connections=["connections"]
    ),
    default_arguments={
        "default_arguments_key": "defaultArguments"
    },
    description="description",
    glue_version="glueVersion",
    id="id",
    idle_timeout=123,
    max_capacity=123,
    number_of_workers=123,
    request_origin="requestOrigin",
    role="role",
    security_configuration="securityConfiguration",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )],
    timeout=123,
    worker_type="workerType"
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::Glue::Session.

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

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

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 = ['command', 'connections', 'defaultArguments', 'description', 'glueVersion', 'id', 'idleTimeout', 'maxCapacity', 'numberOfWorkers', 'requestOrigin', 'role', 'securityConfiguration', 'tags', 'timeout', 'workerType']

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.

ConnectionsListProperty

class CfnSessionPropsMixin.ConnectionsListProperty(*, connections=None)

Bases: object

Specifies the connections used by the session.

Parameters:

connections (Optional[Sequence[str]]) – A list of connection names used by the session.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-session-connectionslist.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_glue as glue

connections_list_property = glue.CfnSessionPropsMixin.ConnectionsListProperty(
    connections=["connections"]
)

Attributes

connections

A list of connection names used by the session.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-session-connectionslist.html#cfn-glue-session-connectionslist-connections

SessionCommandProperty

class CfnSessionPropsMixin.SessionCommandProperty(*, name=None, python_version=None)

Bases: object

The SessionCommand that runs the job.

Parameters:
  • name (Optional[str]) – Specifies the name of the SessionCommand. Can be ‘glueetl’ or ‘gluestreaming’.

  • python_version (Optional[str]) – Specifies the Python version. The Python version indicates the version supported for jobs of type Spark.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-session-sessioncommand.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_glue as glue

session_command_property = glue.CfnSessionPropsMixin.SessionCommandProperty(
    name="name",
    python_version="pythonVersion"
)

Attributes

name

Specifies the name of the SessionCommand.

Can be ‘glueetl’ or ‘gluestreaming’.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-session-sessioncommand.html#cfn-glue-session-sessioncommand-name

python_version

Specifies the Python version.

The Python version indicates the version supported for jobs of type Spark.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-session-sessioncommand.html#cfn-glue-session-sessioncommand-pythonversion