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.athena.CfnSession
- All Implemented Interfaces:
IInspectable,ISessionRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-08-10T14:50:57.163Z")
@Stability(Stable)
public class CfnSession
extends CfnResource
implements IInspectable, ISessionRef
An Athena session is a Spark-based interactive environment for running calculations within a workgroup.
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.athena.*;
CfnSession cfnSession = CfnSession.Builder.create(this, "MyCfnSession")
.engineConfiguration(EngineConfigurationProperty.builder()
.maxConcurrentDpus(123)
// the properties below are optional
.additionalConfigs(Map.of(
"additionalConfigsKey", "additionalConfigs"))
.coordinatorDpuSize(123)
.defaultExecutorDpuSize(123)
.sparkProperties(Map.of(
"sparkPropertiesKey", "sparkProperties"))
.build())
.workGroup("workGroup")
// the properties below are optional
.executionRole("executionRole")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnSession.static interfaceContains engine data processing unit (DPU) configuration settings.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.athena.ISessionRef
ISessionRef.Jsii$Default, ISessionRef.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::Athena::Session. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForSession(ISessionRef resource) The ARN of the session.Contains additional notebook engine parameter mappings.Specifies custom jar files and Spark properties.The engine version used by the session.The session ID.Contains engine data processing unit (DPU) configuration settings.The ARN of the execution role used to access user resources for Spark sessions and Identity Center enabled workgroups.A reference to a Session resource.The workgroup to which the session belongs.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnSession.renderProperties(Map<String, Object> props) voidContains engine data processing unit (DPU) configuration settings.voidContains engine data processing unit (DPU) configuration settings.voidsetExecutionRole(String value) The ARN of the execution role used to access user resources for Spark sessions and Identity Center enabled workgroups.voidsetWorkGroup(String value) The workgroup to which the session belongs.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::Athena::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 ARN of the session. -
getAttrEngineConfigurationAdditionalConfigs
Contains additional notebook engine parameter mappings. -
getAttrEngineConfigurationSparkProperties
Specifies custom jar files and Spark properties. -
getAttrEngineVersion
The engine version used by the session. -
getAttrSessionId
The session ID. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getSessionRef
A reference to a Session resource.- Specified by:
getSessionRefin interfaceISessionRef
-
getEngineConfiguration
Contains engine data processing unit (DPU) configuration settings.Returns union: either
IResolvableorCfnSession.EngineConfigurationProperty -
setEngineConfiguration
Contains engine data processing unit (DPU) configuration settings. -
setEngineConfiguration
@Stability(Stable) public void setEngineConfiguration(@NotNull CfnSession.EngineConfigurationProperty value) Contains engine data processing unit (DPU) configuration settings. -
getWorkGroup
The workgroup to which the session belongs. -
setWorkGroup
The workgroup to which the session belongs. -
getExecutionRole
The ARN of the execution role used to access user resources for Spark sessions and Identity Center enabled workgroups. -
setExecutionRole
The ARN of the execution role used to access user resources for Spark sessions and Identity Center enabled workgroups.
-