Interface HttpJwtAuthorizerProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
HttpJwtAuthorizerProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.886Z")
@Stability(Experimental)
public interface HttpJwtAuthorizerProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties to initialize HttpJwtAuthorizer.
Example:
import software.amazon.awscdk.services.apigatewayv2.authorizers.HttpJwtAuthorizer; import software.amazon.awscdk.services.apigatewayv2.integrations.HttpUrlIntegration; String issuer = "https://test.us.auth0.com"; HttpJwtAuthorizer authorizer = HttpJwtAuthorizer.Builder.create("BooksAuthorizer", issuer) .jwtAudience(List.of("3131231")) .build(); HttpApi api = new HttpApi(this, "HttpApi"); api.addRoutes(AddRoutesOptions.builder() .integration(new HttpUrlIntegration("BooksIntegration", "https://get-books-proxy.myproxy.internal")) .path("/books") .authorizer(authorizer) .build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forHttpJwtAuthorizerProps
static final class
An implementation forHttpJwtAuthorizerProps
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getJwtAudience
(experimental) 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.
-
getAuthorizerName
(experimental) The name of the authorizer.Default: - same value as `id` passed in the constructor
-
getIdentitySource
(experimental) The identity source for which authorization is requested.Default: ['$request.header.Authorization']
-
builder
- Returns:
- a
HttpJwtAuthorizerProps.Builder
ofHttpJwtAuthorizerProps
-