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 |
Creates a new job definition.
Synopsis
- createJob :: Text -> Text -> JobCommand -> CreateJob
- data CreateJob
- cjConnections :: Lens' CreateJob (Maybe ConnectionsList)
- cjLogURI :: Lens' CreateJob (Maybe Text)
- cjMaxRetries :: Lens' CreateJob (Maybe Int)
- cjExecutionProperty :: Lens' CreateJob (Maybe ExecutionProperty)
- cjAllocatedCapacity :: Lens' CreateJob (Maybe Int)
- cjTimeout :: Lens' CreateJob (Maybe Natural)
- cjDefaultArguments :: Lens' CreateJob (HashMap Text Text)
- cjDescription :: Lens' CreateJob (Maybe Text)
- cjName :: Lens' CreateJob Text
- cjRole :: Lens' CreateJob Text
- cjCommand :: Lens' CreateJob JobCommand
- createJobResponse :: Int -> CreateJobResponse
- data CreateJobResponse
- cjrsName :: Lens' CreateJobResponse (Maybe Text)
- cjrsResponseStatus :: Lens' CreateJobResponse Int
Creating a Request
Creates a value of CreateJob
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cjConnections
- The connections used for this job.cjLogURI
- This field is reserved for future use.cjMaxRetries
- The maximum number of times to retry this job if it fails.cjExecutionProperty
- An ExecutionProperty specifying the maximum number of concurrent runs allowed for this job.cjAllocatedCapacity
- The number of AWS Glue data processing units (DPUs) to allocate to this Job. 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 .cjTimeout
- The job timeout in minutes. The default is 2880 minutes (48 hours).cjDefaultArguments
- The default arguments for this job. 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.cjDescription
- Description of the job being defined.cjName
- The name you assign to this job definition. It must be unique in your account.cjRole
- The name or ARN of the IAM role associated with this job.cjCommand
- The JobCommand that executes this job.
See: createJob
smart constructor.
Instances
Request Lenses
cjConnections :: Lens' CreateJob (Maybe ConnectionsList) Source #
The connections used for this job.
cjMaxRetries :: Lens' CreateJob (Maybe Int) Source #
The maximum number of times to retry this job if it fails.
cjExecutionProperty :: Lens' CreateJob (Maybe ExecutionProperty) Source #
An ExecutionProperty specifying the maximum number of concurrent runs allowed for this job.
cjAllocatedCapacity :: Lens' CreateJob (Maybe Int) Source #
The number of AWS Glue data processing units (DPUs) to allocate to this Job. 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 .
cjTimeout :: Lens' CreateJob (Maybe Natural) Source #
The job timeout in minutes. The default is 2880 minutes (48 hours).
cjDefaultArguments :: Lens' CreateJob (HashMap Text Text) Source #
The default arguments for this job. 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.
cjName :: Lens' CreateJob Text Source #
The name you assign to this job definition. It must be unique in your account.
Destructuring the Response
Creates a value of CreateJobResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cjrsName
- The unique name that was provided for this job definition.cjrsResponseStatus
- -- | The response status code.
data CreateJobResponse Source #
See: createJobResponse
smart constructor.
Instances
Response Lenses
cjrsName :: Lens' CreateJobResponse (Maybe Text) Source #
The unique name that was provided for this job definition.
cjrsResponseStatus :: Lens' CreateJobResponse Int Source #
- - | The response status code.