"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppSyncAvailabilityWidget = void 0;
const appsync_availability_metric_1 = require("./appsync-availability-metric");
const availability_widget_1 = require("./availability-widget");
class AppSyncAvailabilityWidget extends availability_widget_1.AvailabilityWidget {
    /**
     * Creates an availability widget using an AppSync API availability metric
     */
    constructor(props) {
        const availability = new appsync_availability_metric_1.AppSyncAvailabilityMetric({ apiId: props.apiId, sloWindow: props.sloWindow });
        super({ availability, ...props });
    }
}
exports.AppSyncAvailabilityWidget = AppSyncAvailabilityWidget;
