interface CfnSessionProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Glue.CfnSessionProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsglue#CfnSessionProps |
Java | software.amazon.awscdk.services.glue.CfnSessionProps |
Python | aws_cdk.aws_glue.CfnSessionProps |
TypeScript | aws-cdk-lib » aws_glue » CfnSessionProps |
Properties for defining a CfnSession.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-session.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const cfnSessionProps: glue.CfnSessionProps = {
command: {
name: 'name',
pythonVersion: 'pythonVersion',
},
id: 'id',
role: 'role',
// the properties below are optional
connections: {
connections: ['connections'],
},
defaultArguments: {
defaultArgumentsKey: 'defaultArguments',
},
description: 'description',
glueVersion: 'glueVersion',
idleTimeout: 123,
maxCapacity: 123,
numberOfWorkers: 123,
requestOrigin: 'requestOrigin',
securityConfiguration: 'securityConfiguration',
tags: [{
key: 'key',
value: 'value',
}],
timeout: 123,
workerType: 'workerType',
};
Properties
| Name | Type | Description |
|---|---|---|
| command | IResolvable | Session | The SessionCommand that runs the job. |
| id | string | The ID of the session. |
| role | string | The IAM Role ARN. |
| connections? | IResolvable | Connections | Specifies the connections used by the session. |
| default | IResolvable | { [string]: string } | A map array of key-value pairs. |
| description? | string | The description of the session. |
| glue | string | The Glue version determines the versions of Apache Spark and Python that Glue supports. |
| idle | number | The number of minutes when idle before session times out. |
| max | number | The number of Glue data processing units (DPUs) that can be allocated when the job runs. |
| number | number | The number of workers of a defined WorkerType to use for the session. |
| request | string | The origin of the request. |
| security | string | The name of the SecurityConfiguration structure to be used with the session. |
| tags? | Cfn[] | The tags belonging to the session. |
| timeout? | number | The number of minutes before session times out. |
| worker | string | The type of predefined worker that is allocated when a session runs. |
command
Type:
IResolvable | Session
The SessionCommand that runs the job.
id
Type:
string
The ID of the session.
role
Type:
string
The IAM Role ARN.
connections?
Type:
IResolvable | Connections
(optional)
Specifies the connections used by the session.
defaultArguments?
Type:
IResolvable | { [string]: string }
(optional)
A map array of key-value pairs.
Max is 75 pairs.
description?
Type:
string
(optional)
The description of the session.
glueVersion?
Type:
string
(optional)
The Glue version determines the versions of Apache Spark and Python that Glue supports.
The GlueVersion must be greater than 2.0.
idleTimeout?
Type:
number
(optional)
The number of minutes when idle before session times out.
Default is the value of Timeout.
maxCapacity?
Type:
number
(optional)
The number of Glue data processing units (DPUs) that can be allocated when the job runs.
numberOfWorkers?
Type:
number
(optional)
The number of workers of a defined WorkerType to use for the session.
requestOrigin?
Type:
string
(optional)
The origin of the request.
securityConfiguration?
Type:
string
(optional)
The name of the SecurityConfiguration structure to be used with the session.
tags?
Type:
Cfn[]
(optional)
The tags belonging to the session.
timeout?
Type:
number
(optional)
The number of minutes before session times out.
workerType?
Type:
string
(optional)
The type of predefined worker that is allocated when a session runs.

.NET
Go
Java
Python
TypeScript