#[non_exhaustive]pub struct AwsIamRoleDetailsBuilder { /* private fields */ }Expand description
A builder for AwsIamRoleDetails.
Implementations§
source§impl AwsIamRoleDetailsBuilder
impl AwsIamRoleDetailsBuilder
sourcepub fn assume_role_policy_document(self, input: impl Into<String>) -> Self
pub fn assume_role_policy_document(self, input: impl Into<String>) -> Self
The trust policy that grants permission to assume the role.
sourcepub fn set_assume_role_policy_document(self, input: Option<String>) -> Self
pub fn set_assume_role_policy_document(self, input: Option<String>) -> Self
The trust policy that grants permission to assume the role.
sourcepub fn get_assume_role_policy_document(&self) -> &Option<String>
pub fn get_assume_role_policy_document(&self) -> &Option<String>
The trust policy that grants permission to assume the role.
sourcepub fn attached_managed_policies(
self,
input: AwsIamAttachedManagedPolicy
) -> Self
pub fn attached_managed_policies( self, input: AwsIamAttachedManagedPolicy ) -> Self
Appends an item to attached_managed_policies.
To override the contents of this collection use set_attached_managed_policies.
The list of the managed policies that are attached to the role.
sourcepub fn set_attached_managed_policies(
self,
input: Option<Vec<AwsIamAttachedManagedPolicy>>
) -> Self
pub fn set_attached_managed_policies( self, input: Option<Vec<AwsIamAttachedManagedPolicy>> ) -> Self
The list of the managed policies that are attached to the role.
sourcepub fn get_attached_managed_policies(
&self
) -> &Option<Vec<AwsIamAttachedManagedPolicy>>
pub fn get_attached_managed_policies( &self ) -> &Option<Vec<AwsIamAttachedManagedPolicy>>
The list of the managed policies that are attached to the role.
sourcepub fn create_date(self, input: impl Into<String>) -> Self
pub fn create_date(self, input: impl Into<String>) -> Self
Indicates when the role 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
Indicates when the role 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>
Indicates when the role 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 instance_profile_list(self, input: AwsIamInstanceProfile) -> Self
pub fn instance_profile_list(self, input: AwsIamInstanceProfile) -> Self
Appends an item to instance_profile_list.
To override the contents of this collection use set_instance_profile_list.
The list of instance profiles that contain this role.
sourcepub fn set_instance_profile_list(
self,
input: Option<Vec<AwsIamInstanceProfile>>
) -> Self
pub fn set_instance_profile_list( self, input: Option<Vec<AwsIamInstanceProfile>> ) -> Self
The list of instance profiles that contain this role.
sourcepub fn get_instance_profile_list(&self) -> &Option<Vec<AwsIamInstanceProfile>>
pub fn get_instance_profile_list(&self) -> &Option<Vec<AwsIamInstanceProfile>>
The list of instance profiles that contain this role.
sourcepub fn permissions_boundary(self, input: AwsIamPermissionsBoundary) -> Self
pub fn permissions_boundary(self, input: AwsIamPermissionsBoundary) -> Self
Information about the policy used to set the permissions boundary for an IAM principal.
sourcepub fn set_permissions_boundary(
self,
input: Option<AwsIamPermissionsBoundary>
) -> Self
pub fn set_permissions_boundary( self, input: Option<AwsIamPermissionsBoundary> ) -> Self
Information about the policy used to set the permissions boundary for an IAM principal.
sourcepub fn get_permissions_boundary(&self) -> &Option<AwsIamPermissionsBoundary>
pub fn get_permissions_boundary(&self) -> &Option<AwsIamPermissionsBoundary>
Information about the policy used to set the permissions boundary for an IAM principal.
sourcepub fn role_id(self, input: impl Into<String>) -> Self
pub fn role_id(self, input: impl Into<String>) -> Self
The stable and unique string identifying the role.
sourcepub fn set_role_id(self, input: Option<String>) -> Self
pub fn set_role_id(self, input: Option<String>) -> Self
The stable and unique string identifying the role.
sourcepub fn get_role_id(&self) -> &Option<String>
pub fn get_role_id(&self) -> &Option<String>
The stable and unique string identifying the role.
sourcepub fn role_name(self, input: impl Into<String>) -> Self
pub fn role_name(self, input: impl Into<String>) -> Self
The friendly name that identifies the role.
sourcepub fn set_role_name(self, input: Option<String>) -> Self
pub fn set_role_name(self, input: Option<String>) -> Self
The friendly name that identifies the role.
sourcepub fn get_role_name(&self) -> &Option<String>
pub fn get_role_name(&self) -> &Option<String>
The friendly name that identifies the role.
sourcepub fn role_policy_list(self, input: AwsIamRolePolicy) -> Self
pub fn role_policy_list(self, input: AwsIamRolePolicy) -> Self
Appends an item to role_policy_list.
To override the contents of this collection use set_role_policy_list.
The list of inline policies that are embedded in the role.
sourcepub fn set_role_policy_list(self, input: Option<Vec<AwsIamRolePolicy>>) -> Self
pub fn set_role_policy_list(self, input: Option<Vec<AwsIamRolePolicy>>) -> Self
The list of inline policies that are embedded in the role.
sourcepub fn get_role_policy_list(&self) -> &Option<Vec<AwsIamRolePolicy>>
pub fn get_role_policy_list(&self) -> &Option<Vec<AwsIamRolePolicy>>
The list of inline policies that are embedded in the role.
sourcepub fn max_session_duration(self, input: i32) -> Self
pub fn max_session_duration(self, input: i32) -> Self
The maximum session duration (in seconds) that you want to set for the specified role.
sourcepub fn set_max_session_duration(self, input: Option<i32>) -> Self
pub fn set_max_session_duration(self, input: Option<i32>) -> Self
The maximum session duration (in seconds) that you want to set for the specified role.
sourcepub fn get_max_session_duration(&self) -> &Option<i32>
pub fn get_max_session_duration(&self) -> &Option<i32>
The maximum session duration (in seconds) that you want to set for the specified role.
sourcepub fn build(self) -> AwsIamRoleDetails
pub fn build(self) -> AwsIamRoleDetails
Consumes the builder and constructs a AwsIamRoleDetails.
Trait Implementations§
source§impl Clone for AwsIamRoleDetailsBuilder
impl Clone for AwsIamRoleDetailsBuilder
source§fn clone(&self) -> AwsIamRoleDetailsBuilder
fn clone(&self) -> AwsIamRoleDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AwsIamRoleDetailsBuilder
impl Debug for AwsIamRoleDetailsBuilder
source§impl Default for AwsIamRoleDetailsBuilder
impl Default for AwsIamRoleDetailsBuilder
source§fn default() -> AwsIamRoleDetailsBuilder
fn default() -> AwsIamRoleDetailsBuilder
source§impl PartialEq for AwsIamRoleDetailsBuilder
impl PartialEq for AwsIamRoleDetailsBuilder
source§fn eq(&self, other: &AwsIamRoleDetailsBuilder) -> bool
fn eq(&self, other: &AwsIamRoleDetailsBuilder) -> bool
self and other values to be equal, and is used
by ==.