@Stability(value=Stable)
public static interface CfnAuthorizer.JWTConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Required for the JWT authorizer type. Supported only for HTTP APIs.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigatewayv2.*;
JWTConfigurationProperty jWTConfigurationProperty = JWTConfigurationProperty.builder()
.audience(List.of("audience"))
.issuer("issuer")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnAuthorizer.JWTConfigurationProperty.Builder
A builder for
CfnAuthorizer.JWTConfigurationProperty |
static class |
CfnAuthorizer.JWTConfigurationProperty.Jsii$Proxy
An implementation for
CfnAuthorizer.JWTConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnAuthorizer.JWTConfigurationProperty.Builder |
builder() |
default List<String> |
getAudience()
A list of the intended recipients of the JWT.
|
default String |
getIssuer()
The base domain of the identity provider that issues JSON Web Tokens.
|
@Stability(value=Stable) @Nullable default List<String> getAudience()
A valid JWT must provide an aud that matches at least one entry in this list. See RFC 7519 . Required for the JWT authorizer type. Supported only for HTTP APIs.
@Stability(value=Stable) @Nullable default String getIssuer()
For example, an Amazon Cognito user pool has the following format: https://cognito-idp. {region} .amazonaws.com/ {userPoolId} . Required for the JWT authorizer type. Supported only for HTTP APIs.
@Stability(value=Stable) static CfnAuthorizer.JWTConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.