pub struct DeleteResourcePolicyStatement { /* private fields */ }Expand description
Fluent builder constructing a request to DeleteResourcePolicyStatement.
Deletes a policy statement from a resource policy. If you delete the last statement from a policy, the policy is deleted. If you specify a statement ID that doesn't exist in the policy, or if the bot or bot alias doesn't have a policy attached, Amazon Lex returns an exception.
Implementations§
source§impl DeleteResourcePolicyStatement
impl DeleteResourcePolicyStatement
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DeleteResourcePolicyStatement, AwsResponseRetryClassifier>, SdkError<DeleteResourcePolicyStatementError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DeleteResourcePolicyStatement, AwsResponseRetryClassifier>, SdkError<DeleteResourcePolicyStatementError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<DeleteResourcePolicyStatementOutput, SdkError<DeleteResourcePolicyStatementError>>
pub async fn send(
self
) -> Result<DeleteResourcePolicyStatementOutput, SdkError<DeleteResourcePolicyStatementError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
sourcepub fn statement_id(self, input: impl Into<String>) -> Self
pub fn statement_id(self, input: impl Into<String>) -> Self
The name of the statement (SID) to delete from the policy.
sourcepub fn set_statement_id(self, input: Option<String>) -> Self
pub fn set_statement_id(self, input: Option<String>) -> Self
The name of the statement (SID) to delete from the policy.
sourcepub fn expected_revision_id(self, input: impl Into<String>) -> Self
pub fn expected_revision_id(self, input: impl Into<String>) -> Self
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.
If you don't specify a revision, Amazon Lex removes the current contents of the statement.
sourcepub fn set_expected_revision_id(self, input: Option<String>) -> Self
pub fn set_expected_revision_id(self, input: Option<String>) -> Self
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.
If you don't specify a revision, Amazon Lex removes the current contents of the statement.
Trait Implementations§
source§impl Clone for DeleteResourcePolicyStatement
impl Clone for DeleteResourcePolicyStatement
source§fn clone(&self) -> DeleteResourcePolicyStatement
fn clone(&self) -> DeleteResourcePolicyStatement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more