Struct aws_sdk_sts::output::GetFederationTokenOutput
source · [−]#[non_exhaustive]pub struct GetFederationTokenOutput {
pub credentials: Option<Credentials>,
pub federated_user: Option<FederatedUser>,
pub packed_policy_size: Option<i32>,
}Expand description
Contains the response to a successful GetFederationToken request, including temporary Amazon Web Services credentials that can be used to make Amazon Web Services requests.
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, which include an access key ID, a secret access key, and a security (or session) 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.
federated_user: Option<FederatedUser>Identifiers for the federated user associated with the credentials (such as arn:aws:sts::123456789012:federated-user/Bob or 123456789012:Bob). You can use the federated user's ARN in your resource-based policies, such as an Amazon S3 bucket policy.
packed_policy_size: Option<i32>A percentage value that indicates the packed size of the session policies and session tags combined passed in the request. The request fails if the packed size is greater than 100 percent, which means the policies and tags exceeded the allowed space.
Implementations
sourceimpl GetFederationTokenOutput
impl GetFederationTokenOutput
sourcepub fn credentials(&self) -> Option<&Credentials>
pub fn credentials(&self) -> Option<&Credentials>
The temporary security credentials, which include an access key ID, a secret access key, and a security (or session) 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 federated_user(&self) -> Option<&FederatedUser>
pub fn federated_user(&self) -> Option<&FederatedUser>
Identifiers for the federated user associated with the credentials (such as arn:aws:sts::123456789012:federated-user/Bob or 123456789012:Bob). You can use the federated user's ARN in your resource-based policies, such as an Amazon S3 bucket policy.
sourcepub fn packed_policy_size(&self) -> Option<i32>
pub fn packed_policy_size(&self) -> Option<i32>
A percentage value that indicates the packed size of the session policies and session tags combined passed in the request. The request fails if the packed size is greater than 100 percent, which means the policies and tags exceeded the allowed space.
sourceimpl GetFederationTokenOutput
impl GetFederationTokenOutput
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetFederationTokenOutput
Trait Implementations
sourceimpl Clone for GetFederationTokenOutput
impl Clone for GetFederationTokenOutput
sourcefn clone(&self) -> GetFederationTokenOutput
fn clone(&self) -> GetFederationTokenOutput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for GetFederationTokenOutput
impl Debug for GetFederationTokenOutput
sourceimpl PartialEq<GetFederationTokenOutput> for GetFederationTokenOutput
impl PartialEq<GetFederationTokenOutput> for GetFederationTokenOutput
sourcefn eq(&self, other: &GetFederationTokenOutput) -> bool
fn eq(&self, other: &GetFederationTokenOutput) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &GetFederationTokenOutput) -> bool
fn ne(&self, other: &GetFederationTokenOutput) -> bool
This method tests for !=.
impl StructuralPartialEq for GetFederationTokenOutput
Auto Trait Implementations
impl RefUnwindSafe for GetFederationTokenOutput
impl Send for GetFederationTokenOutput
impl Sync for GetFederationTokenOutput
impl Unpin for GetFederationTokenOutput
impl UnwindSafe for GetFederationTokenOutput
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