Class HttpNoneAuthorizer
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigatewayv2.HttpNoneAuthorizer
- All Implemented Interfaces:
IHttpRouteAuthorizer
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-02-12T12:31:57.326Z")
@Stability(Stable)
public class HttpNoneAuthorizer
extends software.amazon.jsii.JsiiObject
implements IHttpRouteAuthorizer
Explicitly configure no authorizers on specific HTTP API routes.
Example:
import software.amazon.awscdk.aws_apigatewayv2_authorizers.HttpJwtAuthorizer; import software.amazon.awscdk.aws_apigatewayv2_integrations.HttpUrlIntegration; String issuer = "https://test.us.auth0.com"; HttpJwtAuthorizer authorizer = HttpJwtAuthorizer.Builder.create("DefaultAuthorizer", issuer) .jwtAudience(List.of("3131231")) .build(); HttpApi api = HttpApi.Builder.create(this, "HttpApi") .defaultAuthorizer(authorizer) .defaultAuthorizationScopes(List.of("read:books")) .build(); api.addRoutes(AddRoutesOptions.builder() .integration(new HttpUrlIntegration("BooksIntegration", "https://get-books-proxy.example.com")) .path("/books") .methods(List.of(HttpMethod.GET)) .build()); api.addRoutes(AddRoutesOptions.builder() .integration(new HttpUrlIntegration("BooksIdIntegration", "https://get-books-proxy.example.com")) .path("/books/{id}") .methods(List.of(HttpMethod.GET)) .build()); api.addRoutes(AddRoutesOptions.builder() .integration(new HttpUrlIntegration("BooksIntegration", "https://get-books-proxy.example.com")) .path("/books") .methods(List.of(HttpMethod.POST)) .authorizationScopes(List.of("write:books")) .build()); api.addRoutes(AddRoutesOptions.builder() .integration(new HttpUrlIntegration("LoginIntegration", "https://get-books-proxy.example.com")) .path("/login") .methods(List.of(HttpMethod.POST)) .authorizer(new HttpNoneAuthorizer()) .build());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.apigatewayv2.IHttpRouteAuthorizer
IHttpRouteAuthorizer.Jsii$Default, IHttpRouteAuthorizer.Jsii$Proxy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
HttpNoneAuthorizer
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
HttpNoneAuthorizer
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionbind
(HttpRouteAuthorizerBindOptions _options) Bind this authorizer to a specified Http route.The authorizationType used for IAM Authorizer.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
HttpNoneAuthorizer
protected HttpNoneAuthorizer(software.amazon.jsii.JsiiObjectRef objRef) -
HttpNoneAuthorizer
protected HttpNoneAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
HttpNoneAuthorizer
@Stability(Stable) public HttpNoneAuthorizer()
-
-
Method Details
-
bind
@Stability(Stable) @NotNull public HttpRouteAuthorizerConfig bind(@NotNull HttpRouteAuthorizerBindOptions _options) Bind this authorizer to a specified Http route.- Specified by:
bind
in interfaceIHttpRouteAuthorizer
- Parameters:
_options
- This parameter is required.
-
getAuthorizationType
The authorizationType used for IAM Authorizer.
-