Class CfnSession
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.glue.CfnSession
- All Implemented Interfaces:
IInspectable,ISessionRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:11.129Z")
@Stability(Stable)
public class CfnSession
extends CfnResource
implements IInspectable, ISessionRef, ITaggableV2
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;
CfnSession cfnSession = CfnSession.Builder.create(this, "MyCfnSession")
.command(SessionCommandProperty.builder()
.name("name")
.pythonVersion("pythonVersion")
.build())
.id("id")
.role("role")
// the properties below are optional
.connections(ConnectionsListProperty.builder()
.connections(List.of("connections"))
.build())
.defaultArguments(Map.of(
"defaultArgumentsKey", "defaultArguments"))
.description("description")
.glueVersion("glueVersion")
.idleTimeout(123)
.maxCapacity(123)
.numberOfWorkers(123)
.requestOrigin("requestOrigin")
.securityConfiguration("securityConfiguration")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.timeout(123)
.workerType("workerType")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnSession.static interfaceSpecifies the connections used by the session.static interfaceThe SessionCommand that runs the job.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.glue.ISessionRef
ISessionRef.Jsii$Default, ISessionRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnSession(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSession(software.amazon.jsii.JsiiObjectRef objRef) CfnSession(software.constructs.Construct scope, String id, CfnSessionProps props) Create a newAWS::Glue::Session. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForSession(ISessionRef resource) The Amazon Resource Name (ARN) of the session.The time and date when the session was created.The code execution progress of the session.The session status.Tag Manager which manages the tags for this resource.The SessionCommand that runs the job.Specifies the connections used by the session.A map array of key-value pairs.The description of the session.The Glue version determines the versions of Apache Spark and Python that Glue supports.getId()The ID of the session.The number of minutes when idle before session times out.The number of Glue data processing units (DPUs) that can be allocated when the job runs.The number of workers of a defined WorkerType to use for the session.The origin of the request.getRole()The IAM Role ARN.The name of the SecurityConfiguration structure to be used with the session.A reference to a Session resource.getTags()The tags belonging to the session.The number of minutes before session times out.The type of predefined worker that is allocated when a session runs.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnSession.renderProperties(Map<String, Object> props) voidsetCommand(IResolvable value) The SessionCommand that runs the job.voidThe SessionCommand that runs the job.voidsetConnections(IResolvable value) Specifies the connections used by the session.voidSpecifies the connections used by the session.voidsetDefaultArguments(Map<String, String> value) A map array of key-value pairs.voidsetDefaultArguments(IResolvable value) A map array of key-value pairs.voidsetDescription(String value) The description of the session.voidsetGlueVersion(String value) The Glue version determines the versions of Apache Spark and Python that Glue supports.voidThe ID of the session.voidsetIdleTimeout(Number value) The number of minutes when idle before session times out.voidsetMaxCapacity(Number value) The number of Glue data processing units (DPUs) that can be allocated when the job runs.voidsetNumberOfWorkers(Number value) The number of workers of a defined WorkerType to use for the session.voidsetRequestOrigin(String value) The origin of the request.voidThe IAM Role ARN.voidsetSecurityConfiguration(String value) The name of the SecurityConfiguration structure to be used with the session.voidThe tags belonging to the session.voidsetTimeout(Number value) The number of minutes before session times out.voidsetWorkerType(String value) The type of predefined worker that is allocated when a session runs.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnSession
protected CfnSession(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSession
protected CfnSession(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSession
@Stability(Stable) public CfnSession(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSessionProps props) Create a newAWS::Glue::Session.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForSession
- Parameters:
resource- This parameter is required.
-
isCfnSession
Checks whether the given object is a CfnSession.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the session. -
getAttrCreatedOn
The time and date when the session was created. -
getAttrProgress
The code execution progress of the session. -
getAttrStatus
The session status. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getSessionRef
A reference to a Session resource.- Specified by:
getSessionRefin interfaceISessionRef
-
getCommand
The SessionCommand that runs the job.Returns union: either
IResolvableorCfnSession.SessionCommandProperty -
setCommand
The SessionCommand that runs the job. -
setCommand
The SessionCommand that runs the job. -
getId
The ID of the session. -
setId
The ID of the session. -
getRole
The IAM Role ARN. -
setRole
The IAM Role ARN. -
getConnections
Specifies the connections used by the session.Returns union: either
IResolvableorCfnSession.ConnectionsListProperty -
setConnections
Specifies the connections used by the session. -
setConnections
Specifies the connections used by the session. -
getDefaultArguments
A map array of key-value pairs.Returns union: either
IResolvableor Mapinvalid input: '<'String,String> -
setDefaultArguments
A map array of key-value pairs. -
setDefaultArguments
A map array of key-value pairs. -
getDescription
The description of the session. -
setDescription
The description of the session. -
getGlueVersion
The Glue version determines the versions of Apache Spark and Python that Glue supports. -
setGlueVersion
The Glue version determines the versions of Apache Spark and Python that Glue supports. -
getIdleTimeout
The number of minutes when idle before session times out. -
setIdleTimeout
The number of minutes when idle before session times out. -
getMaxCapacity
The number of Glue data processing units (DPUs) that can be allocated when the job runs. -
setMaxCapacity
The number of Glue data processing units (DPUs) that can be allocated when the job runs. -
getNumberOfWorkers
The number of workers of a defined WorkerType to use for the session. -
setNumberOfWorkers
The number of workers of a defined WorkerType to use for the session. -
getRequestOrigin
The origin of the request. -
setRequestOrigin
The origin of the request. -
getSecurityConfiguration
The name of the SecurityConfiguration structure to be used with the session. -
setSecurityConfiguration
The name of the SecurityConfiguration structure to be used with the session. -
getTags
The tags belonging to the session. -
setTags
The tags belonging to the session. -
getTimeout
The number of minutes before session times out. -
setTimeout
The number of minutes before session times out. -
getWorkerType
The type of predefined worker that is allocated when a session runs. -
setWorkerType
The type of predefined worker that is allocated when a session runs.
-