"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApiGatewayRequestsMetric = void 0;
const aws_cdk_lib_1 = require("aws-cdk-lib");
const _1 = require(".");
class ApiGatewayRequestsMetric extends aws_cdk_lib_1.aws_cloudwatch.Metric {
    constructor(props) {
        var _a;
        super((0, _1.apiGatewayMetricPropsToMetricProps)(props, 'Count', (_a = props.label) !== null && _a !== void 0 ? _a : 'Requests', aws_cdk_lib_1.aws_cloudwatch.Statistic.SUM));
    }
}
exports.ApiGatewayRequestsMetric = ApiGatewayRequestsMetric;
