Struct aws_sdk_securityhub::model::aws_iam_role_details::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AwsIamRoleDetails
.
Implementations§
source§impl Builder
impl Builder
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 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 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. 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. 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 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 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 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 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 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 build(self) -> AwsIamRoleDetails
pub fn build(self) -> AwsIamRoleDetails
Consumes the builder and constructs a AwsIamRoleDetails
.