Struct aws_sdk_securityhub::model::aws_iam_role_details::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for AwsIamRoleDetails
.
Implementations
sourceimpl 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
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more