"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CloudfrontAvailabilityWidget = void 0;
const availability_widget_1 = require("./availability-widget");
const cloudfront_availability_metric_1 = require("./cloudfront-availability-metric");
/**
 * Creates a dashboard widget for a Cloudfront Distribution
 * Availability SLO
 */
class CloudfrontAvailabilityWidget extends availability_widget_1.AvailabilityWidget {
    constructor(props) {
        const availability = new cloudfront_availability_metric_1.CloudfrontAvailabilityMetric({
            distributionId: props.distributionId,
            sloWindow: props.sloWindow,
        });
        super({ availability, ...props });
    }
}
exports.CloudfrontAvailabilityWidget = CloudfrontAvailabilityWidget;
