@cpmech/az-cdk
Version:
AmaZon AWS-CDK tools
12 lines (11 loc) • 426 B
TypeScript
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;
}