Class CfnSession.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnSession.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSession>
- Enclosing class:
CfnSession
@Stability(Stable)
public static final class CfnSession.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSession>
A fluent builder for
CfnSession.-
Method Summary
Modifier and TypeMethodDescriptionbuild()command(IResolvable command) The SessionCommand that runs the job.command(CfnSession.SessionCommandProperty command) The SessionCommand that runs the job.connections(IResolvable connections) Specifies the connections used by the session.connections(CfnSession.ConnectionsListProperty connections) Specifies the connections used by the session.static CfnSession.BuilderdefaultArguments(Map<String, String> defaultArguments) A map array of key-value pairs.defaultArguments(IResolvable defaultArguments) A map array of key-value pairs.description(String description) The description of the session.glueVersion(String glueVersion) The Glue version determines the versions of Apache Spark and Python that Glue supports.The ID of the session.idleTimeout(Number idleTimeout) The number of minutes when idle before session times out.maxCapacity(Number maxCapacity) The number of Glue data processing units (DPUs) that can be allocated when the job runs.numberOfWorkers(Number numberOfWorkers) The number of workers of a defined WorkerType to use for the session.requestOrigin(String requestOrigin) The origin of the request.The IAM Role ARN.securityConfiguration(String securityConfiguration) The name of the SecurityConfiguration structure to be used with the session.The tags belonging to the session.The number of minutes before session times out.workerType(String workerType) The type of predefined worker that is allocated when a session runs.
-
Method Details
-
create
@Stability(Stable) public static CfnSession.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnSession.Builder.
-
command
The SessionCommand that runs the job.- Parameters:
command- The SessionCommand that runs the job. This parameter is required.- Returns:
this- See Also:
-
command
The SessionCommand that runs the job.- Parameters:
command- The SessionCommand that runs the job. This parameter is required.- Returns:
this- See Also:
-
id
The ID of the session.- Parameters:
id- The ID of the session. This parameter is required.- Returns:
this- See Also:
-
role
The IAM Role ARN.- Parameters:
role- The IAM Role ARN. This parameter is required.- Returns:
this- See Also:
-
connections
Specifies the connections used by the session.- Parameters:
connections- Specifies the connections used by the session. This parameter is required.- Returns:
this- See Also:
-
connections
@Stability(Stable) public CfnSession.Builder connections(CfnSession.ConnectionsListProperty connections) Specifies the connections used by the session.- Parameters:
connections- Specifies the connections used by the session. This parameter is required.- Returns:
this- See Also:
-
defaultArguments
A map array of key-value pairs.Max is 75 pairs.
- Parameters:
defaultArguments- A map array of key-value pairs. This parameter is required.- Returns:
this- See Also:
-
defaultArguments
A map array of key-value pairs.Max is 75 pairs.
- Parameters:
defaultArguments- A map array of key-value pairs. This parameter is required.- Returns:
this- See Also:
-
description
The description of the session.- Parameters:
description- The description of the session. This parameter is required.- Returns:
this- See Also:
-
glueVersion
The Glue version determines the versions of Apache Spark and Python that Glue supports.The GlueVersion must be greater than 2.0.
- Parameters:
glueVersion- The Glue version determines the versions of Apache Spark and Python that Glue supports. This parameter is required.- Returns:
this- See Also:
-
idleTimeout
The number of minutes when idle before session times out.Default is the value of Timeout.
- Parameters:
idleTimeout- The number of minutes when idle before session times out. This parameter is required.- Returns:
this- See Also:
-
maxCapacity
The number of Glue data processing units (DPUs) that can be allocated when the job runs.- Parameters:
maxCapacity- The number of Glue data processing units (DPUs) that can be allocated when the job runs. This parameter is required.- Returns:
this- See Also:
-
numberOfWorkers
The number of workers of a defined WorkerType to use for the session.- Parameters:
numberOfWorkers- The number of workers of a defined WorkerType to use for the session. This parameter is required.- Returns:
this- See Also:
-
requestOrigin
The origin of the request.- Parameters:
requestOrigin- The origin of the request. This parameter is required.- Returns:
this- See Also:
-
securityConfiguration
The name of the SecurityConfiguration structure to be used with the session.- Parameters:
securityConfiguration- The name of the SecurityConfiguration structure to be used with the session. This parameter is required.- Returns:
this- See Also:
-
tags
The tags belonging to the session.- Parameters:
tags- The tags belonging to the session. This parameter is required.- Returns:
this- See Also:
-
timeout
The number of minutes before session times out.- Parameters:
timeout- The number of minutes before session times out. This parameter is required.- Returns:
this- See Also:
-
workerType
The type of predefined worker that is allocated when a session runs.- Parameters:
workerType- The type of predefined worker that is allocated when a session runs. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSession>- Returns:
- a newly built instance of
CfnSession.
-