"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppSyncLatencyWidget = void 0;
const appsync_latency_metric_1 = require("./appsync-latency-metric");
const latency_widget_1 = require("./latency-widget");
class AppSyncLatencyWidget extends latency_widget_1.LatencyWidget {
    /**
     * Creates a latency widget using an AppSync API latency metric
     */
    constructor(props) {
        const latency = new appsync_latency_metric_1.AppSyncLatencyMetric({
            apiId: props.apiId,
            sloThreshold: props.sloThreshold,
            sloWindow: props.sloWindow,
        });
        super({ latency, ...props });
    }
}
exports.AppSyncLatencyWidget = AppSyncLatencyWidget;
