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 |
This operation creates a job.
Synopsis
- data CreateJob = CreateJob' {
- details :: RequestDetails
- type' :: Type
- newCreateJob :: RequestDetails -> Type -> CreateJob
- createJob_details :: Lens' CreateJob RequestDetails
- createJob_type :: Lens' CreateJob Type
- data CreateJobResponse = CreateJobResponse' {}
- newCreateJobResponse :: Int -> CreateJobResponse
- createJobResponse_arn :: Lens' CreateJobResponse (Maybe Text)
- createJobResponse_createdAt :: Lens' CreateJobResponse (Maybe UTCTime)
- createJobResponse_details :: Lens' CreateJobResponse (Maybe ResponseDetails)
- createJobResponse_errors :: Lens' CreateJobResponse (Maybe [JobError])
- createJobResponse_id :: Lens' CreateJobResponse (Maybe Text)
- createJobResponse_state :: Lens' CreateJobResponse (Maybe State)
- createJobResponse_type :: Lens' CreateJobResponse (Maybe Type)
- createJobResponse_updatedAt :: Lens' CreateJobResponse (Maybe UTCTime)
- createJobResponse_httpStatus :: Lens' CreateJobResponse Int
Creating a Request
See: newCreateJob
smart constructor.
CreateJob' | |
|
Instances
Create a value of CreateJob
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:
CreateJob
, createJob_details
- The details for the CreateJob request.
CreateJob
, createJob_type
- The type of job to be created.
Request Lenses
createJob_details :: Lens' CreateJob RequestDetails Source #
The details for the CreateJob request.
Destructuring the Response
data CreateJobResponse Source #
See: newCreateJobResponse
smart constructor.
CreateJobResponse' | |
|
Instances
Create a value of CreateJobResponse
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:
CreateJobResponse
, createJobResponse_arn
- The ARN for the job.
CreateJobResponse
, createJobResponse_createdAt
- The date and time that the job was created, in ISO 8601 format.
CreateJob
, createJobResponse_details
- Details about the job.
CreateJobResponse
, createJobResponse_errors
- The errors associated with jobs.
CreateJobResponse
, createJobResponse_id
- The unique identifier for the job.
CreateJobResponse
, createJobResponse_state
- The state of the job.
CreateJob
, createJobResponse_type
- The job type.
CreateJobResponse
, createJobResponse_updatedAt
- The date and time that the job was last updated, in ISO 8601 format.
$sel:httpStatus:CreateJobResponse'
, createJobResponse_httpStatus
- The response's http status code.
Response Lenses
createJobResponse_arn :: Lens' CreateJobResponse (Maybe Text) Source #
The ARN for the job.
createJobResponse_createdAt :: Lens' CreateJobResponse (Maybe UTCTime) Source #
The date and time that the job was created, in ISO 8601 format.
createJobResponse_details :: Lens' CreateJobResponse (Maybe ResponseDetails) Source #
Details about the job.
createJobResponse_errors :: Lens' CreateJobResponse (Maybe [JobError]) Source #
The errors associated with jobs.
createJobResponse_id :: Lens' CreateJobResponse (Maybe Text) Source #
The unique identifier for the job.
createJobResponse_state :: Lens' CreateJobResponse (Maybe State) Source #
The state of the job.
createJobResponse_type :: Lens' CreateJobResponse (Maybe Type) Source #
The job type.
createJobResponse_updatedAt :: Lens' CreateJobResponse (Maybe UTCTime) Source #
The date and time that the job was last updated, in ISO 8601 format.
createJobResponse_httpStatus :: Lens' CreateJobResponse Int Source #
The response's http status code.