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 |
Provides the response to a manual approval request to AWS CodePipeline. Valid responses include Approved and Rejected.
- putApprovalResult :: Text -> Text -> Text -> ApprovalResult -> Text -> PutApprovalResult
- data PutApprovalResult
- parPipelineName :: Lens' PutApprovalResult Text
- parStageName :: Lens' PutApprovalResult Text
- parActionName :: Lens' PutApprovalResult Text
- parResult :: Lens' PutApprovalResult ApprovalResult
- parToken :: Lens' PutApprovalResult Text
- putApprovalResultResponse :: Int -> PutApprovalResultResponse
- data PutApprovalResultResponse
- parrsApprovedAt :: Lens' PutApprovalResultResponse (Maybe UTCTime)
- parrsResponseStatus :: Lens' PutApprovalResultResponse Int
Creating a Request
:: Text | |
-> Text | |
-> Text | |
-> ApprovalResult | |
-> Text | |
-> PutApprovalResult |
Creates a value of PutApprovalResult
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
parPipelineName
- The name of the pipeline that contains the action.parStageName
- The name of the stage that contains the action.parActionName
- The name of the action for which approval is requested.parResult
- Represents information about the result of the approval request.parToken
- The system-generated token used to identify a unique approval request. The token for each open approval request can be obtained using theGetPipelineState
action and is used to validate that the approval request corresponding to this token is still valid.
data PutApprovalResult Source #
Represents the input of a PutApprovalResult action.
See: putApprovalResult
smart constructor.
Request Lenses
parPipelineName :: Lens' PutApprovalResult Text Source #
The name of the pipeline that contains the action.
parStageName :: Lens' PutApprovalResult Text Source #
The name of the stage that contains the action.
parActionName :: Lens' PutApprovalResult Text Source #
The name of the action for which approval is requested.
parResult :: Lens' PutApprovalResult ApprovalResult Source #
Represents information about the result of the approval request.
parToken :: 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 and is used to validate that the approval request corresponding to this token is still valid.
Destructuring the Response
putApprovalResultResponse Source #
Creates a value of PutApprovalResultResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
parrsApprovedAt
- The timestamp showing when the approval or rejection was submitted.parrsResponseStatus
- -- | The response status code.
data PutApprovalResultResponse Source #
Represents the output of a PutApprovalResult action.
See: putApprovalResultResponse
smart constructor.
Response Lenses
parrsApprovedAt :: Lens' PutApprovalResultResponse (Maybe UTCTime) Source #
The timestamp showing when the approval or rejection was submitted.
parrsResponseStatus :: Lens' PutApprovalResultResponse Int Source #
- - | The response status code.