@aws/pdk
Version:
All documentation is located at: https://aws.github.io/aws-pdk
22 lines (21 loc) • 737 B
TypeScript
/*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0 */
import { IFunction } from "aws-cdk-lib/aws-lambda";
import { TypeSafeApiOptions } from "./api-gateway-integrations-types";
/**
* A lambda function with a label to identify it
*/
export interface LabelledFunction {
/**
* The label to identify the function - must be a concrete value, not a token
*/
readonly label: string;
/**
* The lambda function
*/
readonly function: IFunction;
}
/**
* Return all lambda functions used as authorizers, labelled by authorizer id
*/
export declare const getAuthorizerFunctions: (options: TypeSafeApiOptions) => LabelledFunction[];