Files
2026-05-06 18:55:16 -05:00

32 lines
952 B
TypeScript

import type { IStage } from './stage';
import type { ILogGroupRef } from '../../../interfaces/generated/aws-logs-interfaces.generated';
/**
* 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: ILogGroupRef);
/**
* Binds this destination to the CloudWatch Logs.
*/
bind(_stage: IStage): AccessLogDestinationConfig;
}