Copyright | (c) 2013-2017 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.
- 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)
- 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 capacity units allocated to this job.cjDefaultArguments
- The default parameters for this job.cjDescription
- Description of the job.cjName
- The name you assign to this job.cjRole
- The role associated with this job.cjCommand
- The JobCommand that executes this job.
See: createJob
smart constructor.
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 capacity units allocated to this job.
cjDefaultArguments :: Lens' CreateJob (HashMap Text Text) Source #
The default parameters for this job.
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 of the new job that has been created.cjrsResponseStatus
- -- | The response status code.
data CreateJobResponse Source #
See: createJobResponse
smart constructor.
Response Lenses
cjrsName :: Lens' CreateJobResponse (Maybe Text) Source #
The unique name of the new job that has been created.
cjrsResponseStatus :: Lens' CreateJobResponse Int Source #
- - | The response status code.