aws_sdk_codepipeline/client/
put_approval_result.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutApprovalResult`](crate::operation::put_approval_result::builders::PutApprovalResultFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`pipeline_name(impl Into<String>)`](crate::operation::put_approval_result::builders::PutApprovalResultFluentBuilder::pipeline_name) / [`set_pipeline_name(Option<String>)`](crate::operation::put_approval_result::builders::PutApprovalResultFluentBuilder::set_pipeline_name):<br>required: **true**<br><p>The name of the pipeline that contains the action.</p><br>
    ///   - [`stage_name(impl Into<String>)`](crate::operation::put_approval_result::builders::PutApprovalResultFluentBuilder::stage_name) / [`set_stage_name(Option<String>)`](crate::operation::put_approval_result::builders::PutApprovalResultFluentBuilder::set_stage_name):<br>required: **true**<br><p>The name of the stage that contains the action.</p><br>
    ///   - [`action_name(impl Into<String>)`](crate::operation::put_approval_result::builders::PutApprovalResultFluentBuilder::action_name) / [`set_action_name(Option<String>)`](crate::operation::put_approval_result::builders::PutApprovalResultFluentBuilder::set_action_name):<br>required: **true**<br><p>The name of the action for which approval is requested.</p><br>
    ///   - [`result(ApprovalResult)`](crate::operation::put_approval_result::builders::PutApprovalResultFluentBuilder::result) / [`set_result(Option<ApprovalResult>)`](crate::operation::put_approval_result::builders::PutApprovalResultFluentBuilder::set_result):<br>required: **true**<br><p>Represents information about the result of the approval request.</p><br>
    ///   - [`token(impl Into<String>)`](crate::operation::put_approval_result::builders::PutApprovalResultFluentBuilder::token) / [`set_token(Option<String>)`](crate::operation::put_approval_result::builders::PutApprovalResultFluentBuilder::set_token):<br>required: **true**<br><p>The system-generated token used to identify a unique approval request. The token for each open approval request can be obtained using the <code>GetPipelineState</code> action. It is used to validate that the approval request corresponding to this token is still valid.</p><important>  <p>For a pipeline where the execution mode is set to PARALLEL, the token required to approve/reject approval request as detailed above is not available. Instead, use the <code>externalExecutionId</code> from the <code>GetPipelineState</code> action as the token in the approval request.</p> </important><br>
    /// - On success, responds with [`PutApprovalResultOutput`](crate::operation::put_approval_result::PutApprovalResultOutput) with field(s):
    ///   - [`approved_at(Option<DateTime>)`](crate::operation::put_approval_result::PutApprovalResultOutput::approved_at): <p>The timestamp showing when the approval or rejection was submitted.</p>
    /// - On failure, responds with [`SdkError<PutApprovalResultError>`](crate::operation::put_approval_result::PutApprovalResultError)
    pub fn put_approval_result(&self) -> crate::operation::put_approval_result::builders::PutApprovalResultFluentBuilder {
        crate::operation::put_approval_result::builders::PutApprovalResultFluentBuilder::new(self.handle.clone())
    }
}