Struct aws_sdk_lexmodelsv2::operation::describe_resource_policy::builders::DescribeResourcePolicyOutputBuilder
source · #[non_exhaustive]pub struct DescribeResourcePolicyOutputBuilder { /* private fields */ }Expand description
A builder for DescribeResourcePolicyOutput.
Implementations§
source§impl DescribeResourcePolicyOutputBuilder
impl DescribeResourcePolicyOutputBuilder
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 policy(self, input: impl Into<String>) -> Self
pub fn policy(self, input: impl Into<String>) -> Self
The JSON structure that contains the resource policy. For more information about the contents of a JSON policy document, see IAM JSON policy reference .
sourcepub fn set_policy(self, input: Option<String>) -> Self
pub fn set_policy(self, input: Option<String>) -> Self
The JSON structure that contains the resource policy. For more information about the contents of a JSON policy document, see IAM JSON policy reference .
sourcepub fn get_policy(&self) -> &Option<String>
pub fn get_policy(&self) -> &Option<String>
The JSON structure that contains the resource policy. For more information about the contents of a JSON policy document, see IAM JSON policy reference .
sourcepub fn revision_id(self, input: impl Into<String>) -> Self
pub fn revision_id(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_revision_id(self, input: Option<String>) -> Self
pub fn set_revision_id(self, input: Option<String>) -> Self
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.
sourcepub fn get_revision_id(&self) -> &Option<String>
pub fn get_revision_id(&self) -> &Option<String>
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.
sourcepub fn build(self) -> DescribeResourcePolicyOutput
pub fn build(self) -> DescribeResourcePolicyOutput
Consumes the builder and constructs a DescribeResourcePolicyOutput.
Trait Implementations§
source§impl Clone for DescribeResourcePolicyOutputBuilder
impl Clone for DescribeResourcePolicyOutputBuilder
source§fn clone(&self) -> DescribeResourcePolicyOutputBuilder
fn clone(&self) -> DescribeResourcePolicyOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for DescribeResourcePolicyOutputBuilder
impl Default for DescribeResourcePolicyOutputBuilder
source§fn default() -> DescribeResourcePolicyOutputBuilder
fn default() -> DescribeResourcePolicyOutputBuilder
source§impl PartialEq for DescribeResourcePolicyOutputBuilder
impl PartialEq for DescribeResourcePolicyOutputBuilder
source§fn eq(&self, other: &DescribeResourcePolicyOutputBuilder) -> bool
fn eq(&self, other: &DescribeResourcePolicyOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.