| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Glue.CreateSession
Description
Creates a new session.
Synopsis
- data CreateSession = CreateSession' {
- connections :: Maybe ConnectionsList
- defaultArguments :: Maybe (HashMap Text Text)
- description :: Maybe Text
- glueVersion :: Maybe Text
- idleTimeout :: Maybe Natural
- maxCapacity :: Maybe Double
- numberOfWorkers :: Maybe Int
- requestOrigin :: Maybe Text
- securityConfiguration :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- timeout :: Maybe Natural
- workerType :: Maybe WorkerType
- id :: Text
- role' :: Text
- command :: SessionCommand
- newCreateSession :: Text -> Text -> SessionCommand -> CreateSession
- createSession_connections :: Lens' CreateSession (Maybe ConnectionsList)
- createSession_defaultArguments :: Lens' CreateSession (Maybe (HashMap Text Text))
- createSession_description :: Lens' CreateSession (Maybe Text)
- createSession_glueVersion :: Lens' CreateSession (Maybe Text)
- createSession_idleTimeout :: Lens' CreateSession (Maybe Natural)
- createSession_maxCapacity :: Lens' CreateSession (Maybe Double)
- createSession_numberOfWorkers :: Lens' CreateSession (Maybe Int)
- createSession_requestOrigin :: Lens' CreateSession (Maybe Text)
- createSession_securityConfiguration :: Lens' CreateSession (Maybe Text)
- createSession_tags :: Lens' CreateSession (Maybe (HashMap Text Text))
- createSession_timeout :: Lens' CreateSession (Maybe Natural)
- createSession_workerType :: Lens' CreateSession (Maybe WorkerType)
- createSession_id :: Lens' CreateSession Text
- createSession_role :: Lens' CreateSession Text
- createSession_command :: Lens' CreateSession SessionCommand
- data CreateSessionResponse = CreateSessionResponse' {
- session :: Maybe Session
- httpStatus :: Int
- newCreateSessionResponse :: Int -> CreateSessionResponse
- createSessionResponse_session :: Lens' CreateSessionResponse (Maybe Session)
- createSessionResponse_httpStatus :: Lens' CreateSessionResponse Int
Creating a Request
data CreateSession Source #
Request to create a new session.
See: newCreateSession smart constructor.
Constructors
| CreateSession' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> SessionCommand | |
| -> CreateSession |
Create a value of CreateSession with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateSession, createSession_connections - The number of connections to use for the session.
CreateSession, createSession_defaultArguments - A map array of key-value pairs. Max is 75 pairs.
CreateSession, createSession_description - The description of the session.
CreateSession, createSession_glueVersion - The Glue version determines the versions of Apache Spark and Python that
Glue supports. The GlueVersion must be greater than 2.0.
$sel:idleTimeout:CreateSession', createSession_idleTimeout - The number of seconds when idle before request times out.
CreateSession, createSession_maxCapacity - The number of Glue data processing units (DPUs) that can be allocated
when the job runs. A DPU is a relative measure of processing power that
consists of 4 vCPUs of compute capacity and 16 GB memory.
CreateSession, createSession_numberOfWorkers - The number of workers of a defined WorkerType to use for the session.
$sel:requestOrigin:CreateSession', createSession_requestOrigin - The origin of the request.
CreateSession, createSession_securityConfiguration - The name of the SecurityConfiguration structure to be used with the
session
$sel:tags:CreateSession', createSession_tags - The map of key value pairs (tags) belonging to the session.
CreateSession, createSession_timeout - The number of seconds before request times out.
CreateSession, createSession_workerType - The type of predefined worker that is allocated to use for the session.
Accepts a value of Standard, G.1X, G.2X, or G.025X.
- For the
Standardworker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker. - For the
G.1Xworker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs. - For the
G.2Xworker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs. - For the
G.025Xworker type, each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 streaming jobs.
CreateSession, createSession_id - The ID of the session request.
CreateSession, createSession_role - The IAM Role ARN
CreateSession, createSession_command - The SessionCommand that runs the job.
Request Lenses
createSession_connections :: Lens' CreateSession (Maybe ConnectionsList) Source #
The number of connections to use for the session.
createSession_defaultArguments :: Lens' CreateSession (Maybe (HashMap Text Text)) Source #
A map array of key-value pairs. Max is 75 pairs.
createSession_description :: Lens' CreateSession (Maybe Text) Source #
The description of the session.
createSession_glueVersion :: Lens' CreateSession (Maybe Text) Source #
The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be greater than 2.0.
createSession_idleTimeout :: Lens' CreateSession (Maybe Natural) Source #
The number of seconds when idle before request times out.
createSession_maxCapacity :: Lens' CreateSession (Maybe Double) Source #
The number of Glue data processing units (DPUs) that can be allocated when the job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB memory.
createSession_numberOfWorkers :: Lens' CreateSession (Maybe Int) Source #
The number of workers of a defined WorkerType to use for the session.
createSession_requestOrigin :: Lens' CreateSession (Maybe Text) Source #
The origin of the request.
createSession_securityConfiguration :: Lens' CreateSession (Maybe Text) Source #
The name of the SecurityConfiguration structure to be used with the session
createSession_tags :: Lens' CreateSession (Maybe (HashMap Text Text)) Source #
The map of key value pairs (tags) belonging to the session.
createSession_timeout :: Lens' CreateSession (Maybe Natural) Source #
The number of seconds before request times out.
createSession_workerType :: Lens' CreateSession (Maybe WorkerType) Source #
The type of predefined worker that is allocated to use for the session. Accepts a value of Standard, G.1X, G.2X, or G.025X.
- For the
Standardworker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker. - For the
G.1Xworker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs. - For the
G.2Xworker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs. - For the
G.025Xworker type, each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 streaming jobs.
createSession_id :: Lens' CreateSession Text Source #
The ID of the session request.
createSession_role :: Lens' CreateSession Text Source #
The IAM Role ARN
createSession_command :: Lens' CreateSession SessionCommand Source #
The SessionCommand that runs the job.
Destructuring the Response
data CreateSessionResponse Source #
See: newCreateSessionResponse smart constructor.
Constructors
| CreateSessionResponse' | |
Fields
| |
Instances
newCreateSessionResponse Source #
Create a value of CreateSessionResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:session:CreateSessionResponse', createSessionResponse_session - Returns the session object in the response.
$sel:httpStatus:CreateSessionResponse', createSessionResponse_httpStatus - The response's http status code.
Response Lenses
createSessionResponse_session :: Lens' CreateSessionResponse (Maybe Session) Source #
Returns the session object in the response.
createSessionResponse_httpStatus :: Lens' CreateSessionResponse Int Source #
The response's http status code.