interface HttpAuthorizerAttributes
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Apigatewayv2.HttpAuthorizerAttributes |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsapigatewayv2#HttpAuthorizerAttributes |
![]() | software.amazon.awscdk.services.apigatewayv2.HttpAuthorizerAttributes |
![]() | aws_cdk.aws_apigatewayv2.HttpAuthorizerAttributes |
![]() | 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