#[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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)