CfnSessionPropsMixin
- class aws_cdk.cfn_property_mixins.aws_glue.CfnSessionPropsMixin(props, *, strategy=None)
Bases:
MixinResource 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
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
ConnectionsListProperty
- class CfnSessionPropsMixin.ConnectionsListProperty(*, connections=None)
Bases:
objectSpecifies the connections used by the session.
- Parameters:
connections (
Optional[Sequence[str]]) – A list of connection names used by the session.- See:
- 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.
SessionCommandProperty
- class CfnSessionPropsMixin.SessionCommandProperty(*, name=None, python_version=None)
Bases:
objectThe 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:
- 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’.
- python_version
Specifies the Python version.
The Python version indicates the version supported for jobs of type Spark.