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) -> Option<&[String]>
pub fn audience(&self) -> Option<&[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.
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<JwtConfiguration> for JwtConfiguration
impl PartialEq<JwtConfiguration> 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 ==
.