Class CfnSessionProps
Properties for defining a CfnSession.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Glue
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnSessionProps : ICfnSessionProps
Syntax (vb)
Public Class CfnSessionProps Implements ICfnSessionProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-session.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;
var cfnSessionProps = new CfnSessionProps {
Command = new SessionCommandProperty {
Name = "name",
PythonVersion = "pythonVersion"
},
Id = "id",
Role = "role",
// the properties below are optional
Connections = new ConnectionsListProperty {
Connections = new [] { "connections" }
},
DefaultArguments = new Dictionary<string, string> {
{ "defaultArgumentsKey", "defaultArguments" }
},
Description = "description",
GlueVersion = "glueVersion",
IdleTimeout = 123,
MaxCapacity = 123,
NumberOfWorkers = 123,
RequestOrigin = "requestOrigin",
SecurityConfiguration = "securityConfiguration",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
Timeout = 123,
WorkerType = "workerType"
};
Synopsis
Constructors
| CfnSessionProps() | Properties for defining a |
Properties
| Command | The SessionCommand that runs the job. |
| Connections | Specifies the connections used by the session. |
| DefaultArguments | A map array of key-value pairs. |
| Description | The description of the session. |
| GlueVersion | The Glue version determines the versions of Apache Spark and Python that Glue supports. |
| Id | The ID of the session. |
| IdleTimeout | The number of minutes when idle before session times out. |
| MaxCapacity | The number of Glue data processing units (DPUs) that can be allocated when the job runs. |
| NumberOfWorkers | The number of workers of a defined WorkerType to use for the session. |
| RequestOrigin | The origin of the request. |
| Role | The IAM Role ARN. |
| SecurityConfiguration | The name of the SecurityConfiguration structure to be used with the session. |
| Tags | The tags belonging to the session. |
| Timeout | The number of minutes before session times out. |
| WorkerType | The type of predefined worker that is allocated when a session runs. |
Constructors
CfnSessionProps()
Properties for defining a CfnSession.
public CfnSessionProps()
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-session.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;
var cfnSessionProps = new CfnSessionProps {
Command = new SessionCommandProperty {
Name = "name",
PythonVersion = "pythonVersion"
},
Id = "id",
Role = "role",
// the properties below are optional
Connections = new ConnectionsListProperty {
Connections = new [] { "connections" }
},
DefaultArguments = new Dictionary<string, string> {
{ "defaultArgumentsKey", "defaultArguments" }
},
Description = "description",
GlueVersion = "glueVersion",
IdleTimeout = 123,
MaxCapacity = 123,
NumberOfWorkers = 123,
RequestOrigin = "requestOrigin",
SecurityConfiguration = "securityConfiguration",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
Timeout = 123,
WorkerType = "workerType"
};
Properties
Command
The SessionCommand that runs the job.
public object Command { get; set; }
Property Value
Remarks
Connections
Specifies the connections used by the session.
public object? Connections { get; set; }
Property Value
Remarks
DefaultArguments
A map array of key-value pairs.
public object? DefaultArguments { get; set; }
Property Value
Remarks
Max is 75 pairs.
Type union: either IResolvable or Dictionary<string, string>
Description
The description of the session.
public string? Description { get; set; }
Property Value
Remarks
GlueVersion
The Glue version determines the versions of Apache Spark and Python that Glue supports.
public string? GlueVersion { get; set; }
Property Value
Remarks
The GlueVersion must be greater than 2.0.
Id
The ID of the session.
public string Id { get; set; }
Property Value
Remarks
IdleTimeout
The number of minutes when idle before session times out.
public double? IdleTimeout { get; set; }
Property Value
Remarks
Default is the value of Timeout.
MaxCapacity
The number of Glue data processing units (DPUs) that can be allocated when the job runs.
public double? MaxCapacity { get; set; }
Property Value
Remarks
NumberOfWorkers
The number of workers of a defined WorkerType to use for the session.
public double? NumberOfWorkers { get; set; }
Property Value
Remarks
RequestOrigin
The origin of the request.
public string? RequestOrigin { get; set; }
Property Value
Remarks
Role
The IAM Role ARN.
public string Role { get; set; }
Property Value
Remarks
SecurityConfiguration
The name of the SecurityConfiguration structure to be used with the session.
public string? SecurityConfiguration { get; set; }
Property Value
Remarks
Tags
The tags belonging to the session.
public ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
Remarks
Timeout
The number of minutes before session times out.
public double? Timeout { get; set; }
Property Value
Remarks
WorkerType
The type of predefined worker that is allocated when a session runs.
public string? WorkerType { get; set; }