Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Starts a job run using a job definition.
Synopsis
- startJobRun :: Text -> StartJobRun
- data StartJobRun
- sjrArguments :: Lens' StartJobRun (HashMap Text Text)
- sjrAllocatedCapacity :: Lens' StartJobRun (Maybe Int)
- sjrTimeout :: Lens' StartJobRun (Maybe Natural)
- sjrJobRunId :: Lens' StartJobRun (Maybe Text)
- sjrJobName :: Lens' StartJobRun Text
- startJobRunResponse :: Int -> StartJobRunResponse
- data StartJobRunResponse
- sjrrsJobRunId :: Lens' StartJobRunResponse (Maybe Text)
- sjrrsResponseStatus :: Lens' StartJobRunResponse Int
Creating a Request
Creates a value of StartJobRun
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sjrArguments
- The job arguments specifically for this run. They override the equivalent default arguments set for in the job definition itself. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes. For information about how to specify and consume your own Job arguments, see the Calling AWS Glue APIs in Python topic in the developer guide. For information about the key-value pairs that AWS Glue consumes to set up your job, see the Special Parameters Used by AWS Glue topic in the developer guide.sjrAllocatedCapacity
- The number of AWS Glue data processing units (DPUs) to allocate to this JobRun. From 2 to 100 DPUs can be allocated; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the AWS Glue pricing page .sjrTimeout
- The job run timeout in minutes. It overrides the timeout value of the job.sjrJobRunId
- The ID of a previous JobRun to retry.sjrJobName
- The name of the job definition to use.
data StartJobRun Source #
See: startJobRun
smart constructor.
Instances
Request Lenses
sjrArguments :: Lens' StartJobRun (HashMap Text Text) Source #
The job arguments specifically for this run. They override the equivalent default arguments set for in the job definition itself. You can specify arguments here that your own job-execution script consumes, as well as arguments that AWS Glue itself consumes. For information about how to specify and consume your own Job arguments, see the Calling AWS Glue APIs in Python topic in the developer guide. For information about the key-value pairs that AWS Glue consumes to set up your job, see the Special Parameters Used by AWS Glue topic in the developer guide.
sjrAllocatedCapacity :: Lens' StartJobRun (Maybe Int) Source #
The number of AWS Glue data processing units (DPUs) to allocate to this JobRun. From 2 to 100 DPUs can be allocated; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the AWS Glue pricing page .
sjrTimeout :: Lens' StartJobRun (Maybe Natural) Source #
The job run timeout in minutes. It overrides the timeout value of the job.
sjrJobRunId :: Lens' StartJobRun (Maybe Text) Source #
The ID of a previous JobRun to retry.
sjrJobName :: Lens' StartJobRun Text Source #
The name of the job definition to use.
Destructuring the Response
Creates a value of StartJobRunResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sjrrsJobRunId
- The ID assigned to this job run.sjrrsResponseStatus
- -- | The response status code.
data StartJobRunResponse Source #
See: startJobRunResponse
smart constructor.
Instances
Response Lenses
sjrrsJobRunId :: Lens' StartJobRunResponse (Maybe Text) Source #
The ID assigned to this job run.
sjrrsResponseStatus :: Lens' StartJobRunResponse Int Source #
- - | The response status code.