class HttpNoneAuthorizer
| Language | Type name | 
|---|---|
  .NET | Amazon.CDK.AWS.Apigatewayv2.HttpNoneAuthorizer | 
  Go | github.com/aws/aws-cdk-go/awscdk/v2/awsapigatewayv2#HttpNoneAuthorizer | 
  Java | software.amazon.awscdk.services.apigatewayv2.HttpNoneAuthorizer | 
  Python | aws_cdk.aws_apigatewayv2.HttpNoneAuthorizer | 
  TypeScript (source) | aws-cdk-lib » aws_apigatewayv2 » HttpNoneAuthorizer | 
Implements
IHttp
Explicitly configure no authorizers on specific HTTP API routes.
Example
import { HttpJwtAuthorizer } from 'aws-cdk-lib/aws-apigatewayv2-authorizers';
import { HttpUrlIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations';
const issuer = 'https://test.us.auth0.com';
const authorizer = new HttpJwtAuthorizer('DefaultAuthorizer', issuer, {
  jwtAudience: ['3131231'],
});
const api = new apigwv2.HttpApi(this, 'HttpApi', {
  defaultAuthorizer: authorizer,
  defaultAuthorizationScopes: ['read:books'],
});
api.addRoutes({
  integration: new HttpUrlIntegration('BooksIntegration', 'https://get-books-proxy.example.com'),
  path: '/books',
  methods: [apigwv2.HttpMethod.GET],
});
api.addRoutes({
  integration: new HttpUrlIntegration('BooksIdIntegration', 'https://get-books-proxy.example.com'),
  path: '/books/{id}',
  methods: [apigwv2.HttpMethod.GET],
});
api.addRoutes({
  integration: new HttpUrlIntegration('BooksIntegration', 'https://get-books-proxy.example.com'),
  path: '/books',
  methods: [apigwv2.HttpMethod.POST],
  authorizationScopes: ['write:books']
});
api.addRoutes({
  integration: new HttpUrlIntegration('LoginIntegration', 'https://get-books-proxy.example.com'),
  path: '/login',
  methods: [apigwv2.HttpMethod.POST],
  authorizer: new apigwv2.HttpNoneAuthorizer(),
});
Initializer
new HttpNoneAuthorizer()
Properties
| Name | Type | Description | 
|---|---|---|
| authorization | string | The authorizationType used for IAM Authorizer. | 
authorizationType
Type:
string
The authorizationType used for IAM Authorizer.
Methods
| Name | Description | 
|---|---|
| bind(_options) | Bind this authorizer to a specified Http route. | 
bind(_options)
public bind(_options: HttpRouteAuthorizerBindOptions): HttpRouteAuthorizerConfig
Parameters
- _options 
HttpRoute Authorizer Bind Options  
Returns
Bind this authorizer to a specified Http route.

 .NET
 Go
 Java
 Python
 TypeScript (