We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.
Protected
Provides the response to a manual approval request to CodePipeline. Valid responses include Approved and Rejected.
Use a bare-bones client and the command you need to make an API call.
import { CodePipelineClient, PutApprovalResultCommand } from "@aws-sdk/client-codepipeline"; // ES Modules import// const { CodePipelineClient, PutApprovalResultCommand } = require("@aws-sdk/client-codepipeline"); // CommonJS importconst client = new CodePipelineClient(config);const input = { // PutApprovalResultInput pipelineName: "STRING_VALUE", // required stageName: "STRING_VALUE", // required actionName: "STRING_VALUE", // required result: { // ApprovalResult summary: "STRING_VALUE", // required status: "Approved" || "Rejected", // required }, token: "STRING_VALUE", // required};const command = new PutApprovalResultCommand(input);const response = await client.send(command);// { // PutApprovalResultOutput// approvedAt: new Date("TIMESTAMP"),// };
PutApprovalResultCommandInput
PutApprovalResultCommandOutput
input
response
config
ActionNotFoundException (client fault)
The specified action cannot be found.
ApprovalAlreadyCompletedException (client fault)
The approval action has already been approved or rejected.
InvalidApprovalTokenException (client fault)
The approval request already received a response or has expired.
PipelineNotFoundException (client fault)
The pipeline was specified in an invalid format or cannot be found.
StageNotFoundException (client fault)
The stage was specified in an invalid format or cannot be found.
ValidationException (client fault)
The validation was specified in an invalid format.
CodePipelineServiceException
Base exception class for all service exceptions from CodePipeline service.
Readonly
Static
Provides the response to a manual approval request to CodePipeline. Valid responses include Approved and Rejected.
Example
Use a bare-bones client and the command you need to make an API call.
Param
PutApprovalResultCommandInput
Returns
PutApprovalResultCommandOutput
See
input
shape.response
shape.config
shape.Throws
ActionNotFoundException (client fault)
The specified action cannot be found.
Throws
ApprovalAlreadyCompletedException (client fault)
The approval action has already been approved or rejected.
Throws
InvalidApprovalTokenException (client fault)
The approval request already received a response or has expired.
Throws
PipelineNotFoundException (client fault)
The pipeline was specified in an invalid format or cannot be found.
Throws
StageNotFoundException (client fault)
The stage was specified in an invalid format or cannot be found.
Throws
ValidationException (client fault)
The validation was specified in an invalid format.
Throws
CodePipelineServiceException
Base exception class for all service exceptions from CodePipeline service.