aws_sdk_codecommit/client/delete_pull_request_approval_rule.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 [`DeletePullRequestApprovalRule`](crate::operation::delete_pull_request_approval_rule::builders::DeletePullRequestApprovalRuleFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`pull_request_id(impl Into<String>)`](crate::operation::delete_pull_request_approval_rule::builders::DeletePullRequestApprovalRuleFluentBuilder::pull_request_id) / [`set_pull_request_id(Option<String>)`](crate::operation::delete_pull_request_approval_rule::builders::DeletePullRequestApprovalRuleFluentBuilder::set_pull_request_id):<br>required: **true**<br><p>The system-generated ID of the pull request that contains the approval rule you want to delete.</p><br>
7 /// - [`approval_rule_name(impl Into<String>)`](crate::operation::delete_pull_request_approval_rule::builders::DeletePullRequestApprovalRuleFluentBuilder::approval_rule_name) / [`set_approval_rule_name(Option<String>)`](crate::operation::delete_pull_request_approval_rule::builders::DeletePullRequestApprovalRuleFluentBuilder::set_approval_rule_name):<br>required: **true**<br><p>The name of the approval rule you want to delete.</p><br>
8 /// - On success, responds with [`DeletePullRequestApprovalRuleOutput`](crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleOutput) with field(s):
9 /// - [`approval_rule_id(String)`](crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleOutput::approval_rule_id): <p>The ID of the deleted approval rule.</p><note> <p>If the approval rule was deleted in an earlier API call, the response is 200 OK without content.</p> </note>
10 /// - On failure, responds with [`SdkError<DeletePullRequestApprovalRuleError>`](crate::operation::delete_pull_request_approval_rule::DeletePullRequestApprovalRuleError)
11 pub fn delete_pull_request_approval_rule(
12 &self,
13 ) -> crate::operation::delete_pull_request_approval_rule::builders::DeletePullRequestApprovalRuleFluentBuilder {
14 crate::operation::delete_pull_request_approval_rule::builders::DeletePullRequestApprovalRuleFluentBuilder::new(self.handle.clone())
15 }
16}