Struct aws_sdk_iam::types::PolicyGrantingServiceAccess
source · #[non_exhaustive]pub struct PolicyGrantingServiceAccess {
pub policy_name: String,
pub policy_type: PolicyType,
pub policy_arn: Option<String>,
pub entity_type: Option<PolicyOwnerEntityType>,
pub entity_name: Option<String>,
}Expand description
Contains details about the permissions policies that are attached to the specified identity (user, group, or role).
This data type is an element of the ListPoliciesGrantingServiceAccessEntry object.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.policy_name: StringThe policy name.
policy_type: PolicyTypeThe policy type. For more information about these policy types, see Managed policies and inline policies in the IAM User Guide.
policy_arn: Option<String>The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web Services resources.
For more information about ARNs, go to Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
entity_type: Option<PolicyOwnerEntityType>The type of entity (user or role) that used the policy to access the service to which the inline policy is attached.
This field is null for managed policies. For more information about these policy types, see Managed policies and inline policies in the IAM User Guide.
entity_name: Option<String>The name of the entity (user or role) to which the inline policy is attached.
This field is null for managed policies. For more information about these policy types, see Managed policies and inline policies in the IAM User Guide.
Implementations§
source§impl PolicyGrantingServiceAccess
impl PolicyGrantingServiceAccess
sourcepub fn policy_name(&self) -> &str
pub fn policy_name(&self) -> &str
The policy name.
sourcepub fn policy_type(&self) -> &PolicyType
pub fn policy_type(&self) -> &PolicyType
The policy type. For more information about these policy types, see Managed policies and inline policies in the IAM User Guide.
sourcepub fn policy_arn(&self) -> Option<&str>
pub fn policy_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN). ARNs are unique identifiers for Amazon Web Services resources.
For more information about ARNs, go to Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
sourcepub fn entity_type(&self) -> Option<&PolicyOwnerEntityType>
pub fn entity_type(&self) -> Option<&PolicyOwnerEntityType>
The type of entity (user or role) that used the policy to access the service to which the inline policy is attached.
This field is null for managed policies. For more information about these policy types, see Managed policies and inline policies in the IAM User Guide.
sourcepub fn entity_name(&self) -> Option<&str>
pub fn entity_name(&self) -> Option<&str>
The name of the entity (user or role) to which the inline policy is attached.
This field is null for managed policies. For more information about these policy types, see Managed policies and inline policies in the IAM User Guide.
source§impl PolicyGrantingServiceAccess
impl PolicyGrantingServiceAccess
sourcepub fn builder() -> PolicyGrantingServiceAccessBuilder
pub fn builder() -> PolicyGrantingServiceAccessBuilder
Creates a new builder-style object to manufacture PolicyGrantingServiceAccess.
Trait Implementations§
source§impl Clone for PolicyGrantingServiceAccess
impl Clone for PolicyGrantingServiceAccess
source§fn clone(&self) -> PolicyGrantingServiceAccess
fn clone(&self) -> PolicyGrantingServiceAccess
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PolicyGrantingServiceAccess
impl Debug for PolicyGrantingServiceAccess
source§impl PartialEq for PolicyGrantingServiceAccess
impl PartialEq for PolicyGrantingServiceAccess
source§fn eq(&self, other: &PolicyGrantingServiceAccess) -> bool
fn eq(&self, other: &PolicyGrantingServiceAccess) -> bool
self and other values to be equal, and is used
by ==.