@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:46.224Z") 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.services.apigatewayv2.*; import software.amazon.awscdk.core.*; 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.minutes(30)) .build();
Modifier and Type | Class and Description |
---|---|
static class |
HttpAuthorizer.Builder
(experimental) A fluent builder for
HttpAuthorizer . |
IHttpAuthorizer.Jsii$Default, IHttpAuthorizer.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
HttpAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
HttpAuthorizer(software.amazon.jsii.JsiiObjectRef objRef) |
|
HttpAuthorizer(software.constructs.Construct scope,
java.lang.String id,
HttpAuthorizerProps props) |
Modifier and Type | Method and Description |
---|---|
static IHttpRouteAuthorizer |
fromHttpAuthorizerAttributes(software.constructs.Construct scope,
java.lang.String id,
HttpAuthorizerAttributes attrs)
(experimental) Import an existing HTTP Authorizer into this CDK app.
|
java.lang.String |
getAuthorizerId()
(experimental) Id of the Authorizer.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected HttpAuthorizer(software.amazon.jsii.JsiiObjectRef objRef)
protected HttpAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public HttpAuthorizer(software.constructs.Construct scope, java.lang.String id, HttpAuthorizerProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static IHttpRouteAuthorizer fromHttpAuthorizerAttributes(software.constructs.Construct scope, java.lang.String id, HttpAuthorizerAttributes attrs)
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.public java.lang.String getAuthorizerId()
getAuthorizerId
in interface IAuthorizer