Class HttpAuthorizer

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.apigatewayv2.HttpAuthorizer
All Implemented Interfaces:
IConstruct, IDependable, IResource, IAuthorizer, IHttpAuthorizer, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:43.251Z") @Stability(Experimental) public class HttpAuthorizer extends Resource implements IHttpAuthorizer
(experimental) An authorizer for Http Apis.

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();
 
  • Constructor Details

    • HttpAuthorizer

      protected HttpAuthorizer(software.amazon.jsii.JsiiObjectRef objRef)
    • HttpAuthorizer

      protected HttpAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • HttpAuthorizer

      @Stability(Experimental) public HttpAuthorizer(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull HttpAuthorizerProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • fromHttpAuthorizerAttributes

      @Stability(Experimental) @NotNull public static IHttpRouteAuthorizer fromHttpAuthorizerAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull HttpAuthorizerAttributes attrs)
      (experimental) Import an existing HTTP Authorizer into this CDK app.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      attrs - This parameter is required.
    • getAuthorizerId

      @Stability(Experimental) @NotNull public String getAuthorizerId()
      (experimental) Id of the Authorizer.
      Specified by:
      getAuthorizerId in interface IAuthorizer