@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:41.560Z") @Stability(value=Experimental) public class HttpAuthorizer extends Resource implements IHttpAuthorizer
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.services.apigatewayv2.*;
Duration duration;
HttpApi httpApi;
HttpAuthorizer httpAuthorizer = HttpAuthorizer.Builder.create(this, "MyHttpAuthorizer")
.httpApi(httpApi)
.identitySource(List.of("identitySource"))
.type(HttpAuthorizerType.IAM)
// the properties below are optional
.authorizerName("authorizerName")
.authorizerUri("authorizerUri")
.enableSimpleResponses(false)
.jwtAudience(List.of("jwtAudience"))
.jwtIssuer("jwtIssuer")
.payloadFormatVersion(AuthorizerPayloadVersion.VERSION_1_0)
.resultsCacheTtl(duration)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpAuthorizer.Builder
(experimental) A fluent builder for
HttpAuthorizer. |
software.amazon.jsii.JsiiObject.InitializationModeIHttpAuthorizer.Jsii$Default, IHttpAuthorizer.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
HttpAuthorizer(software.constructs.Construct scope,
String id,
HttpAuthorizerProps props) |
protected |
HttpAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
HttpAuthorizer(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IHttpRouteAuthorizer |
fromHttpAuthorizerAttributes(software.constructs.Construct scope,
String id,
HttpAuthorizerAttributes attrs)
(experimental) Import an existing HTTP Authorizer into this CDK app.
|
String |
getAuthorizerId()
(experimental) Id of the Authorizer.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected HttpAuthorizer(software.amazon.jsii.JsiiObjectRef objRef)
protected HttpAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public HttpAuthorizer(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
HttpAuthorizerProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static IHttpRouteAuthorizer fromHttpAuthorizerAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull HttpAuthorizerAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Experimental) @NotNull public String getAuthorizerId()
getAuthorizerId in interface IAuthorizerCopyright © 2022. All rights reserved.