aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
32 lines (31 loc) • 894 B
TypeScript
import { IStage } from './stage';
import { ILogGroup } from '../../../aws-logs';
/**
* Access log destination for a HttpApi Stage.
*/
export interface IAccessLogDestination {
/**
* Binds this destination to the HttpApi Stage.
*/
bind(stage: IStage): AccessLogDestinationConfig;
}
/**
* Options when binding a log destination to a HttpApi Stage.
*/
export interface AccessLogDestinationConfig {
/**
* The Amazon Resource Name (ARN) of the destination resource
*/
readonly destinationArn: string;
}
/**
* Use CloudWatch Logs as a custom access log destination for API Gateway.
*/
export declare class LogGroupLogDestination implements IAccessLogDestination {
private readonly logGroup;
constructor(logGroup: ILogGroup);
/**
* Binds this destination to the CloudWatch Logs.
*/
bind(_stage: IStage): AccessLogDestinationConfig;
}