aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
24 lines (23 loc) • 620 B
TypeScript
import * as cloudwatch from '../../../aws-cloudwatch';
import { IResource } from '../../../core';
/**
* Represents a API Gateway HTTP/WebSocket API
*/
export interface IApi extends IResource {
/**
* The identifier of this API Gateway API.
* @attribute
*/
readonly apiId: string;
/**
* The default endpoint for an API
* @attribute
*/
readonly apiEndpoint: string;
/**
* Return the given named metric for this Api Gateway
*
* @default - average over 5 minutes
*/
metric(metricName: string, props?: cloudwatch.MetricOptions): cloudwatch.Metric;
}