Struct aws_sdk_apigatewayv2::types::JwtConfiguration
source · #[non_exhaustive]pub struct JwtConfiguration {
pub audience: Option<Vec<String>>,
pub issuer: Option<String>,
}Expand description
Represents the configuration of a JWT authorizer. Required for the JWT authorizer type. Supported only for HTTP APIs.
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>>A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. See RFC 7519. Supported only for HTTP APIs.
issuer: Option<String>The base domain of the identity provider that issues JSON Web Tokens. For example, an Amazon Cognito user pool has the following format: https://cognito-idp.
Implementations§
source§impl JwtConfiguration
impl JwtConfiguration
sourcepub fn audience(&self) -> &[String]
pub fn audience(&self) -> &[String]
A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. See RFC 7519. Supported only for HTTP APIs.
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 issuer(&self) -> Option<&str>
pub fn issuer(&self) -> Option<&str>
The base domain of the identity provider that issues JSON Web Tokens. For example, an Amazon Cognito user pool has the following format: https://cognito-idp.
source§impl JwtConfiguration
impl JwtConfiguration
sourcepub fn builder() -> JwtConfigurationBuilder
pub fn builder() -> JwtConfigurationBuilder
Creates a new builder-style object to manufacture JwtConfiguration.
Trait Implementations§
source§impl Clone for JwtConfiguration
impl Clone for JwtConfiguration
source§fn clone(&self) -> JwtConfiguration
fn clone(&self) -> JwtConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for JwtConfiguration
impl Debug for JwtConfiguration
source§impl PartialEq for JwtConfiguration
impl PartialEq for JwtConfiguration
source§fn eq(&self, other: &JwtConfiguration) -> bool
fn eq(&self, other: &JwtConfiguration) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for JwtConfiguration
Auto Trait Implementations§
impl Freeze for JwtConfiguration
impl RefUnwindSafe for JwtConfiguration
impl Send for JwtConfiguration
impl Sync for JwtConfiguration
impl Unpin for JwtConfiguration
impl UnwindSafe for JwtConfiguration
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> 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