Class CfnSessionProps.Builder
java.lang.Object
software.amazon.awscdk.services.athena.CfnSessionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSessionProps>
- Enclosing interface:
CfnSessionProps
@Stability(Stable)
public static final class CfnSessionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSessionProps>
A builder for
CfnSessionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.engineConfiguration(IResolvable engineConfiguration) Sets the value ofCfnSessionProps.getEngineConfiguration()engineConfiguration(CfnSession.EngineConfigurationProperty engineConfiguration) Sets the value ofCfnSessionProps.getEngineConfiguration()executionRole(String executionRole) Sets the value ofCfnSessionProps.getExecutionRole()Sets the value ofCfnSessionProps.getWorkGroup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
engineConfiguration
@Stability(Stable) public CfnSessionProps.Builder engineConfiguration(IResolvable engineConfiguration) Sets the value ofCfnSessionProps.getEngineConfiguration()- Parameters:
engineConfiguration- Contains engine data processing unit (DPU) configuration settings. This parameter is required.- Returns:
this
-
engineConfiguration
@Stability(Stable) public CfnSessionProps.Builder engineConfiguration(CfnSession.EngineConfigurationProperty engineConfiguration) Sets the value ofCfnSessionProps.getEngineConfiguration()- Parameters:
engineConfiguration- Contains engine data processing unit (DPU) configuration settings. This parameter is required.- Returns:
this
-
workGroup
Sets the value ofCfnSessionProps.getWorkGroup()- Parameters:
workGroup- The workgroup to which the session belongs. This parameter is required.- Returns:
this
-
executionRole
Sets the value ofCfnSessionProps.getExecutionRole()- Parameters:
executionRole- The ARN of the execution role used to access user resources for Spark sessions and Identity Center enabled workgroups.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSessionProps>- Returns:
- a new instance of
CfnSessionProps - Throws:
NullPointerException- if any required attribute was not provided
-