Struct aws_sdk_lexmodelsv2::operation::delete_resource_policy_statement::builders::DeleteResourcePolicyStatementFluentBuilder
source · pub struct DeleteResourcePolicyStatementFluentBuilder { /* 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 DeleteResourcePolicyStatementFluentBuilder
impl DeleteResourcePolicyStatementFluentBuilder
sourcepub fn as_input(&self) -> &DeleteResourcePolicyStatementInputBuilder
pub fn as_input(&self) -> &DeleteResourcePolicyStatementInputBuilder
Access the DeleteResourcePolicyStatement as a reference.
sourcepub async fn send(
self
) -> Result<DeleteResourcePolicyStatementOutput, SdkError<DeleteResourcePolicyStatementError, HttpResponse>>
pub async fn send( self ) -> Result<DeleteResourcePolicyStatementOutput, SdkError<DeleteResourcePolicyStatementError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<DeleteResourcePolicyStatementOutput, DeleteResourcePolicyStatementError, Self>
pub fn customize( self ) -> CustomizableOperation<DeleteResourcePolicyStatementOutput, DeleteResourcePolicyStatementError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_resource_arn(&self) -> &Option<String>
pub fn get_resource_arn(&self) -> &Option<String>
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 get_statement_id(&self) -> &Option<String>
pub fn get_statement_id(&self) -> &Option<String>
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.
sourcepub fn get_expected_revision_id(&self) -> &Option<String>
pub fn get_expected_revision_id(&self) -> &Option<String>
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 DeleteResourcePolicyStatementFluentBuilder
impl Clone for DeleteResourcePolicyStatementFluentBuilder
source§fn clone(&self) -> DeleteResourcePolicyStatementFluentBuilder
fn clone(&self) -> DeleteResourcePolicyStatementFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more