put_approval_result
(**kwargs)¶Provides the response to a manual approval request to AWS CodePipeline. Valid responses include Approved and Rejected.
See also: AWS API Documentation
Request Syntax
response = client.put_approval_result(
pipelineName='string',
stageName='string',
actionName='string',
result={
'summary': 'string',
'status': 'Approved'|'Rejected'
},
token='string'
)
[REQUIRED]
The name of the pipeline that contains the action.
[REQUIRED]
The name of the stage that contains the action.
[REQUIRED]
The name of the action for which approval is requested.
[REQUIRED]
Represents information about the result of the approval request.
The summary of the current status of the approval request.
The response submitted by a reviewer assigned to an approval action request.
[REQUIRED]
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.
dict
Response Syntax
{
'approvedAt': datetime(2015, 1, 1)
}
Response Structure
(dict) --
Represents the output of a PutApprovalResult
action.
approvedAt (datetime) --
The timestamp showing when the approval or rejection was submitted.
Exceptions
CodePipeline.Client.exceptions.InvalidApprovalTokenException
CodePipeline.Client.exceptions.ApprovalAlreadyCompletedException
CodePipeline.Client.exceptions.PipelineNotFoundException
CodePipeline.Client.exceptions.StageNotFoundException
CodePipeline.Client.exceptions.ActionNotFoundException
CodePipeline.Client.exceptions.ValidationException