"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LambdaSearchDurationsMetric = void 0;
const aws_cdk_lib_1 = require("aws-cdk-lib");
const _1 = require(".");
class LambdaSearchDurationsMetric extends aws_cdk_lib_1.aws_cloudwatch.MathExpression {
    constructor(props) {
        var _a;
        const statistic = (_a = props.statistic) !== null && _a !== void 0 ? _a : 'p99.7';
        super((0, _1.lambdaSearchMetricPropsToMathExpressionProps)(props, 'Duration', statistic));
    }
}
exports.LambdaSearchDurationsMetric = LambdaSearchDurationsMetric;
