"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.EnvironmentHelper = void 0;
const workbench_core_environments_1 = require("@aws/workbench-core-environments");
const setup_1 = __importDefault(require("../setup"));
class EnvironmentHelper {
    constructor() {
        const setup = setup_1.default.getSetup();
        this._awsSdk = setup.getMainAwsClient();
        this._environmentService = new workbench_core_environments_1.EnvironmentService(this._awsSdk.helpers.ddb);
    }
    async updateEnvironment(envId, newStatus) {
        const updatedValues = {
            status: newStatus
        };
        await this._environmentService.updateEnvironment(envId, updatedValues);
    }
}
exports.EnvironmentHelper = EnvironmentHelper;
//# sourceMappingURL=environmentHelper.js.map