interface HttpAuthorizerAttributes
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Apigatewayv2.HttpAuthorizerAttributes |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsapigatewayv2#HttpAuthorizerAttributes |
Java | software.amazon.awscdk.services.apigatewayv2.HttpAuthorizerAttributes |
Python | aws_cdk.aws_apigatewayv2.HttpAuthorizerAttributes |
TypeScript (source) | aws-cdk-lib » aws_apigatewayv2 » HttpAuthorizerAttributes |
Reference to an http authorizer.
Example
import { HttpAuthorizer } from 'aws-cdk-lib/aws-apigatewayv2';
import { Fn } from 'aws-cdk-lib'
const authorizerId = Fn.importValue('authorizerId');
const authorizerType = Fn.importValue('authorizerType');
const authorizer = HttpAuthorizer.fromHttpAuthorizerAttributes(this, 'HttpAuthorizer', {
authorizerId,
authorizerType
});
Properties
| Name | Type | Description |
|---|---|---|
| authorizer | string | Id of the Authorizer. |
| authorizer | string | Type of authorizer. |
authorizerId
Type:
string
Id of the Authorizer.
authorizerType
Type:
string
Type of authorizer.
Possible values are:
- JWT - JSON Web Token Authorizer
- CUSTOM - Lambda Authorizer
- NONE - No Authorization

.NET
Go
Java
Python
TypeScript (