#[non_exhaustive]pub struct GetScopedCredentialsOutput {
pub credentials: Option<Credentials>,
pub session_info: Option<ScopedSession>,
pub session_token_utilization: Option<i32>,
pub session_token_size: Option<i32>,
pub scoped_policies_count: Option<i32>,
pub source_identity: Option<String>,
/* private fields */
}Expand description
Contains the response to a successful GetScopedCredentials request, including the scoped-down temporary Amazon Web Services credentials and metadata about the resulting session.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.credentials: Option<Credentials>The temporary security credentials for the scoped down session, which include an access key ID, a secret access key, and a security token.
The size of the security token that STS API operations return is not fixed. We strongly recommend that you make no assumptions about the maximum size.
session_info: Option<ScopedSession>Metadata about the resulting scoped session, including its identifier and ARN. Because the identity does not change, the identifiers reflect the same principal and session name as the calling session.
session_token_utilization: Option<i32>The percentage (0-100) of the maximum allowed session token size that the returned session token consumes.
session_token_size: Option<i32>The size, in bytes, of the session token returned in the Credentials for this response.
scoped_policies_count: Option<i32>GetScopedCredentials can be called recursively and ScopedPoliciesCount specifies the number of scope down policies applied to the session. Each recursive call adds another scope down policy layer. A maximum of 3 scope down policy layers are allowed per session. If a session already has 3 GetScopedCredentials scope-down policies, a subsequent GetScopedCredentials call that supplies a Policy (attempting to append a fourth scope-down policy) is denied.
source_identity: Option<String>The source identity of the calling session, carried forward unchanged. This operation never sets or modifies the source identity; it reflects the value established when the source identity was first set. For more information, see Monitor and control actions taken with assumed roles in the IAM User Guide.
Implementations§
Source§impl GetScopedCredentialsOutput
impl GetScopedCredentialsOutput
Sourcepub fn credentials(&self) -> Option<&Credentials>
pub fn credentials(&self) -> Option<&Credentials>
The temporary security credentials for the scoped down session, which include an access key ID, a secret access key, and a security token.
The size of the security token that STS API operations return is not fixed. We strongly recommend that you make no assumptions about the maximum size.
Sourcepub fn session_info(&self) -> Option<&ScopedSession>
pub fn session_info(&self) -> Option<&ScopedSession>
Metadata about the resulting scoped session, including its identifier and ARN. Because the identity does not change, the identifiers reflect the same principal and session name as the calling session.
Sourcepub fn session_token_utilization(&self) -> Option<i32>
pub fn session_token_utilization(&self) -> Option<i32>
The percentage (0-100) of the maximum allowed session token size that the returned session token consumes.
Sourcepub fn session_token_size(&self) -> Option<i32>
pub fn session_token_size(&self) -> Option<i32>
The size, in bytes, of the session token returned in the Credentials for this response.
Sourcepub fn scoped_policies_count(&self) -> Option<i32>
pub fn scoped_policies_count(&self) -> Option<i32>
GetScopedCredentials can be called recursively and ScopedPoliciesCount specifies the number of scope down policies applied to the session. Each recursive call adds another scope down policy layer. A maximum of 3 scope down policy layers are allowed per session. If a session already has 3 GetScopedCredentials scope-down policies, a subsequent GetScopedCredentials call that supplies a Policy (attempting to append a fourth scope-down policy) is denied.
Sourcepub fn source_identity(&self) -> Option<&str>
pub fn source_identity(&self) -> Option<&str>
The source identity of the calling session, carried forward unchanged. This operation never sets or modifies the source identity; it reflects the value established when the source identity was first set. For more information, see Monitor and control actions taken with assumed roles in the IAM User Guide.
Source§impl GetScopedCredentialsOutput
impl GetScopedCredentialsOutput
Sourcepub fn builder() -> GetScopedCredentialsOutputBuilder
pub fn builder() -> GetScopedCredentialsOutputBuilder
Creates a new builder-style object to manufacture GetScopedCredentialsOutput.
Trait Implementations§
Source§impl Clone for GetScopedCredentialsOutput
impl Clone for GetScopedCredentialsOutput
Source§fn clone(&self) -> GetScopedCredentialsOutput
fn clone(&self) -> GetScopedCredentialsOutput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetScopedCredentialsOutput
impl Debug for GetScopedCredentialsOutput
Source§impl RequestId for GetScopedCredentialsOutput
impl RequestId for GetScopedCredentialsOutput
Source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.impl StructuralPartialEq for GetScopedCredentialsOutput
Auto Trait Implementations§
impl Freeze for GetScopedCredentialsOutput
impl RefUnwindSafe for GetScopedCredentialsOutput
impl Send for GetScopedCredentialsOutput
impl Sync for GetScopedCredentialsOutput
impl Unpin for GetScopedCredentialsOutput
impl UnsafeUnpin for GetScopedCredentialsOutput
impl UnwindSafe for GetScopedCredentialsOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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 more