aws_sdk_entityresolution/client/delete_policy_statement.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 [`DeletePolicyStatement`](crate::operation::delete_policy_statement::builders::DeletePolicyStatementFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`arn(impl Into<String>)`](crate::operation::delete_policy_statement::builders::DeletePolicyStatementFluentBuilder::arn) / [`set_arn(Option<String>)`](crate::operation::delete_policy_statement::builders::DeletePolicyStatementFluentBuilder::set_arn):<br>required: **true**<br><p>The ARN of the resource for which the policy need to be deleted.</p><br>
7 /// - [`statement_id(impl Into<String>)`](crate::operation::delete_policy_statement::builders::DeletePolicyStatementFluentBuilder::statement_id) / [`set_statement_id(Option<String>)`](crate::operation::delete_policy_statement::builders::DeletePolicyStatementFluentBuilder::set_statement_id):<br>required: **true**<br><p>A statement identifier that differentiates the statement from others in the same policy.</p><br>
8 /// - On success, responds with [`DeletePolicyStatementOutput`](crate::operation::delete_policy_statement::DeletePolicyStatementOutput) with field(s):
9 /// - [`arn(String)`](crate::operation::delete_policy_statement::DeletePolicyStatementOutput::arn): <p>The ARN of the resource for which the policy need to be deleted.</p>
10 /// - [`token(String)`](crate::operation::delete_policy_statement::DeletePolicyStatementOutput::token): <p>A unique identifier for the deleted policy.</p>
11 /// - [`policy(Option<String>)`](crate::operation::delete_policy_statement::DeletePolicyStatementOutput::policy): <p>The resource-based policy.</p>
12 /// - On failure, responds with [`SdkError<DeletePolicyStatementError>`](crate::operation::delete_policy_statement::DeletePolicyStatementError)
13 pub fn delete_policy_statement(&self) -> crate::operation::delete_policy_statement::builders::DeletePolicyStatementFluentBuilder {
14 crate::operation::delete_policy_statement::builders::DeletePolicyStatementFluentBuilder::new(self.handle.clone())
15 }
16}