Class HttpIamAuthorizer
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigatewayv2.authorizers.HttpIamAuthorizer
- All Implemented Interfaces:
IHttpRouteAuthorizer
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.884Z")
@Stability(Experimental)
public class HttpIamAuthorizer
extends software.amazon.jsii.JsiiObject
implements IHttpRouteAuthorizer
(experimental) Authorize HTTP API Routes with IAM.
Example:
import software.amazon.awscdk.services.apigatewayv2.authorizers.HttpIamAuthorizer; import software.amazon.awscdk.services.apigatewayv2.integrations.HttpUrlIntegration; AnyPrincipal principal; HttpIamAuthorizer authorizer = new HttpIamAuthorizer(); HttpApi httpApi = HttpApi.Builder.create(this, "HttpApi") .defaultAuthorizer(authorizer) .build(); HttpRoute[] routes = httpApi.addRoutes(AddRoutesOptions.builder() .integration(new HttpUrlIntegration("BooksIntegration", "https://get-books-proxy.myproxy.internal")) .path("/books/{book}") .build()); routes[0].grantInvoke(principal);
-
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
ModifierConstructorDescriptionprotected
HttpIamAuthorizer
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
HttpIamAuthorizer
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionbind
(HttpRouteAuthorizerBindOptions _options) (experimental) Bind this authorizer to a specified Http route.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
-
HttpIamAuthorizer
protected HttpIamAuthorizer(software.amazon.jsii.JsiiObjectRef objRef) -
HttpIamAuthorizer
protected HttpIamAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
HttpIamAuthorizer
@Stability(Experimental) public HttpIamAuthorizer()
-
-
Method Details
-
bind
@Stability(Experimental) @NotNull public HttpRouteAuthorizerConfig bind(@NotNull HttpRouteAuthorizerBindOptions _options) (experimental) Bind this authorizer to a specified Http route.- Specified by:
bind
in interfaceIHttpRouteAuthorizer
- Parameters:
_options
- This parameter is required.
-