aws_sdk_codecommit/client/
override_pull_request_approval_rules.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`OverridePullRequestApprovalRules`](crate::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`pull_request_id(impl Into<String>)`](crate::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder::pull_request_id) / [`set_pull_request_id(Option<String>)`](crate::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder::set_pull_request_id):<br>required: **true**<br><p>The system-generated ID of the pull request for which you want to override all approval rule requirements. To get this information, use <code>GetPullRequest</code>.</p><br>
7    ///   - [`revision_id(impl Into<String>)`](crate::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder::revision_id) / [`set_revision_id(Option<String>)`](crate::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder::set_revision_id):<br>required: **true**<br><p>The system-generated ID of the most recent revision of the pull request. You cannot override approval rules for anything but the most recent revision of a pull request. To get the revision ID, use GetPullRequest.</p><br>
8    ///   - [`override_status(OverrideStatus)`](crate::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder::override_status) / [`set_override_status(Option<OverrideStatus>)`](crate::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder::set_override_status):<br>required: **true**<br><p>Whether you want to set aside approval rule requirements for the pull request (OVERRIDE) or revoke a previous override and apply approval rule requirements (REVOKE). REVOKE status is not stored.</p><br>
9    /// - On success, responds with [`OverridePullRequestApprovalRulesOutput`](crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesOutput)
10    /// - On failure, responds with [`SdkError<OverridePullRequestApprovalRulesError>`](crate::operation::override_pull_request_approval_rules::OverridePullRequestApprovalRulesError)
11    pub fn override_pull_request_approval_rules(
12        &self,
13    ) -> crate::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder {
14        crate::operation::override_pull_request_approval_rules::builders::OverridePullRequestApprovalRulesFluentBuilder::new(self.handle.clone())
15    }
16}