#[non_exhaustive]pub struct GetFederationTokenOutput {
pub credentials: Option<Credentials>,
pub federated_user: Option<FederatedUser>,
pub packed_policy_size: Option<i32>,
/* private fields */
}
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§
source§impl 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.
source§impl GetFederationTokenOutput
impl GetFederationTokenOutput
sourcepub fn builder() -> GetFederationTokenOutputBuilder
pub fn builder() -> GetFederationTokenOutputBuilder
Creates a new builder-style object to manufacture GetFederationTokenOutput
.
Trait Implementations§
source§impl Clone for GetFederationTokenOutput
impl Clone for GetFederationTokenOutput
source§fn clone(&self) -> GetFederationTokenOutput
fn clone(&self) -> GetFederationTokenOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetFederationTokenOutput
impl Debug for GetFederationTokenOutput
source§impl PartialEq for GetFederationTokenOutput
impl PartialEq for GetFederationTokenOutput
source§impl RequestId for GetFederationTokenOutput
impl RequestId for GetFederationTokenOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for GetFederationTokenOutput
Auto Trait Implementations§
impl Freeze for GetFederationTokenOutput
impl RefUnwindSafe for GetFederationTokenOutput
impl Send for GetFederationTokenOutput
impl Sync for GetFederationTokenOutput
impl Unpin for GetFederationTokenOutput
impl UnwindSafe for GetFederationTokenOutput
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)