UNPKG

@cpmech/az-cdk

Version:
12 lines (11 loc) 426 B
import { Construct } from '@aws-cdk/core'; import { CfnAuthorizer, Method } from '@aws-cdk/aws-apigateway'; export interface IAuthorizerProps { cognitoUserPoolId: string; restApiId: string; } export declare class AuthorizerConstruct extends Construct { readonly authorizer: CfnAuthorizer; constructor(scope: Construct, id: string, props: IAuthorizerProps); protectRoute(method: Method): void; }