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 |
Returns information about a specified job and whether that job has been received by the job worker. Used for custom actions only.
Synopsis
- data AcknowledgeJob = AcknowledgeJob' {}
- newAcknowledgeJob :: Text -> Text -> AcknowledgeJob
- acknowledgeJob_jobId :: Lens' AcknowledgeJob Text
- acknowledgeJob_nonce :: Lens' AcknowledgeJob Text
- data AcknowledgeJobResponse = AcknowledgeJobResponse' {
- status :: Maybe JobStatus
- httpStatus :: Int
- newAcknowledgeJobResponse :: Int -> AcknowledgeJobResponse
- acknowledgeJobResponse_status :: Lens' AcknowledgeJobResponse (Maybe JobStatus)
- acknowledgeJobResponse_httpStatus :: Lens' AcknowledgeJobResponse Int
Creating a Request
data AcknowledgeJob Source #
Represents the input of an AcknowledgeJob action.
See: newAcknowledgeJob
smart constructor.
AcknowledgeJob' | |
|
Instances
Create a value of AcknowledgeJob
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:jobId:AcknowledgeJob'
, acknowledgeJob_jobId
- The unique system-generated ID of the job for which you want to confirm
receipt.
$sel:nonce:AcknowledgeJob'
, acknowledgeJob_nonce
- A system-generated random number that AWS CodePipeline uses to ensure
that the job is being worked on by only one job worker. Get this number
from the response of the PollForJobs request that returned this job.
Request Lenses
acknowledgeJob_jobId :: Lens' AcknowledgeJob Text Source #
The unique system-generated ID of the job for which you want to confirm receipt.
acknowledgeJob_nonce :: Lens' AcknowledgeJob Text Source #
A system-generated random number that AWS CodePipeline uses to ensure that the job is being worked on by only one job worker. Get this number from the response of the PollForJobs request that returned this job.
Destructuring the Response
data AcknowledgeJobResponse Source #
Represents the output of an AcknowledgeJob action.
See: newAcknowledgeJobResponse
smart constructor.
AcknowledgeJobResponse' | |
|
Instances
newAcknowledgeJobResponse Source #
Create a value of AcknowledgeJobResponse
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:status:AcknowledgeJobResponse'
, acknowledgeJobResponse_status
- Whether the job worker has received the specified job.
$sel:httpStatus:AcknowledgeJobResponse'
, acknowledgeJobResponse_httpStatus
- The response's http status code.
Response Lenses
acknowledgeJobResponse_status :: Lens' AcknowledgeJobResponse (Maybe JobStatus) Source #
Whether the job worker has received the specified job.
acknowledgeJobResponse_httpStatus :: Lens' AcknowledgeJobResponse Int Source #
The response's http status code.