#[non_exhaustive]pub struct CreateTokenWithIamOutput {
pub access_token: Option<String>,
pub token_type: Option<String>,
pub expires_in: i32,
pub refresh_token: Option<String>,
pub id_token: Option<String>,
pub issued_token_type: Option<String>,
pub scope: Option<Vec<String>>,
/* private fields */
}
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.access_token: Option<String>
A bearer token to access AWS accounts and applications assigned to a user.
token_type: Option<String>
Used to notify the requester that the returned token is an access token. The supported token type is Bearer
.
expires_in: i32
Indicates the time in seconds when an access token will expire.
refresh_token: Option<String>
A token that, if present, can be used to refresh a previously issued access token that might have expired.
For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
id_token: Option<String>
A JSON Web Token (JWT) that identifies the user associated with the issued access token.
issued_token_type: Option<String>
Indicates the type of tokens that are issued by IAM Identity Center. The following values are supported:
* Access Token - urn:ietf:params:oauth:token-type:access_token
* Refresh Token - urn:ietf:params:oauth:token-type:refresh_token
scope: Option<Vec<String>>
The list of scopes for which authorization is granted. The access token that is issued is limited to the scopes that are granted.
Implementations§
Source§impl CreateTokenWithIamOutput
impl CreateTokenWithIamOutput
Sourcepub fn access_token(&self) -> Option<&str>
pub fn access_token(&self) -> Option<&str>
A bearer token to access AWS accounts and applications assigned to a user.
Sourcepub fn token_type(&self) -> Option<&str>
pub fn token_type(&self) -> Option<&str>
Used to notify the requester that the returned token is an access token. The supported token type is Bearer
.
Sourcepub fn expires_in(&self) -> i32
pub fn expires_in(&self) -> i32
Indicates the time in seconds when an access token will expire.
Sourcepub fn refresh_token(&self) -> Option<&str>
pub fn refresh_token(&self) -> Option<&str>
A token that, if present, can be used to refresh a previously issued access token that might have expired.
For more information about the features and limitations of the current IAM Identity Center OIDC implementation, see Considerations for Using this Guide in the IAM Identity Center OIDC API Reference.
Sourcepub fn id_token(&self) -> Option<&str>
pub fn id_token(&self) -> Option<&str>
A JSON Web Token (JWT) that identifies the user associated with the issued access token.
Sourcepub fn issued_token_type(&self) -> Option<&str>
pub fn issued_token_type(&self) -> Option<&str>
Indicates the type of tokens that are issued by IAM Identity Center. The following values are supported:
* Access Token - urn:ietf:params:oauth:token-type:access_token
* Refresh Token - urn:ietf:params:oauth:token-type:refresh_token
Source§impl CreateTokenWithIamOutput
impl CreateTokenWithIamOutput
Sourcepub fn builder() -> CreateTokenWithIamOutputBuilder
pub fn builder() -> CreateTokenWithIamOutputBuilder
Creates a new builder-style object to manufacture CreateTokenWithIamOutput
.
Trait Implementations§
Source§impl Clone for CreateTokenWithIamOutput
impl Clone for CreateTokenWithIamOutput
Source§fn clone(&self) -> CreateTokenWithIamOutput
fn clone(&self) -> CreateTokenWithIamOutput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CreateTokenWithIamOutput
impl Debug for CreateTokenWithIamOutput
Source§impl PartialEq for CreateTokenWithIamOutput
impl PartialEq for CreateTokenWithIamOutput
Source§impl RequestId for CreateTokenWithIamOutput
impl RequestId for CreateTokenWithIamOutput
Source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for CreateTokenWithIamOutput
Auto Trait Implementations§
impl Freeze for CreateTokenWithIamOutput
impl RefUnwindSafe for CreateTokenWithIamOutput
impl Send for CreateTokenWithIamOutput
impl Sync for CreateTokenWithIamOutput
impl Unpin for CreateTokenWithIamOutput
impl UnwindSafe for CreateTokenWithIamOutput
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)