#[non_exhaustive]pub struct AwsIamPolicyDetailsBuilder { /* private fields */ }Expand description
A builder for AwsIamPolicyDetails.
Implementations§
source§impl AwsIamPolicyDetailsBuilder
impl AwsIamPolicyDetailsBuilder
sourcepub fn attachment_count(self, input: i32) -> Self
pub fn attachment_count(self, input: i32) -> Self
The number of users, groups, and roles that the policy is attached to.
sourcepub fn set_attachment_count(self, input: Option<i32>) -> Self
pub fn set_attachment_count(self, input: Option<i32>) -> Self
The number of users, groups, and roles that the policy is attached to.
sourcepub fn get_attachment_count(&self) -> &Option<i32>
pub fn get_attachment_count(&self) -> &Option<i32>
The number of users, groups, and roles that the policy is attached to.
sourcepub fn create_date(self, input: impl Into<String>) -> Self
pub fn create_date(self, input: impl Into<String>) -> Self
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 set_create_date(self, input: Option<String>) -> Self
pub fn set_create_date(self, input: Option<String>) -> Self
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 get_create_date(&self) -> &Option<String>
pub fn get_create_date(&self) -> &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.
sourcepub fn default_version_id(self, input: impl Into<String>) -> Self
pub fn default_version_id(self, input: impl Into<String>) -> Self
The identifier of the default version of the policy.
sourcepub fn set_default_version_id(self, input: Option<String>) -> Self
pub fn set_default_version_id(self, input: Option<String>) -> Self
The identifier of the default version of the policy.
sourcepub fn get_default_version_id(&self) -> &Option<String>
pub fn get_default_version_id(&self) -> &Option<String>
The identifier of the default version of the policy.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the policy.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the policy.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the policy.
sourcepub fn is_attachable(self, input: bool) -> Self
pub fn is_attachable(self, input: bool) -> Self
Whether the policy can be attached to a user, group, or role.
sourcepub fn set_is_attachable(self, input: Option<bool>) -> Self
pub fn set_is_attachable(self, input: Option<bool>) -> Self
Whether the policy can be attached to a user, group, or role.
sourcepub fn get_is_attachable(&self) -> &Option<bool>
pub fn get_is_attachable(&self) -> &Option<bool>
Whether the policy can be attached to a user, group, or role.
sourcepub fn permissions_boundary_usage_count(self, input: i32) -> Self
pub fn permissions_boundary_usage_count(self, input: i32) -> Self
The number of users and roles that use the policy to set the permissions boundary.
sourcepub fn set_permissions_boundary_usage_count(self, input: Option<i32>) -> Self
pub fn set_permissions_boundary_usage_count(self, input: Option<i32>) -> Self
The number of users and roles that use the policy to set the permissions boundary.
sourcepub fn get_permissions_boundary_usage_count(&self) -> &Option<i32>
pub fn get_permissions_boundary_usage_count(&self) -> &Option<i32>
The number of users and roles that use the policy to set the permissions boundary.
sourcepub fn set_policy_id(self, input: Option<String>) -> Self
pub fn set_policy_id(self, input: Option<String>) -> Self
The unique identifier of the policy.
sourcepub fn get_policy_id(&self) -> &Option<String>
pub fn get_policy_id(&self) -> &Option<String>
The unique identifier of the policy.
sourcepub fn policy_name(self, input: impl Into<String>) -> Self
pub fn policy_name(self, input: impl Into<String>) -> Self
The name of the policy.
sourcepub fn set_policy_name(self, input: Option<String>) -> Self
pub fn set_policy_name(self, input: Option<String>) -> Self
The name of the policy.
sourcepub fn get_policy_name(&self) -> &Option<String>
pub fn get_policy_name(&self) -> &Option<String>
The name of the policy.
sourcepub fn policy_version_list(self, input: AwsIamPolicyVersion) -> Self
pub fn policy_version_list(self, input: AwsIamPolicyVersion) -> Self
Appends an item to policy_version_list.
To override the contents of this collection use set_policy_version_list.
List of versions of the policy.
sourcepub fn set_policy_version_list(
self,
input: Option<Vec<AwsIamPolicyVersion>>
) -> Self
pub fn set_policy_version_list( self, input: Option<Vec<AwsIamPolicyVersion>> ) -> Self
List of versions of the policy.
sourcepub fn get_policy_version_list(&self) -> &Option<Vec<AwsIamPolicyVersion>>
pub fn get_policy_version_list(&self) -> &Option<Vec<AwsIamPolicyVersion>>
List of versions of the policy.
sourcepub fn update_date(self, input: impl Into<String>) -> Self
pub fn update_date(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_update_date(self, input: Option<String>) -> Self
pub fn set_update_date(self, input: Option<String>) -> Self
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.
sourcepub fn get_update_date(&self) -> &Option<String>
pub fn get_update_date(&self) -> &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.
sourcepub fn build(self) -> AwsIamPolicyDetails
pub fn build(self) -> AwsIamPolicyDetails
Consumes the builder and constructs a AwsIamPolicyDetails.
Trait Implementations§
source§impl Clone for AwsIamPolicyDetailsBuilder
impl Clone for AwsIamPolicyDetailsBuilder
source§fn clone(&self) -> AwsIamPolicyDetailsBuilder
fn clone(&self) -> AwsIamPolicyDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AwsIamPolicyDetailsBuilder
impl Debug for AwsIamPolicyDetailsBuilder
source§impl Default for AwsIamPolicyDetailsBuilder
impl Default for AwsIamPolicyDetailsBuilder
source§fn default() -> AwsIamPolicyDetailsBuilder
fn default() -> AwsIamPolicyDetailsBuilder
source§impl PartialEq for AwsIamPolicyDetailsBuilder
impl PartialEq for AwsIamPolicyDetailsBuilder
source§fn eq(&self, other: &AwsIamPolicyDetailsBuilder) -> bool
fn eq(&self, other: &AwsIamPolicyDetailsBuilder) -> bool
self and other values to be equal, and is used
by ==.