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