#[non_exhaustive]pub struct IamRoleConfiguration {
pub trust_policy: Option<String>,
}
Expand description
The proposed access control configuration for an IAM role. You can propose a configuration for a new IAM role or an existing IAM role that you own by specifying the trust policy. If the configuration is for a new IAM role, you must specify the trust policy. If the configuration is for an existing IAM role that you own and you do not propose the trust policy, the access preview uses the existing trust policy for the role. The proposed trust policy cannot be an empty string. For more information about role trust policy limits, see IAM and STS quotas.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.trust_policy: Option<String>
The proposed trust policy for the IAM role.
Implementations§
source§impl IamRoleConfiguration
impl IamRoleConfiguration
sourcepub fn trust_policy(&self) -> Option<&str>
pub fn trust_policy(&self) -> Option<&str>
The proposed trust policy for the IAM role.
source§impl IamRoleConfiguration
impl IamRoleConfiguration
sourcepub fn builder() -> IamRoleConfigurationBuilder
pub fn builder() -> IamRoleConfigurationBuilder
Creates a new builder-style object to manufacture IamRoleConfiguration
.
Trait Implementations§
source§impl Clone for IamRoleConfiguration
impl Clone for IamRoleConfiguration
source§fn clone(&self) -> IamRoleConfiguration
fn clone(&self) -> IamRoleConfiguration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IamRoleConfiguration
impl Debug for IamRoleConfiguration
source§impl PartialEq for IamRoleConfiguration
impl PartialEq for IamRoleConfiguration
source§fn eq(&self, other: &IamRoleConfiguration) -> bool
fn eq(&self, other: &IamRoleConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IamRoleConfiguration
Auto Trait Implementations§
impl Freeze for IamRoleConfiguration
impl RefUnwindSafe for IamRoleConfiguration
impl Send for IamRoleConfiguration
impl Sync for IamRoleConfiguration
impl Unpin for IamRoleConfiguration
impl UnwindSafe for IamRoleConfiguration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.