1 | import { Resource, ResourceProps } from '@aws-cdk/core';
|
2 | import { Construct } from 'constructs';
|
3 | import { AuthorizationType } from './method';
|
4 | import { IRestApi } from './restapi';
|
5 |
|
6 |
|
7 |
|
8 | export declare abstract class Authorizer extends Resource implements IAuthorizer {
|
9 | |
10 |
|
11 |
|
12 | static isAuthorizer(x: any): x is Authorizer;
|
13 | abstract readonly authorizerId: string;
|
14 | readonly authorizationType?: AuthorizationType;
|
15 | constructor(scope: Construct, id: string, props?: ResourceProps);
|
16 | /**
|
17 | * Called when the authorizer is used from a specific REST API.
|
18 | * @internal
|
19 | */
|
20 | abstract _attachToApi(restApi: IRestApi): void;
|
21 | }
|
22 | /**
|
23 | * Represents an API Gateway authorizer.
|
24 | */
|
25 | export interface IAuthorizer {
|
26 | |
27 |
|
28 |
|
29 |
|
30 | readonly authorizerId: string;
|
31 | |
32 |
|
33 |
|
34 | readonly authorizationType?: AuthorizationType;
|
35 | }
|