"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CloudfrontRequestsWidget = void 0;
const aws_cdk_lib_1 = require("aws-cdk-lib");
const metrics_1 = require("../../metrics");
class CloudfrontRequestsWidget extends aws_cdk_lib_1.aws_cloudwatch.GraphWidget {
    constructor(props) {
        const { distributionId } = props;
        super({
            title: 'Requests',
            width: 24,
            height: 4,
            left: [new metrics_1.CloudfrontRequestsMetric({ distributionId })],
        });
    }
}
exports.CloudfrontRequestsWidget = CloudfrontRequestsWidget;
