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 |
Provides the response to a manual approval request to AWS CodePipeline. Valid responses include Approved and Rejected.
Synopsis
- data PutApprovalResult = PutApprovalResult' {
- pipelineName :: Text
- stageName :: Text
- actionName :: Text
- result :: ApprovalResult
- token :: Text
- newPutApprovalResult :: Text -> Text -> Text -> ApprovalResult -> Text -> PutApprovalResult
- putApprovalResult_pipelineName :: Lens' PutApprovalResult Text
- putApprovalResult_stageName :: Lens' PutApprovalResult Text
- putApprovalResult_actionName :: Lens' PutApprovalResult Text
- putApprovalResult_result :: Lens' PutApprovalResult ApprovalResult
- putApprovalResult_token :: Lens' PutApprovalResult Text
- data PutApprovalResultResponse = PutApprovalResultResponse' {
- approvedAt :: Maybe POSIX
- httpStatus :: Int
- newPutApprovalResultResponse :: Int -> PutApprovalResultResponse
- putApprovalResultResponse_approvedAt :: Lens' PutApprovalResultResponse (Maybe UTCTime)
- putApprovalResultResponse_httpStatus :: Lens' PutApprovalResultResponse Int
Creating a Request
data PutApprovalResult Source #
Represents the input of a PutApprovalResult
action.
See: newPutApprovalResult
smart constructor.
PutApprovalResult' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> ApprovalResult | |
-> Text | |
-> PutApprovalResult |
Create a value of PutApprovalResult
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:pipelineName:PutApprovalResult'
, putApprovalResult_pipelineName
- The name of the pipeline that contains the action.
$sel:stageName:PutApprovalResult'
, putApprovalResult_stageName
- The name of the stage that contains the action.
$sel:actionName:PutApprovalResult'
, putApprovalResult_actionName
- The name of the action for which approval is requested.
$sel:result:PutApprovalResult'
, putApprovalResult_result
- Represents information about the result of the approval request.
$sel:token:PutApprovalResult'
, putApprovalResult_token
- The system-generated token used to identify a unique approval request.
The token for each open approval request can be obtained using the
GetPipelineState action. It is used to validate that the approval
request corresponding to this token is still valid.
Request Lenses
putApprovalResult_pipelineName :: Lens' PutApprovalResult Text Source #
The name of the pipeline that contains the action.
putApprovalResult_stageName :: Lens' PutApprovalResult Text Source #
The name of the stage that contains the action.
putApprovalResult_actionName :: Lens' PutApprovalResult Text Source #
The name of the action for which approval is requested.
putApprovalResult_result :: Lens' PutApprovalResult ApprovalResult Source #
Represents information about the result of the approval request.
putApprovalResult_token :: Lens' PutApprovalResult Text Source #
The system-generated token used to identify a unique approval request. The token for each open approval request can be obtained using the GetPipelineState action. It is used to validate that the approval request corresponding to this token is still valid.
Destructuring the Response
data PutApprovalResultResponse Source #
Represents the output of a PutApprovalResult
action.
See: newPutApprovalResultResponse
smart constructor.
PutApprovalResultResponse' | |
|
Instances
newPutApprovalResultResponse Source #
Create a value of PutApprovalResultResponse
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:approvedAt:PutApprovalResultResponse'
, putApprovalResultResponse_approvedAt
- The timestamp showing when the approval or rejection was submitted.
$sel:httpStatus:PutApprovalResultResponse'
, putApprovalResultResponse_httpStatus
- The response's http status code.
Response Lenses
putApprovalResultResponse_approvedAt :: Lens' PutApprovalResultResponse (Maybe UTCTime) Source #
The timestamp showing when the approval or rejection was submitted.
putApprovalResultResponse_httpStatus :: Lens' PutApprovalResultResponse Int Source #
The response's http status code.