Struct aws_sdk_lexmodelsv2::operation::delete_resource_policy_statement::builders::DeleteResourcePolicyStatementInputBuilder
source · #[non_exhaustive]pub struct DeleteResourcePolicyStatementInputBuilder { /* private fields */ }Expand description
A builder for DeleteResourcePolicyStatementInput.
Implementations§
source§impl DeleteResourcePolicyStatementInputBuilder
impl DeleteResourcePolicyStatementInputBuilder
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.
sourcepub fn build(self) -> Result<DeleteResourcePolicyStatementInput, BuildError>
pub fn build(self) -> Result<DeleteResourcePolicyStatementInput, BuildError>
Consumes the builder and constructs a DeleteResourcePolicyStatementInput.
Trait Implementations§
source§impl Clone for DeleteResourcePolicyStatementInputBuilder
impl Clone for DeleteResourcePolicyStatementInputBuilder
source§fn clone(&self) -> DeleteResourcePolicyStatementInputBuilder
fn clone(&self) -> DeleteResourcePolicyStatementInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for DeleteResourcePolicyStatementInputBuilder
impl Default for DeleteResourcePolicyStatementInputBuilder
source§fn default() -> DeleteResourcePolicyStatementInputBuilder
fn default() -> DeleteResourcePolicyStatementInputBuilder
source§impl PartialEq<DeleteResourcePolicyStatementInputBuilder> for DeleteResourcePolicyStatementInputBuilder
impl PartialEq<DeleteResourcePolicyStatementInputBuilder> for DeleteResourcePolicyStatementInputBuilder
source§fn eq(&self, other: &DeleteResourcePolicyStatementInputBuilder) -> bool
fn eq(&self, other: &DeleteResourcePolicyStatementInputBuilder) -> bool
self and other values to be equal, and is used
by ==.