#[non_exhaustive]pub struct GetWebIdentityTokenInput {
pub audience: Option<Vec<String>>,
pub duration_seconds: Option<i32>,
pub signing_algorithm: Option<String>,
pub tags: Option<Vec<Tag>>,
}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.audience: Option<Vec<String>>The intended recipient of the web identity token. This value populates the aud claim in the JWT and should identify the service or application that will validate and use the token. The external service should verify this claim to ensure the token was intended for their use.
duration_seconds: Option<i32>The duration, in seconds, for which the JSON Web Token (JWT) will remain valid. The value can range from 60 seconds (1 minute) to 3600 seconds (1 hour). If not specified, the default duration is 300 seconds (5 minutes). The token is designed to be short-lived and should be used for proof of identity, then exchanged for credentials or short-lived tokens in the external service.
signing_algorithm: Option<String>The cryptographic algorithm to use for signing the JSON Web Token (JWT). Valid values are RS256 (RSA with SHA-256) and ES384 (ECDSA using P-384 curve with SHA-384).
An optional list of tags to include in the JSON Web Token (JWT). These tags are added as custom claims to the JWT and can be used by the downstream service for authorization decisions.
Implementations§
Source§impl GetWebIdentityTokenInput
impl GetWebIdentityTokenInput
Sourcepub fn audience(&self) -> &[String]
pub fn audience(&self) -> &[String]
The intended recipient of the web identity token. This value populates the aud claim in the JWT and should identify the service or application that will validate and use the token. The external service should verify this claim to ensure the token was intended for their use.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .audience.is_none().
Sourcepub fn duration_seconds(&self) -> Option<i32>
pub fn duration_seconds(&self) -> Option<i32>
The duration, in seconds, for which the JSON Web Token (JWT) will remain valid. The value can range from 60 seconds (1 minute) to 3600 seconds (1 hour). If not specified, the default duration is 300 seconds (5 minutes). The token is designed to be short-lived and should be used for proof of identity, then exchanged for credentials or short-lived tokens in the external service.
Sourcepub fn signing_algorithm(&self) -> Option<&str>
pub fn signing_algorithm(&self) -> Option<&str>
The cryptographic algorithm to use for signing the JSON Web Token (JWT). Valid values are RS256 (RSA with SHA-256) and ES384 (ECDSA using P-384 curve with SHA-384).
An optional list of tags to include in the JSON Web Token (JWT). These tags are added as custom claims to the JWT and can be used by the downstream service for authorization decisions.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none().
Source§impl GetWebIdentityTokenInput
impl GetWebIdentityTokenInput
Sourcepub fn builder() -> GetWebIdentityTokenInputBuilder
pub fn builder() -> GetWebIdentityTokenInputBuilder
Creates a new builder-style object to manufacture GetWebIdentityTokenInput.
Trait Implementations§
Source§impl Clone for GetWebIdentityTokenInput
impl Clone for GetWebIdentityTokenInput
Source§fn clone(&self) -> GetWebIdentityTokenInput
fn clone(&self) -> GetWebIdentityTokenInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetWebIdentityTokenInput
impl Debug for GetWebIdentityTokenInput
Source§impl PartialEq for GetWebIdentityTokenInput
impl PartialEq for GetWebIdentityTokenInput
impl StructuralPartialEq for GetWebIdentityTokenInput
Auto Trait Implementations§
impl Freeze for GetWebIdentityTokenInput
impl RefUnwindSafe for GetWebIdentityTokenInput
impl Send for GetWebIdentityTokenInput
impl Sync for GetWebIdentityTokenInput
impl Unpin for GetWebIdentityTokenInput
impl UnwindSafe for GetWebIdentityTokenInput
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