Struct aws_sdk_securityhub::types::AwsIamPolicyDetails
source · #[non_exhaustive]pub struct AwsIamPolicyDetails {
pub attachment_count: Option<i32>,
pub create_date: Option<String>,
pub default_version_id: Option<String>,
pub description: Option<String>,
pub is_attachable: Option<bool>,
pub path: Option<String>,
pub permissions_boundary_usage_count: Option<i32>,
pub policy_id: Option<String>,
pub policy_name: Option<String>,
pub policy_version_list: Option<Vec<AwsIamPolicyVersion>>,
pub update_date: Option<String>,
}
Expand description
Represents an IAM permissions policy.
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.attachment_count: Option<i32>
The number of users, groups, and roles that the policy is attached to.
create_date: Option<String>
When the policy was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
default_version_id: Option<String>
The identifier of the default version of the policy.
description: Option<String>
A description of the policy.
is_attachable: Option<bool>
Whether the policy can be attached to a user, group, or role.
path: Option<String>
The path to the policy.
permissions_boundary_usage_count: Option<i32>
The number of users and roles that use the policy to set the permissions boundary.
policy_id: Option<String>
The unique identifier of the policy.
policy_name: Option<String>
The name of the policy.
policy_version_list: Option<Vec<AwsIamPolicyVersion>>
List of versions of the policy.
update_date: Option<String>
When the policy was most recently updated.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
Implementations§
source§impl AwsIamPolicyDetails
impl AwsIamPolicyDetails
sourcepub fn attachment_count(&self) -> Option<i32>
pub fn attachment_count(&self) -> Option<i32>
The number of users, groups, and roles that the policy is attached to.
sourcepub fn create_date(&self) -> Option<&str>
pub fn create_date(&self) -> Option<&str>
When the policy was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn default_version_id(&self) -> Option<&str>
pub fn default_version_id(&self) -> Option<&str>
The identifier of the default version of the policy.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the policy.
sourcepub fn is_attachable(&self) -> Option<bool>
pub fn is_attachable(&self) -> Option<bool>
Whether the policy can be attached to a user, group, or role.
sourcepub fn permissions_boundary_usage_count(&self) -> Option<i32>
pub fn permissions_boundary_usage_count(&self) -> Option<i32>
The number of users and roles that use the policy to set the permissions boundary.
sourcepub fn policy_name(&self) -> Option<&str>
pub fn policy_name(&self) -> Option<&str>
The name of the policy.
sourcepub fn policy_version_list(&self) -> &[AwsIamPolicyVersion]
pub fn policy_version_list(&self) -> &[AwsIamPolicyVersion]
List of versions of the policy.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .policy_version_list.is_none()
.
sourcepub fn update_date(&self) -> Option<&str>
pub fn update_date(&self) -> Option<&str>
When the policy was most recently updated.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
source§impl AwsIamPolicyDetails
impl AwsIamPolicyDetails
sourcepub fn builder() -> AwsIamPolicyDetailsBuilder
pub fn builder() -> AwsIamPolicyDetailsBuilder
Creates a new builder-style object to manufacture AwsIamPolicyDetails
.
Trait Implementations§
source§impl Clone for AwsIamPolicyDetails
impl Clone for AwsIamPolicyDetails
source§fn clone(&self) -> AwsIamPolicyDetails
fn clone(&self) -> AwsIamPolicyDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsIamPolicyDetails
impl Debug for AwsIamPolicyDetails
source§impl PartialEq for AwsIamPolicyDetails
impl PartialEq for AwsIamPolicyDetails
source§fn eq(&self, other: &AwsIamPolicyDetails) -> bool
fn eq(&self, other: &AwsIamPolicyDetails) -> bool
self
and other
values to be equal, and is used
by ==
.