"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CloudfrontLatencyWidget = void 0;
const cloudfront_latency_metric_1 = require("./cloudfront-latency-metric");
const latency_widget_1 = require("./latency-widget");
/**
 * Creates a dashboard widget for Cloudfront Distribution
 * Latency SLO
 */
class CloudfrontLatencyWidget extends latency_widget_1.LatencyWidget {
    constructor(props) {
        const latency = new cloudfront_latency_metric_1.CloudfrontLatencyMetric({
            distributionId: props.distributionId,
            sloThreshold: props.sloThreshold,
            sloWindow: props.sloWindow,
        });
        super({ latency, ...props });
    }
}
exports.CloudfrontLatencyWidget = CloudfrontLatencyWidget;
