aws_sdk_lexmodelsv2/client/
delete_resource_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 [`DeleteResourcePolicyStatement`](crate::operation::delete_resource_policy_statement::builders::DeleteResourcePolicyStatementFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`resource_arn(impl Into<String>)`](crate::operation::delete_resource_policy_statement::builders::DeleteResourcePolicyStatementFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::delete_resource_policy_statement::builders::DeleteResourcePolicyStatementFluentBuilder::set_resource_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.</p><br>
7    ///   - [`statement_id(impl Into<String>)`](crate::operation::delete_resource_policy_statement::builders::DeleteResourcePolicyStatementFluentBuilder::statement_id) / [`set_statement_id(Option<String>)`](crate::operation::delete_resource_policy_statement::builders::DeleteResourcePolicyStatementFluentBuilder::set_statement_id):<br>required: **true**<br><p>The name of the statement (SID) to delete from the policy.</p><br>
8    ///   - [`expected_revision_id(impl Into<String>)`](crate::operation::delete_resource_policy_statement::builders::DeleteResourcePolicyStatementFluentBuilder::expected_revision_id) / [`set_expected_revision_id(Option<String>)`](crate::operation::delete_resource_policy_statement::builders::DeleteResourcePolicyStatementFluentBuilder::set_expected_revision_id):<br>required: **false**<br><p>The identifier of the revision of the policy to delete the statement from. If this revision ID doesn't match the current revision ID, Amazon Lex throws an exception.</p> <p>If you don't specify a revision, Amazon Lex removes the current contents of the statement.</p><br>
9    /// - On success, responds with [`DeleteResourcePolicyStatementOutput`](crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementOutput) with field(s):
10    ///   - [`resource_arn(Option<String>)`](crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementOutput::resource_arn): <p>The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy statement was removed from.</p>
11    ///   - [`revision_id(Option<String>)`](crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementOutput::revision_id): <p>The current revision of the resource policy. Use the revision ID to make sure that you are updating the most current version of a resource policy when you add a policy statement to a resource, delete a resource, or update a resource.</p>
12    /// - On failure, responds with [`SdkError<DeleteResourcePolicyStatementError>`](crate::operation::delete_resource_policy_statement::DeleteResourcePolicyStatementError)
13    pub fn delete_resource_policy_statement(
14        &self,
15    ) -> crate::operation::delete_resource_policy_statement::builders::DeleteResourcePolicyStatementFluentBuilder {
16        crate::operation::delete_resource_policy_statement::builders::DeleteResourcePolicyStatementFluentBuilder::new(self.handle.clone())
17    }
18}