From 8d95757da184c9a93e284582259ee4a521140a78 Mon Sep 17 00:00:00 2001 From: Noel Ferreria Date: Wed, 24 Apr 2024 15:10:31 -0700 Subject: [PATCH 01/14] try bumping versions --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ad63b1e..b8a961c 100644 --- a/package.json +++ b/package.json @@ -26,11 +26,11 @@ }, "homepage": "https://github.com/debugger24/action-aws-ssm-run-command#readme", "dependencies": { - "@actions/core": "^1.9.1", + "@actions/core": "^1.10.1", "@aws-sdk/client-ssm": "^3.154.0" }, "devDependencies": { - "@types/node": "^18.7.11", + "@types/node": "^20.12.2", "@vercel/ncc": "^0.34.0", "typescript": "^4.7.4" } From 49a5c2c8f7f679fee8186a3987d76152832bbd07 Mon Sep 17 00:00:00 2001 From: Noel Ferreria Date: Wed, 24 Apr 2024 15:19:12 -0700 Subject: [PATCH 02/14] bump versions in build workflows too --- .github/workflows/build-release.yaml | 6 +++--- .github/workflows/feature-branch.yaml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index 7c71c9e..90e81ad 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -16,12 +16,12 @@ jobs: name: Build steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - name: Install dependencies run: npm install diff --git a/.github/workflows/feature-branch.yaml b/.github/workflows/feature-branch.yaml index 4402165..43beb4c 100644 --- a/.github/workflows/feature-branch.yaml +++ b/.github/workflows/feature-branch.yaml @@ -16,12 +16,12 @@ jobs: name: Build steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - name: Install dependencies run: npm install From 29293736a016848faf604e23504f622f0fe0ffd0 Mon Sep 17 00:00:00 2001 From: Noel Ferreria Date: Wed, 24 Apr 2024 15:24:53 -0700 Subject: [PATCH 03/14] use setOutput --- dist/index.js | 636 +++++++++++++++++++++++++------------------------- 1 file changed, 318 insertions(+), 318 deletions(-) diff --git a/dist/index.js b/dist/index.js index 0bb4bea..8689f94 100644 --- a/dist/index.js +++ b/dist/index.js @@ -275,7 +275,7 @@ exports.getBooleanInput = getBooleanInput; // eslint-disable-next-line @typescript-eslint/no-explicit-any function setOutput(name, value) { process.stdout.write(os.EOL); - command_1.issueCommand('set-output', { name }, value); + exports.setOutput(name, value); } exports.setOutput = setOutput; /** @@ -43664,323 +43664,323 @@ exports.getTraversalObj = getTraversalObj; /***/ 4351: /***/ ((module) => { -/****************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global global, define, System, Reflect, Promise */ -var __extends; -var __assign; -var __rest; -var __decorate; -var __param; -var __metadata; -var __awaiter; -var __generator; -var __exportStar; -var __values; -var __read; -var __spread; -var __spreadArrays; -var __spreadArray; -var __await; -var __asyncGenerator; -var __asyncDelegator; -var __asyncValues; -var __makeTemplateObject; -var __importStar; -var __importDefault; -var __classPrivateFieldGet; -var __classPrivateFieldSet; -var __classPrivateFieldIn; -var __createBinding; -(function (factory) { - var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; - if (typeof define === "function" && define.amd) { - define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); - } - else if ( true && typeof module.exports === "object") { - factory(createExporter(root, createExporter(module.exports))); - } - else { - factory(createExporter(root)); - } - function createExporter(exports, previous) { - if (exports !== root) { - if (typeof Object.create === "function") { - Object.defineProperty(exports, "__esModule", { value: true }); - } - else { - exports.__esModule = true; - } - } - return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; - } -}) -(function (exporter) { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - - __extends = function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - - __assign = Object.assign || function (t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - - __rest = function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - }; - - __decorate = function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - - __param = function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - - __metadata = function (metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); - }; - - __awaiter = function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - - __generator = function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - }; - - __exportStar = function(m, o) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); - }; - - __createBinding = Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); - }) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }); - - __values = function (o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - }; - - __read = function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - }; - - /** @deprecated */ - __spread = function () { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; - }; - - /** @deprecated */ - __spreadArrays = function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; - }; - - __spreadArray = function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); - }; - - __await = function (v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - }; - - __asyncGenerator = function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - }; - - __asyncDelegator = function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } - }; - - __asyncValues = function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - }; - - __makeTemplateObject = function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - }; - - var __setModuleDefault = Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - }) : function(o, v) { - o["default"] = v; - }; - - __importStar = function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; - }; - - __importDefault = function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - }; - - __classPrivateFieldGet = function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); - }; - - __classPrivateFieldSet = function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; - }; - - __classPrivateFieldIn = function (state, receiver) { - if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); - return typeof state === "function" ? receiver === state : state.has(receiver); - }; - - exporter("__extends", __extends); - exporter("__assign", __assign); - exporter("__rest", __rest); - exporter("__decorate", __decorate); - exporter("__param", __param); - exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter); - exporter("__generator", __generator); - exporter("__exportStar", __exportStar); - exporter("__createBinding", __createBinding); - exporter("__values", __values); - exporter("__read", __read); - exporter("__spread", __spread); - exporter("__spreadArrays", __spreadArrays); - exporter("__spreadArray", __spreadArray); - exporter("__await", __await); - exporter("__asyncGenerator", __asyncGenerator); - exporter("__asyncDelegator", __asyncDelegator); - exporter("__asyncValues", __asyncValues); - exporter("__makeTemplateObject", __makeTemplateObject); - exporter("__importStar", __importStar); - exporter("__importDefault", __importDefault); - exporter("__classPrivateFieldGet", __classPrivateFieldGet); - exporter("__classPrivateFieldSet", __classPrivateFieldSet); - exporter("__classPrivateFieldIn", __classPrivateFieldIn); -}); +/****************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global global, define, System, Reflect, Promise */ +var __extends; +var __assign; +var __rest; +var __decorate; +var __param; +var __metadata; +var __awaiter; +var __generator; +var __exportStar; +var __values; +var __read; +var __spread; +var __spreadArrays; +var __spreadArray; +var __await; +var __asyncGenerator; +var __asyncDelegator; +var __asyncValues; +var __makeTemplateObject; +var __importStar; +var __importDefault; +var __classPrivateFieldGet; +var __classPrivateFieldSet; +var __classPrivateFieldIn; +var __createBinding; +(function (factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (typeof define === "function" && define.amd) { + define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); + } + else if ( true && typeof module.exports === "object") { + factory(createExporter(root, createExporter(module.exports))); + } + else { + factory(createExporter(root)); + } + function createExporter(exports, previous) { + if (exports !== root) { + if (typeof Object.create === "function") { + Object.defineProperty(exports, "__esModule", { value: true }); + } + else { + exports.__esModule = true; + } + } + return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; + } +}) +(function (exporter) { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + + __extends = function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + + __assign = Object.assign || function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + + __rest = function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + + __decorate = function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + + __param = function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; + + __metadata = function (metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); + }; + + __awaiter = function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + + __generator = function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + + __exportStar = function(m, o) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); + }; + + __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); + + __values = function (o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + + __read = function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + }; + + /** @deprecated */ + __spread = function () { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + + /** @deprecated */ + __spreadArrays = function () { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + + __spreadArray = function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + }; + + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + + __asyncGenerator = function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + }; + + __asyncDelegator = function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } + }; + + __asyncValues = function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + }; + + __makeTemplateObject = function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + }; + + var __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + }; + + __importStar = function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; + + __importDefault = function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; + + __classPrivateFieldGet = function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + }; + + __classPrivateFieldSet = function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; + }; + + __classPrivateFieldIn = function (state, receiver) { + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + }; + + exporter("__extends", __extends); + exporter("__assign", __assign); + exporter("__rest", __rest); + exporter("__decorate", __decorate); + exporter("__param", __param); + exporter("__metadata", __metadata); + exporter("__awaiter", __awaiter); + exporter("__generator", __generator); + exporter("__exportStar", __exportStar); + exporter("__createBinding", __createBinding); + exporter("__values", __values); + exporter("__read", __read); + exporter("__spread", __spread); + exporter("__spreadArrays", __spreadArrays); + exporter("__spreadArray", __spreadArray); + exporter("__await", __await); + exporter("__asyncGenerator", __asyncGenerator); + exporter("__asyncDelegator", __asyncDelegator); + exporter("__asyncValues", __asyncValues); + exporter("__makeTemplateObject", __makeTemplateObject); + exporter("__importStar", __importStar); + exporter("__importDefault", __importDefault); + exporter("__classPrivateFieldGet", __classPrivateFieldGet); + exporter("__classPrivateFieldSet", __classPrivateFieldSet); + exporter("__classPrivateFieldIn", __classPrivateFieldIn); +}); /***/ }), From 8bc235206b629a8ee7038605ae16b81d05ed63dc Mon Sep 17 00:00:00 2001 From: Noel Ferreria Date: Wed, 24 Apr 2024 15:30:48 -0700 Subject: [PATCH 04/14] skip verify-build --- .github/scripts/verify-build.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/scripts/verify-build.sh b/.github/scripts/verify-build.sh index 614f1ae..1d13401 100755 --- a/.github/scripts/verify-build.sh +++ b/.github/scripts/verify-build.sh @@ -3,11 +3,12 @@ # Check if build output at dist is uptodate or not # Check files updated in working dir -git diff -git status dist -s - -# Raise error if more than 1 files changed in working dir -if [[ ! -z $(git status dist -s) ]]; then - echo "Build at dist is outdated. Update build, push and try again." - exit 1 -fi +#git diff +#git status dist -s +# +## Raise error if more than 1 files changed in working dir +#if [[ ! -z $(git status dist -s) ]]; then +# echo "Build at dist is outdated. Update build, push and try again." +# exit 1 +#fi +exit 0 From e7dd18c89749f14e7268a411a9baebc05ef6d175 Mon Sep 17 00:00:00 2001 From: Noel Ferreria Date: Thu, 25 Apr 2024 02:47:15 -0700 Subject: [PATCH 05/14] updates --- .github/scripts/verify-build.sh | 15 +- action.yml | 2 +- dist/index.js | 45309 ------------------------------ package-lock.json | 54 +- 4 files changed, 44 insertions(+), 45336 deletions(-) delete mode 100644 dist/index.js diff --git a/.github/scripts/verify-build.sh b/.github/scripts/verify-build.sh index 1d13401..ae6b34f 100755 --- a/.github/scripts/verify-build.sh +++ b/.github/scripts/verify-build.sh @@ -3,12 +3,11 @@ # Check if build output at dist is uptodate or not # Check files updated in working dir -#git diff -#git status dist -s -# +git diff +git status dist -s + ## Raise error if more than 1 files changed in working dir -#if [[ ! -z $(git status dist -s) ]]; then -# echo "Build at dist is outdated. Update build, push and try again." -# exit 1 -#fi -exit 0 +if [[ ! -z $(git status dist -s) ]]; then + echo "Build at dist is outdated. Update build, push and try again." + exit 1 +fi diff --git a/action.yml b/action.yml index 50ca188..17daaae 100644 --- a/action.yml +++ b/action.yml @@ -35,5 +35,5 @@ outputs: description: "Execution command ID generated by AWS send command API" runs: - using: "node16" + using: "node20" main: "dist/index.js" diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 8689f94..0000000 --- a/dist/index.js +++ /dev/null @@ -1,45309 +0,0 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - -/***/ 87351: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.issue = exports.issueCommand = void 0; -const os = __importStar(__nccwpck_require__(22037)); -const utils_1 = __nccwpck_require__(5278); -/** - * Commands - * - * Command Format: - * ::name key=value,key=value::message - * - * Examples: - * ::warning::This is the message - * ::set-env name=MY_VAR::some value - */ -function issueCommand(command, properties, message) { - const cmd = new Command(command, properties, message); - process.stdout.write(cmd.toString() + os.EOL); -} -exports.issueCommand = issueCommand; -function issue(name, message = '') { - issueCommand(name, {}, message); -} -exports.issue = issue; -const CMD_STRING = '::'; -class Command { - constructor(command, properties, message) { - if (!command) { - command = 'missing.command'; - } - this.command = command; - this.properties = properties; - this.message = message; - } - toString() { - let cmdStr = CMD_STRING + this.command; - if (this.properties && Object.keys(this.properties).length > 0) { - cmdStr += ' '; - let first = true; - for (const key in this.properties) { - if (this.properties.hasOwnProperty(key)) { - const val = this.properties[key]; - if (val) { - if (first) { - first = false; - } - else { - cmdStr += ','; - } - cmdStr += `${key}=${escapeProperty(val)}`; - } - } - } - } - cmdStr += `${CMD_STRING}${escapeData(this.message)}`; - return cmdStr; - } -} -function escapeData(s) { - return utils_1.toCommandValue(s) - .replace(/%/g, '%25') - .replace(/\r/g, '%0D') - .replace(/\n/g, '%0A'); -} -function escapeProperty(s) { - return utils_1.toCommandValue(s) - .replace(/%/g, '%25') - .replace(/\r/g, '%0D') - .replace(/\n/g, '%0A') - .replace(/:/g, '%3A') - .replace(/,/g, '%2C'); -} -//# sourceMappingURL=command.js.map - -/***/ }), - -/***/ 42186: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; -const command_1 = __nccwpck_require__(87351); -const file_command_1 = __nccwpck_require__(717); -const utils_1 = __nccwpck_require__(5278); -const os = __importStar(__nccwpck_require__(22037)); -const path = __importStar(__nccwpck_require__(71017)); -const uuid_1 = __nccwpck_require__(75840); -const oidc_utils_1 = __nccwpck_require__(98041); -/** - * The code to exit an action - */ -var ExitCode; -(function (ExitCode) { - /** - * A code indicating that the action was successful - */ - ExitCode[ExitCode["Success"] = 0] = "Success"; - /** - * A code indicating that the action was a failure - */ - ExitCode[ExitCode["Failure"] = 1] = "Failure"; -})(ExitCode = exports.ExitCode || (exports.ExitCode = {})); -//----------------------------------------------------------------------- -// Variables -//----------------------------------------------------------------------- -/** - * Sets env variable for this action and future actions in the job - * @param name the name of the variable to set - * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify - */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function exportVariable(name, val) { - const convertedVal = utils_1.toCommandValue(val); - process.env[name] = convertedVal; - const filePath = process.env['GITHUB_ENV'] || ''; - if (filePath) { - const delimiter = `ghadelimiter_${uuid_1.v4()}`; - // These should realistically never happen, but just in case someone finds a way to exploit uuid generation let's not allow keys or values that contain the delimiter. - if (name.includes(delimiter)) { - throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`); - } - if (convertedVal.includes(delimiter)) { - throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`); - } - const commandValue = `${name}<<${delimiter}${os.EOL}${convertedVal}${os.EOL}${delimiter}`; - file_command_1.issueCommand('ENV', commandValue); - } - else { - command_1.issueCommand('set-env', { name }, convertedVal); - } -} -exports.exportVariable = exportVariable; -/** - * Registers a secret which will get masked from logs - * @param secret value of the secret - */ -function setSecret(secret) { - command_1.issueCommand('add-mask', {}, secret); -} -exports.setSecret = setSecret; -/** - * Prepends inputPath to the PATH (for this action and future actions) - * @param inputPath - */ -function addPath(inputPath) { - const filePath = process.env['GITHUB_PATH'] || ''; - if (filePath) { - file_command_1.issueCommand('PATH', inputPath); - } - else { - command_1.issueCommand('add-path', {}, inputPath); - } - process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; -} -exports.addPath = addPath; -/** - * Gets the value of an input. - * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed. - * Returns an empty string if the value is not defined. - * - * @param name name of the input to get - * @param options optional. See InputOptions. - * @returns string - */ -function getInput(name, options) { - const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || ''; - if (options && options.required && !val) { - throw new Error(`Input required and not supplied: ${name}`); - } - if (options && options.trimWhitespace === false) { - return val; - } - return val.trim(); -} -exports.getInput = getInput; -/** - * Gets the values of an multiline input. Each value is also trimmed. - * - * @param name name of the input to get - * @param options optional. See InputOptions. - * @returns string[] - * - */ -function getMultilineInput(name, options) { - const inputs = getInput(name, options) - .split('\n') - .filter(x => x !== ''); - return inputs; -} -exports.getMultilineInput = getMultilineInput; -/** - * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification. - * Support boolean input list: `true | True | TRUE | false | False | FALSE` . - * The return value is also in boolean type. - * ref: https://yaml.org/spec/1.2/spec.html#id2804923 - * - * @param name name of the input to get - * @param options optional. See InputOptions. - * @returns boolean - */ -function getBooleanInput(name, options) { - const trueValue = ['true', 'True', 'TRUE']; - const falseValue = ['false', 'False', 'FALSE']; - const val = getInput(name, options); - if (trueValue.includes(val)) - return true; - if (falseValue.includes(val)) - return false; - throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` + - `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); -} -exports.getBooleanInput = getBooleanInput; -/** - * Sets the value of an output. - * - * @param name name of the output to set - * @param value value to store. Non-string values will be converted to a string via JSON.stringify - */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function setOutput(name, value) { - process.stdout.write(os.EOL); - exports.setOutput(name, value); -} -exports.setOutput = setOutput; -/** - * Enables or disables the echoing of commands into stdout for the rest of the step. - * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set. - * - */ -function setCommandEcho(enabled) { - command_1.issue('echo', enabled ? 'on' : 'off'); -} -exports.setCommandEcho = setCommandEcho; -//----------------------------------------------------------------------- -// Results -//----------------------------------------------------------------------- -/** - * Sets the action status to failed. - * When the action exits it will be with an exit code of 1 - * @param message add error issue message - */ -function setFailed(message) { - process.exitCode = ExitCode.Failure; - error(message); -} -exports.setFailed = setFailed; -//----------------------------------------------------------------------- -// Logging Commands -//----------------------------------------------------------------------- -/** - * Gets whether Actions Step Debug is on or not - */ -function isDebug() { - return process.env['RUNNER_DEBUG'] === '1'; -} -exports.isDebug = isDebug; -/** - * Writes debug message to user log - * @param message debug message - */ -function debug(message) { - command_1.issueCommand('debug', {}, message); -} -exports.debug = debug; -/** - * Adds an error issue - * @param message error issue message. Errors will be converted to string via toString() - * @param properties optional properties to add to the annotation. - */ -function error(message, properties = {}) { - command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); -} -exports.error = error; -/** - * Adds a warning issue - * @param message warning issue message. Errors will be converted to string via toString() - * @param properties optional properties to add to the annotation. - */ -function warning(message, properties = {}) { - command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); -} -exports.warning = warning; -/** - * Adds a notice issue - * @param message notice issue message. Errors will be converted to string via toString() - * @param properties optional properties to add to the annotation. - */ -function notice(message, properties = {}) { - command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); -} -exports.notice = notice; -/** - * Writes info to log with console.log. - * @param message info message - */ -function info(message) { - process.stdout.write(message + os.EOL); -} -exports.info = info; -/** - * Begin an output group. - * - * Output until the next `groupEnd` will be foldable in this group - * - * @param name The name of the output group - */ -function startGroup(name) { - command_1.issue('group', name); -} -exports.startGroup = startGroup; -/** - * End an output group. - */ -function endGroup() { - command_1.issue('endgroup'); -} -exports.endGroup = endGroup; -/** - * Wrap an asynchronous function call in a group. - * - * Returns the same type as the function itself. - * - * @param name The name of the group - * @param fn The function to wrap in the group - */ -function group(name, fn) { - return __awaiter(this, void 0, void 0, function* () { - startGroup(name); - let result; - try { - result = yield fn(); - } - finally { - endGroup(); - } - return result; - }); -} -exports.group = group; -//----------------------------------------------------------------------- -// Wrapper action state -//----------------------------------------------------------------------- -/** - * Saves state for current action, the state can only be retrieved by this action's post job execution. - * - * @param name name of the state to store - * @param value value to store. Non-string values will be converted to a string via JSON.stringify - */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function saveState(name, value) { - command_1.issueCommand('save-state', { name }, value); -} -exports.saveState = saveState; -/** - * Gets the value of an state set by this action's main execution. - * - * @param name name of the state to get - * @returns string - */ -function getState(name) { - return process.env[`STATE_${name}`] || ''; -} -exports.getState = getState; -function getIDToken(aud) { - return __awaiter(this, void 0, void 0, function* () { - return yield oidc_utils_1.OidcClient.getIDToken(aud); - }); -} -exports.getIDToken = getIDToken; -/** - * Summary exports - */ -var summary_1 = __nccwpck_require__(81327); -Object.defineProperty(exports, "summary", ({ enumerable: true, get: function () { return summary_1.summary; } })); -/** - * @deprecated use core.summary - */ -var summary_2 = __nccwpck_require__(81327); -Object.defineProperty(exports, "markdownSummary", ({ enumerable: true, get: function () { return summary_2.markdownSummary; } })); -/** - * Path exports - */ -var path_utils_1 = __nccwpck_require__(2981); -Object.defineProperty(exports, "toPosixPath", ({ enumerable: true, get: function () { return path_utils_1.toPosixPath; } })); -Object.defineProperty(exports, "toWin32Path", ({ enumerable: true, get: function () { return path_utils_1.toWin32Path; } })); -Object.defineProperty(exports, "toPlatformPath", ({ enumerable: true, get: function () { return path_utils_1.toPlatformPath; } })); -//# sourceMappingURL=core.js.map - -/***/ }), - -/***/ 717: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -// For internal use, subject to change. -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.issueCommand = void 0; -// We use any as a valid input type -/* eslint-disable @typescript-eslint/no-explicit-any */ -const fs = __importStar(__nccwpck_require__(57147)); -const os = __importStar(__nccwpck_require__(22037)); -const utils_1 = __nccwpck_require__(5278); -function issueCommand(command, message) { - const filePath = process.env[`GITHUB_${command}`]; - if (!filePath) { - throw new Error(`Unable to find environment variable for file command ${command}`); - } - if (!fs.existsSync(filePath)) { - throw new Error(`Missing file at path: ${filePath}`); - } - fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, { - encoding: 'utf8' - }); -} -exports.issueCommand = issueCommand; -//# sourceMappingURL=file-command.js.map - -/***/ }), - -/***/ 98041: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.OidcClient = void 0; -const http_client_1 = __nccwpck_require__(96255); -const auth_1 = __nccwpck_require__(35526); -const core_1 = __nccwpck_require__(42186); -class OidcClient { - static createHttpClient(allowRetry = true, maxRetry = 10) { - const requestOptions = { - allowRetries: allowRetry, - maxRetries: maxRetry - }; - return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions); - } - static getRequestToken() { - const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN']; - if (!token) { - throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable'); - } - return token; - } - static getIDTokenUrl() { - const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL']; - if (!runtimeUrl) { - throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable'); - } - return runtimeUrl; - } - static getCall(id_token_url) { - var _a; - return __awaiter(this, void 0, void 0, function* () { - const httpclient = OidcClient.createHttpClient(); - const res = yield httpclient - .getJson(id_token_url) - .catch(error => { - throw new Error(`Failed to get ID Token. \n - Error Code : ${error.statusCode}\n - Error Message: ${error.result.message}`); - }); - const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; - if (!id_token) { - throw new Error('Response json body do not have ID Token field'); - } - return id_token; - }); - } - static getIDToken(audience) { - return __awaiter(this, void 0, void 0, function* () { - try { - // New ID Token is requested from action service - let id_token_url = OidcClient.getIDTokenUrl(); - if (audience) { - const encodedAudience = encodeURIComponent(audience); - id_token_url = `${id_token_url}&audience=${encodedAudience}`; - } - core_1.debug(`ID token url is ${id_token_url}`); - const id_token = yield OidcClient.getCall(id_token_url); - core_1.setSecret(id_token); - return id_token; - } - catch (error) { - throw new Error(`Error message: ${error.message}`); - } - }); - } -} -exports.OidcClient = OidcClient; -//# sourceMappingURL=oidc-utils.js.map - -/***/ }), - -/***/ 2981: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0; -const path = __importStar(__nccwpck_require__(71017)); -/** - * toPosixPath converts the given path to the posix form. On Windows, \\ will be - * replaced with /. - * - * @param pth. Path to transform. - * @return string Posix path. - */ -function toPosixPath(pth) { - return pth.replace(/[\\]/g, '/'); -} -exports.toPosixPath = toPosixPath; -/** - * toWin32Path converts the given path to the win32 form. On Linux, / will be - * replaced with \\. - * - * @param pth. Path to transform. - * @return string Win32 path. - */ -function toWin32Path(pth) { - return pth.replace(/[/]/g, '\\'); -} -exports.toWin32Path = toWin32Path; -/** - * toPlatformPath converts the given path to a platform-specific path. It does - * this by replacing instances of / and \ with the platform-specific path - * separator. - * - * @param pth The path to platformize. - * @return string The platform-specific path. - */ -function toPlatformPath(pth) { - return pth.replace(/[/\\]/g, path.sep); -} -exports.toPlatformPath = toPlatformPath; -//# sourceMappingURL=path-utils.js.map - -/***/ }), - -/***/ 81327: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0; -const os_1 = __nccwpck_require__(22037); -const fs_1 = __nccwpck_require__(57147); -const { access, appendFile, writeFile } = fs_1.promises; -exports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY'; -exports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary'; -class Summary { - constructor() { - this._buffer = ''; - } - /** - * Finds the summary file path from the environment, rejects if env var is not found or file does not exist - * Also checks r/w permissions. - * - * @returns step summary file path - */ - filePath() { - return __awaiter(this, void 0, void 0, function* () { - if (this._filePath) { - return this._filePath; - } - const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR]; - if (!pathFromEnv) { - throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`); - } - try { - yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK); - } - catch (_a) { - throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`); - } - this._filePath = pathFromEnv; - return this._filePath; - }); - } - /** - * Wraps content in an HTML tag, adding any HTML attributes - * - * @param {string} tag HTML tag to wrap - * @param {string | null} content content within the tag - * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add - * - * @returns {string} content wrapped in HTML element - */ - wrap(tag, content, attrs = {}) { - const htmlAttrs = Object.entries(attrs) - .map(([key, value]) => ` ${key}="${value}"`) - .join(''); - if (!content) { - return `<${tag}${htmlAttrs}>`; - } - return `<${tag}${htmlAttrs}>${content}`; - } - /** - * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default. - * - * @param {SummaryWriteOptions} [options] (optional) options for write operation - * - * @returns {Promise} summary instance - */ - write(options) { - return __awaiter(this, void 0, void 0, function* () { - const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite); - const filePath = yield this.filePath(); - const writeFunc = overwrite ? writeFile : appendFile; - yield writeFunc(filePath, this._buffer, { encoding: 'utf8' }); - return this.emptyBuffer(); - }); - } - /** - * Clears the summary buffer and wipes the summary file - * - * @returns {Summary} summary instance - */ - clear() { - return __awaiter(this, void 0, void 0, function* () { - return this.emptyBuffer().write({ overwrite: true }); - }); - } - /** - * Returns the current summary buffer as a string - * - * @returns {string} string of summary buffer - */ - stringify() { - return this._buffer; - } - /** - * If the summary buffer is empty - * - * @returns {boolen} true if the buffer is empty - */ - isEmptyBuffer() { - return this._buffer.length === 0; - } - /** - * Resets the summary buffer without writing to summary file - * - * @returns {Summary} summary instance - */ - emptyBuffer() { - this._buffer = ''; - return this; - } - /** - * Adds raw text to the summary buffer - * - * @param {string} text content to add - * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false) - * - * @returns {Summary} summary instance - */ - addRaw(text, addEOL = false) { - this._buffer += text; - return addEOL ? this.addEOL() : this; - } - /** - * Adds the operating system-specific end-of-line marker to the buffer - * - * @returns {Summary} summary instance - */ - addEOL() { - return this.addRaw(os_1.EOL); - } - /** - * Adds an HTML codeblock to the summary buffer - * - * @param {string} code content to render within fenced code block - * @param {string} lang (optional) language to syntax highlight code - * - * @returns {Summary} summary instance - */ - addCodeBlock(code, lang) { - const attrs = Object.assign({}, (lang && { lang })); - const element = this.wrap('pre', this.wrap('code', code), attrs); - return this.addRaw(element).addEOL(); - } - /** - * Adds an HTML list to the summary buffer - * - * @param {string[]} items list of items to render - * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false) - * - * @returns {Summary} summary instance - */ - addList(items, ordered = false) { - const tag = ordered ? 'ol' : 'ul'; - const listItems = items.map(item => this.wrap('li', item)).join(''); - const element = this.wrap(tag, listItems); - return this.addRaw(element).addEOL(); - } - /** - * Adds an HTML table to the summary buffer - * - * @param {SummaryTableCell[]} rows table rows - * - * @returns {Summary} summary instance - */ - addTable(rows) { - const tableBody = rows - .map(row => { - const cells = row - .map(cell => { - if (typeof cell === 'string') { - return this.wrap('td', cell); - } - const { header, data, colspan, rowspan } = cell; - const tag = header ? 'th' : 'td'; - const attrs = Object.assign(Object.assign({}, (colspan && { colspan })), (rowspan && { rowspan })); - return this.wrap(tag, data, attrs); - }) - .join(''); - return this.wrap('tr', cells); - }) - .join(''); - const element = this.wrap('table', tableBody); - return this.addRaw(element).addEOL(); - } - /** - * Adds a collapsable HTML details element to the summary buffer - * - * @param {string} label text for the closed state - * @param {string} content collapsable content - * - * @returns {Summary} summary instance - */ - addDetails(label, content) { - const element = this.wrap('details', this.wrap('summary', label) + content); - return this.addRaw(element).addEOL(); - } - /** - * Adds an HTML image tag to the summary buffer - * - * @param {string} src path to the image you to embed - * @param {string} alt text description of the image - * @param {SummaryImageOptions} options (optional) addition image attributes - * - * @returns {Summary} summary instance - */ - addImage(src, alt, options) { - const { width, height } = options || {}; - const attrs = Object.assign(Object.assign({}, (width && { width })), (height && { height })); - const element = this.wrap('img', null, Object.assign({ src, alt }, attrs)); - return this.addRaw(element).addEOL(); - } - /** - * Adds an HTML section heading element - * - * @param {string} text heading text - * @param {number | string} [level=1] (optional) the heading level, default: 1 - * - * @returns {Summary} summary instance - */ - addHeading(text, level) { - const tag = `h${level}`; - const allowedTag = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(tag) - ? tag - : 'h1'; - const element = this.wrap(allowedTag, text); - return this.addRaw(element).addEOL(); - } - /** - * Adds an HTML thematic break (
) to the summary buffer - * - * @returns {Summary} summary instance - */ - addSeparator() { - const element = this.wrap('hr', null); - return this.addRaw(element).addEOL(); - } - /** - * Adds an HTML line break (
) to the summary buffer - * - * @returns {Summary} summary instance - */ - addBreak() { - const element = this.wrap('br', null); - return this.addRaw(element).addEOL(); - } - /** - * Adds an HTML blockquote to the summary buffer - * - * @param {string} text quote text - * @param {string} cite (optional) citation url - * - * @returns {Summary} summary instance - */ - addQuote(text, cite) { - const attrs = Object.assign({}, (cite && { cite })); - const element = this.wrap('blockquote', text, attrs); - return this.addRaw(element).addEOL(); - } - /** - * Adds an HTML anchor tag to the summary buffer - * - * @param {string} text link text/content - * @param {string} href hyperlink - * - * @returns {Summary} summary instance - */ - addLink(text, href) { - const element = this.wrap('a', text, { href }); - return this.addRaw(element).addEOL(); - } -} -const _summary = new Summary(); -/** - * @deprecated use `core.summary` - */ -exports.markdownSummary = _summary; -exports.summary = _summary; -//# sourceMappingURL=summary.js.map - -/***/ }), - -/***/ 5278: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -// We use any as a valid input type -/* eslint-disable @typescript-eslint/no-explicit-any */ -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.toCommandProperties = exports.toCommandValue = void 0; -/** - * Sanitizes an input into a string so it can be passed into issueCommand safely - * @param input input to sanitize into a string - */ -function toCommandValue(input) { - if (input === null || input === undefined) { - return ''; - } - else if (typeof input === 'string' || input instanceof String) { - return input; - } - return JSON.stringify(input); -} -exports.toCommandValue = toCommandValue; -/** - * - * @param annotationProperties - * @returns The command properties to send with the actual annotation command - * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646 - */ -function toCommandProperties(annotationProperties) { - if (!Object.keys(annotationProperties).length) { - return {}; - } - return { - title: annotationProperties.title, - file: annotationProperties.file, - line: annotationProperties.startLine, - endLine: annotationProperties.endLine, - col: annotationProperties.startColumn, - endColumn: annotationProperties.endColumn - }; -} -exports.toCommandProperties = toCommandProperties; -//# sourceMappingURL=utils.js.map - -/***/ }), - -/***/ 35526: -/***/ (function(__unused_webpack_module, exports) { - -"use strict"; - -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PersonalAccessTokenCredentialHandler = exports.BearerCredentialHandler = exports.BasicCredentialHandler = void 0; -class BasicCredentialHandler { - constructor(username, password) { - this.username = username; - this.password = password; - } - prepareRequest(options) { - if (!options.headers) { - throw Error('The request has no headers'); - } - options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`; - } - // This handler cannot handle 401 - canHandleAuthentication() { - return false; - } - handleAuthentication() { - return __awaiter(this, void 0, void 0, function* () { - throw new Error('not implemented'); - }); - } -} -exports.BasicCredentialHandler = BasicCredentialHandler; -class BearerCredentialHandler { - constructor(token) { - this.token = token; - } - // currently implements pre-authorization - // TODO: support preAuth = false where it hooks on 401 - prepareRequest(options) { - if (!options.headers) { - throw Error('The request has no headers'); - } - options.headers['Authorization'] = `Bearer ${this.token}`; - } - // This handler cannot handle 401 - canHandleAuthentication() { - return false; - } - handleAuthentication() { - return __awaiter(this, void 0, void 0, function* () { - throw new Error('not implemented'); - }); - } -} -exports.BearerCredentialHandler = BearerCredentialHandler; -class PersonalAccessTokenCredentialHandler { - constructor(token) { - this.token = token; - } - // currently implements pre-authorization - // TODO: support preAuth = false where it hooks on 401 - prepareRequest(options) { - if (!options.headers) { - throw Error('The request has no headers'); - } - options.headers['Authorization'] = `Basic ${Buffer.from(`PAT:${this.token}`).toString('base64')}`; - } - // This handler cannot handle 401 - canHandleAuthentication() { - return false; - } - handleAuthentication() { - return __awaiter(this, void 0, void 0, function* () { - throw new Error('not implemented'); - }); - } -} -exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; -//# sourceMappingURL=auth.js.map - -/***/ }), - -/***/ 96255: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -/* eslint-disable @typescript-eslint/no-explicit-any */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0; -const http = __importStar(__nccwpck_require__(13685)); -const https = __importStar(__nccwpck_require__(95687)); -const pm = __importStar(__nccwpck_require__(19835)); -const tunnel = __importStar(__nccwpck_require__(74294)); -var HttpCodes; -(function (HttpCodes) { - HttpCodes[HttpCodes["OK"] = 200] = "OK"; - HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices"; - HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently"; - HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved"; - HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther"; - HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified"; - HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy"; - HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy"; - HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect"; - HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect"; - HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest"; - HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized"; - HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired"; - HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden"; - HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound"; - HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed"; - HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable"; - HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired"; - HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout"; - HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict"; - HttpCodes[HttpCodes["Gone"] = 410] = "Gone"; - HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests"; - HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError"; - HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented"; - HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway"; - HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable"; - HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout"; -})(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {})); -var Headers; -(function (Headers) { - Headers["Accept"] = "accept"; - Headers["ContentType"] = "content-type"; -})(Headers = exports.Headers || (exports.Headers = {})); -var MediaTypes; -(function (MediaTypes) { - MediaTypes["ApplicationJson"] = "application/json"; -})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {})); -/** - * Returns the proxy URL, depending upon the supplied url and proxy environment variables. - * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com - */ -function getProxyUrl(serverUrl) { - const proxyUrl = pm.getProxyUrl(new URL(serverUrl)); - return proxyUrl ? proxyUrl.href : ''; -} -exports.getProxyUrl = getProxyUrl; -const HttpRedirectCodes = [ - HttpCodes.MovedPermanently, - HttpCodes.ResourceMoved, - HttpCodes.SeeOther, - HttpCodes.TemporaryRedirect, - HttpCodes.PermanentRedirect -]; -const HttpResponseRetryCodes = [ - HttpCodes.BadGateway, - HttpCodes.ServiceUnavailable, - HttpCodes.GatewayTimeout -]; -const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD']; -const ExponentialBackoffCeiling = 10; -const ExponentialBackoffTimeSlice = 5; -class HttpClientError extends Error { - constructor(message, statusCode) { - super(message); - this.name = 'HttpClientError'; - this.statusCode = statusCode; - Object.setPrototypeOf(this, HttpClientError.prototype); - } -} -exports.HttpClientError = HttpClientError; -class HttpClientResponse { - constructor(message) { - this.message = message; - } - readBody() { - return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { - let output = Buffer.alloc(0); - this.message.on('data', (chunk) => { - output = Buffer.concat([output, chunk]); - }); - this.message.on('end', () => { - resolve(output.toString()); - }); - })); - }); - } -} -exports.HttpClientResponse = HttpClientResponse; -function isHttps(requestUrl) { - const parsedUrl = new URL(requestUrl); - return parsedUrl.protocol === 'https:'; -} -exports.isHttps = isHttps; -class HttpClient { - constructor(userAgent, handlers, requestOptions) { - this._ignoreSslError = false; - this._allowRedirects = true; - this._allowRedirectDowngrade = false; - this._maxRedirects = 50; - this._allowRetries = false; - this._maxRetries = 1; - this._keepAlive = false; - this._disposed = false; - this.userAgent = userAgent; - this.handlers = handlers || []; - this.requestOptions = requestOptions; - if (requestOptions) { - if (requestOptions.ignoreSslError != null) { - this._ignoreSslError = requestOptions.ignoreSslError; - } - this._socketTimeout = requestOptions.socketTimeout; - if (requestOptions.allowRedirects != null) { - this._allowRedirects = requestOptions.allowRedirects; - } - if (requestOptions.allowRedirectDowngrade != null) { - this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade; - } - if (requestOptions.maxRedirects != null) { - this._maxRedirects = Math.max(requestOptions.maxRedirects, 0); - } - if (requestOptions.keepAlive != null) { - this._keepAlive = requestOptions.keepAlive; - } - if (requestOptions.allowRetries != null) { - this._allowRetries = requestOptions.allowRetries; - } - if (requestOptions.maxRetries != null) { - this._maxRetries = requestOptions.maxRetries; - } - } - } - options(requestUrl, additionalHeaders) { - return __awaiter(this, void 0, void 0, function* () { - return this.request('OPTIONS', requestUrl, null, additionalHeaders || {}); - }); - } - get(requestUrl, additionalHeaders) { - return __awaiter(this, void 0, void 0, function* () { - return this.request('GET', requestUrl, null, additionalHeaders || {}); - }); - } - del(requestUrl, additionalHeaders) { - return __awaiter(this, void 0, void 0, function* () { - return this.request('DELETE', requestUrl, null, additionalHeaders || {}); - }); - } - post(requestUrl, data, additionalHeaders) { - return __awaiter(this, void 0, void 0, function* () { - return this.request('POST', requestUrl, data, additionalHeaders || {}); - }); - } - patch(requestUrl, data, additionalHeaders) { - return __awaiter(this, void 0, void 0, function* () { - return this.request('PATCH', requestUrl, data, additionalHeaders || {}); - }); - } - put(requestUrl, data, additionalHeaders) { - return __awaiter(this, void 0, void 0, function* () { - return this.request('PUT', requestUrl, data, additionalHeaders || {}); - }); - } - head(requestUrl, additionalHeaders) { - return __awaiter(this, void 0, void 0, function* () { - return this.request('HEAD', requestUrl, null, additionalHeaders || {}); - }); - } - sendStream(verb, requestUrl, stream, additionalHeaders) { - return __awaiter(this, void 0, void 0, function* () { - return this.request(verb, requestUrl, stream, additionalHeaders); - }); - } - /** - * Gets a typed object from an endpoint - * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise - */ - getJson(requestUrl, additionalHeaders = {}) { - return __awaiter(this, void 0, void 0, function* () { - additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); - const res = yield this.get(requestUrl, additionalHeaders); - return this._processResponse(res, this.requestOptions); - }); - } - postJson(requestUrl, obj, additionalHeaders = {}) { - return __awaiter(this, void 0, void 0, function* () { - const data = JSON.stringify(obj, null, 2); - additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); - additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); - const res = yield this.post(requestUrl, data, additionalHeaders); - return this._processResponse(res, this.requestOptions); - }); - } - putJson(requestUrl, obj, additionalHeaders = {}) { - return __awaiter(this, void 0, void 0, function* () { - const data = JSON.stringify(obj, null, 2); - additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); - additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); - const res = yield this.put(requestUrl, data, additionalHeaders); - return this._processResponse(res, this.requestOptions); - }); - } - patchJson(requestUrl, obj, additionalHeaders = {}) { - return __awaiter(this, void 0, void 0, function* () { - const data = JSON.stringify(obj, null, 2); - additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); - additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); - const res = yield this.patch(requestUrl, data, additionalHeaders); - return this._processResponse(res, this.requestOptions); - }); - } - /** - * Makes a raw http request. - * All other methods such as get, post, patch, and request ultimately call this. - * Prefer get, del, post and patch - */ - request(verb, requestUrl, data, headers) { - return __awaiter(this, void 0, void 0, function* () { - if (this._disposed) { - throw new Error('Client has already been disposed.'); - } - const parsedUrl = new URL(requestUrl); - let info = this._prepareRequest(verb, parsedUrl, headers); - // Only perform retries on reads since writes may not be idempotent. - const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb) - ? this._maxRetries + 1 - : 1; - let numTries = 0; - let response; - do { - response = yield this.requestRaw(info, data); - // Check if it's an authentication challenge - if (response && - response.message && - response.message.statusCode === HttpCodes.Unauthorized) { - let authenticationHandler; - for (const handler of this.handlers) { - if (handler.canHandleAuthentication(response)) { - authenticationHandler = handler; - break; - } - } - if (authenticationHandler) { - return authenticationHandler.handleAuthentication(this, info, data); - } - else { - // We have received an unauthorized response but have no handlers to handle it. - // Let the response return to the caller. - return response; - } - } - let redirectsRemaining = this._maxRedirects; - while (response.message.statusCode && - HttpRedirectCodes.includes(response.message.statusCode) && - this._allowRedirects && - redirectsRemaining > 0) { - const redirectUrl = response.message.headers['location']; - if (!redirectUrl) { - // if there's no location to redirect to, we won't - break; - } - const parsedRedirectUrl = new URL(redirectUrl); - if (parsedUrl.protocol === 'https:' && - parsedUrl.protocol !== parsedRedirectUrl.protocol && - !this._allowRedirectDowngrade) { - throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.'); - } - // we need to finish reading the response before reassigning response - // which will leak the open socket. - yield response.readBody(); - // strip authorization header if redirected to a different hostname - if (parsedRedirectUrl.hostname !== parsedUrl.hostname) { - for (const header in headers) { - // header names are case insensitive - if (header.toLowerCase() === 'authorization') { - delete headers[header]; - } - } - } - // let's make the request with the new redirectUrl - info = this._prepareRequest(verb, parsedRedirectUrl, headers); - response = yield this.requestRaw(info, data); - redirectsRemaining--; - } - if (!response.message.statusCode || - !HttpResponseRetryCodes.includes(response.message.statusCode)) { - // If not a retry code, return immediately instead of retrying - return response; - } - numTries += 1; - if (numTries < maxTries) { - yield response.readBody(); - yield this._performExponentialBackoff(numTries); - } - } while (numTries < maxTries); - return response; - }); - } - /** - * Needs to be called if keepAlive is set to true in request options. - */ - dispose() { - if (this._agent) { - this._agent.destroy(); - } - this._disposed = true; - } - /** - * Raw request. - * @param info - * @param data - */ - requestRaw(info, data) { - return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve, reject) => { - function callbackForResult(err, res) { - if (err) { - reject(err); - } - else if (!res) { - // If `err` is not passed, then `res` must be passed. - reject(new Error('Unknown error')); - } - else { - resolve(res); - } - } - this.requestRawWithCallback(info, data, callbackForResult); - }); - }); - } - /** - * Raw request with callback. - * @param info - * @param data - * @param onResult - */ - requestRawWithCallback(info, data, onResult) { - if (typeof data === 'string') { - if (!info.options.headers) { - info.options.headers = {}; - } - info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8'); - } - let callbackCalled = false; - function handleResult(err, res) { - if (!callbackCalled) { - callbackCalled = true; - onResult(err, res); - } - } - const req = info.httpModule.request(info.options, (msg) => { - const res = new HttpClientResponse(msg); - handleResult(undefined, res); - }); - let socket; - req.on('socket', sock => { - socket = sock; - }); - // If we ever get disconnected, we want the socket to timeout eventually - req.setTimeout(this._socketTimeout || 3 * 60000, () => { - if (socket) { - socket.end(); - } - handleResult(new Error(`Request timeout: ${info.options.path}`)); - }); - req.on('error', function (err) { - // err has statusCode property - // res should have headers - handleResult(err); - }); - if (data && typeof data === 'string') { - req.write(data, 'utf8'); - } - if (data && typeof data !== 'string') { - data.on('close', function () { - req.end(); - }); - data.pipe(req); - } - else { - req.end(); - } - } - /** - * Gets an http agent. This function is useful when you need an http agent that handles - * routing through a proxy server - depending upon the url and proxy environment variables. - * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com - */ - getAgent(serverUrl) { - const parsedUrl = new URL(serverUrl); - return this._getAgent(parsedUrl); - } - _prepareRequest(method, requestUrl, headers) { - const info = {}; - info.parsedUrl = requestUrl; - const usingSsl = info.parsedUrl.protocol === 'https:'; - info.httpModule = usingSsl ? https : http; - const defaultPort = usingSsl ? 443 : 80; - info.options = {}; - info.options.host = info.parsedUrl.hostname; - info.options.port = info.parsedUrl.port - ? parseInt(info.parsedUrl.port) - : defaultPort; - info.options.path = - (info.parsedUrl.pathname || '') + (info.parsedUrl.search || ''); - info.options.method = method; - info.options.headers = this._mergeHeaders(headers); - if (this.userAgent != null) { - info.options.headers['user-agent'] = this.userAgent; - } - info.options.agent = this._getAgent(info.parsedUrl); - // gives handlers an opportunity to participate - if (this.handlers) { - for (const handler of this.handlers) { - handler.prepareRequest(info.options); - } - } - return info; - } - _mergeHeaders(headers) { - if (this.requestOptions && this.requestOptions.headers) { - return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {})); - } - return lowercaseKeys(headers || {}); - } - _getExistingOrDefaultHeader(additionalHeaders, header, _default) { - let clientHeader; - if (this.requestOptions && this.requestOptions.headers) { - clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; - } - return additionalHeaders[header] || clientHeader || _default; - } - _getAgent(parsedUrl) { - let agent; - const proxyUrl = pm.getProxyUrl(parsedUrl); - const useProxy = proxyUrl && proxyUrl.hostname; - if (this._keepAlive && useProxy) { - agent = this._proxyAgent; - } - if (this._keepAlive && !useProxy) { - agent = this._agent; - } - // if agent is already assigned use that agent. - if (agent) { - return agent; - } - const usingSsl = parsedUrl.protocol === 'https:'; - let maxSockets = 100; - if (this.requestOptions) { - maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets; - } - // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis. - if (proxyUrl && proxyUrl.hostname) { - const agentOptions = { - maxSockets, - keepAlive: this._keepAlive, - proxy: Object.assign(Object.assign({}, ((proxyUrl.username || proxyUrl.password) && { - proxyAuth: `${proxyUrl.username}:${proxyUrl.password}` - })), { host: proxyUrl.hostname, port: proxyUrl.port }) - }; - let tunnelAgent; - const overHttps = proxyUrl.protocol === 'https:'; - if (usingSsl) { - tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp; - } - else { - tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp; - } - agent = tunnelAgent(agentOptions); - this._proxyAgent = agent; - } - // if reusing agent across request and tunneling agent isn't assigned create a new agent - if (this._keepAlive && !agent) { - const options = { keepAlive: this._keepAlive, maxSockets }; - agent = usingSsl ? new https.Agent(options) : new http.Agent(options); - this._agent = agent; - } - // if not using private agent and tunnel agent isn't setup then use global agent - if (!agent) { - agent = usingSsl ? https.globalAgent : http.globalAgent; - } - if (usingSsl && this._ignoreSslError) { - // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process - // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options - // we have to cast it to any and change it directly - agent.options = Object.assign(agent.options || {}, { - rejectUnauthorized: false - }); - } - return agent; - } - _performExponentialBackoff(retryNumber) { - return __awaiter(this, void 0, void 0, function* () { - retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); - const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); - return new Promise(resolve => setTimeout(() => resolve(), ms)); - }); - } - _processResponse(res, options) { - return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - const statusCode = res.message.statusCode || 0; - const response = { - statusCode, - result: null, - headers: {} - }; - // not found leads to null obj returned - if (statusCode === HttpCodes.NotFound) { - resolve(response); - } - // get the result from the body - function dateTimeDeserializer(key, value) { - if (typeof value === 'string') { - const a = new Date(value); - if (!isNaN(a.valueOf())) { - return a; - } - } - return value; - } - let obj; - let contents; - try { - contents = yield res.readBody(); - if (contents && contents.length > 0) { - if (options && options.deserializeDates) { - obj = JSON.parse(contents, dateTimeDeserializer); - } - else { - obj = JSON.parse(contents); - } - response.result = obj; - } - response.headers = res.message.headers; - } - catch (err) { - // Invalid resource (contents not json); leaving result obj null - } - // note that 3xx redirects are handled by the http layer. - if (statusCode > 299) { - let msg; - // if exception/error in body, attempt to get better error - if (obj && obj.message) { - msg = obj.message; - } - else if (contents && contents.length > 0) { - // it may be the case that the exception is in the body message as string - msg = contents; - } - else { - msg = `Failed request: (${statusCode})`; - } - const err = new HttpClientError(msg, statusCode); - err.result = response.result; - reject(err); - } - else { - resolve(response); - } - })); - }); - } -} -exports.HttpClient = HttpClient; -const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {}); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ 19835: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.checkBypass = exports.getProxyUrl = void 0; -function getProxyUrl(reqUrl) { - const usingSsl = reqUrl.protocol === 'https:'; - if (checkBypass(reqUrl)) { - return undefined; - } - const proxyVar = (() => { - if (usingSsl) { - return process.env['https_proxy'] || process.env['HTTPS_PROXY']; - } - else { - return process.env['http_proxy'] || process.env['HTTP_PROXY']; - } - })(); - if (proxyVar) { - return new URL(proxyVar); - } - else { - return undefined; - } -} -exports.getProxyUrl = getProxyUrl; -function checkBypass(reqUrl) { - if (!reqUrl.hostname) { - return false; - } - const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || ''; - if (!noProxy) { - return false; - } - // Determine the request port - let reqPort; - if (reqUrl.port) { - reqPort = Number(reqUrl.port); - } - else if (reqUrl.protocol === 'http:') { - reqPort = 80; - } - else if (reqUrl.protocol === 'https:') { - reqPort = 443; - } - // Format the request hostname and hostname with port - const upperReqHosts = [reqUrl.hostname.toUpperCase()]; - if (typeof reqPort === 'number') { - upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); - } - // Compare request host against noproxy - for (const upperNoProxyItem of noProxy - .split(',') - .map(x => x.trim().toUpperCase()) - .filter(x => x)) { - if (upperReqHosts.some(x => x === upperNoProxyItem)) { - return true; - } - } - return false; -} -exports.checkBypass = checkBypass; -//# sourceMappingURL=proxy.js.map - -/***/ }), - -/***/ 24046: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SSM = void 0; -const AddTagsToResourceCommand_1 = __nccwpck_require__(16548); -const AssociateOpsItemRelatedItemCommand_1 = __nccwpck_require__(80864); -const CancelCommandCommand_1 = __nccwpck_require__(43654); -const CancelMaintenanceWindowExecutionCommand_1 = __nccwpck_require__(16795); -const CreateActivationCommand_1 = __nccwpck_require__(93455); -const CreateAssociationBatchCommand_1 = __nccwpck_require__(22615); -const CreateAssociationCommand_1 = __nccwpck_require__(87570); -const CreateDocumentCommand_1 = __nccwpck_require__(38888); -const CreateMaintenanceWindowCommand_1 = __nccwpck_require__(84735); -const CreateOpsItemCommand_1 = __nccwpck_require__(17634); -const CreateOpsMetadataCommand_1 = __nccwpck_require__(85963); -const CreatePatchBaselineCommand_1 = __nccwpck_require__(68004); -const CreateResourceDataSyncCommand_1 = __nccwpck_require__(30345); -const DeleteActivationCommand_1 = __nccwpck_require__(67594); -const DeleteAssociationCommand_1 = __nccwpck_require__(5292); -const DeleteDocumentCommand_1 = __nccwpck_require__(91242); -const DeleteInventoryCommand_1 = __nccwpck_require__(47241); -const DeleteMaintenanceWindowCommand_1 = __nccwpck_require__(5695); -const DeleteOpsMetadataCommand_1 = __nccwpck_require__(35235); -const DeleteParameterCommand_1 = __nccwpck_require__(74261); -const DeleteParametersCommand_1 = __nccwpck_require__(35322); -const DeletePatchBaselineCommand_1 = __nccwpck_require__(5734); -const DeleteResourceDataSyncCommand_1 = __nccwpck_require__(4505); -const DeregisterManagedInstanceCommand_1 = __nccwpck_require__(16721); -const DeregisterPatchBaselineForPatchGroupCommand_1 = __nccwpck_require__(11889); -const DeregisterTargetFromMaintenanceWindowCommand_1 = __nccwpck_require__(86346); -const DeregisterTaskFromMaintenanceWindowCommand_1 = __nccwpck_require__(98087); -const DescribeActivationsCommand_1 = __nccwpck_require__(99158); -const DescribeAssociationCommand_1 = __nccwpck_require__(55442); -const DescribeAssociationExecutionsCommand_1 = __nccwpck_require__(3119); -const DescribeAssociationExecutionTargetsCommand_1 = __nccwpck_require__(89459); -const DescribeAutomationExecutionsCommand_1 = __nccwpck_require__(70342); -const DescribeAutomationStepExecutionsCommand_1 = __nccwpck_require__(50626); -const DescribeAvailablePatchesCommand_1 = __nccwpck_require__(73378); -const DescribeDocumentCommand_1 = __nccwpck_require__(4165); -const DescribeDocumentPermissionCommand_1 = __nccwpck_require__(35531); -const DescribeEffectiveInstanceAssociationsCommand_1 = __nccwpck_require__(48907); -const DescribeEffectivePatchesForPatchBaselineCommand_1 = __nccwpck_require__(11074); -const DescribeInstanceAssociationsStatusCommand_1 = __nccwpck_require__(50546); -const DescribeInstanceInformationCommand_1 = __nccwpck_require__(72297); -const DescribeInstancePatchesCommand_1 = __nccwpck_require__(45672); -const DescribeInstancePatchStatesCommand_1 = __nccwpck_require__(96994); -const DescribeInstancePatchStatesForPatchGroupCommand_1 = __nccwpck_require__(50028); -const DescribeInventoryDeletionsCommand_1 = __nccwpck_require__(51289); -const DescribeMaintenanceWindowExecutionsCommand_1 = __nccwpck_require__(66016); -const DescribeMaintenanceWindowExecutionTaskInvocationsCommand_1 = __nccwpck_require__(71741); -const DescribeMaintenanceWindowExecutionTasksCommand_1 = __nccwpck_require__(19495); -const DescribeMaintenanceWindowScheduleCommand_1 = __nccwpck_require__(83598); -const DescribeMaintenanceWindowsCommand_1 = __nccwpck_require__(99482); -const DescribeMaintenanceWindowsForTargetCommand_1 = __nccwpck_require__(41025); -const DescribeMaintenanceWindowTargetsCommand_1 = __nccwpck_require__(78871); -const DescribeMaintenanceWindowTasksCommand_1 = __nccwpck_require__(26677); -const DescribeOpsItemsCommand_1 = __nccwpck_require__(76177); -const DescribeParametersCommand_1 = __nccwpck_require__(45975); -const DescribePatchBaselinesCommand_1 = __nccwpck_require__(83186); -const DescribePatchGroupsCommand_1 = __nccwpck_require__(45192); -const DescribePatchGroupStateCommand_1 = __nccwpck_require__(1655); -const DescribePatchPropertiesCommand_1 = __nccwpck_require__(36964); -const DescribeSessionsCommand_1 = __nccwpck_require__(43787); -const DisassociateOpsItemRelatedItemCommand_1 = __nccwpck_require__(65098); -const GetAutomationExecutionCommand_1 = __nccwpck_require__(29240); -const GetCalendarStateCommand_1 = __nccwpck_require__(68121); -const GetCommandInvocationCommand_1 = __nccwpck_require__(93305); -const GetConnectionStatusCommand_1 = __nccwpck_require__(99654); -const GetDefaultPatchBaselineCommand_1 = __nccwpck_require__(57498); -const GetDeployablePatchSnapshotForInstanceCommand_1 = __nccwpck_require__(92944); -const GetDocumentCommand_1 = __nccwpck_require__(6408); -const GetInventoryCommand_1 = __nccwpck_require__(93690); -const GetInventorySchemaCommand_1 = __nccwpck_require__(88675); -const GetMaintenanceWindowCommand_1 = __nccwpck_require__(49424); -const GetMaintenanceWindowExecutionCommand_1 = __nccwpck_require__(52486); -const GetMaintenanceWindowExecutionTaskCommand_1 = __nccwpck_require__(6244); -const GetMaintenanceWindowExecutionTaskInvocationCommand_1 = __nccwpck_require__(94578); -const GetMaintenanceWindowTaskCommand_1 = __nccwpck_require__(12083); -const GetOpsItemCommand_1 = __nccwpck_require__(46293); -const GetOpsMetadataCommand_1 = __nccwpck_require__(65672); -const GetOpsSummaryCommand_1 = __nccwpck_require__(19458); -const GetParameterCommand_1 = __nccwpck_require__(53134); -const GetParameterHistoryCommand_1 = __nccwpck_require__(30108); -const GetParametersByPathCommand_1 = __nccwpck_require__(22164); -const GetParametersCommand_1 = __nccwpck_require__(43487); -const GetPatchBaselineCommand_1 = __nccwpck_require__(35873); -const GetPatchBaselineForPatchGroupCommand_1 = __nccwpck_require__(95382); -const GetServiceSettingCommand_1 = __nccwpck_require__(36289); -const LabelParameterVersionCommand_1 = __nccwpck_require__(54351); -const ListAssociationsCommand_1 = __nccwpck_require__(29074); -const ListAssociationVersionsCommand_1 = __nccwpck_require__(40838); -const ListCommandInvocationsCommand_1 = __nccwpck_require__(27002); -const ListCommandsCommand_1 = __nccwpck_require__(56883); -const ListComplianceItemsCommand_1 = __nccwpck_require__(29771); -const ListComplianceSummariesCommand_1 = __nccwpck_require__(93331); -const ListDocumentMetadataHistoryCommand_1 = __nccwpck_require__(41758); -const ListDocumentsCommand_1 = __nccwpck_require__(37018); -const ListDocumentVersionsCommand_1 = __nccwpck_require__(41473); -const ListInventoryEntriesCommand_1 = __nccwpck_require__(15943); -const ListOpsItemEventsCommand_1 = __nccwpck_require__(23927); -const ListOpsItemRelatedItemsCommand_1 = __nccwpck_require__(95342); -const ListOpsMetadataCommand_1 = __nccwpck_require__(93770); -const ListResourceComplianceSummariesCommand_1 = __nccwpck_require__(25219); -const ListResourceDataSyncCommand_1 = __nccwpck_require__(30788); -const ListTagsForResourceCommand_1 = __nccwpck_require__(99655); -const ModifyDocumentPermissionCommand_1 = __nccwpck_require__(3863); -const PutComplianceItemsCommand_1 = __nccwpck_require__(5777); -const PutInventoryCommand_1 = __nccwpck_require__(61374); -const PutParameterCommand_1 = __nccwpck_require__(53056); -const RegisterDefaultPatchBaselineCommand_1 = __nccwpck_require__(51698); -const RegisterPatchBaselineForPatchGroupCommand_1 = __nccwpck_require__(40858); -const RegisterTargetWithMaintenanceWindowCommand_1 = __nccwpck_require__(99894); -const RegisterTaskWithMaintenanceWindowCommand_1 = __nccwpck_require__(15375); -const RemoveTagsFromResourceCommand_1 = __nccwpck_require__(52892); -const ResetServiceSettingCommand_1 = __nccwpck_require__(80327); -const ResumeSessionCommand_1 = __nccwpck_require__(25508); -const SendAutomationSignalCommand_1 = __nccwpck_require__(55185); -const SendCommandCommand_1 = __nccwpck_require__(63552); -const StartAssociationsOnceCommand_1 = __nccwpck_require__(52233); -const StartAutomationExecutionCommand_1 = __nccwpck_require__(81295); -const StartChangeRequestExecutionCommand_1 = __nccwpck_require__(21965); -const StartSessionCommand_1 = __nccwpck_require__(1829); -const StopAutomationExecutionCommand_1 = __nccwpck_require__(11430); -const TerminateSessionCommand_1 = __nccwpck_require__(49199); -const UnlabelParameterVersionCommand_1 = __nccwpck_require__(24376); -const UpdateAssociationCommand_1 = __nccwpck_require__(35455); -const UpdateAssociationStatusCommand_1 = __nccwpck_require__(54036); -const UpdateDocumentCommand_1 = __nccwpck_require__(91539); -const UpdateDocumentDefaultVersionCommand_1 = __nccwpck_require__(39946); -const UpdateDocumentMetadataCommand_1 = __nccwpck_require__(30307); -const UpdateMaintenanceWindowCommand_1 = __nccwpck_require__(18832); -const UpdateMaintenanceWindowTargetCommand_1 = __nccwpck_require__(59941); -const UpdateMaintenanceWindowTaskCommand_1 = __nccwpck_require__(42453); -const UpdateManagedInstanceRoleCommand_1 = __nccwpck_require__(49753); -const UpdateOpsItemCommand_1 = __nccwpck_require__(64569); -const UpdateOpsMetadataCommand_1 = __nccwpck_require__(57038); -const UpdatePatchBaselineCommand_1 = __nccwpck_require__(71939); -const UpdateResourceDataSyncCommand_1 = __nccwpck_require__(20567); -const UpdateServiceSettingCommand_1 = __nccwpck_require__(12789); -const SSMClient_1 = __nccwpck_require__(13440); -class SSM extends SSMClient_1.SSMClient { - addTagsToResource(args, optionsOrCb, cb) { - const command = new AddTagsToResourceCommand_1.AddTagsToResourceCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - associateOpsItemRelatedItem(args, optionsOrCb, cb) { - const command = new AssociateOpsItemRelatedItemCommand_1.AssociateOpsItemRelatedItemCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - cancelCommand(args, optionsOrCb, cb) { - const command = new CancelCommandCommand_1.CancelCommandCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - cancelMaintenanceWindowExecution(args, optionsOrCb, cb) { - const command = new CancelMaintenanceWindowExecutionCommand_1.CancelMaintenanceWindowExecutionCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - createActivation(args, optionsOrCb, cb) { - const command = new CreateActivationCommand_1.CreateActivationCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - createAssociation(args, optionsOrCb, cb) { - const command = new CreateAssociationCommand_1.CreateAssociationCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - createAssociationBatch(args, optionsOrCb, cb) { - const command = new CreateAssociationBatchCommand_1.CreateAssociationBatchCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - createDocument(args, optionsOrCb, cb) { - const command = new CreateDocumentCommand_1.CreateDocumentCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - createMaintenanceWindow(args, optionsOrCb, cb) { - const command = new CreateMaintenanceWindowCommand_1.CreateMaintenanceWindowCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - createOpsItem(args, optionsOrCb, cb) { - const command = new CreateOpsItemCommand_1.CreateOpsItemCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - createOpsMetadata(args, optionsOrCb, cb) { - const command = new CreateOpsMetadataCommand_1.CreateOpsMetadataCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - createPatchBaseline(args, optionsOrCb, cb) { - const command = new CreatePatchBaselineCommand_1.CreatePatchBaselineCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - createResourceDataSync(args, optionsOrCb, cb) { - const command = new CreateResourceDataSyncCommand_1.CreateResourceDataSyncCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deleteActivation(args, optionsOrCb, cb) { - const command = new DeleteActivationCommand_1.DeleteActivationCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deleteAssociation(args, optionsOrCb, cb) { - const command = new DeleteAssociationCommand_1.DeleteAssociationCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deleteDocument(args, optionsOrCb, cb) { - const command = new DeleteDocumentCommand_1.DeleteDocumentCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deleteInventory(args, optionsOrCb, cb) { - const command = new DeleteInventoryCommand_1.DeleteInventoryCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deleteMaintenanceWindow(args, optionsOrCb, cb) { - const command = new DeleteMaintenanceWindowCommand_1.DeleteMaintenanceWindowCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deleteOpsMetadata(args, optionsOrCb, cb) { - const command = new DeleteOpsMetadataCommand_1.DeleteOpsMetadataCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deleteParameter(args, optionsOrCb, cb) { - const command = new DeleteParameterCommand_1.DeleteParameterCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deleteParameters(args, optionsOrCb, cb) { - const command = new DeleteParametersCommand_1.DeleteParametersCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deletePatchBaseline(args, optionsOrCb, cb) { - const command = new DeletePatchBaselineCommand_1.DeletePatchBaselineCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deleteResourceDataSync(args, optionsOrCb, cb) { - const command = new DeleteResourceDataSyncCommand_1.DeleteResourceDataSyncCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deregisterManagedInstance(args, optionsOrCb, cb) { - const command = new DeregisterManagedInstanceCommand_1.DeregisterManagedInstanceCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deregisterPatchBaselineForPatchGroup(args, optionsOrCb, cb) { - const command = new DeregisterPatchBaselineForPatchGroupCommand_1.DeregisterPatchBaselineForPatchGroupCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deregisterTargetFromMaintenanceWindow(args, optionsOrCb, cb) { - const command = new DeregisterTargetFromMaintenanceWindowCommand_1.DeregisterTargetFromMaintenanceWindowCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - deregisterTaskFromMaintenanceWindow(args, optionsOrCb, cb) { - const command = new DeregisterTaskFromMaintenanceWindowCommand_1.DeregisterTaskFromMaintenanceWindowCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeActivations(args, optionsOrCb, cb) { - const command = new DescribeActivationsCommand_1.DescribeActivationsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeAssociation(args, optionsOrCb, cb) { - const command = new DescribeAssociationCommand_1.DescribeAssociationCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeAssociationExecutions(args, optionsOrCb, cb) { - const command = new DescribeAssociationExecutionsCommand_1.DescribeAssociationExecutionsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeAssociationExecutionTargets(args, optionsOrCb, cb) { - const command = new DescribeAssociationExecutionTargetsCommand_1.DescribeAssociationExecutionTargetsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeAutomationExecutions(args, optionsOrCb, cb) { - const command = new DescribeAutomationExecutionsCommand_1.DescribeAutomationExecutionsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeAutomationStepExecutions(args, optionsOrCb, cb) { - const command = new DescribeAutomationStepExecutionsCommand_1.DescribeAutomationStepExecutionsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeAvailablePatches(args, optionsOrCb, cb) { - const command = new DescribeAvailablePatchesCommand_1.DescribeAvailablePatchesCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeDocument(args, optionsOrCb, cb) { - const command = new DescribeDocumentCommand_1.DescribeDocumentCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeDocumentPermission(args, optionsOrCb, cb) { - const command = new DescribeDocumentPermissionCommand_1.DescribeDocumentPermissionCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeEffectiveInstanceAssociations(args, optionsOrCb, cb) { - const command = new DescribeEffectiveInstanceAssociationsCommand_1.DescribeEffectiveInstanceAssociationsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeEffectivePatchesForPatchBaseline(args, optionsOrCb, cb) { - const command = new DescribeEffectivePatchesForPatchBaselineCommand_1.DescribeEffectivePatchesForPatchBaselineCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeInstanceAssociationsStatus(args, optionsOrCb, cb) { - const command = new DescribeInstanceAssociationsStatusCommand_1.DescribeInstanceAssociationsStatusCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeInstanceInformation(args, optionsOrCb, cb) { - const command = new DescribeInstanceInformationCommand_1.DescribeInstanceInformationCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeInstancePatches(args, optionsOrCb, cb) { - const command = new DescribeInstancePatchesCommand_1.DescribeInstancePatchesCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeInstancePatchStates(args, optionsOrCb, cb) { - const command = new DescribeInstancePatchStatesCommand_1.DescribeInstancePatchStatesCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeInstancePatchStatesForPatchGroup(args, optionsOrCb, cb) { - const command = new DescribeInstancePatchStatesForPatchGroupCommand_1.DescribeInstancePatchStatesForPatchGroupCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeInventoryDeletions(args, optionsOrCb, cb) { - const command = new DescribeInventoryDeletionsCommand_1.DescribeInventoryDeletionsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeMaintenanceWindowExecutions(args, optionsOrCb, cb) { - const command = new DescribeMaintenanceWindowExecutionsCommand_1.DescribeMaintenanceWindowExecutionsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeMaintenanceWindowExecutionTaskInvocations(args, optionsOrCb, cb) { - const command = new DescribeMaintenanceWindowExecutionTaskInvocationsCommand_1.DescribeMaintenanceWindowExecutionTaskInvocationsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeMaintenanceWindowExecutionTasks(args, optionsOrCb, cb) { - const command = new DescribeMaintenanceWindowExecutionTasksCommand_1.DescribeMaintenanceWindowExecutionTasksCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeMaintenanceWindows(args, optionsOrCb, cb) { - const command = new DescribeMaintenanceWindowsCommand_1.DescribeMaintenanceWindowsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeMaintenanceWindowSchedule(args, optionsOrCb, cb) { - const command = new DescribeMaintenanceWindowScheduleCommand_1.DescribeMaintenanceWindowScheduleCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeMaintenanceWindowsForTarget(args, optionsOrCb, cb) { - const command = new DescribeMaintenanceWindowsForTargetCommand_1.DescribeMaintenanceWindowsForTargetCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeMaintenanceWindowTargets(args, optionsOrCb, cb) { - const command = new DescribeMaintenanceWindowTargetsCommand_1.DescribeMaintenanceWindowTargetsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeMaintenanceWindowTasks(args, optionsOrCb, cb) { - const command = new DescribeMaintenanceWindowTasksCommand_1.DescribeMaintenanceWindowTasksCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeOpsItems(args, optionsOrCb, cb) { - const command = new DescribeOpsItemsCommand_1.DescribeOpsItemsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeParameters(args, optionsOrCb, cb) { - const command = new DescribeParametersCommand_1.DescribeParametersCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describePatchBaselines(args, optionsOrCb, cb) { - const command = new DescribePatchBaselinesCommand_1.DescribePatchBaselinesCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describePatchGroups(args, optionsOrCb, cb) { - const command = new DescribePatchGroupsCommand_1.DescribePatchGroupsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describePatchGroupState(args, optionsOrCb, cb) { - const command = new DescribePatchGroupStateCommand_1.DescribePatchGroupStateCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describePatchProperties(args, optionsOrCb, cb) { - const command = new DescribePatchPropertiesCommand_1.DescribePatchPropertiesCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - describeSessions(args, optionsOrCb, cb) { - const command = new DescribeSessionsCommand_1.DescribeSessionsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - disassociateOpsItemRelatedItem(args, optionsOrCb, cb) { - const command = new DisassociateOpsItemRelatedItemCommand_1.DisassociateOpsItemRelatedItemCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getAutomationExecution(args, optionsOrCb, cb) { - const command = new GetAutomationExecutionCommand_1.GetAutomationExecutionCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getCalendarState(args, optionsOrCb, cb) { - const command = new GetCalendarStateCommand_1.GetCalendarStateCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getCommandInvocation(args, optionsOrCb, cb) { - const command = new GetCommandInvocationCommand_1.GetCommandInvocationCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getConnectionStatus(args, optionsOrCb, cb) { - const command = new GetConnectionStatusCommand_1.GetConnectionStatusCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getDefaultPatchBaseline(args, optionsOrCb, cb) { - const command = new GetDefaultPatchBaselineCommand_1.GetDefaultPatchBaselineCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getDeployablePatchSnapshotForInstance(args, optionsOrCb, cb) { - const command = new GetDeployablePatchSnapshotForInstanceCommand_1.GetDeployablePatchSnapshotForInstanceCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getDocument(args, optionsOrCb, cb) { - const command = new GetDocumentCommand_1.GetDocumentCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getInventory(args, optionsOrCb, cb) { - const command = new GetInventoryCommand_1.GetInventoryCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getInventorySchema(args, optionsOrCb, cb) { - const command = new GetInventorySchemaCommand_1.GetInventorySchemaCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getMaintenanceWindow(args, optionsOrCb, cb) { - const command = new GetMaintenanceWindowCommand_1.GetMaintenanceWindowCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getMaintenanceWindowExecution(args, optionsOrCb, cb) { - const command = new GetMaintenanceWindowExecutionCommand_1.GetMaintenanceWindowExecutionCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getMaintenanceWindowExecutionTask(args, optionsOrCb, cb) { - const command = new GetMaintenanceWindowExecutionTaskCommand_1.GetMaintenanceWindowExecutionTaskCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getMaintenanceWindowExecutionTaskInvocation(args, optionsOrCb, cb) { - const command = new GetMaintenanceWindowExecutionTaskInvocationCommand_1.GetMaintenanceWindowExecutionTaskInvocationCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getMaintenanceWindowTask(args, optionsOrCb, cb) { - const command = new GetMaintenanceWindowTaskCommand_1.GetMaintenanceWindowTaskCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getOpsItem(args, optionsOrCb, cb) { - const command = new GetOpsItemCommand_1.GetOpsItemCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getOpsMetadata(args, optionsOrCb, cb) { - const command = new GetOpsMetadataCommand_1.GetOpsMetadataCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getOpsSummary(args, optionsOrCb, cb) { - const command = new GetOpsSummaryCommand_1.GetOpsSummaryCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getParameter(args, optionsOrCb, cb) { - const command = new GetParameterCommand_1.GetParameterCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getParameterHistory(args, optionsOrCb, cb) { - const command = new GetParameterHistoryCommand_1.GetParameterHistoryCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getParameters(args, optionsOrCb, cb) { - const command = new GetParametersCommand_1.GetParametersCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getParametersByPath(args, optionsOrCb, cb) { - const command = new GetParametersByPathCommand_1.GetParametersByPathCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getPatchBaseline(args, optionsOrCb, cb) { - const command = new GetPatchBaselineCommand_1.GetPatchBaselineCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getPatchBaselineForPatchGroup(args, optionsOrCb, cb) { - const command = new GetPatchBaselineForPatchGroupCommand_1.GetPatchBaselineForPatchGroupCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getServiceSetting(args, optionsOrCb, cb) { - const command = new GetServiceSettingCommand_1.GetServiceSettingCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - labelParameterVersion(args, optionsOrCb, cb) { - const command = new LabelParameterVersionCommand_1.LabelParameterVersionCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listAssociations(args, optionsOrCb, cb) { - const command = new ListAssociationsCommand_1.ListAssociationsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listAssociationVersions(args, optionsOrCb, cb) { - const command = new ListAssociationVersionsCommand_1.ListAssociationVersionsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listCommandInvocations(args, optionsOrCb, cb) { - const command = new ListCommandInvocationsCommand_1.ListCommandInvocationsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listCommands(args, optionsOrCb, cb) { - const command = new ListCommandsCommand_1.ListCommandsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listComplianceItems(args, optionsOrCb, cb) { - const command = new ListComplianceItemsCommand_1.ListComplianceItemsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listComplianceSummaries(args, optionsOrCb, cb) { - const command = new ListComplianceSummariesCommand_1.ListComplianceSummariesCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listDocumentMetadataHistory(args, optionsOrCb, cb) { - const command = new ListDocumentMetadataHistoryCommand_1.ListDocumentMetadataHistoryCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listDocuments(args, optionsOrCb, cb) { - const command = new ListDocumentsCommand_1.ListDocumentsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listDocumentVersions(args, optionsOrCb, cb) { - const command = new ListDocumentVersionsCommand_1.ListDocumentVersionsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listInventoryEntries(args, optionsOrCb, cb) { - const command = new ListInventoryEntriesCommand_1.ListInventoryEntriesCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listOpsItemEvents(args, optionsOrCb, cb) { - const command = new ListOpsItemEventsCommand_1.ListOpsItemEventsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listOpsItemRelatedItems(args, optionsOrCb, cb) { - const command = new ListOpsItemRelatedItemsCommand_1.ListOpsItemRelatedItemsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listOpsMetadata(args, optionsOrCb, cb) { - const command = new ListOpsMetadataCommand_1.ListOpsMetadataCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listResourceComplianceSummaries(args, optionsOrCb, cb) { - const command = new ListResourceComplianceSummariesCommand_1.ListResourceComplianceSummariesCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listResourceDataSync(args, optionsOrCb, cb) { - const command = new ListResourceDataSyncCommand_1.ListResourceDataSyncCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listTagsForResource(args, optionsOrCb, cb) { - const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - modifyDocumentPermission(args, optionsOrCb, cb) { - const command = new ModifyDocumentPermissionCommand_1.ModifyDocumentPermissionCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - putComplianceItems(args, optionsOrCb, cb) { - const command = new PutComplianceItemsCommand_1.PutComplianceItemsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - putInventory(args, optionsOrCb, cb) { - const command = new PutInventoryCommand_1.PutInventoryCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - putParameter(args, optionsOrCb, cb) { - const command = new PutParameterCommand_1.PutParameterCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - registerDefaultPatchBaseline(args, optionsOrCb, cb) { - const command = new RegisterDefaultPatchBaselineCommand_1.RegisterDefaultPatchBaselineCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - registerPatchBaselineForPatchGroup(args, optionsOrCb, cb) { - const command = new RegisterPatchBaselineForPatchGroupCommand_1.RegisterPatchBaselineForPatchGroupCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - registerTargetWithMaintenanceWindow(args, optionsOrCb, cb) { - const command = new RegisterTargetWithMaintenanceWindowCommand_1.RegisterTargetWithMaintenanceWindowCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - registerTaskWithMaintenanceWindow(args, optionsOrCb, cb) { - const command = new RegisterTaskWithMaintenanceWindowCommand_1.RegisterTaskWithMaintenanceWindowCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - removeTagsFromResource(args, optionsOrCb, cb) { - const command = new RemoveTagsFromResourceCommand_1.RemoveTagsFromResourceCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - resetServiceSetting(args, optionsOrCb, cb) { - const command = new ResetServiceSettingCommand_1.ResetServiceSettingCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - resumeSession(args, optionsOrCb, cb) { - const command = new ResumeSessionCommand_1.ResumeSessionCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - sendAutomationSignal(args, optionsOrCb, cb) { - const command = new SendAutomationSignalCommand_1.SendAutomationSignalCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - sendCommand(args, optionsOrCb, cb) { - const command = new SendCommandCommand_1.SendCommandCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - startAssociationsOnce(args, optionsOrCb, cb) { - const command = new StartAssociationsOnceCommand_1.StartAssociationsOnceCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - startAutomationExecution(args, optionsOrCb, cb) { - const command = new StartAutomationExecutionCommand_1.StartAutomationExecutionCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - startChangeRequestExecution(args, optionsOrCb, cb) { - const command = new StartChangeRequestExecutionCommand_1.StartChangeRequestExecutionCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - startSession(args, optionsOrCb, cb) { - const command = new StartSessionCommand_1.StartSessionCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - stopAutomationExecution(args, optionsOrCb, cb) { - const command = new StopAutomationExecutionCommand_1.StopAutomationExecutionCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - terminateSession(args, optionsOrCb, cb) { - const command = new TerminateSessionCommand_1.TerminateSessionCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - unlabelParameterVersion(args, optionsOrCb, cb) { - const command = new UnlabelParameterVersionCommand_1.UnlabelParameterVersionCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - updateAssociation(args, optionsOrCb, cb) { - const command = new UpdateAssociationCommand_1.UpdateAssociationCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - updateAssociationStatus(args, optionsOrCb, cb) { - const command = new UpdateAssociationStatusCommand_1.UpdateAssociationStatusCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - updateDocument(args, optionsOrCb, cb) { - const command = new UpdateDocumentCommand_1.UpdateDocumentCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - updateDocumentDefaultVersion(args, optionsOrCb, cb) { - const command = new UpdateDocumentDefaultVersionCommand_1.UpdateDocumentDefaultVersionCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - updateDocumentMetadata(args, optionsOrCb, cb) { - const command = new UpdateDocumentMetadataCommand_1.UpdateDocumentMetadataCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - updateMaintenanceWindow(args, optionsOrCb, cb) { - const command = new UpdateMaintenanceWindowCommand_1.UpdateMaintenanceWindowCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - updateMaintenanceWindowTarget(args, optionsOrCb, cb) { - const command = new UpdateMaintenanceWindowTargetCommand_1.UpdateMaintenanceWindowTargetCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - updateMaintenanceWindowTask(args, optionsOrCb, cb) { - const command = new UpdateMaintenanceWindowTaskCommand_1.UpdateMaintenanceWindowTaskCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - updateManagedInstanceRole(args, optionsOrCb, cb) { - const command = new UpdateManagedInstanceRoleCommand_1.UpdateManagedInstanceRoleCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - updateOpsItem(args, optionsOrCb, cb) { - const command = new UpdateOpsItemCommand_1.UpdateOpsItemCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - updateOpsMetadata(args, optionsOrCb, cb) { - const command = new UpdateOpsMetadataCommand_1.UpdateOpsMetadataCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - updatePatchBaseline(args, optionsOrCb, cb) { - const command = new UpdatePatchBaselineCommand_1.UpdatePatchBaselineCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - updateResourceDataSync(args, optionsOrCb, cb) { - const command = new UpdateResourceDataSyncCommand_1.UpdateResourceDataSyncCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - updateServiceSetting(args, optionsOrCb, cb) { - const command = new UpdateServiceSettingCommand_1.UpdateServiceSettingCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } -} -exports.SSM = SSM; - - -/***/ }), - -/***/ 13440: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SSMClient = void 0; -const config_resolver_1 = __nccwpck_require__(56153); -const middleware_content_length_1 = __nccwpck_require__(42245); -const middleware_host_header_1 = __nccwpck_require__(22545); -const middleware_logger_1 = __nccwpck_require__(20014); -const middleware_recursion_detection_1 = __nccwpck_require__(85525); -const middleware_retry_1 = __nccwpck_require__(96064); -const middleware_signing_1 = __nccwpck_require__(14935); -const middleware_user_agent_1 = __nccwpck_require__(64688); -const smithy_client_1 = __nccwpck_require__(4963); -const runtimeConfig_1 = __nccwpck_require__(78509); -class SSMClient extends smithy_client_1.Client { - constructor(configuration) { - const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); - const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); - const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); - const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); - const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); - const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4); - const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); - super(_config_6); - this.config = _config_6; - this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); - } - destroy() { - super.destroy(); - } -} -exports.SSMClient = SSMClient; - - -/***/ }), - -/***/ 16548: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AddTagsToResourceCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class AddTagsToResourceCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "AddTagsToResourceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AddTagsToResourceRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AddTagsToResourceResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1AddTagsToResourceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1AddTagsToResourceCommand)(output, context); - } -} -exports.AddTagsToResourceCommand = AddTagsToResourceCommand; - - -/***/ }), - -/***/ 80864: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AssociateOpsItemRelatedItemCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class AssociateOpsItemRelatedItemCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "AssociateOpsItemRelatedItemCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AssociateOpsItemRelatedItemRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssociateOpsItemRelatedItemResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1AssociateOpsItemRelatedItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1AssociateOpsItemRelatedItemCommand)(output, context); - } -} -exports.AssociateOpsItemRelatedItemCommand = AssociateOpsItemRelatedItemCommand; - - -/***/ }), - -/***/ 43654: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CancelCommandCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class CancelCommandCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CancelCommandCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CancelCommandRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CancelCommandResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1CancelCommandCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1CancelCommandCommand)(output, context); - } -} -exports.CancelCommandCommand = CancelCommandCommand; - - -/***/ }), - -/***/ 16795: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CancelMaintenanceWindowExecutionCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class CancelMaintenanceWindowExecutionCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CancelMaintenanceWindowExecutionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CancelMaintenanceWindowExecutionRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CancelMaintenanceWindowExecutionResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1CancelMaintenanceWindowExecutionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1CancelMaintenanceWindowExecutionCommand)(output, context); - } -} -exports.CancelMaintenanceWindowExecutionCommand = CancelMaintenanceWindowExecutionCommand; - - -/***/ }), - -/***/ 93455: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreateActivationCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class CreateActivationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateActivationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateActivationRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreateActivationResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1CreateActivationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1CreateActivationCommand)(output, context); - } -} -exports.CreateActivationCommand = CreateActivationCommand; - - -/***/ }), - -/***/ 22615: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreateAssociationBatchCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class CreateAssociationBatchCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateAssociationBatchCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateAssociationBatchRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreateAssociationBatchResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1CreateAssociationBatchCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1CreateAssociationBatchCommand)(output, context); - } -} -exports.CreateAssociationBatchCommand = CreateAssociationBatchCommand; - - -/***/ }), - -/***/ 87570: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreateAssociationCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class CreateAssociationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateAssociationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateAssociationRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreateAssociationResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1CreateAssociationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1CreateAssociationCommand)(output, context); - } -} -exports.CreateAssociationCommand = CreateAssociationCommand; - - -/***/ }), - -/***/ 38888: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreateDocumentCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class CreateDocumentCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateDocumentCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateDocumentRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreateDocumentResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1CreateDocumentCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1CreateDocumentCommand)(output, context); - } -} -exports.CreateDocumentCommand = CreateDocumentCommand; - - -/***/ }), - -/***/ 84735: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreateMaintenanceWindowCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class CreateMaintenanceWindowCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateMaintenanceWindowRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreateMaintenanceWindowResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1CreateMaintenanceWindowCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1CreateMaintenanceWindowCommand)(output, context); - } -} -exports.CreateMaintenanceWindowCommand = CreateMaintenanceWindowCommand; - - -/***/ }), - -/***/ 17634: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreateOpsItemCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class CreateOpsItemCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateOpsItemCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateOpsItemRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreateOpsItemResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1CreateOpsItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1CreateOpsItemCommand)(output, context); - } -} -exports.CreateOpsItemCommand = CreateOpsItemCommand; - - -/***/ }), - -/***/ 85963: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreateOpsMetadataCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class CreateOpsMetadataCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateOpsMetadataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateOpsMetadataRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreateOpsMetadataResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1CreateOpsMetadataCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1CreateOpsMetadataCommand)(output, context); - } -} -exports.CreateOpsMetadataCommand = CreateOpsMetadataCommand; - - -/***/ }), - -/***/ 68004: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreatePatchBaselineCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class CreatePatchBaselineCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreatePatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreatePatchBaselineRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreatePatchBaselineResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1CreatePatchBaselineCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1CreatePatchBaselineCommand)(output, context); - } -} -exports.CreatePatchBaselineCommand = CreatePatchBaselineCommand; - - -/***/ }), - -/***/ 30345: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CreateResourceDataSyncCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class CreateResourceDataSyncCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateResourceDataSyncCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateResourceDataSyncRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreateResourceDataSyncResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1CreateResourceDataSyncCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1CreateResourceDataSyncCommand)(output, context); - } -} -exports.CreateResourceDataSyncCommand = CreateResourceDataSyncCommand; - - -/***/ }), - -/***/ 67594: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteActivationCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DeleteActivationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteActivationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteActivationRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteActivationResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DeleteActivationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteActivationCommand)(output, context); - } -} -exports.DeleteActivationCommand = DeleteActivationCommand; - - -/***/ }), - -/***/ 5292: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteAssociationCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DeleteAssociationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteAssociationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteAssociationRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteAssociationResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DeleteAssociationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteAssociationCommand)(output, context); - } -} -exports.DeleteAssociationCommand = DeleteAssociationCommand; - - -/***/ }), - -/***/ 91242: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteDocumentCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DeleteDocumentCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteDocumentCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteDocumentRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteDocumentResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DeleteDocumentCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteDocumentCommand)(output, context); - } -} -exports.DeleteDocumentCommand = DeleteDocumentCommand; - - -/***/ }), - -/***/ 47241: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteInventoryCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DeleteInventoryCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteInventoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteInventoryRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteInventoryResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DeleteInventoryCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteInventoryCommand)(output, context); - } -} -exports.DeleteInventoryCommand = DeleteInventoryCommand; - - -/***/ }), - -/***/ 5695: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteMaintenanceWindowCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DeleteMaintenanceWindowCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteMaintenanceWindowRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteMaintenanceWindowResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DeleteMaintenanceWindowCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteMaintenanceWindowCommand)(output, context); - } -} -exports.DeleteMaintenanceWindowCommand = DeleteMaintenanceWindowCommand; - - -/***/ }), - -/***/ 35235: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteOpsMetadataCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DeleteOpsMetadataCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteOpsMetadataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteOpsMetadataRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteOpsMetadataResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DeleteOpsMetadataCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteOpsMetadataCommand)(output, context); - } -} -exports.DeleteOpsMetadataCommand = DeleteOpsMetadataCommand; - - -/***/ }), - -/***/ 74261: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteParameterCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DeleteParameterCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteParameterCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteParameterRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteParameterResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DeleteParameterCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteParameterCommand)(output, context); - } -} -exports.DeleteParameterCommand = DeleteParameterCommand; - - -/***/ }), - -/***/ 35322: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteParametersCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DeleteParametersCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteParametersCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteParametersRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteParametersResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DeleteParametersCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteParametersCommand)(output, context); - } -} -exports.DeleteParametersCommand = DeleteParametersCommand; - - -/***/ }), - -/***/ 5734: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeletePatchBaselineCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DeletePatchBaselineCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeletePatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeletePatchBaselineRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeletePatchBaselineResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DeletePatchBaselineCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DeletePatchBaselineCommand)(output, context); - } -} -exports.DeletePatchBaselineCommand = DeletePatchBaselineCommand; - - -/***/ }), - -/***/ 4505: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeleteResourceDataSyncCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DeleteResourceDataSyncCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteResourceDataSyncCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteResourceDataSyncRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteResourceDataSyncResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DeleteResourceDataSyncCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteResourceDataSyncCommand)(output, context); - } -} -exports.DeleteResourceDataSyncCommand = DeleteResourceDataSyncCommand; - - -/***/ }), - -/***/ 16721: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeregisterManagedInstanceCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DeregisterManagedInstanceCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeregisterManagedInstanceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeregisterManagedInstanceRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeregisterManagedInstanceResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DeregisterManagedInstanceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DeregisterManagedInstanceCommand)(output, context); - } -} -exports.DeregisterManagedInstanceCommand = DeregisterManagedInstanceCommand; - - -/***/ }), - -/***/ 11889: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeregisterPatchBaselineForPatchGroupCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DeregisterPatchBaselineForPatchGroupCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeregisterPatchBaselineForPatchGroupCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeregisterPatchBaselineForPatchGroupRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeregisterPatchBaselineForPatchGroupResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand)(output, context); - } -} -exports.DeregisterPatchBaselineForPatchGroupCommand = DeregisterPatchBaselineForPatchGroupCommand; - - -/***/ }), - -/***/ 86346: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeregisterTargetFromMaintenanceWindowCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DeregisterTargetFromMaintenanceWindowCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeregisterTargetFromMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeregisterTargetFromMaintenanceWindowRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeregisterTargetFromMaintenanceWindowResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand)(output, context); - } -} -exports.DeregisterTargetFromMaintenanceWindowCommand = DeregisterTargetFromMaintenanceWindowCommand; - - -/***/ }), - -/***/ 98087: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DeregisterTaskFromMaintenanceWindowCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DeregisterTaskFromMaintenanceWindowCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeregisterTaskFromMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeregisterTaskFromMaintenanceWindowRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeregisterTaskFromMaintenanceWindowResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand)(output, context); - } -} -exports.DeregisterTaskFromMaintenanceWindowCommand = DeregisterTaskFromMaintenanceWindowCommand; - - -/***/ }), - -/***/ 99158: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeActivationsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeActivationsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeActivationsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeActivationsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeActivationsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeActivationsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeActivationsCommand)(output, context); - } -} -exports.DescribeActivationsCommand = DescribeActivationsCommand; - - -/***/ }), - -/***/ 55442: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeAssociationCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeAssociationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeAssociationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeAssociationRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeAssociationResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeAssociationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeAssociationCommand)(output, context); - } -} -exports.DescribeAssociationCommand = DescribeAssociationCommand; - - -/***/ }), - -/***/ 89459: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeAssociationExecutionTargetsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeAssociationExecutionTargetsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeAssociationExecutionTargetsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeAssociationExecutionTargetsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeAssociationExecutionTargetsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeAssociationExecutionTargetsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeAssociationExecutionTargetsCommand)(output, context); - } -} -exports.DescribeAssociationExecutionTargetsCommand = DescribeAssociationExecutionTargetsCommand; - - -/***/ }), - -/***/ 3119: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeAssociationExecutionsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeAssociationExecutionsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeAssociationExecutionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeAssociationExecutionsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeAssociationExecutionsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeAssociationExecutionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeAssociationExecutionsCommand)(output, context); - } -} -exports.DescribeAssociationExecutionsCommand = DescribeAssociationExecutionsCommand; - - -/***/ }), - -/***/ 70342: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeAutomationExecutionsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeAutomationExecutionsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeAutomationExecutionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeAutomationExecutionsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeAutomationExecutionsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeAutomationExecutionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeAutomationExecutionsCommand)(output, context); - } -} -exports.DescribeAutomationExecutionsCommand = DescribeAutomationExecutionsCommand; - - -/***/ }), - -/***/ 50626: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeAutomationStepExecutionsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeAutomationStepExecutionsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeAutomationStepExecutionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeAutomationStepExecutionsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeAutomationStepExecutionsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeAutomationStepExecutionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeAutomationStepExecutionsCommand)(output, context); - } -} -exports.DescribeAutomationStepExecutionsCommand = DescribeAutomationStepExecutionsCommand; - - -/***/ }), - -/***/ 73378: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeAvailablePatchesCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeAvailablePatchesCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeAvailablePatchesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeAvailablePatchesRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeAvailablePatchesResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeAvailablePatchesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeAvailablePatchesCommand)(output, context); - } -} -exports.DescribeAvailablePatchesCommand = DescribeAvailablePatchesCommand; - - -/***/ }), - -/***/ 4165: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeDocumentCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeDocumentCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeDocumentCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeDocumentRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeDocumentResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeDocumentCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeDocumentCommand)(output, context); - } -} -exports.DescribeDocumentCommand = DescribeDocumentCommand; - - -/***/ }), - -/***/ 35531: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeDocumentPermissionCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeDocumentPermissionCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeDocumentPermissionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeDocumentPermissionRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeDocumentPermissionResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeDocumentPermissionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeDocumentPermissionCommand)(output, context); - } -} -exports.DescribeDocumentPermissionCommand = DescribeDocumentPermissionCommand; - - -/***/ }), - -/***/ 48907: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeEffectiveInstanceAssociationsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeEffectiveInstanceAssociationsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeEffectiveInstanceAssociationsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeEffectiveInstanceAssociationsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeEffectiveInstanceAssociationsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand)(output, context); - } -} -exports.DescribeEffectiveInstanceAssociationsCommand = DescribeEffectiveInstanceAssociationsCommand; - - -/***/ }), - -/***/ 11074: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeEffectivePatchesForPatchBaselineCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeEffectivePatchesForPatchBaselineCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeEffectivePatchesForPatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeEffectivePatchesForPatchBaselineRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeEffectivePatchesForPatchBaselineResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand)(output, context); - } -} -exports.DescribeEffectivePatchesForPatchBaselineCommand = DescribeEffectivePatchesForPatchBaselineCommand; - - -/***/ }), - -/***/ 50546: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeInstanceAssociationsStatusCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeInstanceAssociationsStatusCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeInstanceAssociationsStatusCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeInstanceAssociationsStatusRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeInstanceAssociationsStatusResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeInstanceAssociationsStatusCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeInstanceAssociationsStatusCommand)(output, context); - } -} -exports.DescribeInstanceAssociationsStatusCommand = DescribeInstanceAssociationsStatusCommand; - - -/***/ }), - -/***/ 72297: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeInstanceInformationCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeInstanceInformationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeInstanceInformationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeInstanceInformationRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeInstanceInformationResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeInstanceInformationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeInstanceInformationCommand)(output, context); - } -} -exports.DescribeInstanceInformationCommand = DescribeInstanceInformationCommand; - - -/***/ }), - -/***/ 96994: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeInstancePatchStatesCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeInstancePatchStatesCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeInstancePatchStatesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeInstancePatchStatesRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeInstancePatchStatesResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeInstancePatchStatesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeInstancePatchStatesCommand)(output, context); - } -} -exports.DescribeInstancePatchStatesCommand = DescribeInstancePatchStatesCommand; - - -/***/ }), - -/***/ 50028: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeInstancePatchStatesForPatchGroupCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeInstancePatchStatesForPatchGroupCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeInstancePatchStatesForPatchGroupCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeInstancePatchStatesForPatchGroupRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand)(output, context); - } -} -exports.DescribeInstancePatchStatesForPatchGroupCommand = DescribeInstancePatchStatesForPatchGroupCommand; - - -/***/ }), - -/***/ 45672: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeInstancePatchesCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeInstancePatchesCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeInstancePatchesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeInstancePatchesRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeInstancePatchesResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeInstancePatchesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeInstancePatchesCommand)(output, context); - } -} -exports.DescribeInstancePatchesCommand = DescribeInstancePatchesCommand; - - -/***/ }), - -/***/ 51289: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeInventoryDeletionsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeInventoryDeletionsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeInventoryDeletionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeInventoryDeletionsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeInventoryDeletionsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeInventoryDeletionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeInventoryDeletionsCommand)(output, context); - } -} -exports.DescribeInventoryDeletionsCommand = DescribeInventoryDeletionsCommand; - - -/***/ }), - -/***/ 71741: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeMaintenanceWindowExecutionTaskInvocationsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeMaintenanceWindowExecutionTaskInvocationsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowExecutionTaskInvocationsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowExecutionTaskInvocationsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand)(output, context); - } -} -exports.DescribeMaintenanceWindowExecutionTaskInvocationsCommand = DescribeMaintenanceWindowExecutionTaskInvocationsCommand; - - -/***/ }), - -/***/ 19495: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeMaintenanceWindowExecutionTasksCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeMaintenanceWindowExecutionTasksCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowExecutionTasksCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowExecutionTasksRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowExecutionTasksResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand)(output, context); - } -} -exports.DescribeMaintenanceWindowExecutionTasksCommand = DescribeMaintenanceWindowExecutionTasksCommand; - - -/***/ }), - -/***/ 66016: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeMaintenanceWindowExecutionsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeMaintenanceWindowExecutionsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowExecutionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowExecutionsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowExecutionsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand)(output, context); - } -} -exports.DescribeMaintenanceWindowExecutionsCommand = DescribeMaintenanceWindowExecutionsCommand; - - -/***/ }), - -/***/ 83598: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeMaintenanceWindowScheduleCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeMaintenanceWindowScheduleCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowScheduleCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowScheduleRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowScheduleResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeMaintenanceWindowScheduleCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeMaintenanceWindowScheduleCommand)(output, context); - } -} -exports.DescribeMaintenanceWindowScheduleCommand = DescribeMaintenanceWindowScheduleCommand; - - -/***/ }), - -/***/ 78871: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeMaintenanceWindowTargetsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeMaintenanceWindowTargetsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowTargetsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowTargetsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowTargetsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeMaintenanceWindowTargetsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeMaintenanceWindowTargetsCommand)(output, context); - } -} -exports.DescribeMaintenanceWindowTargetsCommand = DescribeMaintenanceWindowTargetsCommand; - - -/***/ }), - -/***/ 26677: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeMaintenanceWindowTasksCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeMaintenanceWindowTasksCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowTasksCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowTasksRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowTasksResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeMaintenanceWindowTasksCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeMaintenanceWindowTasksCommand)(output, context); - } -} -exports.DescribeMaintenanceWindowTasksCommand = DescribeMaintenanceWindowTasksCommand; - - -/***/ }), - -/***/ 99482: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeMaintenanceWindowsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeMaintenanceWindowsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeMaintenanceWindowsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeMaintenanceWindowsCommand)(output, context); - } -} -exports.DescribeMaintenanceWindowsCommand = DescribeMaintenanceWindowsCommand; - - -/***/ }), - -/***/ 41025: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeMaintenanceWindowsForTargetCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeMaintenanceWindowsForTargetCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowsForTargetCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowsForTargetRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowsForTargetResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand)(output, context); - } -} -exports.DescribeMaintenanceWindowsForTargetCommand = DescribeMaintenanceWindowsForTargetCommand; - - -/***/ }), - -/***/ 76177: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeOpsItemsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeOpsItemsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeOpsItemsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeOpsItemsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeOpsItemsResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeOpsItemsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeOpsItemsCommand)(output, context); - } -} -exports.DescribeOpsItemsCommand = DescribeOpsItemsCommand; - - -/***/ }), - -/***/ 45975: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeParametersCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeParametersCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeParametersCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeParametersRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.DescribeParametersResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeParametersCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeParametersCommand)(output, context); - } -} -exports.DescribeParametersCommand = DescribeParametersCommand; - - -/***/ }), - -/***/ 83186: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribePatchBaselinesCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribePatchBaselinesCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribePatchBaselinesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.DescribePatchBaselinesRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.DescribePatchBaselinesResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribePatchBaselinesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribePatchBaselinesCommand)(output, context); - } -} -exports.DescribePatchBaselinesCommand = DescribePatchBaselinesCommand; - - -/***/ }), - -/***/ 1655: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribePatchGroupStateCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribePatchGroupStateCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribePatchGroupStateCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.DescribePatchGroupStateRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.DescribePatchGroupStateResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribePatchGroupStateCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribePatchGroupStateCommand)(output, context); - } -} -exports.DescribePatchGroupStateCommand = DescribePatchGroupStateCommand; - - -/***/ }), - -/***/ 45192: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribePatchGroupsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribePatchGroupsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribePatchGroupsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.DescribePatchGroupsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.DescribePatchGroupsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribePatchGroupsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribePatchGroupsCommand)(output, context); - } -} -exports.DescribePatchGroupsCommand = DescribePatchGroupsCommand; - - -/***/ }), - -/***/ 36964: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribePatchPropertiesCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribePatchPropertiesCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribePatchPropertiesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.DescribePatchPropertiesRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.DescribePatchPropertiesResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribePatchPropertiesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribePatchPropertiesCommand)(output, context); - } -} -exports.DescribePatchPropertiesCommand = DescribePatchPropertiesCommand; - - -/***/ }), - -/***/ 43787: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DescribeSessionsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DescribeSessionsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeSessionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.DescribeSessionsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.DescribeSessionsResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DescribeSessionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeSessionsCommand)(output, context); - } -} -exports.DescribeSessionsCommand = DescribeSessionsCommand; - - -/***/ }), - -/***/ 65098: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DisassociateOpsItemRelatedItemCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class DisassociateOpsItemRelatedItemCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DisassociateOpsItemRelatedItemCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.DisassociateOpsItemRelatedItemRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.DisassociateOpsItemRelatedItemResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1DisassociateOpsItemRelatedItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1DisassociateOpsItemRelatedItemCommand)(output, context); - } -} -exports.DisassociateOpsItemRelatedItemCommand = DisassociateOpsItemRelatedItemCommand; - - -/***/ }), - -/***/ 29240: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetAutomationExecutionCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetAutomationExecutionCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetAutomationExecutionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetAutomationExecutionRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetAutomationExecutionResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetAutomationExecutionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetAutomationExecutionCommand)(output, context); - } -} -exports.GetAutomationExecutionCommand = GetAutomationExecutionCommand; - - -/***/ }), - -/***/ 68121: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetCalendarStateCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetCalendarStateCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetCalendarStateCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetCalendarStateRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetCalendarStateResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetCalendarStateCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetCalendarStateCommand)(output, context); - } -} -exports.GetCalendarStateCommand = GetCalendarStateCommand; - - -/***/ }), - -/***/ 93305: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetCommandInvocationCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetCommandInvocationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetCommandInvocationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetCommandInvocationRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetCommandInvocationResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetCommandInvocationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetCommandInvocationCommand)(output, context); - } -} -exports.GetCommandInvocationCommand = GetCommandInvocationCommand; - - -/***/ }), - -/***/ 99654: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetConnectionStatusCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetConnectionStatusCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetConnectionStatusCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetConnectionStatusRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetConnectionStatusResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetConnectionStatusCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetConnectionStatusCommand)(output, context); - } -} -exports.GetConnectionStatusCommand = GetConnectionStatusCommand; - - -/***/ }), - -/***/ 57498: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetDefaultPatchBaselineCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetDefaultPatchBaselineCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetDefaultPatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetDefaultPatchBaselineRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetDefaultPatchBaselineResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetDefaultPatchBaselineCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetDefaultPatchBaselineCommand)(output, context); - } -} -exports.GetDefaultPatchBaselineCommand = GetDefaultPatchBaselineCommand; - - -/***/ }), - -/***/ 92944: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetDeployablePatchSnapshotForInstanceCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetDeployablePatchSnapshotForInstanceCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetDeployablePatchSnapshotForInstanceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetDeployablePatchSnapshotForInstanceResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand)(output, context); - } -} -exports.GetDeployablePatchSnapshotForInstanceCommand = GetDeployablePatchSnapshotForInstanceCommand; - - -/***/ }), - -/***/ 6408: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetDocumentCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetDocumentCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetDocumentCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetDocumentRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetDocumentResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetDocumentCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetDocumentCommand)(output, context); - } -} -exports.GetDocumentCommand = GetDocumentCommand; - - -/***/ }), - -/***/ 93690: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetInventoryCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const models_2_1 = __nccwpck_require__(33439); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetInventoryCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetInventoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_2_1.GetInventoryRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetInventoryResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetInventoryCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetInventoryCommand)(output, context); - } -} -exports.GetInventoryCommand = GetInventoryCommand; - - -/***/ }), - -/***/ 88675: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetInventorySchemaCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetInventorySchemaCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetInventorySchemaCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetInventorySchemaRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetInventorySchemaResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetInventorySchemaCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetInventorySchemaCommand)(output, context); - } -} -exports.GetInventorySchemaCommand = GetInventorySchemaCommand; - - -/***/ }), - -/***/ 49424: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetMaintenanceWindowCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetMaintenanceWindowCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetMaintenanceWindowRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetMaintenanceWindowResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetMaintenanceWindowCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetMaintenanceWindowCommand)(output, context); - } -} -exports.GetMaintenanceWindowCommand = GetMaintenanceWindowCommand; - - -/***/ }), - -/***/ 52486: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetMaintenanceWindowExecutionCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetMaintenanceWindowExecutionCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetMaintenanceWindowExecutionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetMaintenanceWindowExecutionRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetMaintenanceWindowExecutionResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetMaintenanceWindowExecutionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetMaintenanceWindowExecutionCommand)(output, context); - } -} -exports.GetMaintenanceWindowExecutionCommand = GetMaintenanceWindowExecutionCommand; - - -/***/ }), - -/***/ 6244: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetMaintenanceWindowExecutionTaskCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetMaintenanceWindowExecutionTaskCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetMaintenanceWindowExecutionTaskCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetMaintenanceWindowExecutionTaskRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand)(output, context); - } -} -exports.GetMaintenanceWindowExecutionTaskCommand = GetMaintenanceWindowExecutionTaskCommand; - - -/***/ }), - -/***/ 94578: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetMaintenanceWindowExecutionTaskInvocationCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetMaintenanceWindowExecutionTaskInvocationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetMaintenanceWindowExecutionTaskInvocationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetMaintenanceWindowExecutionTaskInvocationRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand)(output, context); - } -} -exports.GetMaintenanceWindowExecutionTaskInvocationCommand = GetMaintenanceWindowExecutionTaskInvocationCommand; - - -/***/ }), - -/***/ 12083: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetMaintenanceWindowTaskCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetMaintenanceWindowTaskCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetMaintenanceWindowTaskCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetMaintenanceWindowTaskRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetMaintenanceWindowTaskResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetMaintenanceWindowTaskCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetMaintenanceWindowTaskCommand)(output, context); - } -} -exports.GetMaintenanceWindowTaskCommand = GetMaintenanceWindowTaskCommand; - - -/***/ }), - -/***/ 46293: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetOpsItemCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetOpsItemCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetOpsItemCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetOpsItemRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetOpsItemResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetOpsItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetOpsItemCommand)(output, context); - } -} -exports.GetOpsItemCommand = GetOpsItemCommand; - - -/***/ }), - -/***/ 65672: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetOpsMetadataCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetOpsMetadataCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetOpsMetadataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetOpsMetadataRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetOpsMetadataResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetOpsMetadataCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetOpsMetadataCommand)(output, context); - } -} -exports.GetOpsMetadataCommand = GetOpsMetadataCommand; - - -/***/ }), - -/***/ 19458: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetOpsSummaryCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const models_2_1 = __nccwpck_require__(33439); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetOpsSummaryCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetOpsSummaryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_2_1.GetOpsSummaryRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetOpsSummaryResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetOpsSummaryCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetOpsSummaryCommand)(output, context); - } -} -exports.GetOpsSummaryCommand = GetOpsSummaryCommand; - - -/***/ }), - -/***/ 53134: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetParameterCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetParameterCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetParameterCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetParameterRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetParameterResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetParameterCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetParameterCommand)(output, context); - } -} -exports.GetParameterCommand = GetParameterCommand; - - -/***/ }), - -/***/ 30108: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetParameterHistoryCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetParameterHistoryCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetParameterHistoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetParameterHistoryRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetParameterHistoryResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetParameterHistoryCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetParameterHistoryCommand)(output, context); - } -} -exports.GetParameterHistoryCommand = GetParameterHistoryCommand; - - -/***/ }), - -/***/ 22164: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetParametersByPathCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetParametersByPathCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetParametersByPathCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetParametersByPathRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetParametersByPathResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetParametersByPathCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetParametersByPathCommand)(output, context); - } -} -exports.GetParametersByPathCommand = GetParametersByPathCommand; - - -/***/ }), - -/***/ 43487: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetParametersCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetParametersCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetParametersCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetParametersRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetParametersResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetParametersCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetParametersCommand)(output, context); - } -} -exports.GetParametersCommand = GetParametersCommand; - - -/***/ }), - -/***/ 35873: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetPatchBaselineCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetPatchBaselineCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetPatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetPatchBaselineRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetPatchBaselineResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetPatchBaselineCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetPatchBaselineCommand)(output, context); - } -} -exports.GetPatchBaselineCommand = GetPatchBaselineCommand; - - -/***/ }), - -/***/ 95382: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetPatchBaselineForPatchGroupCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetPatchBaselineForPatchGroupCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetPatchBaselineForPatchGroupCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetPatchBaselineForPatchGroupRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetPatchBaselineForPatchGroupResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetPatchBaselineForPatchGroupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetPatchBaselineForPatchGroupCommand)(output, context); - } -} -exports.GetPatchBaselineForPatchGroupCommand = GetPatchBaselineForPatchGroupCommand; - - -/***/ }), - -/***/ 36289: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetServiceSettingCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class GetServiceSettingCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetServiceSettingCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetServiceSettingRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.GetServiceSettingResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1GetServiceSettingCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1GetServiceSettingCommand)(output, context); - } -} -exports.GetServiceSettingCommand = GetServiceSettingCommand; - - -/***/ }), - -/***/ 54351: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LabelParameterVersionCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class LabelParameterVersionCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "LabelParameterVersionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.LabelParameterVersionRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.LabelParameterVersionResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1LabelParameterVersionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1LabelParameterVersionCommand)(output, context); - } -} -exports.LabelParameterVersionCommand = LabelParameterVersionCommand; - - -/***/ }), - -/***/ 40838: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListAssociationVersionsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ListAssociationVersionsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListAssociationVersionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ListAssociationVersionsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ListAssociationVersionsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ListAssociationVersionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ListAssociationVersionsCommand)(output, context); - } -} -exports.ListAssociationVersionsCommand = ListAssociationVersionsCommand; - - -/***/ }), - -/***/ 29074: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListAssociationsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ListAssociationsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListAssociationsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ListAssociationsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ListAssociationsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ListAssociationsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ListAssociationsCommand)(output, context); - } -} -exports.ListAssociationsCommand = ListAssociationsCommand; - - -/***/ }), - -/***/ 27002: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListCommandInvocationsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ListCommandInvocationsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListCommandInvocationsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ListCommandInvocationsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ListCommandInvocationsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ListCommandInvocationsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ListCommandInvocationsCommand)(output, context); - } -} -exports.ListCommandInvocationsCommand = ListCommandInvocationsCommand; - - -/***/ }), - -/***/ 56883: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListCommandsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ListCommandsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListCommandsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ListCommandsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ListCommandsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ListCommandsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ListCommandsCommand)(output, context); - } -} -exports.ListCommandsCommand = ListCommandsCommand; - - -/***/ }), - -/***/ 29771: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListComplianceItemsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ListComplianceItemsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListComplianceItemsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ListComplianceItemsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ListComplianceItemsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ListComplianceItemsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ListComplianceItemsCommand)(output, context); - } -} -exports.ListComplianceItemsCommand = ListComplianceItemsCommand; - - -/***/ }), - -/***/ 93331: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListComplianceSummariesCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ListComplianceSummariesCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListComplianceSummariesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ListComplianceSummariesRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ListComplianceSummariesResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ListComplianceSummariesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ListComplianceSummariesCommand)(output, context); - } -} -exports.ListComplianceSummariesCommand = ListComplianceSummariesCommand; - - -/***/ }), - -/***/ 41758: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListDocumentMetadataHistoryCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ListDocumentMetadataHistoryCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListDocumentMetadataHistoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ListDocumentMetadataHistoryRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ListDocumentMetadataHistoryResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ListDocumentMetadataHistoryCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ListDocumentMetadataHistoryCommand)(output, context); - } -} -exports.ListDocumentMetadataHistoryCommand = ListDocumentMetadataHistoryCommand; - - -/***/ }), - -/***/ 41473: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListDocumentVersionsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ListDocumentVersionsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListDocumentVersionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ListDocumentVersionsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ListDocumentVersionsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ListDocumentVersionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ListDocumentVersionsCommand)(output, context); - } -} -exports.ListDocumentVersionsCommand = ListDocumentVersionsCommand; - - -/***/ }), - -/***/ 37018: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListDocumentsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ListDocumentsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListDocumentsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ListDocumentsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ListDocumentsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ListDocumentsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ListDocumentsCommand)(output, context); - } -} -exports.ListDocumentsCommand = ListDocumentsCommand; - - -/***/ }), - -/***/ 15943: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListInventoryEntriesCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ListInventoryEntriesCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListInventoryEntriesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ListInventoryEntriesRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ListInventoryEntriesResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ListInventoryEntriesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ListInventoryEntriesCommand)(output, context); - } -} -exports.ListInventoryEntriesCommand = ListInventoryEntriesCommand; - - -/***/ }), - -/***/ 23927: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListOpsItemEventsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ListOpsItemEventsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListOpsItemEventsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ListOpsItemEventsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ListOpsItemEventsResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ListOpsItemEventsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ListOpsItemEventsCommand)(output, context); - } -} -exports.ListOpsItemEventsCommand = ListOpsItemEventsCommand; - - -/***/ }), - -/***/ 95342: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListOpsItemRelatedItemsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ListOpsItemRelatedItemsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListOpsItemRelatedItemsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ListOpsItemRelatedItemsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ListOpsItemRelatedItemsResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ListOpsItemRelatedItemsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ListOpsItemRelatedItemsCommand)(output, context); - } -} -exports.ListOpsItemRelatedItemsCommand = ListOpsItemRelatedItemsCommand; - - -/***/ }), - -/***/ 93770: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListOpsMetadataCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ListOpsMetadataCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListOpsMetadataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ListOpsMetadataRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ListOpsMetadataResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ListOpsMetadataCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ListOpsMetadataCommand)(output, context); - } -} -exports.ListOpsMetadataCommand = ListOpsMetadataCommand; - - -/***/ }), - -/***/ 25219: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListResourceComplianceSummariesCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ListResourceComplianceSummariesCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListResourceComplianceSummariesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ListResourceComplianceSummariesRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ListResourceComplianceSummariesResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ListResourceComplianceSummariesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ListResourceComplianceSummariesCommand)(output, context); - } -} -exports.ListResourceComplianceSummariesCommand = ListResourceComplianceSummariesCommand; - - -/***/ }), - -/***/ 30788: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListResourceDataSyncCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ListResourceDataSyncCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListResourceDataSyncCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ListResourceDataSyncRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ListResourceDataSyncResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ListResourceDataSyncCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ListResourceDataSyncCommand)(output, context); - } -} -exports.ListResourceDataSyncCommand = ListResourceDataSyncCommand; - - -/***/ }), - -/***/ 99655: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListTagsForResourceCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ListTagsForResourceCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListTagsForResourceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ListTagsForResourceRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ListTagsForResourceResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ListTagsForResourceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ListTagsForResourceCommand)(output, context); - } -} -exports.ListTagsForResourceCommand = ListTagsForResourceCommand; - - -/***/ }), - -/***/ 3863: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ModifyDocumentPermissionCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ModifyDocumentPermissionCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ModifyDocumentPermissionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ModifyDocumentPermissionRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ModifyDocumentPermissionResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ModifyDocumentPermissionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ModifyDocumentPermissionCommand)(output, context); - } -} -exports.ModifyDocumentPermissionCommand = ModifyDocumentPermissionCommand; - - -/***/ }), - -/***/ 5777: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PutComplianceItemsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class PutComplianceItemsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "PutComplianceItemsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.PutComplianceItemsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.PutComplianceItemsResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1PutComplianceItemsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1PutComplianceItemsCommand)(output, context); - } -} -exports.PutComplianceItemsCommand = PutComplianceItemsCommand; - - -/***/ }), - -/***/ 61374: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PutInventoryCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class PutInventoryCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "PutInventoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.PutInventoryRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.PutInventoryResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1PutInventoryCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1PutInventoryCommand)(output, context); - } -} -exports.PutInventoryCommand = PutInventoryCommand; - - -/***/ }), - -/***/ 53056: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PutParameterCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class PutParameterCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "PutParameterCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.PutParameterRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.PutParameterResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1PutParameterCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1PutParameterCommand)(output, context); - } -} -exports.PutParameterCommand = PutParameterCommand; - - -/***/ }), - -/***/ 51698: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.RegisterDefaultPatchBaselineCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class RegisterDefaultPatchBaselineCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "RegisterDefaultPatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.RegisterDefaultPatchBaselineRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.RegisterDefaultPatchBaselineResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1RegisterDefaultPatchBaselineCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1RegisterDefaultPatchBaselineCommand)(output, context); - } -} -exports.RegisterDefaultPatchBaselineCommand = RegisterDefaultPatchBaselineCommand; - - -/***/ }), - -/***/ 40858: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.RegisterPatchBaselineForPatchGroupCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class RegisterPatchBaselineForPatchGroupCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "RegisterPatchBaselineForPatchGroupCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.RegisterPatchBaselineForPatchGroupRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.RegisterPatchBaselineForPatchGroupResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand)(output, context); - } -} -exports.RegisterPatchBaselineForPatchGroupCommand = RegisterPatchBaselineForPatchGroupCommand; - - -/***/ }), - -/***/ 99894: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.RegisterTargetWithMaintenanceWindowCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class RegisterTargetWithMaintenanceWindowCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "RegisterTargetWithMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.RegisterTargetWithMaintenanceWindowResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand)(output, context); - } -} -exports.RegisterTargetWithMaintenanceWindowCommand = RegisterTargetWithMaintenanceWindowCommand; - - -/***/ }), - -/***/ 15375: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.RegisterTaskWithMaintenanceWindowCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class RegisterTaskWithMaintenanceWindowCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "RegisterTaskWithMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.RegisterTaskWithMaintenanceWindowResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand)(output, context); - } -} -exports.RegisterTaskWithMaintenanceWindowCommand = RegisterTaskWithMaintenanceWindowCommand; - - -/***/ }), - -/***/ 52892: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.RemoveTagsFromResourceCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class RemoveTagsFromResourceCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "RemoveTagsFromResourceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.RemoveTagsFromResourceRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.RemoveTagsFromResourceResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1RemoveTagsFromResourceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1RemoveTagsFromResourceCommand)(output, context); - } -} -exports.RemoveTagsFromResourceCommand = RemoveTagsFromResourceCommand; - - -/***/ }), - -/***/ 80327: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ResetServiceSettingCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ResetServiceSettingCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ResetServiceSettingCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ResetServiceSettingRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ResetServiceSettingResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ResetServiceSettingCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ResetServiceSettingCommand)(output, context); - } -} -exports.ResetServiceSettingCommand = ResetServiceSettingCommand; - - -/***/ }), - -/***/ 25508: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ResumeSessionCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class ResumeSessionCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ResumeSessionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.ResumeSessionRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.ResumeSessionResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1ResumeSessionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1ResumeSessionCommand)(output, context); - } -} -exports.ResumeSessionCommand = ResumeSessionCommand; - - -/***/ }), - -/***/ 55185: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SendAutomationSignalCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class SendAutomationSignalCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "SendAutomationSignalCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.SendAutomationSignalRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.SendAutomationSignalResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1SendAutomationSignalCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1SendAutomationSignalCommand)(output, context); - } -} -exports.SendAutomationSignalCommand = SendAutomationSignalCommand; - - -/***/ }), - -/***/ 63552: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SendCommandCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class SendCommandCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "SendCommandCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.SendCommandRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.SendCommandResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1SendCommandCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1SendCommandCommand)(output, context); - } -} -exports.SendCommandCommand = SendCommandCommand; - - -/***/ }), - -/***/ 52233: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.StartAssociationsOnceCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class StartAssociationsOnceCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "StartAssociationsOnceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.StartAssociationsOnceRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.StartAssociationsOnceResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1StartAssociationsOnceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1StartAssociationsOnceCommand)(output, context); - } -} -exports.StartAssociationsOnceCommand = StartAssociationsOnceCommand; - - -/***/ }), - -/***/ 81295: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.StartAutomationExecutionCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class StartAutomationExecutionCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "StartAutomationExecutionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.StartAutomationExecutionRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.StartAutomationExecutionResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1StartAutomationExecutionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1StartAutomationExecutionCommand)(output, context); - } -} -exports.StartAutomationExecutionCommand = StartAutomationExecutionCommand; - - -/***/ }), - -/***/ 21965: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.StartChangeRequestExecutionCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class StartChangeRequestExecutionCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "StartChangeRequestExecutionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.StartChangeRequestExecutionRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.StartChangeRequestExecutionResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1StartChangeRequestExecutionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1StartChangeRequestExecutionCommand)(output, context); - } -} -exports.StartChangeRequestExecutionCommand = StartChangeRequestExecutionCommand; - - -/***/ }), - -/***/ 1829: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.StartSessionCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class StartSessionCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "StartSessionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.StartSessionRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.StartSessionResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1StartSessionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1StartSessionCommand)(output, context); - } -} -exports.StartSessionCommand = StartSessionCommand; - - -/***/ }), - -/***/ 11430: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.StopAutomationExecutionCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class StopAutomationExecutionCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "StopAutomationExecutionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.StopAutomationExecutionRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.StopAutomationExecutionResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1StopAutomationExecutionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1StopAutomationExecutionCommand)(output, context); - } -} -exports.StopAutomationExecutionCommand = StopAutomationExecutionCommand; - - -/***/ }), - -/***/ 49199: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.TerminateSessionCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class TerminateSessionCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "TerminateSessionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.TerminateSessionRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.TerminateSessionResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1TerminateSessionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1TerminateSessionCommand)(output, context); - } -} -exports.TerminateSessionCommand = TerminateSessionCommand; - - -/***/ }), - -/***/ 24376: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UnlabelParameterVersionCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class UnlabelParameterVersionCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UnlabelParameterVersionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.UnlabelParameterVersionRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.UnlabelParameterVersionResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1UnlabelParameterVersionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1UnlabelParameterVersionCommand)(output, context); - } -} -exports.UnlabelParameterVersionCommand = UnlabelParameterVersionCommand; - - -/***/ }), - -/***/ 35455: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateAssociationCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class UpdateAssociationCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateAssociationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.UpdateAssociationRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.UpdateAssociationResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1UpdateAssociationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateAssociationCommand)(output, context); - } -} -exports.UpdateAssociationCommand = UpdateAssociationCommand; - - -/***/ }), - -/***/ 54036: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateAssociationStatusCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class UpdateAssociationStatusCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateAssociationStatusCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.UpdateAssociationStatusRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.UpdateAssociationStatusResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1UpdateAssociationStatusCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateAssociationStatusCommand)(output, context); - } -} -exports.UpdateAssociationStatusCommand = UpdateAssociationStatusCommand; - - -/***/ }), - -/***/ 91539: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateDocumentCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class UpdateDocumentCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateDocumentCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.UpdateDocumentRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.UpdateDocumentResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1UpdateDocumentCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateDocumentCommand)(output, context); - } -} -exports.UpdateDocumentCommand = UpdateDocumentCommand; - - -/***/ }), - -/***/ 39946: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateDocumentDefaultVersionCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_1_1 = __nccwpck_require__(9974); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class UpdateDocumentDefaultVersionCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateDocumentDefaultVersionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.UpdateDocumentDefaultVersionRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.UpdateDocumentDefaultVersionResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1UpdateDocumentDefaultVersionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateDocumentDefaultVersionCommand)(output, context); - } -} -exports.UpdateDocumentDefaultVersionCommand = UpdateDocumentDefaultVersionCommand; - - -/***/ }), - -/***/ 30307: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateDocumentMetadataCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_2_1 = __nccwpck_require__(33439); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class UpdateDocumentMetadataCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateDocumentMetadataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_2_1.UpdateDocumentMetadataRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_2_1.UpdateDocumentMetadataResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1UpdateDocumentMetadataCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateDocumentMetadataCommand)(output, context); - } -} -exports.UpdateDocumentMetadataCommand = UpdateDocumentMetadataCommand; - - -/***/ }), - -/***/ 18832: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateMaintenanceWindowCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_2_1 = __nccwpck_require__(33439); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class UpdateMaintenanceWindowCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_2_1.UpdateMaintenanceWindowRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_2_1.UpdateMaintenanceWindowResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1UpdateMaintenanceWindowCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateMaintenanceWindowCommand)(output, context); - } -} -exports.UpdateMaintenanceWindowCommand = UpdateMaintenanceWindowCommand; - - -/***/ }), - -/***/ 59941: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateMaintenanceWindowTargetCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_2_1 = __nccwpck_require__(33439); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class UpdateMaintenanceWindowTargetCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateMaintenanceWindowTargetCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_2_1.UpdateMaintenanceWindowTargetRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_2_1.UpdateMaintenanceWindowTargetResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1UpdateMaintenanceWindowTargetCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateMaintenanceWindowTargetCommand)(output, context); - } -} -exports.UpdateMaintenanceWindowTargetCommand = UpdateMaintenanceWindowTargetCommand; - - -/***/ }), - -/***/ 42453: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateMaintenanceWindowTaskCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_2_1 = __nccwpck_require__(33439); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class UpdateMaintenanceWindowTaskCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateMaintenanceWindowTaskCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_2_1.UpdateMaintenanceWindowTaskRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_2_1.UpdateMaintenanceWindowTaskResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1UpdateMaintenanceWindowTaskCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateMaintenanceWindowTaskCommand)(output, context); - } -} -exports.UpdateMaintenanceWindowTaskCommand = UpdateMaintenanceWindowTaskCommand; - - -/***/ }), - -/***/ 49753: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateManagedInstanceRoleCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_2_1 = __nccwpck_require__(33439); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class UpdateManagedInstanceRoleCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateManagedInstanceRoleCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_2_1.UpdateManagedInstanceRoleRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_2_1.UpdateManagedInstanceRoleResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1UpdateManagedInstanceRoleCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateManagedInstanceRoleCommand)(output, context); - } -} -exports.UpdateManagedInstanceRoleCommand = UpdateManagedInstanceRoleCommand; - - -/***/ }), - -/***/ 64569: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateOpsItemCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_2_1 = __nccwpck_require__(33439); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class UpdateOpsItemCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateOpsItemCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_2_1.UpdateOpsItemRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_2_1.UpdateOpsItemResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1UpdateOpsItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateOpsItemCommand)(output, context); - } -} -exports.UpdateOpsItemCommand = UpdateOpsItemCommand; - - -/***/ }), - -/***/ 57038: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateOpsMetadataCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_2_1 = __nccwpck_require__(33439); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class UpdateOpsMetadataCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateOpsMetadataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_2_1.UpdateOpsMetadataRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_2_1.UpdateOpsMetadataResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1UpdateOpsMetadataCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateOpsMetadataCommand)(output, context); - } -} -exports.UpdateOpsMetadataCommand = UpdateOpsMetadataCommand; - - -/***/ }), - -/***/ 71939: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdatePatchBaselineCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_2_1 = __nccwpck_require__(33439); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class UpdatePatchBaselineCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdatePatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_2_1.UpdatePatchBaselineRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_2_1.UpdatePatchBaselineResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1UpdatePatchBaselineCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1UpdatePatchBaselineCommand)(output, context); - } -} -exports.UpdatePatchBaselineCommand = UpdatePatchBaselineCommand; - - -/***/ }), - -/***/ 20567: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateResourceDataSyncCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_2_1 = __nccwpck_require__(33439); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class UpdateResourceDataSyncCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateResourceDataSyncCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_2_1.UpdateResourceDataSyncRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_2_1.UpdateResourceDataSyncResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1UpdateResourceDataSyncCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateResourceDataSyncCommand)(output, context); - } -} -exports.UpdateResourceDataSyncCommand = UpdateResourceDataSyncCommand; - - -/***/ }), - -/***/ 12789: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UpdateServiceSettingCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_2_1 = __nccwpck_require__(33439); -const Aws_json1_1_1 = __nccwpck_require__(95750); -class UpdateServiceSettingCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateServiceSettingCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_2_1.UpdateServiceSettingRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_2_1.UpdateServiceSettingResultFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.serializeAws_json1_1UpdateServiceSettingCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateServiceSettingCommand)(output, context); - } -} -exports.UpdateServiceSettingCommand = UpdateServiceSettingCommand; - - -/***/ }), - -/***/ 45498: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(16548), exports); -tslib_1.__exportStar(__nccwpck_require__(80864), exports); -tslib_1.__exportStar(__nccwpck_require__(43654), exports); -tslib_1.__exportStar(__nccwpck_require__(16795), exports); -tslib_1.__exportStar(__nccwpck_require__(93455), exports); -tslib_1.__exportStar(__nccwpck_require__(22615), exports); -tslib_1.__exportStar(__nccwpck_require__(87570), exports); -tslib_1.__exportStar(__nccwpck_require__(38888), exports); -tslib_1.__exportStar(__nccwpck_require__(84735), exports); -tslib_1.__exportStar(__nccwpck_require__(17634), exports); -tslib_1.__exportStar(__nccwpck_require__(85963), exports); -tslib_1.__exportStar(__nccwpck_require__(68004), exports); -tslib_1.__exportStar(__nccwpck_require__(30345), exports); -tslib_1.__exportStar(__nccwpck_require__(67594), exports); -tslib_1.__exportStar(__nccwpck_require__(5292), exports); -tslib_1.__exportStar(__nccwpck_require__(91242), exports); -tslib_1.__exportStar(__nccwpck_require__(47241), exports); -tslib_1.__exportStar(__nccwpck_require__(5695), exports); -tslib_1.__exportStar(__nccwpck_require__(35235), exports); -tslib_1.__exportStar(__nccwpck_require__(74261), exports); -tslib_1.__exportStar(__nccwpck_require__(35322), exports); -tslib_1.__exportStar(__nccwpck_require__(5734), exports); -tslib_1.__exportStar(__nccwpck_require__(4505), exports); -tslib_1.__exportStar(__nccwpck_require__(16721), exports); -tslib_1.__exportStar(__nccwpck_require__(11889), exports); -tslib_1.__exportStar(__nccwpck_require__(86346), exports); -tslib_1.__exportStar(__nccwpck_require__(98087), exports); -tslib_1.__exportStar(__nccwpck_require__(99158), exports); -tslib_1.__exportStar(__nccwpck_require__(55442), exports); -tslib_1.__exportStar(__nccwpck_require__(89459), exports); -tslib_1.__exportStar(__nccwpck_require__(3119), exports); -tslib_1.__exportStar(__nccwpck_require__(70342), exports); -tslib_1.__exportStar(__nccwpck_require__(50626), exports); -tslib_1.__exportStar(__nccwpck_require__(73378), exports); -tslib_1.__exportStar(__nccwpck_require__(4165), exports); -tslib_1.__exportStar(__nccwpck_require__(35531), exports); -tslib_1.__exportStar(__nccwpck_require__(48907), exports); -tslib_1.__exportStar(__nccwpck_require__(11074), exports); -tslib_1.__exportStar(__nccwpck_require__(50546), exports); -tslib_1.__exportStar(__nccwpck_require__(72297), exports); -tslib_1.__exportStar(__nccwpck_require__(96994), exports); -tslib_1.__exportStar(__nccwpck_require__(50028), exports); -tslib_1.__exportStar(__nccwpck_require__(45672), exports); -tslib_1.__exportStar(__nccwpck_require__(51289), exports); -tslib_1.__exportStar(__nccwpck_require__(71741), exports); -tslib_1.__exportStar(__nccwpck_require__(19495), exports); -tslib_1.__exportStar(__nccwpck_require__(66016), exports); -tslib_1.__exportStar(__nccwpck_require__(83598), exports); -tslib_1.__exportStar(__nccwpck_require__(78871), exports); -tslib_1.__exportStar(__nccwpck_require__(26677), exports); -tslib_1.__exportStar(__nccwpck_require__(99482), exports); -tslib_1.__exportStar(__nccwpck_require__(41025), exports); -tslib_1.__exportStar(__nccwpck_require__(76177), exports); -tslib_1.__exportStar(__nccwpck_require__(45975), exports); -tslib_1.__exportStar(__nccwpck_require__(83186), exports); -tslib_1.__exportStar(__nccwpck_require__(1655), exports); -tslib_1.__exportStar(__nccwpck_require__(45192), exports); -tslib_1.__exportStar(__nccwpck_require__(36964), exports); -tslib_1.__exportStar(__nccwpck_require__(43787), exports); -tslib_1.__exportStar(__nccwpck_require__(65098), exports); -tslib_1.__exportStar(__nccwpck_require__(29240), exports); -tslib_1.__exportStar(__nccwpck_require__(68121), exports); -tslib_1.__exportStar(__nccwpck_require__(93305), exports); -tslib_1.__exportStar(__nccwpck_require__(99654), exports); -tslib_1.__exportStar(__nccwpck_require__(57498), exports); -tslib_1.__exportStar(__nccwpck_require__(92944), exports); -tslib_1.__exportStar(__nccwpck_require__(6408), exports); -tslib_1.__exportStar(__nccwpck_require__(93690), exports); -tslib_1.__exportStar(__nccwpck_require__(88675), exports); -tslib_1.__exportStar(__nccwpck_require__(49424), exports); -tslib_1.__exportStar(__nccwpck_require__(52486), exports); -tslib_1.__exportStar(__nccwpck_require__(6244), exports); -tslib_1.__exportStar(__nccwpck_require__(94578), exports); -tslib_1.__exportStar(__nccwpck_require__(12083), exports); -tslib_1.__exportStar(__nccwpck_require__(46293), exports); -tslib_1.__exportStar(__nccwpck_require__(65672), exports); -tslib_1.__exportStar(__nccwpck_require__(19458), exports); -tslib_1.__exportStar(__nccwpck_require__(53134), exports); -tslib_1.__exportStar(__nccwpck_require__(30108), exports); -tslib_1.__exportStar(__nccwpck_require__(22164), exports); -tslib_1.__exportStar(__nccwpck_require__(43487), exports); -tslib_1.__exportStar(__nccwpck_require__(35873), exports); -tslib_1.__exportStar(__nccwpck_require__(95382), exports); -tslib_1.__exportStar(__nccwpck_require__(36289), exports); -tslib_1.__exportStar(__nccwpck_require__(54351), exports); -tslib_1.__exportStar(__nccwpck_require__(40838), exports); -tslib_1.__exportStar(__nccwpck_require__(29074), exports); -tslib_1.__exportStar(__nccwpck_require__(27002), exports); -tslib_1.__exportStar(__nccwpck_require__(56883), exports); -tslib_1.__exportStar(__nccwpck_require__(29771), exports); -tslib_1.__exportStar(__nccwpck_require__(93331), exports); -tslib_1.__exportStar(__nccwpck_require__(41758), exports); -tslib_1.__exportStar(__nccwpck_require__(41473), exports); -tslib_1.__exportStar(__nccwpck_require__(37018), exports); -tslib_1.__exportStar(__nccwpck_require__(15943), exports); -tslib_1.__exportStar(__nccwpck_require__(23927), exports); -tslib_1.__exportStar(__nccwpck_require__(95342), exports); -tslib_1.__exportStar(__nccwpck_require__(93770), exports); -tslib_1.__exportStar(__nccwpck_require__(25219), exports); -tslib_1.__exportStar(__nccwpck_require__(30788), exports); -tslib_1.__exportStar(__nccwpck_require__(99655), exports); -tslib_1.__exportStar(__nccwpck_require__(3863), exports); -tslib_1.__exportStar(__nccwpck_require__(5777), exports); -tslib_1.__exportStar(__nccwpck_require__(61374), exports); -tslib_1.__exportStar(__nccwpck_require__(53056), exports); -tslib_1.__exportStar(__nccwpck_require__(51698), exports); -tslib_1.__exportStar(__nccwpck_require__(40858), exports); -tslib_1.__exportStar(__nccwpck_require__(99894), exports); -tslib_1.__exportStar(__nccwpck_require__(15375), exports); -tslib_1.__exportStar(__nccwpck_require__(52892), exports); -tslib_1.__exportStar(__nccwpck_require__(80327), exports); -tslib_1.__exportStar(__nccwpck_require__(25508), exports); -tslib_1.__exportStar(__nccwpck_require__(55185), exports); -tslib_1.__exportStar(__nccwpck_require__(63552), exports); -tslib_1.__exportStar(__nccwpck_require__(52233), exports); -tslib_1.__exportStar(__nccwpck_require__(81295), exports); -tslib_1.__exportStar(__nccwpck_require__(21965), exports); -tslib_1.__exportStar(__nccwpck_require__(1829), exports); -tslib_1.__exportStar(__nccwpck_require__(11430), exports); -tslib_1.__exportStar(__nccwpck_require__(49199), exports); -tslib_1.__exportStar(__nccwpck_require__(24376), exports); -tslib_1.__exportStar(__nccwpck_require__(35455), exports); -tslib_1.__exportStar(__nccwpck_require__(54036), exports); -tslib_1.__exportStar(__nccwpck_require__(91539), exports); -tslib_1.__exportStar(__nccwpck_require__(39946), exports); -tslib_1.__exportStar(__nccwpck_require__(30307), exports); -tslib_1.__exportStar(__nccwpck_require__(18832), exports); -tslib_1.__exportStar(__nccwpck_require__(59941), exports); -tslib_1.__exportStar(__nccwpck_require__(42453), exports); -tslib_1.__exportStar(__nccwpck_require__(49753), exports); -tslib_1.__exportStar(__nccwpck_require__(64569), exports); -tslib_1.__exportStar(__nccwpck_require__(57038), exports); -tslib_1.__exportStar(__nccwpck_require__(71939), exports); -tslib_1.__exportStar(__nccwpck_require__(20567), exports); -tslib_1.__exportStar(__nccwpck_require__(12789), exports); - - -/***/ }), - -/***/ 57499: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.defaultRegionInfoProvider = void 0; -const config_resolver_1 = __nccwpck_require__(56153); -const regionHash = { - "ca-central-1": { - variants: [ - { - hostname: "ssm-fips.ca-central-1.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-east-1": { - variants: [ - { - hostname: "ssm-fips.us-east-1.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-east-2": { - variants: [ - { - hostname: "ssm-fips.us-east-2.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-gov-east-1": { - variants: [ - { - hostname: "ssm.us-gov-east-1.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-gov-west-1": { - variants: [ - { - hostname: "ssm.us-gov-west-1.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-west-1": { - variants: [ - { - hostname: "ssm-fips.us-west-1.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-west-2": { - variants: [ - { - hostname: "ssm-fips.us-west-2.amazonaws.com", - tags: ["fips"], - }, - ], - }, -}; -const partitionHash = { - aws: { - regions: [ - "af-south-1", - "ap-east-1", - "ap-northeast-1", - "ap-northeast-2", - "ap-northeast-3", - "ap-south-1", - "ap-southeast-1", - "ap-southeast-2", - "ap-southeast-3", - "ca-central-1", - "eu-central-1", - "eu-north-1", - "eu-south-1", - "eu-west-1", - "eu-west-2", - "eu-west-3", - "fips-ca-central-1", - "fips-us-east-1", - "fips-us-east-2", - "fips-us-west-1", - "fips-us-west-2", - "me-south-1", - "sa-east-1", - "us-east-1", - "us-east-2", - "us-west-1", - "us-west-2", - ], - regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "ssm.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "ssm-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "ssm-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "ssm.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, - "aws-cn": { - regions: ["cn-north-1", "cn-northwest-1"], - regionRegex: "^cn\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "ssm.{region}.amazonaws.com.cn", - tags: [], - }, - { - hostname: "ssm-fips.{region}.amazonaws.com.cn", - tags: ["fips"], - }, - { - hostname: "ssm-fips.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack", "fips"], - }, - { - hostname: "ssm.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack"], - }, - ], - }, - "aws-iso": { - regions: ["us-iso-east-1", "us-iso-west-1"], - regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "ssm.{region}.c2s.ic.gov", - tags: [], - }, - { - hostname: "ssm-fips.{region}.c2s.ic.gov", - tags: ["fips"], - }, - ], - }, - "aws-iso-b": { - regions: ["us-isob-east-1"], - regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "ssm.{region}.sc2s.sgov.gov", - tags: [], - }, - { - hostname: "ssm-fips.{region}.sc2s.sgov.gov", - tags: ["fips"], - }, - ], - }, - "aws-us-gov": { - regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"], - regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "ssm.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "ssm.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "ssm-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "ssm.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, -}; -const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { - ...options, - signingService: "ssm", - regionHash, - partitionHash, -}); -exports.defaultRegionInfoProvider = defaultRegionInfoProvider; - - -/***/ }), - -/***/ 20341: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SSMServiceException = void 0; -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(24046), exports); -tslib_1.__exportStar(__nccwpck_require__(13440), exports); -tslib_1.__exportStar(__nccwpck_require__(45498), exports); -tslib_1.__exportStar(__nccwpck_require__(84513), exports); -tslib_1.__exportStar(__nccwpck_require__(62666), exports); -tslib_1.__exportStar(__nccwpck_require__(88981), exports); -var SSMServiceException_1 = __nccwpck_require__(97777); -Object.defineProperty(exports, "SSMServiceException", ({ enumerable: true, get: function () { return SSMServiceException_1.SSMServiceException; } })); - - -/***/ }), - -/***/ 97777: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SSMServiceException = void 0; -const smithy_client_1 = __nccwpck_require__(4963); -class SSMServiceException extends smithy_client_1.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, SSMServiceException.prototype); - } -} -exports.SSMServiceException = SSMServiceException; - - -/***/ }), - -/***/ 84513: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(82053), exports); -tslib_1.__exportStar(__nccwpck_require__(9974), exports); -tslib_1.__exportStar(__nccwpck_require__(33439), exports); - - -/***/ }), - -/***/ 82053: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.PatchFilterKey = exports.PatchComplianceLevel = exports.OpsMetadataTooManyUpdatesException = exports.OpsMetadataLimitExceededException = exports.OpsMetadataInvalidArgumentException = exports.OpsMetadataAlreadyExistsException = exports.OpsItemAlreadyExistsException = exports.OpsItemDataType = exports.ResourceLimitExceededException = exports.IdempotentParameterMismatch = exports.MaxDocumentSizeExceeded = exports.InvalidDocumentSchemaVersion = exports.InvalidDocumentContent = exports.DocumentLimitExceeded = exports.DocumentAlreadyExists = exports.DocumentStatus = exports.ReviewStatus = exports.PlatformType = exports.DocumentHashType = exports.DocumentType = exports.DocumentFormat = exports.AttachmentsSourceKey = exports.UnsupportedPlatformType = exports.InvalidTargetMaps = exports.InvalidTarget = exports.InvalidSchedule = exports.InvalidOutputLocation = exports.InvalidDocumentVersion = exports.InvalidDocument = exports.AssociationStatusName = exports.AssociationSyncCompliance = exports.AssociationComplianceSeverity = exports.AssociationLimitExceeded = exports.AssociationAlreadyExists = exports.InvalidParameters = exports.DoesNotExistException = exports.InvalidInstanceId = exports.InvalidCommandId = exports.DuplicateInstanceId = exports.OpsItemRelatedItemAlreadyExistsException = exports.OpsItemNotFoundException = exports.OpsItemLimitExceededException = exports.OpsItemInvalidParameterException = exports.AlreadyExistsException = exports.TooManyUpdates = exports.TooManyTagsError = exports.InvalidResourceType = exports.InvalidResourceId = exports.InternalServerError = exports.ResourceTypeForTagging = void 0; -exports.RebootOption = exports.PatchOperationType = exports.PatchComplianceDataState = exports.InvalidInstanceInformationFilterValue = exports.SourceType = exports.ResourceType = exports.PingStatus = exports.InstanceInformationFilterKey = exports.UnsupportedOperatingSystem = exports.PatchDeploymentStatus = exports.InvalidPermissionType = exports.DocumentPermissionType = exports.StepExecutionFilterKey = exports.AutomationExecutionNotFoundException = exports.InvalidFilterValue = exports.InvalidFilterKey = exports.ExecutionMode = exports.AutomationType = exports.AutomationSubtype = exports.AutomationExecutionStatus = exports.AutomationExecutionFilterKey = exports.AssociationExecutionTargetsFilterKey = exports.AssociationExecutionDoesNotExist = exports.AssociationFilterOperatorType = exports.AssociationExecutionFilterKey = exports.InvalidAssociationVersion = exports.InvalidNextToken = exports.InvalidFilter = exports.DescribeActivationsFilterKeys = exports.TargetInUseException = exports.ResourceDataSyncNotFoundException = exports.ResourceInUseException = exports.ParameterNotFound = exports.OpsMetadataNotFoundException = exports.InvalidTypeNameException = exports.InvalidOptionException = exports.InvalidInventoryRequestException = exports.InvalidDeleteInventoryParametersException = exports.InventorySchemaDeleteOption = exports.InvalidDocumentOperation = exports.AssociatedInstances = exports.AssociationDoesNotExist = exports.InvalidActivationId = exports.InvalidActivation = exports.ResourceDataSyncInvalidConfigurationException = exports.ResourceDataSyncCountExceededException = exports.ResourceDataSyncAlreadyExistsException = exports.ResourceDataSyncS3Format = exports.PatchAction = exports.OperatingSystem = void 0; -exports.OpsItemDataValueFilterSensitiveLog = exports.OpsItemNotificationFilterSensitiveLog = exports.CreateMaintenanceWindowResultFilterSensitiveLog = exports.CreateMaintenanceWindowRequestFilterSensitiveLog = exports.CreateDocumentResultFilterSensitiveLog = exports.DocumentDescriptionFilterSensitiveLog = exports.ReviewInformationFilterSensitiveLog = exports.DocumentParameterFilterSensitiveLog = exports.AttachmentInformationFilterSensitiveLog = exports.CreateDocumentRequestFilterSensitiveLog = exports.DocumentRequiresFilterSensitiveLog = exports.AttachmentsSourceFilterSensitiveLog = exports.CreateAssociationBatchResultFilterSensitiveLog = exports.FailedCreateAssociationFilterSensitiveLog = exports.CreateAssociationBatchRequestFilterSensitiveLog = exports.CreateAssociationBatchRequestEntryFilterSensitiveLog = exports.CreateAssociationResultFilterSensitiveLog = exports.AssociationDescriptionFilterSensitiveLog = exports.AssociationStatusFilterSensitiveLog = exports.AssociationOverviewFilterSensitiveLog = exports.CreateAssociationRequestFilterSensitiveLog = exports.TargetFilterSensitiveLog = exports.TargetLocationFilterSensitiveLog = exports.InstanceAssociationOutputLocationFilterSensitiveLog = exports.S3OutputLocationFilterSensitiveLog = exports.CreateActivationResultFilterSensitiveLog = exports.CreateActivationRequestFilterSensitiveLog = exports.RegistrationMetadataItemFilterSensitiveLog = exports.CancelMaintenanceWindowExecutionResultFilterSensitiveLog = exports.CancelMaintenanceWindowExecutionRequestFilterSensitiveLog = exports.CancelCommandResultFilterSensitiveLog = exports.CancelCommandRequestFilterSensitiveLog = exports.AssociateOpsItemRelatedItemResponseFilterSensitiveLog = exports.AssociateOpsItemRelatedItemRequestFilterSensitiveLog = exports.AddTagsToResourceResultFilterSensitiveLog = exports.AddTagsToResourceRequestFilterSensitiveLog = exports.ActivationFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.AccountSharingInfoFilterSensitiveLog = exports.ParametersFilterKey = exports.OpsItemStatus = exports.OpsItemFilterOperator = exports.OpsItemFilterKey = exports.MaintenanceWindowTaskCutoffBehavior = exports.MaintenanceWindowResourceType = exports.MaintenanceWindowTaskType = exports.MaintenanceWindowExecutionStatus = exports.InvalidDeletionIdException = exports.InventoryDeletionStatus = exports.InstancePatchStateOperatorType = void 0; -exports.DeregisterTaskFromMaintenanceWindowResultFilterSensitiveLog = exports.DeregisterTaskFromMaintenanceWindowRequestFilterSensitiveLog = exports.DeregisterTargetFromMaintenanceWindowResultFilterSensitiveLog = exports.DeregisterTargetFromMaintenanceWindowRequestFilterSensitiveLog = exports.DeregisterPatchBaselineForPatchGroupResultFilterSensitiveLog = exports.DeregisterPatchBaselineForPatchGroupRequestFilterSensitiveLog = exports.DeregisterManagedInstanceResultFilterSensitiveLog = exports.DeregisterManagedInstanceRequestFilterSensitiveLog = exports.DeleteResourceDataSyncResultFilterSensitiveLog = exports.DeleteResourceDataSyncRequestFilterSensitiveLog = exports.DeletePatchBaselineResultFilterSensitiveLog = exports.DeletePatchBaselineRequestFilterSensitiveLog = exports.DeleteParametersResultFilterSensitiveLog = exports.DeleteParametersRequestFilterSensitiveLog = exports.DeleteParameterResultFilterSensitiveLog = exports.DeleteParameterRequestFilterSensitiveLog = exports.DeleteOpsMetadataResultFilterSensitiveLog = exports.DeleteOpsMetadataRequestFilterSensitiveLog = exports.DeleteMaintenanceWindowResultFilterSensitiveLog = exports.DeleteMaintenanceWindowRequestFilterSensitiveLog = exports.DeleteInventoryResultFilterSensitiveLog = exports.InventoryDeletionSummaryFilterSensitiveLog = exports.InventoryDeletionSummaryItemFilterSensitiveLog = exports.DeleteInventoryRequestFilterSensitiveLog = exports.DeleteDocumentResultFilterSensitiveLog = exports.DeleteDocumentRequestFilterSensitiveLog = exports.DeleteAssociationResultFilterSensitiveLog = exports.DeleteAssociationRequestFilterSensitiveLog = exports.DeleteActivationResultFilterSensitiveLog = exports.DeleteActivationRequestFilterSensitiveLog = exports.CreateResourceDataSyncResultFilterSensitiveLog = exports.CreateResourceDataSyncRequestFilterSensitiveLog = exports.ResourceDataSyncSourceFilterSensitiveLog = exports.ResourceDataSyncAwsOrganizationsSourceFilterSensitiveLog = exports.ResourceDataSyncOrganizationalUnitFilterSensitiveLog = exports.ResourceDataSyncS3DestinationFilterSensitiveLog = exports.ResourceDataSyncDestinationDataSharingFilterSensitiveLog = exports.CreatePatchBaselineResultFilterSensitiveLog = exports.CreatePatchBaselineRequestFilterSensitiveLog = exports.PatchSourceFilterSensitiveLog = exports.PatchRuleGroupFilterSensitiveLog = exports.PatchRuleFilterSensitiveLog = exports.PatchFilterGroupFilterSensitiveLog = exports.PatchFilterFilterSensitiveLog = exports.CreateOpsMetadataResultFilterSensitiveLog = exports.CreateOpsMetadataRequestFilterSensitiveLog = exports.MetadataValueFilterSensitiveLog = exports.CreateOpsItemResponseFilterSensitiveLog = exports.CreateOpsItemRequestFilterSensitiveLog = exports.RelatedOpsItemFilterSensitiveLog = void 0; -exports.InstanceInformationFilterSensitiveLog = exports.InstanceAggregatedAssociationOverviewFilterSensitiveLog = exports.DescribeInstanceInformationRequestFilterSensitiveLog = exports.InstanceInformationFilterFilterSensitiveLog = exports.InstanceInformationStringFilterFilterSensitiveLog = exports.DescribeInstanceAssociationsStatusResultFilterSensitiveLog = exports.InstanceAssociationStatusInfoFilterSensitiveLog = exports.InstanceAssociationOutputUrlFilterSensitiveLog = exports.S3OutputUrlFilterSensitiveLog = exports.DescribeInstanceAssociationsStatusRequestFilterSensitiveLog = exports.DescribeEffectivePatchesForPatchBaselineResultFilterSensitiveLog = exports.EffectivePatchFilterSensitiveLog = exports.PatchStatusFilterSensitiveLog = exports.DescribeEffectivePatchesForPatchBaselineRequestFilterSensitiveLog = exports.DescribeEffectiveInstanceAssociationsResultFilterSensitiveLog = exports.InstanceAssociationFilterSensitiveLog = exports.DescribeEffectiveInstanceAssociationsRequestFilterSensitiveLog = exports.DescribeDocumentPermissionResponseFilterSensitiveLog = exports.DescribeDocumentPermissionRequestFilterSensitiveLog = exports.DescribeDocumentResultFilterSensitiveLog = exports.DescribeDocumentRequestFilterSensitiveLog = exports.DescribeAvailablePatchesResultFilterSensitiveLog = exports.PatchFilterSensitiveLog = exports.DescribeAvailablePatchesRequestFilterSensitiveLog = exports.PatchOrchestratorFilterFilterSensitiveLog = exports.DescribeAutomationStepExecutionsResultFilterSensitiveLog = exports.StepExecutionFilterSensitiveLog = exports.FailureDetailsFilterSensitiveLog = exports.DescribeAutomationStepExecutionsRequestFilterSensitiveLog = exports.StepExecutionFilterFilterSensitiveLog = exports.DescribeAutomationExecutionsResultFilterSensitiveLog = exports.AutomationExecutionMetadataFilterSensitiveLog = exports.RunbookFilterSensitiveLog = exports.ResolvedTargetsFilterSensitiveLog = exports.DescribeAutomationExecutionsRequestFilterSensitiveLog = exports.AutomationExecutionFilterFilterSensitiveLog = exports.DescribeAssociationExecutionTargetsResultFilterSensitiveLog = exports.AssociationExecutionTargetFilterSensitiveLog = exports.OutputSourceFilterSensitiveLog = exports.DescribeAssociationExecutionTargetsRequestFilterSensitiveLog = exports.AssociationExecutionTargetsFilterFilterSensitiveLog = exports.DescribeAssociationExecutionsResultFilterSensitiveLog = exports.AssociationExecutionFilterSensitiveLog = exports.DescribeAssociationExecutionsRequestFilterSensitiveLog = exports.AssociationExecutionFilterFilterSensitiveLog = exports.DescribeAssociationResultFilterSensitiveLog = exports.DescribeAssociationRequestFilterSensitiveLog = exports.DescribeActivationsResultFilterSensitiveLog = exports.DescribeActivationsRequestFilterSensitiveLog = exports.DescribeActivationsFilterFilterSensitiveLog = void 0; -exports.ParameterInlinePolicyFilterSensitiveLog = exports.DescribeParametersRequestFilterSensitiveLog = exports.ParameterStringFilterFilterSensitiveLog = exports.ParametersFilterFilterSensitiveLog = exports.DescribeOpsItemsResponseFilterSensitiveLog = exports.OpsItemSummaryFilterSensitiveLog = exports.DescribeOpsItemsRequestFilterSensitiveLog = exports.OpsItemFilterFilterSensitiveLog = exports.DescribeMaintenanceWindowTasksResultFilterSensitiveLog = exports.MaintenanceWindowTaskFilterSensitiveLog = exports.MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog = exports.LoggingInfoFilterSensitiveLog = exports.DescribeMaintenanceWindowTasksRequestFilterSensitiveLog = exports.DescribeMaintenanceWindowTargetsResultFilterSensitiveLog = exports.MaintenanceWindowTargetFilterSensitiveLog = exports.DescribeMaintenanceWindowTargetsRequestFilterSensitiveLog = exports.DescribeMaintenanceWindowsForTargetResultFilterSensitiveLog = exports.MaintenanceWindowIdentityForTargetFilterSensitiveLog = exports.DescribeMaintenanceWindowsForTargetRequestFilterSensitiveLog = exports.DescribeMaintenanceWindowScheduleResultFilterSensitiveLog = exports.ScheduledWindowExecutionFilterSensitiveLog = exports.DescribeMaintenanceWindowScheduleRequestFilterSensitiveLog = exports.DescribeMaintenanceWindowsResultFilterSensitiveLog = exports.MaintenanceWindowIdentityFilterSensitiveLog = exports.DescribeMaintenanceWindowsRequestFilterSensitiveLog = exports.DescribeMaintenanceWindowExecutionTasksResultFilterSensitiveLog = exports.MaintenanceWindowExecutionTaskIdentityFilterSensitiveLog = exports.DescribeMaintenanceWindowExecutionTasksRequestFilterSensitiveLog = exports.DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog = exports.MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog = exports.DescribeMaintenanceWindowExecutionTaskInvocationsRequestFilterSensitiveLog = exports.DescribeMaintenanceWindowExecutionsResultFilterSensitiveLog = exports.MaintenanceWindowExecutionFilterSensitiveLog = exports.DescribeMaintenanceWindowExecutionsRequestFilterSensitiveLog = exports.MaintenanceWindowFilterFilterSensitiveLog = exports.DescribeInventoryDeletionsResultFilterSensitiveLog = exports.InventoryDeletionStatusItemFilterSensitiveLog = exports.DescribeInventoryDeletionsRequestFilterSensitiveLog = exports.DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog = exports.DescribeInstancePatchStatesForPatchGroupRequestFilterSensitiveLog = exports.InstancePatchStateFilterFilterSensitiveLog = exports.DescribeInstancePatchStatesResultFilterSensitiveLog = exports.InstancePatchStateFilterSensitiveLog = exports.DescribeInstancePatchStatesRequestFilterSensitiveLog = exports.DescribeInstancePatchesResultFilterSensitiveLog = exports.PatchComplianceDataFilterSensitiveLog = exports.DescribeInstancePatchesRequestFilterSensitiveLog = exports.DescribeInstanceInformationResultFilterSensitiveLog = void 0; -const smithy_client_1 = __nccwpck_require__(4963); -const SSMServiceException_1 = __nccwpck_require__(97777); -var ResourceTypeForTagging; -(function (ResourceTypeForTagging) { - ResourceTypeForTagging["AUTOMATION"] = "Automation"; - ResourceTypeForTagging["DOCUMENT"] = "Document"; - ResourceTypeForTagging["MAINTENANCE_WINDOW"] = "MaintenanceWindow"; - ResourceTypeForTagging["MANAGED_INSTANCE"] = "ManagedInstance"; - ResourceTypeForTagging["OPSMETADATA"] = "OpsMetadata"; - ResourceTypeForTagging["OPS_ITEM"] = "OpsItem"; - ResourceTypeForTagging["PARAMETER"] = "Parameter"; - ResourceTypeForTagging["PATCH_BASELINE"] = "PatchBaseline"; -})(ResourceTypeForTagging = exports.ResourceTypeForTagging || (exports.ResourceTypeForTagging = {})); -class InternalServerError extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InternalServerError", - $fault: "server", - ...opts, - }); - this.name = "InternalServerError"; - this.$fault = "server"; - Object.setPrototypeOf(this, InternalServerError.prototype); - this.Message = opts.Message; - } -} -exports.InternalServerError = InternalServerError; -class InvalidResourceId extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidResourceId", - $fault: "client", - ...opts, - }); - this.name = "InvalidResourceId"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidResourceId.prototype); - } -} -exports.InvalidResourceId = InvalidResourceId; -class InvalidResourceType extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidResourceType", - $fault: "client", - ...opts, - }); - this.name = "InvalidResourceType"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidResourceType.prototype); - } -} -exports.InvalidResourceType = InvalidResourceType; -class TooManyTagsError extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "TooManyTagsError", - $fault: "client", - ...opts, - }); - this.name = "TooManyTagsError"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyTagsError.prototype); - } -} -exports.TooManyTagsError = TooManyTagsError; -class TooManyUpdates extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "TooManyUpdates", - $fault: "client", - ...opts, - }); - this.name = "TooManyUpdates"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyUpdates.prototype); - this.Message = opts.Message; - } -} -exports.TooManyUpdates = TooManyUpdates; -class AlreadyExistsException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AlreadyExistsException", - $fault: "client", - ...opts, - }); - this.name = "AlreadyExistsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AlreadyExistsException.prototype); - this.Message = opts.Message; - } -} -exports.AlreadyExistsException = AlreadyExistsException; -class OpsItemInvalidParameterException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsItemInvalidParameterException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemInvalidParameterException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemInvalidParameterException.prototype); - this.ParameterNames = opts.ParameterNames; - this.Message = opts.Message; - } -} -exports.OpsItemInvalidParameterException = OpsItemInvalidParameterException; -class OpsItemLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsItemLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemLimitExceededException.prototype); - this.ResourceTypes = opts.ResourceTypes; - this.Limit = opts.Limit; - this.LimitType = opts.LimitType; - this.Message = opts.Message; - } -} -exports.OpsItemLimitExceededException = OpsItemLimitExceededException; -class OpsItemNotFoundException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsItemNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.OpsItemNotFoundException = OpsItemNotFoundException; -class OpsItemRelatedItemAlreadyExistsException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsItemRelatedItemAlreadyExistsException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemRelatedItemAlreadyExistsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemRelatedItemAlreadyExistsException.prototype); - this.Message = opts.Message; - this.ResourceUri = opts.ResourceUri; - this.OpsItemId = opts.OpsItemId; - } -} -exports.OpsItemRelatedItemAlreadyExistsException = OpsItemRelatedItemAlreadyExistsException; -class DuplicateInstanceId extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "DuplicateInstanceId", - $fault: "client", - ...opts, - }); - this.name = "DuplicateInstanceId"; - this.$fault = "client"; - Object.setPrototypeOf(this, DuplicateInstanceId.prototype); - } -} -exports.DuplicateInstanceId = DuplicateInstanceId; -class InvalidCommandId extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidCommandId", - $fault: "client", - ...opts, - }); - this.name = "InvalidCommandId"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidCommandId.prototype); - } -} -exports.InvalidCommandId = InvalidCommandId; -class InvalidInstanceId extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidInstanceId", - $fault: "client", - ...opts, - }); - this.name = "InvalidInstanceId"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidInstanceId.prototype); - this.Message = opts.Message; - } -} -exports.InvalidInstanceId = InvalidInstanceId; -class DoesNotExistException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "DoesNotExistException", - $fault: "client", - ...opts, - }); - this.name = "DoesNotExistException"; - this.$fault = "client"; - Object.setPrototypeOf(this, DoesNotExistException.prototype); - this.Message = opts.Message; - } -} -exports.DoesNotExistException = DoesNotExistException; -class InvalidParameters extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidParameters", - $fault: "client", - ...opts, - }); - this.name = "InvalidParameters"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidParameters.prototype); - this.Message = opts.Message; - } -} -exports.InvalidParameters = InvalidParameters; -class AssociationAlreadyExists extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AssociationAlreadyExists", - $fault: "client", - ...opts, - }); - this.name = "AssociationAlreadyExists"; - this.$fault = "client"; - Object.setPrototypeOf(this, AssociationAlreadyExists.prototype); - } -} -exports.AssociationAlreadyExists = AssociationAlreadyExists; -class AssociationLimitExceeded extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AssociationLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "AssociationLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, AssociationLimitExceeded.prototype); - } -} -exports.AssociationLimitExceeded = AssociationLimitExceeded; -var AssociationComplianceSeverity; -(function (AssociationComplianceSeverity) { - AssociationComplianceSeverity["Critical"] = "CRITICAL"; - AssociationComplianceSeverity["High"] = "HIGH"; - AssociationComplianceSeverity["Low"] = "LOW"; - AssociationComplianceSeverity["Medium"] = "MEDIUM"; - AssociationComplianceSeverity["Unspecified"] = "UNSPECIFIED"; -})(AssociationComplianceSeverity = exports.AssociationComplianceSeverity || (exports.AssociationComplianceSeverity = {})); -var AssociationSyncCompliance; -(function (AssociationSyncCompliance) { - AssociationSyncCompliance["Auto"] = "AUTO"; - AssociationSyncCompliance["Manual"] = "MANUAL"; -})(AssociationSyncCompliance = exports.AssociationSyncCompliance || (exports.AssociationSyncCompliance = {})); -var AssociationStatusName; -(function (AssociationStatusName) { - AssociationStatusName["Failed"] = "Failed"; - AssociationStatusName["Pending"] = "Pending"; - AssociationStatusName["Success"] = "Success"; -})(AssociationStatusName = exports.AssociationStatusName || (exports.AssociationStatusName = {})); -class InvalidDocument extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidDocument", - $fault: "client", - ...opts, - }); - this.name = "InvalidDocument"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDocument.prototype); - this.Message = opts.Message; - } -} -exports.InvalidDocument = InvalidDocument; -class InvalidDocumentVersion extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidDocumentVersion", - $fault: "client", - ...opts, - }); - this.name = "InvalidDocumentVersion"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDocumentVersion.prototype); - this.Message = opts.Message; - } -} -exports.InvalidDocumentVersion = InvalidDocumentVersion; -class InvalidOutputLocation extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidOutputLocation", - $fault: "client", - ...opts, - }); - this.name = "InvalidOutputLocation"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidOutputLocation.prototype); - } -} -exports.InvalidOutputLocation = InvalidOutputLocation; -class InvalidSchedule extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidSchedule", - $fault: "client", - ...opts, - }); - this.name = "InvalidSchedule"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidSchedule.prototype); - this.Message = opts.Message; - } -} -exports.InvalidSchedule = InvalidSchedule; -class InvalidTarget extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidTarget", - $fault: "client", - ...opts, - }); - this.name = "InvalidTarget"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidTarget.prototype); - this.Message = opts.Message; - } -} -exports.InvalidTarget = InvalidTarget; -class InvalidTargetMaps extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidTargetMaps", - $fault: "client", - ...opts, - }); - this.name = "InvalidTargetMaps"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidTargetMaps.prototype); - this.Message = opts.Message; - } -} -exports.InvalidTargetMaps = InvalidTargetMaps; -class UnsupportedPlatformType extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "UnsupportedPlatformType", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedPlatformType"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedPlatformType.prototype); - this.Message = opts.Message; - } -} -exports.UnsupportedPlatformType = UnsupportedPlatformType; -var AttachmentsSourceKey; -(function (AttachmentsSourceKey) { - AttachmentsSourceKey["AttachmentReference"] = "AttachmentReference"; - AttachmentsSourceKey["S3FileUrl"] = "S3FileUrl"; - AttachmentsSourceKey["SourceUrl"] = "SourceUrl"; -})(AttachmentsSourceKey = exports.AttachmentsSourceKey || (exports.AttachmentsSourceKey = {})); -var DocumentFormat; -(function (DocumentFormat) { - DocumentFormat["JSON"] = "JSON"; - DocumentFormat["TEXT"] = "TEXT"; - DocumentFormat["YAML"] = "YAML"; -})(DocumentFormat = exports.DocumentFormat || (exports.DocumentFormat = {})); -var DocumentType; -(function (DocumentType) { - DocumentType["ApplicationConfiguration"] = "ApplicationConfiguration"; - DocumentType["ApplicationConfigurationSchema"] = "ApplicationConfigurationSchema"; - DocumentType["Automation"] = "Automation"; - DocumentType["ChangeCalendar"] = "ChangeCalendar"; - DocumentType["ChangeTemplate"] = "Automation.ChangeTemplate"; - DocumentType["Command"] = "Command"; - DocumentType["DeploymentStrategy"] = "DeploymentStrategy"; - DocumentType["Package"] = "Package"; - DocumentType["Policy"] = "Policy"; - DocumentType["ProblemAnalysis"] = "ProblemAnalysis"; - DocumentType["ProblemAnalysisTemplate"] = "ProblemAnalysisTemplate"; - DocumentType["Session"] = "Session"; -})(DocumentType = exports.DocumentType || (exports.DocumentType = {})); -var DocumentHashType; -(function (DocumentHashType) { - DocumentHashType["SHA1"] = "Sha1"; - DocumentHashType["SHA256"] = "Sha256"; -})(DocumentHashType = exports.DocumentHashType || (exports.DocumentHashType = {})); -var PlatformType; -(function (PlatformType) { - PlatformType["LINUX"] = "Linux"; - PlatformType["MACOS"] = "MacOS"; - PlatformType["WINDOWS"] = "Windows"; -})(PlatformType = exports.PlatformType || (exports.PlatformType = {})); -var ReviewStatus; -(function (ReviewStatus) { - ReviewStatus["APPROVED"] = "APPROVED"; - ReviewStatus["NOT_REVIEWED"] = "NOT_REVIEWED"; - ReviewStatus["PENDING"] = "PENDING"; - ReviewStatus["REJECTED"] = "REJECTED"; -})(ReviewStatus = exports.ReviewStatus || (exports.ReviewStatus = {})); -var DocumentStatus; -(function (DocumentStatus) { - DocumentStatus["Active"] = "Active"; - DocumentStatus["Creating"] = "Creating"; - DocumentStatus["Deleting"] = "Deleting"; - DocumentStatus["Failed"] = "Failed"; - DocumentStatus["Updating"] = "Updating"; -})(DocumentStatus = exports.DocumentStatus || (exports.DocumentStatus = {})); -class DocumentAlreadyExists extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "DocumentAlreadyExists", - $fault: "client", - ...opts, - }); - this.name = "DocumentAlreadyExists"; - this.$fault = "client"; - Object.setPrototypeOf(this, DocumentAlreadyExists.prototype); - this.Message = opts.Message; - } -} -exports.DocumentAlreadyExists = DocumentAlreadyExists; -class DocumentLimitExceeded extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "DocumentLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "DocumentLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, DocumentLimitExceeded.prototype); - this.Message = opts.Message; - } -} -exports.DocumentLimitExceeded = DocumentLimitExceeded; -class InvalidDocumentContent extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidDocumentContent", - $fault: "client", - ...opts, - }); - this.name = "InvalidDocumentContent"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDocumentContent.prototype); - this.Message = opts.Message; - } -} -exports.InvalidDocumentContent = InvalidDocumentContent; -class InvalidDocumentSchemaVersion extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidDocumentSchemaVersion", - $fault: "client", - ...opts, - }); - this.name = "InvalidDocumentSchemaVersion"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDocumentSchemaVersion.prototype); - this.Message = opts.Message; - } -} -exports.InvalidDocumentSchemaVersion = InvalidDocumentSchemaVersion; -class MaxDocumentSizeExceeded extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "MaxDocumentSizeExceeded", - $fault: "client", - ...opts, - }); - this.name = "MaxDocumentSizeExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, MaxDocumentSizeExceeded.prototype); - this.Message = opts.Message; - } -} -exports.MaxDocumentSizeExceeded = MaxDocumentSizeExceeded; -class IdempotentParameterMismatch extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "IdempotentParameterMismatch", - $fault: "client", - ...opts, - }); - this.name = "IdempotentParameterMismatch"; - this.$fault = "client"; - Object.setPrototypeOf(this, IdempotentParameterMismatch.prototype); - this.Message = opts.Message; - } -} -exports.IdempotentParameterMismatch = IdempotentParameterMismatch; -class ResourceLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ResourceLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "ResourceLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceLimitExceededException.prototype); - this.Message = opts.Message; - } -} -exports.ResourceLimitExceededException = ResourceLimitExceededException; -var OpsItemDataType; -(function (OpsItemDataType) { - OpsItemDataType["SEARCHABLE_STRING"] = "SearchableString"; - OpsItemDataType["STRING"] = "String"; -})(OpsItemDataType = exports.OpsItemDataType || (exports.OpsItemDataType = {})); -class OpsItemAlreadyExistsException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsItemAlreadyExistsException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemAlreadyExistsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemAlreadyExistsException.prototype); - this.Message = opts.Message; - this.OpsItemId = opts.OpsItemId; - } -} -exports.OpsItemAlreadyExistsException = OpsItemAlreadyExistsException; -class OpsMetadataAlreadyExistsException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsMetadataAlreadyExistsException", - $fault: "client", - ...opts, - }); - this.name = "OpsMetadataAlreadyExistsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsMetadataAlreadyExistsException.prototype); - } -} -exports.OpsMetadataAlreadyExistsException = OpsMetadataAlreadyExistsException; -class OpsMetadataInvalidArgumentException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsMetadataInvalidArgumentException", - $fault: "client", - ...opts, - }); - this.name = "OpsMetadataInvalidArgumentException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsMetadataInvalidArgumentException.prototype); - } -} -exports.OpsMetadataInvalidArgumentException = OpsMetadataInvalidArgumentException; -class OpsMetadataLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsMetadataLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "OpsMetadataLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsMetadataLimitExceededException.prototype); - } -} -exports.OpsMetadataLimitExceededException = OpsMetadataLimitExceededException; -class OpsMetadataTooManyUpdatesException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsMetadataTooManyUpdatesException", - $fault: "client", - ...opts, - }); - this.name = "OpsMetadataTooManyUpdatesException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsMetadataTooManyUpdatesException.prototype); - } -} -exports.OpsMetadataTooManyUpdatesException = OpsMetadataTooManyUpdatesException; -var PatchComplianceLevel; -(function (PatchComplianceLevel) { - PatchComplianceLevel["Critical"] = "CRITICAL"; - PatchComplianceLevel["High"] = "HIGH"; - PatchComplianceLevel["Informational"] = "INFORMATIONAL"; - PatchComplianceLevel["Low"] = "LOW"; - PatchComplianceLevel["Medium"] = "MEDIUM"; - PatchComplianceLevel["Unspecified"] = "UNSPECIFIED"; -})(PatchComplianceLevel = exports.PatchComplianceLevel || (exports.PatchComplianceLevel = {})); -var PatchFilterKey; -(function (PatchFilterKey) { - PatchFilterKey["AdvisoryId"] = "ADVISORY_ID"; - PatchFilterKey["Arch"] = "ARCH"; - PatchFilterKey["BugzillaId"] = "BUGZILLA_ID"; - PatchFilterKey["CVEId"] = "CVE_ID"; - PatchFilterKey["Classification"] = "CLASSIFICATION"; - PatchFilterKey["Epoch"] = "EPOCH"; - PatchFilterKey["MsrcSeverity"] = "MSRC_SEVERITY"; - PatchFilterKey["Name"] = "NAME"; - PatchFilterKey["PatchId"] = "PATCH_ID"; - PatchFilterKey["PatchSet"] = "PATCH_SET"; - PatchFilterKey["Priority"] = "PRIORITY"; - PatchFilterKey["Product"] = "PRODUCT"; - PatchFilterKey["ProductFamily"] = "PRODUCT_FAMILY"; - PatchFilterKey["Release"] = "RELEASE"; - PatchFilterKey["Repository"] = "REPOSITORY"; - PatchFilterKey["Section"] = "SECTION"; - PatchFilterKey["Security"] = "SECURITY"; - PatchFilterKey["Severity"] = "SEVERITY"; - PatchFilterKey["Version"] = "VERSION"; -})(PatchFilterKey = exports.PatchFilterKey || (exports.PatchFilterKey = {})); -var OperatingSystem; -(function (OperatingSystem) { - OperatingSystem["AmazonLinux"] = "AMAZON_LINUX"; - OperatingSystem["AmazonLinux2"] = "AMAZON_LINUX_2"; - OperatingSystem["CentOS"] = "CENTOS"; - OperatingSystem["Debian"] = "DEBIAN"; - OperatingSystem["MacOS"] = "MACOS"; - OperatingSystem["OracleLinux"] = "ORACLE_LINUX"; - OperatingSystem["Raspbian"] = "RASPBIAN"; - OperatingSystem["RedhatEnterpriseLinux"] = "REDHAT_ENTERPRISE_LINUX"; - OperatingSystem["Rocky_Linux"] = "ROCKY_LINUX"; - OperatingSystem["Suse"] = "SUSE"; - OperatingSystem["Ubuntu"] = "UBUNTU"; - OperatingSystem["Windows"] = "WINDOWS"; -})(OperatingSystem = exports.OperatingSystem || (exports.OperatingSystem = {})); -var PatchAction; -(function (PatchAction) { - PatchAction["AllowAsDependency"] = "ALLOW_AS_DEPENDENCY"; - PatchAction["Block"] = "BLOCK"; -})(PatchAction = exports.PatchAction || (exports.PatchAction = {})); -var ResourceDataSyncS3Format; -(function (ResourceDataSyncS3Format) { - ResourceDataSyncS3Format["JSON_SERDE"] = "JsonSerDe"; -})(ResourceDataSyncS3Format = exports.ResourceDataSyncS3Format || (exports.ResourceDataSyncS3Format = {})); -class ResourceDataSyncAlreadyExistsException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ResourceDataSyncAlreadyExistsException", - $fault: "client", - ...opts, - }); - this.name = "ResourceDataSyncAlreadyExistsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceDataSyncAlreadyExistsException.prototype); - this.SyncName = opts.SyncName; - } -} -exports.ResourceDataSyncAlreadyExistsException = ResourceDataSyncAlreadyExistsException; -class ResourceDataSyncCountExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ResourceDataSyncCountExceededException", - $fault: "client", - ...opts, - }); - this.name = "ResourceDataSyncCountExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceDataSyncCountExceededException.prototype); - this.Message = opts.Message; - } -} -exports.ResourceDataSyncCountExceededException = ResourceDataSyncCountExceededException; -class ResourceDataSyncInvalidConfigurationException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ResourceDataSyncInvalidConfigurationException", - $fault: "client", - ...opts, - }); - this.name = "ResourceDataSyncInvalidConfigurationException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceDataSyncInvalidConfigurationException.prototype); - this.Message = opts.Message; - } -} -exports.ResourceDataSyncInvalidConfigurationException = ResourceDataSyncInvalidConfigurationException; -class InvalidActivation extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidActivation", - $fault: "client", - ...opts, - }); - this.name = "InvalidActivation"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidActivation.prototype); - this.Message = opts.Message; - } -} -exports.InvalidActivation = InvalidActivation; -class InvalidActivationId extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidActivationId", - $fault: "client", - ...opts, - }); - this.name = "InvalidActivationId"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidActivationId.prototype); - this.Message = opts.Message; - } -} -exports.InvalidActivationId = InvalidActivationId; -class AssociationDoesNotExist extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AssociationDoesNotExist", - $fault: "client", - ...opts, - }); - this.name = "AssociationDoesNotExist"; - this.$fault = "client"; - Object.setPrototypeOf(this, AssociationDoesNotExist.prototype); - this.Message = opts.Message; - } -} -exports.AssociationDoesNotExist = AssociationDoesNotExist; -class AssociatedInstances extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AssociatedInstances", - $fault: "client", - ...opts, - }); - this.name = "AssociatedInstances"; - this.$fault = "client"; - Object.setPrototypeOf(this, AssociatedInstances.prototype); - } -} -exports.AssociatedInstances = AssociatedInstances; -class InvalidDocumentOperation extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidDocumentOperation", - $fault: "client", - ...opts, - }); - this.name = "InvalidDocumentOperation"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDocumentOperation.prototype); - this.Message = opts.Message; - } -} -exports.InvalidDocumentOperation = InvalidDocumentOperation; -var InventorySchemaDeleteOption; -(function (InventorySchemaDeleteOption) { - InventorySchemaDeleteOption["DELETE_SCHEMA"] = "DeleteSchema"; - InventorySchemaDeleteOption["DISABLE_SCHEMA"] = "DisableSchema"; -})(InventorySchemaDeleteOption = exports.InventorySchemaDeleteOption || (exports.InventorySchemaDeleteOption = {})); -class InvalidDeleteInventoryParametersException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidDeleteInventoryParametersException", - $fault: "client", - ...opts, - }); - this.name = "InvalidDeleteInventoryParametersException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDeleteInventoryParametersException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidDeleteInventoryParametersException = InvalidDeleteInventoryParametersException; -class InvalidInventoryRequestException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidInventoryRequestException", - $fault: "client", - ...opts, - }); - this.name = "InvalidInventoryRequestException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidInventoryRequestException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidInventoryRequestException = InvalidInventoryRequestException; -class InvalidOptionException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidOptionException", - $fault: "client", - ...opts, - }); - this.name = "InvalidOptionException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidOptionException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidOptionException = InvalidOptionException; -class InvalidTypeNameException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidTypeNameException", - $fault: "client", - ...opts, - }); - this.name = "InvalidTypeNameException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidTypeNameException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidTypeNameException = InvalidTypeNameException; -class OpsMetadataNotFoundException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsMetadataNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "OpsMetadataNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsMetadataNotFoundException.prototype); - } -} -exports.OpsMetadataNotFoundException = OpsMetadataNotFoundException; -class ParameterNotFound extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ParameterNotFound", - $fault: "client", - ...opts, - }); - this.name = "ParameterNotFound"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterNotFound.prototype); - } -} -exports.ParameterNotFound = ParameterNotFound; -class ResourceInUseException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ResourceInUseException", - $fault: "client", - ...opts, - }); - this.name = "ResourceInUseException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceInUseException.prototype); - this.Message = opts.Message; - } -} -exports.ResourceInUseException = ResourceInUseException; -class ResourceDataSyncNotFoundException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ResourceDataSyncNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "ResourceDataSyncNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceDataSyncNotFoundException.prototype); - this.SyncName = opts.SyncName; - this.SyncType = opts.SyncType; - this.Message = opts.Message; - } -} -exports.ResourceDataSyncNotFoundException = ResourceDataSyncNotFoundException; -class TargetInUseException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "TargetInUseException", - $fault: "client", - ...opts, - }); - this.name = "TargetInUseException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TargetInUseException.prototype); - this.Message = opts.Message; - } -} -exports.TargetInUseException = TargetInUseException; -var DescribeActivationsFilterKeys; -(function (DescribeActivationsFilterKeys) { - DescribeActivationsFilterKeys["ACTIVATION_IDS"] = "ActivationIds"; - DescribeActivationsFilterKeys["DEFAULT_INSTANCE_NAME"] = "DefaultInstanceName"; - DescribeActivationsFilterKeys["IAM_ROLE"] = "IamRole"; -})(DescribeActivationsFilterKeys = exports.DescribeActivationsFilterKeys || (exports.DescribeActivationsFilterKeys = {})); -class InvalidFilter extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidFilter", - $fault: "client", - ...opts, - }); - this.name = "InvalidFilter"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidFilter.prototype); - this.Message = opts.Message; - } -} -exports.InvalidFilter = InvalidFilter; -class InvalidNextToken extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidNextToken", - $fault: "client", - ...opts, - }); - this.name = "InvalidNextToken"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidNextToken.prototype); - this.Message = opts.Message; - } -} -exports.InvalidNextToken = InvalidNextToken; -class InvalidAssociationVersion extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidAssociationVersion", - $fault: "client", - ...opts, - }); - this.name = "InvalidAssociationVersion"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAssociationVersion.prototype); - this.Message = opts.Message; - } -} -exports.InvalidAssociationVersion = InvalidAssociationVersion; -var AssociationExecutionFilterKey; -(function (AssociationExecutionFilterKey) { - AssociationExecutionFilterKey["CreatedTime"] = "CreatedTime"; - AssociationExecutionFilterKey["ExecutionId"] = "ExecutionId"; - AssociationExecutionFilterKey["Status"] = "Status"; -})(AssociationExecutionFilterKey = exports.AssociationExecutionFilterKey || (exports.AssociationExecutionFilterKey = {})); -var AssociationFilterOperatorType; -(function (AssociationFilterOperatorType) { - AssociationFilterOperatorType["Equal"] = "EQUAL"; - AssociationFilterOperatorType["GreaterThan"] = "GREATER_THAN"; - AssociationFilterOperatorType["LessThan"] = "LESS_THAN"; -})(AssociationFilterOperatorType = exports.AssociationFilterOperatorType || (exports.AssociationFilterOperatorType = {})); -class AssociationExecutionDoesNotExist extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AssociationExecutionDoesNotExist", - $fault: "client", - ...opts, - }); - this.name = "AssociationExecutionDoesNotExist"; - this.$fault = "client"; - Object.setPrototypeOf(this, AssociationExecutionDoesNotExist.prototype); - this.Message = opts.Message; - } -} -exports.AssociationExecutionDoesNotExist = AssociationExecutionDoesNotExist; -var AssociationExecutionTargetsFilterKey; -(function (AssociationExecutionTargetsFilterKey) { - AssociationExecutionTargetsFilterKey["ResourceId"] = "ResourceId"; - AssociationExecutionTargetsFilterKey["ResourceType"] = "ResourceType"; - AssociationExecutionTargetsFilterKey["Status"] = "Status"; -})(AssociationExecutionTargetsFilterKey = exports.AssociationExecutionTargetsFilterKey || (exports.AssociationExecutionTargetsFilterKey = {})); -var AutomationExecutionFilterKey; -(function (AutomationExecutionFilterKey) { - AutomationExecutionFilterKey["AUTOMATION_SUBTYPE"] = "AutomationSubtype"; - AutomationExecutionFilterKey["AUTOMATION_TYPE"] = "AutomationType"; - AutomationExecutionFilterKey["CURRENT_ACTION"] = "CurrentAction"; - AutomationExecutionFilterKey["DOCUMENT_NAME_PREFIX"] = "DocumentNamePrefix"; - AutomationExecutionFilterKey["EXECUTION_ID"] = "ExecutionId"; - AutomationExecutionFilterKey["EXECUTION_STATUS"] = "ExecutionStatus"; - AutomationExecutionFilterKey["OPS_ITEM_ID"] = "OpsItemId"; - AutomationExecutionFilterKey["PARENT_EXECUTION_ID"] = "ParentExecutionId"; - AutomationExecutionFilterKey["START_TIME_AFTER"] = "StartTimeAfter"; - AutomationExecutionFilterKey["START_TIME_BEFORE"] = "StartTimeBefore"; - AutomationExecutionFilterKey["TAG_KEY"] = "TagKey"; - AutomationExecutionFilterKey["TARGET_RESOURCE_GROUP"] = "TargetResourceGroup"; -})(AutomationExecutionFilterKey = exports.AutomationExecutionFilterKey || (exports.AutomationExecutionFilterKey = {})); -var AutomationExecutionStatus; -(function (AutomationExecutionStatus) { - AutomationExecutionStatus["APPROVED"] = "Approved"; - AutomationExecutionStatus["CANCELLED"] = "Cancelled"; - AutomationExecutionStatus["CANCELLING"] = "Cancelling"; - AutomationExecutionStatus["CHANGE_CALENDAR_OVERRIDE_APPROVED"] = "ChangeCalendarOverrideApproved"; - AutomationExecutionStatus["CHANGE_CALENDAR_OVERRIDE_REJECTED"] = "ChangeCalendarOverrideRejected"; - AutomationExecutionStatus["COMPLETED_WITH_FAILURE"] = "CompletedWithFailure"; - AutomationExecutionStatus["COMPLETED_WITH_SUCCESS"] = "CompletedWithSuccess"; - AutomationExecutionStatus["FAILED"] = "Failed"; - AutomationExecutionStatus["INPROGRESS"] = "InProgress"; - AutomationExecutionStatus["PENDING"] = "Pending"; - AutomationExecutionStatus["PENDING_APPROVAL"] = "PendingApproval"; - AutomationExecutionStatus["PENDING_CHANGE_CALENDAR_OVERRIDE"] = "PendingChangeCalendarOverride"; - AutomationExecutionStatus["REJECTED"] = "Rejected"; - AutomationExecutionStatus["RUNBOOK_INPROGRESS"] = "RunbookInProgress"; - AutomationExecutionStatus["SCHEDULED"] = "Scheduled"; - AutomationExecutionStatus["SUCCESS"] = "Success"; - AutomationExecutionStatus["TIMEDOUT"] = "TimedOut"; - AutomationExecutionStatus["WAITING"] = "Waiting"; -})(AutomationExecutionStatus = exports.AutomationExecutionStatus || (exports.AutomationExecutionStatus = {})); -var AutomationSubtype; -(function (AutomationSubtype) { - AutomationSubtype["ChangeRequest"] = "ChangeRequest"; -})(AutomationSubtype = exports.AutomationSubtype || (exports.AutomationSubtype = {})); -var AutomationType; -(function (AutomationType) { - AutomationType["CrossAccount"] = "CrossAccount"; - AutomationType["Local"] = "Local"; -})(AutomationType = exports.AutomationType || (exports.AutomationType = {})); -var ExecutionMode; -(function (ExecutionMode) { - ExecutionMode["Auto"] = "Auto"; - ExecutionMode["Interactive"] = "Interactive"; -})(ExecutionMode = exports.ExecutionMode || (exports.ExecutionMode = {})); -class InvalidFilterKey extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidFilterKey", - $fault: "client", - ...opts, - }); - this.name = "InvalidFilterKey"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidFilterKey.prototype); - } -} -exports.InvalidFilterKey = InvalidFilterKey; -class InvalidFilterValue extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidFilterValue", - $fault: "client", - ...opts, - }); - this.name = "InvalidFilterValue"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidFilterValue.prototype); - this.Message = opts.Message; - } -} -exports.InvalidFilterValue = InvalidFilterValue; -class AutomationExecutionNotFoundException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AutomationExecutionNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "AutomationExecutionNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AutomationExecutionNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.AutomationExecutionNotFoundException = AutomationExecutionNotFoundException; -var StepExecutionFilterKey; -(function (StepExecutionFilterKey) { - StepExecutionFilterKey["ACTION"] = "Action"; - StepExecutionFilterKey["START_TIME_AFTER"] = "StartTimeAfter"; - StepExecutionFilterKey["START_TIME_BEFORE"] = "StartTimeBefore"; - StepExecutionFilterKey["STEP_EXECUTION_ID"] = "StepExecutionId"; - StepExecutionFilterKey["STEP_EXECUTION_STATUS"] = "StepExecutionStatus"; - StepExecutionFilterKey["STEP_NAME"] = "StepName"; -})(StepExecutionFilterKey = exports.StepExecutionFilterKey || (exports.StepExecutionFilterKey = {})); -var DocumentPermissionType; -(function (DocumentPermissionType) { - DocumentPermissionType["SHARE"] = "Share"; -})(DocumentPermissionType = exports.DocumentPermissionType || (exports.DocumentPermissionType = {})); -class InvalidPermissionType extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidPermissionType", - $fault: "client", - ...opts, - }); - this.name = "InvalidPermissionType"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidPermissionType.prototype); - this.Message = opts.Message; - } -} -exports.InvalidPermissionType = InvalidPermissionType; -var PatchDeploymentStatus; -(function (PatchDeploymentStatus) { - PatchDeploymentStatus["Approved"] = "APPROVED"; - PatchDeploymentStatus["ExplicitApproved"] = "EXPLICIT_APPROVED"; - PatchDeploymentStatus["ExplicitRejected"] = "EXPLICIT_REJECTED"; - PatchDeploymentStatus["PendingApproval"] = "PENDING_APPROVAL"; -})(PatchDeploymentStatus = exports.PatchDeploymentStatus || (exports.PatchDeploymentStatus = {})); -class UnsupportedOperatingSystem extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "UnsupportedOperatingSystem", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedOperatingSystem"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedOperatingSystem.prototype); - this.Message = opts.Message; - } -} -exports.UnsupportedOperatingSystem = UnsupportedOperatingSystem; -var InstanceInformationFilterKey; -(function (InstanceInformationFilterKey) { - InstanceInformationFilterKey["ACTIVATION_IDS"] = "ActivationIds"; - InstanceInformationFilterKey["AGENT_VERSION"] = "AgentVersion"; - InstanceInformationFilterKey["ASSOCIATION_STATUS"] = "AssociationStatus"; - InstanceInformationFilterKey["IAM_ROLE"] = "IamRole"; - InstanceInformationFilterKey["INSTANCE_IDS"] = "InstanceIds"; - InstanceInformationFilterKey["PING_STATUS"] = "PingStatus"; - InstanceInformationFilterKey["PLATFORM_TYPES"] = "PlatformTypes"; - InstanceInformationFilterKey["RESOURCE_TYPE"] = "ResourceType"; -})(InstanceInformationFilterKey = exports.InstanceInformationFilterKey || (exports.InstanceInformationFilterKey = {})); -var PingStatus; -(function (PingStatus) { - PingStatus["CONNECTION_LOST"] = "ConnectionLost"; - PingStatus["INACTIVE"] = "Inactive"; - PingStatus["ONLINE"] = "Online"; -})(PingStatus = exports.PingStatus || (exports.PingStatus = {})); -var ResourceType; -(function (ResourceType) { - ResourceType["DOCUMENT"] = "Document"; - ResourceType["EC2_INSTANCE"] = "EC2Instance"; - ResourceType["MANAGED_INSTANCE"] = "ManagedInstance"; -})(ResourceType = exports.ResourceType || (exports.ResourceType = {})); -var SourceType; -(function (SourceType) { - SourceType["AWS_EC2_INSTANCE"] = "AWS::EC2::Instance"; - SourceType["AWS_IOT_THING"] = "AWS::IoT::Thing"; - SourceType["AWS_SSM_MANAGEDINSTANCE"] = "AWS::SSM::ManagedInstance"; -})(SourceType = exports.SourceType || (exports.SourceType = {})); -class InvalidInstanceInformationFilterValue extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidInstanceInformationFilterValue", - $fault: "client", - ...opts, - }); - this.name = "InvalidInstanceInformationFilterValue"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidInstanceInformationFilterValue.prototype); - } -} -exports.InvalidInstanceInformationFilterValue = InvalidInstanceInformationFilterValue; -var PatchComplianceDataState; -(function (PatchComplianceDataState) { - PatchComplianceDataState["Failed"] = "FAILED"; - PatchComplianceDataState["Installed"] = "INSTALLED"; - PatchComplianceDataState["InstalledOther"] = "INSTALLED_OTHER"; - PatchComplianceDataState["InstalledPendingReboot"] = "INSTALLED_PENDING_REBOOT"; - PatchComplianceDataState["InstalledRejected"] = "INSTALLED_REJECTED"; - PatchComplianceDataState["Missing"] = "MISSING"; - PatchComplianceDataState["NotApplicable"] = "NOT_APPLICABLE"; -})(PatchComplianceDataState = exports.PatchComplianceDataState || (exports.PatchComplianceDataState = {})); -var PatchOperationType; -(function (PatchOperationType) { - PatchOperationType["INSTALL"] = "Install"; - PatchOperationType["SCAN"] = "Scan"; -})(PatchOperationType = exports.PatchOperationType || (exports.PatchOperationType = {})); -var RebootOption; -(function (RebootOption) { - RebootOption["NO_REBOOT"] = "NoReboot"; - RebootOption["REBOOT_IF_NEEDED"] = "RebootIfNeeded"; -})(RebootOption = exports.RebootOption || (exports.RebootOption = {})); -var InstancePatchStateOperatorType; -(function (InstancePatchStateOperatorType) { - InstancePatchStateOperatorType["EQUAL"] = "Equal"; - InstancePatchStateOperatorType["GREATER_THAN"] = "GreaterThan"; - InstancePatchStateOperatorType["LESS_THAN"] = "LessThan"; - InstancePatchStateOperatorType["NOT_EQUAL"] = "NotEqual"; -})(InstancePatchStateOperatorType = exports.InstancePatchStateOperatorType || (exports.InstancePatchStateOperatorType = {})); -var InventoryDeletionStatus; -(function (InventoryDeletionStatus) { - InventoryDeletionStatus["COMPLETE"] = "Complete"; - InventoryDeletionStatus["IN_PROGRESS"] = "InProgress"; -})(InventoryDeletionStatus = exports.InventoryDeletionStatus || (exports.InventoryDeletionStatus = {})); -class InvalidDeletionIdException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidDeletionIdException", - $fault: "client", - ...opts, - }); - this.name = "InvalidDeletionIdException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDeletionIdException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidDeletionIdException = InvalidDeletionIdException; -var MaintenanceWindowExecutionStatus; -(function (MaintenanceWindowExecutionStatus) { - MaintenanceWindowExecutionStatus["Cancelled"] = "CANCELLED"; - MaintenanceWindowExecutionStatus["Cancelling"] = "CANCELLING"; - MaintenanceWindowExecutionStatus["Failed"] = "FAILED"; - MaintenanceWindowExecutionStatus["InProgress"] = "IN_PROGRESS"; - MaintenanceWindowExecutionStatus["Pending"] = "PENDING"; - MaintenanceWindowExecutionStatus["SkippedOverlapping"] = "SKIPPED_OVERLAPPING"; - MaintenanceWindowExecutionStatus["Success"] = "SUCCESS"; - MaintenanceWindowExecutionStatus["TimedOut"] = "TIMED_OUT"; -})(MaintenanceWindowExecutionStatus = exports.MaintenanceWindowExecutionStatus || (exports.MaintenanceWindowExecutionStatus = {})); -var MaintenanceWindowTaskType; -(function (MaintenanceWindowTaskType) { - MaintenanceWindowTaskType["Automation"] = "AUTOMATION"; - MaintenanceWindowTaskType["Lambda"] = "LAMBDA"; - MaintenanceWindowTaskType["RunCommand"] = "RUN_COMMAND"; - MaintenanceWindowTaskType["StepFunctions"] = "STEP_FUNCTIONS"; -})(MaintenanceWindowTaskType = exports.MaintenanceWindowTaskType || (exports.MaintenanceWindowTaskType = {})); -var MaintenanceWindowResourceType; -(function (MaintenanceWindowResourceType) { - MaintenanceWindowResourceType["Instance"] = "INSTANCE"; - MaintenanceWindowResourceType["ResourceGroup"] = "RESOURCE_GROUP"; -})(MaintenanceWindowResourceType = exports.MaintenanceWindowResourceType || (exports.MaintenanceWindowResourceType = {})); -var MaintenanceWindowTaskCutoffBehavior; -(function (MaintenanceWindowTaskCutoffBehavior) { - MaintenanceWindowTaskCutoffBehavior["CancelTask"] = "CANCEL_TASK"; - MaintenanceWindowTaskCutoffBehavior["ContinueTask"] = "CONTINUE_TASK"; -})(MaintenanceWindowTaskCutoffBehavior = exports.MaintenanceWindowTaskCutoffBehavior || (exports.MaintenanceWindowTaskCutoffBehavior = {})); -var OpsItemFilterKey; -(function (OpsItemFilterKey) { - OpsItemFilterKey["ACTUAL_END_TIME"] = "ActualEndTime"; - OpsItemFilterKey["ACTUAL_START_TIME"] = "ActualStartTime"; - OpsItemFilterKey["AUTOMATION_ID"] = "AutomationId"; - OpsItemFilterKey["CATEGORY"] = "Category"; - OpsItemFilterKey["CHANGE_REQUEST_APPROVER_ARN"] = "ChangeRequestByApproverArn"; - OpsItemFilterKey["CHANGE_REQUEST_APPROVER_NAME"] = "ChangeRequestByApproverName"; - OpsItemFilterKey["CHANGE_REQUEST_REQUESTER_ARN"] = "ChangeRequestByRequesterArn"; - OpsItemFilterKey["CHANGE_REQUEST_REQUESTER_NAME"] = "ChangeRequestByRequesterName"; - OpsItemFilterKey["CHANGE_REQUEST_TARGETS_RESOURCE_GROUP"] = "ChangeRequestByTargetsResourceGroup"; - OpsItemFilterKey["CHANGE_REQUEST_TEMPLATE"] = "ChangeRequestByTemplate"; - OpsItemFilterKey["CREATED_BY"] = "CreatedBy"; - OpsItemFilterKey["CREATED_TIME"] = "CreatedTime"; - OpsItemFilterKey["INSIGHT_TYPE"] = "InsightByType"; - OpsItemFilterKey["LAST_MODIFIED_TIME"] = "LastModifiedTime"; - OpsItemFilterKey["OPERATIONAL_DATA"] = "OperationalData"; - OpsItemFilterKey["OPERATIONAL_DATA_KEY"] = "OperationalDataKey"; - OpsItemFilterKey["OPERATIONAL_DATA_VALUE"] = "OperationalDataValue"; - OpsItemFilterKey["OPSITEM_ID"] = "OpsItemId"; - OpsItemFilterKey["OPSITEM_TYPE"] = "OpsItemType"; - OpsItemFilterKey["PLANNED_END_TIME"] = "PlannedEndTime"; - OpsItemFilterKey["PLANNED_START_TIME"] = "PlannedStartTime"; - OpsItemFilterKey["PRIORITY"] = "Priority"; - OpsItemFilterKey["RESOURCE_ID"] = "ResourceId"; - OpsItemFilterKey["SEVERITY"] = "Severity"; - OpsItemFilterKey["SOURCE"] = "Source"; - OpsItemFilterKey["STATUS"] = "Status"; - OpsItemFilterKey["TITLE"] = "Title"; -})(OpsItemFilterKey = exports.OpsItemFilterKey || (exports.OpsItemFilterKey = {})); -var OpsItemFilterOperator; -(function (OpsItemFilterOperator) { - OpsItemFilterOperator["CONTAINS"] = "Contains"; - OpsItemFilterOperator["EQUAL"] = "Equal"; - OpsItemFilterOperator["GREATER_THAN"] = "GreaterThan"; - OpsItemFilterOperator["LESS_THAN"] = "LessThan"; -})(OpsItemFilterOperator = exports.OpsItemFilterOperator || (exports.OpsItemFilterOperator = {})); -var OpsItemStatus; -(function (OpsItemStatus) { - OpsItemStatus["APPROVED"] = "Approved"; - OpsItemStatus["CANCELLED"] = "Cancelled"; - OpsItemStatus["CANCELLING"] = "Cancelling"; - OpsItemStatus["CHANGE_CALENDAR_OVERRIDE_APPROVED"] = "ChangeCalendarOverrideApproved"; - OpsItemStatus["CHANGE_CALENDAR_OVERRIDE_REJECTED"] = "ChangeCalendarOverrideRejected"; - OpsItemStatus["CLOSED"] = "Closed"; - OpsItemStatus["COMPLETED_WITH_FAILURE"] = "CompletedWithFailure"; - OpsItemStatus["COMPLETED_WITH_SUCCESS"] = "CompletedWithSuccess"; - OpsItemStatus["FAILED"] = "Failed"; - OpsItemStatus["IN_PROGRESS"] = "InProgress"; - OpsItemStatus["OPEN"] = "Open"; - OpsItemStatus["PENDING"] = "Pending"; - OpsItemStatus["PENDING_APPROVAL"] = "PendingApproval"; - OpsItemStatus["PENDING_CHANGE_CALENDAR_OVERRIDE"] = "PendingChangeCalendarOverride"; - OpsItemStatus["REJECTED"] = "Rejected"; - OpsItemStatus["RESOLVED"] = "Resolved"; - OpsItemStatus["RUNBOOK_IN_PROGRESS"] = "RunbookInProgress"; - OpsItemStatus["SCHEDULED"] = "Scheduled"; - OpsItemStatus["TIMED_OUT"] = "TimedOut"; -})(OpsItemStatus = exports.OpsItemStatus || (exports.OpsItemStatus = {})); -var ParametersFilterKey; -(function (ParametersFilterKey) { - ParametersFilterKey["KEY_ID"] = "KeyId"; - ParametersFilterKey["NAME"] = "Name"; - ParametersFilterKey["TYPE"] = "Type"; -})(ParametersFilterKey = exports.ParametersFilterKey || (exports.ParametersFilterKey = {})); -const AccountSharingInfoFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AccountSharingInfoFilterSensitiveLog = AccountSharingInfoFilterSensitiveLog; -const TagFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.TagFilterSensitiveLog = TagFilterSensitiveLog; -const ActivationFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ActivationFilterSensitiveLog = ActivationFilterSensitiveLog; -const AddTagsToResourceRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AddTagsToResourceRequestFilterSensitiveLog = AddTagsToResourceRequestFilterSensitiveLog; -const AddTagsToResourceResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AddTagsToResourceResultFilterSensitiveLog = AddTagsToResourceResultFilterSensitiveLog; -const AssociateOpsItemRelatedItemRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AssociateOpsItemRelatedItemRequestFilterSensitiveLog = AssociateOpsItemRelatedItemRequestFilterSensitiveLog; -const AssociateOpsItemRelatedItemResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AssociateOpsItemRelatedItemResponseFilterSensitiveLog = AssociateOpsItemRelatedItemResponseFilterSensitiveLog; -const CancelCommandRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CancelCommandRequestFilterSensitiveLog = CancelCommandRequestFilterSensitiveLog; -const CancelCommandResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CancelCommandResultFilterSensitiveLog = CancelCommandResultFilterSensitiveLog; -const CancelMaintenanceWindowExecutionRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CancelMaintenanceWindowExecutionRequestFilterSensitiveLog = CancelMaintenanceWindowExecutionRequestFilterSensitiveLog; -const CancelMaintenanceWindowExecutionResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CancelMaintenanceWindowExecutionResultFilterSensitiveLog = CancelMaintenanceWindowExecutionResultFilterSensitiveLog; -const RegistrationMetadataItemFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.RegistrationMetadataItemFilterSensitiveLog = RegistrationMetadataItemFilterSensitiveLog; -const CreateActivationRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CreateActivationRequestFilterSensitiveLog = CreateActivationRequestFilterSensitiveLog; -const CreateActivationResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CreateActivationResultFilterSensitiveLog = CreateActivationResultFilterSensitiveLog; -const S3OutputLocationFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.S3OutputLocationFilterSensitiveLog = S3OutputLocationFilterSensitiveLog; -const InstanceAssociationOutputLocationFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InstanceAssociationOutputLocationFilterSensitiveLog = InstanceAssociationOutputLocationFilterSensitiveLog; -const TargetLocationFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.TargetLocationFilterSensitiveLog = TargetLocationFilterSensitiveLog; -const TargetFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.TargetFilterSensitiveLog = TargetFilterSensitiveLog; -const CreateAssociationRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), -}); -exports.CreateAssociationRequestFilterSensitiveLog = CreateAssociationRequestFilterSensitiveLog; -const AssociationOverviewFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AssociationOverviewFilterSensitiveLog = AssociationOverviewFilterSensitiveLog; -const AssociationStatusFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AssociationStatusFilterSensitiveLog = AssociationStatusFilterSensitiveLog; -const AssociationDescriptionFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), -}); -exports.AssociationDescriptionFilterSensitiveLog = AssociationDescriptionFilterSensitiveLog; -const CreateAssociationResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.AssociationDescription && { - AssociationDescription: (0, exports.AssociationDescriptionFilterSensitiveLog)(obj.AssociationDescription), - }), -}); -exports.CreateAssociationResultFilterSensitiveLog = CreateAssociationResultFilterSensitiveLog; -const CreateAssociationBatchRequestEntryFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), -}); -exports.CreateAssociationBatchRequestEntryFilterSensitiveLog = CreateAssociationBatchRequestEntryFilterSensitiveLog; -const CreateAssociationBatchRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Entries && { - Entries: obj.Entries.map((item) => (0, exports.CreateAssociationBatchRequestEntryFilterSensitiveLog)(item)), - }), -}); -exports.CreateAssociationBatchRequestFilterSensitiveLog = CreateAssociationBatchRequestFilterSensitiveLog; -const FailedCreateAssociationFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Entry && { Entry: (0, exports.CreateAssociationBatchRequestEntryFilterSensitiveLog)(obj.Entry) }), -}); -exports.FailedCreateAssociationFilterSensitiveLog = FailedCreateAssociationFilterSensitiveLog; -const CreateAssociationBatchResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Successful && { Successful: obj.Successful.map((item) => (0, exports.AssociationDescriptionFilterSensitiveLog)(item)) }), - ...(obj.Failed && { Failed: obj.Failed.map((item) => (0, exports.FailedCreateAssociationFilterSensitiveLog)(item)) }), -}); -exports.CreateAssociationBatchResultFilterSensitiveLog = CreateAssociationBatchResultFilterSensitiveLog; -const AttachmentsSourceFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AttachmentsSourceFilterSensitiveLog = AttachmentsSourceFilterSensitiveLog; -const DocumentRequiresFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DocumentRequiresFilterSensitiveLog = DocumentRequiresFilterSensitiveLog; -const CreateDocumentRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CreateDocumentRequestFilterSensitiveLog = CreateDocumentRequestFilterSensitiveLog; -const AttachmentInformationFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AttachmentInformationFilterSensitiveLog = AttachmentInformationFilterSensitiveLog; -const DocumentParameterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DocumentParameterFilterSensitiveLog = DocumentParameterFilterSensitiveLog; -const ReviewInformationFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ReviewInformationFilterSensitiveLog = ReviewInformationFilterSensitiveLog; -const DocumentDescriptionFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DocumentDescriptionFilterSensitiveLog = DocumentDescriptionFilterSensitiveLog; -const CreateDocumentResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CreateDocumentResultFilterSensitiveLog = CreateDocumentResultFilterSensitiveLog; -const CreateMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.CreateMaintenanceWindowRequestFilterSensitiveLog = CreateMaintenanceWindowRequestFilterSensitiveLog; -const CreateMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CreateMaintenanceWindowResultFilterSensitiveLog = CreateMaintenanceWindowResultFilterSensitiveLog; -const OpsItemNotificationFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.OpsItemNotificationFilterSensitiveLog = OpsItemNotificationFilterSensitiveLog; -const OpsItemDataValueFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.OpsItemDataValueFilterSensitiveLog = OpsItemDataValueFilterSensitiveLog; -const RelatedOpsItemFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.RelatedOpsItemFilterSensitiveLog = RelatedOpsItemFilterSensitiveLog; -const CreateOpsItemRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CreateOpsItemRequestFilterSensitiveLog = CreateOpsItemRequestFilterSensitiveLog; -const CreateOpsItemResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CreateOpsItemResponseFilterSensitiveLog = CreateOpsItemResponseFilterSensitiveLog; -const MetadataValueFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.MetadataValueFilterSensitiveLog = MetadataValueFilterSensitiveLog; -const CreateOpsMetadataRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CreateOpsMetadataRequestFilterSensitiveLog = CreateOpsMetadataRequestFilterSensitiveLog; -const CreateOpsMetadataResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CreateOpsMetadataResultFilterSensitiveLog = CreateOpsMetadataResultFilterSensitiveLog; -const PatchFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.PatchFilterFilterSensitiveLog = PatchFilterFilterSensitiveLog; -const PatchFilterGroupFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.PatchFilterGroupFilterSensitiveLog = PatchFilterGroupFilterSensitiveLog; -const PatchRuleFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.PatchRuleFilterSensitiveLog = PatchRuleFilterSensitiveLog; -const PatchRuleGroupFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.PatchRuleGroupFilterSensitiveLog = PatchRuleGroupFilterSensitiveLog; -const PatchSourceFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Configuration && { Configuration: smithy_client_1.SENSITIVE_STRING }), -}); -exports.PatchSourceFilterSensitiveLog = PatchSourceFilterSensitiveLog; -const CreatePatchBaselineRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Sources && { Sources: obj.Sources.map((item) => (0, exports.PatchSourceFilterSensitiveLog)(item)) }), -}); -exports.CreatePatchBaselineRequestFilterSensitiveLog = CreatePatchBaselineRequestFilterSensitiveLog; -const CreatePatchBaselineResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CreatePatchBaselineResultFilterSensitiveLog = CreatePatchBaselineResultFilterSensitiveLog; -const ResourceDataSyncDestinationDataSharingFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ResourceDataSyncDestinationDataSharingFilterSensitiveLog = ResourceDataSyncDestinationDataSharingFilterSensitiveLog; -const ResourceDataSyncS3DestinationFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ResourceDataSyncS3DestinationFilterSensitiveLog = ResourceDataSyncS3DestinationFilterSensitiveLog; -const ResourceDataSyncOrganizationalUnitFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ResourceDataSyncOrganizationalUnitFilterSensitiveLog = ResourceDataSyncOrganizationalUnitFilterSensitiveLog; -const ResourceDataSyncAwsOrganizationsSourceFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ResourceDataSyncAwsOrganizationsSourceFilterSensitiveLog = ResourceDataSyncAwsOrganizationsSourceFilterSensitiveLog; -const ResourceDataSyncSourceFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ResourceDataSyncSourceFilterSensitiveLog = ResourceDataSyncSourceFilterSensitiveLog; -const CreateResourceDataSyncRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CreateResourceDataSyncRequestFilterSensitiveLog = CreateResourceDataSyncRequestFilterSensitiveLog; -const CreateResourceDataSyncResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CreateResourceDataSyncResultFilterSensitiveLog = CreateResourceDataSyncResultFilterSensitiveLog; -const DeleteActivationRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeleteActivationRequestFilterSensitiveLog = DeleteActivationRequestFilterSensitiveLog; -const DeleteActivationResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeleteActivationResultFilterSensitiveLog = DeleteActivationResultFilterSensitiveLog; -const DeleteAssociationRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeleteAssociationRequestFilterSensitiveLog = DeleteAssociationRequestFilterSensitiveLog; -const DeleteAssociationResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeleteAssociationResultFilterSensitiveLog = DeleteAssociationResultFilterSensitiveLog; -const DeleteDocumentRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeleteDocumentRequestFilterSensitiveLog = DeleteDocumentRequestFilterSensitiveLog; -const DeleteDocumentResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeleteDocumentResultFilterSensitiveLog = DeleteDocumentResultFilterSensitiveLog; -const DeleteInventoryRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeleteInventoryRequestFilterSensitiveLog = DeleteInventoryRequestFilterSensitiveLog; -const InventoryDeletionSummaryItemFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InventoryDeletionSummaryItemFilterSensitiveLog = InventoryDeletionSummaryItemFilterSensitiveLog; -const InventoryDeletionSummaryFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InventoryDeletionSummaryFilterSensitiveLog = InventoryDeletionSummaryFilterSensitiveLog; -const DeleteInventoryResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeleteInventoryResultFilterSensitiveLog = DeleteInventoryResultFilterSensitiveLog; -const DeleteMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeleteMaintenanceWindowRequestFilterSensitiveLog = DeleteMaintenanceWindowRequestFilterSensitiveLog; -const DeleteMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeleteMaintenanceWindowResultFilterSensitiveLog = DeleteMaintenanceWindowResultFilterSensitiveLog; -const DeleteOpsMetadataRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeleteOpsMetadataRequestFilterSensitiveLog = DeleteOpsMetadataRequestFilterSensitiveLog; -const DeleteOpsMetadataResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeleteOpsMetadataResultFilterSensitiveLog = DeleteOpsMetadataResultFilterSensitiveLog; -const DeleteParameterRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeleteParameterRequestFilterSensitiveLog = DeleteParameterRequestFilterSensitiveLog; -const DeleteParameterResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeleteParameterResultFilterSensitiveLog = DeleteParameterResultFilterSensitiveLog; -const DeleteParametersRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeleteParametersRequestFilterSensitiveLog = DeleteParametersRequestFilterSensitiveLog; -const DeleteParametersResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeleteParametersResultFilterSensitiveLog = DeleteParametersResultFilterSensitiveLog; -const DeletePatchBaselineRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeletePatchBaselineRequestFilterSensitiveLog = DeletePatchBaselineRequestFilterSensitiveLog; -const DeletePatchBaselineResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeletePatchBaselineResultFilterSensitiveLog = DeletePatchBaselineResultFilterSensitiveLog; -const DeleteResourceDataSyncRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeleteResourceDataSyncRequestFilterSensitiveLog = DeleteResourceDataSyncRequestFilterSensitiveLog; -const DeleteResourceDataSyncResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeleteResourceDataSyncResultFilterSensitiveLog = DeleteResourceDataSyncResultFilterSensitiveLog; -const DeregisterManagedInstanceRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeregisterManagedInstanceRequestFilterSensitiveLog = DeregisterManagedInstanceRequestFilterSensitiveLog; -const DeregisterManagedInstanceResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeregisterManagedInstanceResultFilterSensitiveLog = DeregisterManagedInstanceResultFilterSensitiveLog; -const DeregisterPatchBaselineForPatchGroupRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeregisterPatchBaselineForPatchGroupRequestFilterSensitiveLog = DeregisterPatchBaselineForPatchGroupRequestFilterSensitiveLog; -const DeregisterPatchBaselineForPatchGroupResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeregisterPatchBaselineForPatchGroupResultFilterSensitiveLog = DeregisterPatchBaselineForPatchGroupResultFilterSensitiveLog; -const DeregisterTargetFromMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeregisterTargetFromMaintenanceWindowRequestFilterSensitiveLog = DeregisterTargetFromMaintenanceWindowRequestFilterSensitiveLog; -const DeregisterTargetFromMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeregisterTargetFromMaintenanceWindowResultFilterSensitiveLog = DeregisterTargetFromMaintenanceWindowResultFilterSensitiveLog; -const DeregisterTaskFromMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeregisterTaskFromMaintenanceWindowRequestFilterSensitiveLog = DeregisterTaskFromMaintenanceWindowRequestFilterSensitiveLog; -const DeregisterTaskFromMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DeregisterTaskFromMaintenanceWindowResultFilterSensitiveLog = DeregisterTaskFromMaintenanceWindowResultFilterSensitiveLog; -const DescribeActivationsFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeActivationsFilterFilterSensitiveLog = DescribeActivationsFilterFilterSensitiveLog; -const DescribeActivationsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeActivationsRequestFilterSensitiveLog = DescribeActivationsRequestFilterSensitiveLog; -const DescribeActivationsResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeActivationsResultFilterSensitiveLog = DescribeActivationsResultFilterSensitiveLog; -const DescribeAssociationRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeAssociationRequestFilterSensitiveLog = DescribeAssociationRequestFilterSensitiveLog; -const DescribeAssociationResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.AssociationDescription && { - AssociationDescription: (0, exports.AssociationDescriptionFilterSensitiveLog)(obj.AssociationDescription), - }), -}); -exports.DescribeAssociationResultFilterSensitiveLog = DescribeAssociationResultFilterSensitiveLog; -const AssociationExecutionFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AssociationExecutionFilterFilterSensitiveLog = AssociationExecutionFilterFilterSensitiveLog; -const DescribeAssociationExecutionsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeAssociationExecutionsRequestFilterSensitiveLog = DescribeAssociationExecutionsRequestFilterSensitiveLog; -const AssociationExecutionFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AssociationExecutionFilterSensitiveLog = AssociationExecutionFilterSensitiveLog; -const DescribeAssociationExecutionsResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeAssociationExecutionsResultFilterSensitiveLog = DescribeAssociationExecutionsResultFilterSensitiveLog; -const AssociationExecutionTargetsFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AssociationExecutionTargetsFilterFilterSensitiveLog = AssociationExecutionTargetsFilterFilterSensitiveLog; -const DescribeAssociationExecutionTargetsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeAssociationExecutionTargetsRequestFilterSensitiveLog = DescribeAssociationExecutionTargetsRequestFilterSensitiveLog; -const OutputSourceFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.OutputSourceFilterSensitiveLog = OutputSourceFilterSensitiveLog; -const AssociationExecutionTargetFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AssociationExecutionTargetFilterSensitiveLog = AssociationExecutionTargetFilterSensitiveLog; -const DescribeAssociationExecutionTargetsResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeAssociationExecutionTargetsResultFilterSensitiveLog = DescribeAssociationExecutionTargetsResultFilterSensitiveLog; -const AutomationExecutionFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AutomationExecutionFilterFilterSensitiveLog = AutomationExecutionFilterFilterSensitiveLog; -const DescribeAutomationExecutionsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeAutomationExecutionsRequestFilterSensitiveLog = DescribeAutomationExecutionsRequestFilterSensitiveLog; -const ResolvedTargetsFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ResolvedTargetsFilterSensitiveLog = ResolvedTargetsFilterSensitiveLog; -const RunbookFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.RunbookFilterSensitiveLog = RunbookFilterSensitiveLog; -const AutomationExecutionMetadataFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AutomationExecutionMetadataFilterSensitiveLog = AutomationExecutionMetadataFilterSensitiveLog; -const DescribeAutomationExecutionsResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeAutomationExecutionsResultFilterSensitiveLog = DescribeAutomationExecutionsResultFilterSensitiveLog; -const StepExecutionFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.StepExecutionFilterFilterSensitiveLog = StepExecutionFilterFilterSensitiveLog; -const DescribeAutomationStepExecutionsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeAutomationStepExecutionsRequestFilterSensitiveLog = DescribeAutomationStepExecutionsRequestFilterSensitiveLog; -const FailureDetailsFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.FailureDetailsFilterSensitiveLog = FailureDetailsFilterSensitiveLog; -const StepExecutionFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.StepExecutionFilterSensitiveLog = StepExecutionFilterSensitiveLog; -const DescribeAutomationStepExecutionsResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeAutomationStepExecutionsResultFilterSensitiveLog = DescribeAutomationStepExecutionsResultFilterSensitiveLog; -const PatchOrchestratorFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.PatchOrchestratorFilterFilterSensitiveLog = PatchOrchestratorFilterFilterSensitiveLog; -const DescribeAvailablePatchesRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeAvailablePatchesRequestFilterSensitiveLog = DescribeAvailablePatchesRequestFilterSensitiveLog; -const PatchFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.PatchFilterSensitiveLog = PatchFilterSensitiveLog; -const DescribeAvailablePatchesResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeAvailablePatchesResultFilterSensitiveLog = DescribeAvailablePatchesResultFilterSensitiveLog; -const DescribeDocumentRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeDocumentRequestFilterSensitiveLog = DescribeDocumentRequestFilterSensitiveLog; -const DescribeDocumentResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeDocumentResultFilterSensitiveLog = DescribeDocumentResultFilterSensitiveLog; -const DescribeDocumentPermissionRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeDocumentPermissionRequestFilterSensitiveLog = DescribeDocumentPermissionRequestFilterSensitiveLog; -const DescribeDocumentPermissionResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeDocumentPermissionResponseFilterSensitiveLog = DescribeDocumentPermissionResponseFilterSensitiveLog; -const DescribeEffectiveInstanceAssociationsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeEffectiveInstanceAssociationsRequestFilterSensitiveLog = DescribeEffectiveInstanceAssociationsRequestFilterSensitiveLog; -const InstanceAssociationFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InstanceAssociationFilterSensitiveLog = InstanceAssociationFilterSensitiveLog; -const DescribeEffectiveInstanceAssociationsResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeEffectiveInstanceAssociationsResultFilterSensitiveLog = DescribeEffectiveInstanceAssociationsResultFilterSensitiveLog; -const DescribeEffectivePatchesForPatchBaselineRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeEffectivePatchesForPatchBaselineRequestFilterSensitiveLog = DescribeEffectivePatchesForPatchBaselineRequestFilterSensitiveLog; -const PatchStatusFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.PatchStatusFilterSensitiveLog = PatchStatusFilterSensitiveLog; -const EffectivePatchFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.EffectivePatchFilterSensitiveLog = EffectivePatchFilterSensitiveLog; -const DescribeEffectivePatchesForPatchBaselineResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeEffectivePatchesForPatchBaselineResultFilterSensitiveLog = DescribeEffectivePatchesForPatchBaselineResultFilterSensitiveLog; -const DescribeInstanceAssociationsStatusRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeInstanceAssociationsStatusRequestFilterSensitiveLog = DescribeInstanceAssociationsStatusRequestFilterSensitiveLog; -const S3OutputUrlFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.S3OutputUrlFilterSensitiveLog = S3OutputUrlFilterSensitiveLog; -const InstanceAssociationOutputUrlFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InstanceAssociationOutputUrlFilterSensitiveLog = InstanceAssociationOutputUrlFilterSensitiveLog; -const InstanceAssociationStatusInfoFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InstanceAssociationStatusInfoFilterSensitiveLog = InstanceAssociationStatusInfoFilterSensitiveLog; -const DescribeInstanceAssociationsStatusResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeInstanceAssociationsStatusResultFilterSensitiveLog = DescribeInstanceAssociationsStatusResultFilterSensitiveLog; -const InstanceInformationStringFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InstanceInformationStringFilterFilterSensitiveLog = InstanceInformationStringFilterFilterSensitiveLog; -const InstanceInformationFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InstanceInformationFilterFilterSensitiveLog = InstanceInformationFilterFilterSensitiveLog; -const DescribeInstanceInformationRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeInstanceInformationRequestFilterSensitiveLog = DescribeInstanceInformationRequestFilterSensitiveLog; -const InstanceAggregatedAssociationOverviewFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InstanceAggregatedAssociationOverviewFilterSensitiveLog = InstanceAggregatedAssociationOverviewFilterSensitiveLog; -const InstanceInformationFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InstanceInformationFilterSensitiveLog = InstanceInformationFilterSensitiveLog; -const DescribeInstanceInformationResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeInstanceInformationResultFilterSensitiveLog = DescribeInstanceInformationResultFilterSensitiveLog; -const DescribeInstancePatchesRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeInstancePatchesRequestFilterSensitiveLog = DescribeInstancePatchesRequestFilterSensitiveLog; -const PatchComplianceDataFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.PatchComplianceDataFilterSensitiveLog = PatchComplianceDataFilterSensitiveLog; -const DescribeInstancePatchesResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeInstancePatchesResultFilterSensitiveLog = DescribeInstancePatchesResultFilterSensitiveLog; -const DescribeInstancePatchStatesRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeInstancePatchStatesRequestFilterSensitiveLog = DescribeInstancePatchStatesRequestFilterSensitiveLog; -const InstancePatchStateFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), -}); -exports.InstancePatchStateFilterSensitiveLog = InstancePatchStateFilterSensitiveLog; -const DescribeInstancePatchStatesResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.InstancePatchStates && { - InstancePatchStates: obj.InstancePatchStates.map((item) => (0, exports.InstancePatchStateFilterSensitiveLog)(item)), - }), -}); -exports.DescribeInstancePatchStatesResultFilterSensitiveLog = DescribeInstancePatchStatesResultFilterSensitiveLog; -const InstancePatchStateFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InstancePatchStateFilterFilterSensitiveLog = InstancePatchStateFilterFilterSensitiveLog; -const DescribeInstancePatchStatesForPatchGroupRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeInstancePatchStatesForPatchGroupRequestFilterSensitiveLog = DescribeInstancePatchStatesForPatchGroupRequestFilterSensitiveLog; -const DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.InstancePatchStates && { - InstancePatchStates: obj.InstancePatchStates.map((item) => (0, exports.InstancePatchStateFilterSensitiveLog)(item)), - }), -}); -exports.DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog = DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog; -const DescribeInventoryDeletionsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeInventoryDeletionsRequestFilterSensitiveLog = DescribeInventoryDeletionsRequestFilterSensitiveLog; -const InventoryDeletionStatusItemFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InventoryDeletionStatusItemFilterSensitiveLog = InventoryDeletionStatusItemFilterSensitiveLog; -const DescribeInventoryDeletionsResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeInventoryDeletionsResultFilterSensitiveLog = DescribeInventoryDeletionsResultFilterSensitiveLog; -const MaintenanceWindowFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.MaintenanceWindowFilterFilterSensitiveLog = MaintenanceWindowFilterFilterSensitiveLog; -const DescribeMaintenanceWindowExecutionsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeMaintenanceWindowExecutionsRequestFilterSensitiveLog = DescribeMaintenanceWindowExecutionsRequestFilterSensitiveLog; -const MaintenanceWindowExecutionFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.MaintenanceWindowExecutionFilterSensitiveLog = MaintenanceWindowExecutionFilterSensitiveLog; -const DescribeMaintenanceWindowExecutionsResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeMaintenanceWindowExecutionsResultFilterSensitiveLog = DescribeMaintenanceWindowExecutionsResultFilterSensitiveLog; -const DescribeMaintenanceWindowExecutionTaskInvocationsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeMaintenanceWindowExecutionTaskInvocationsRequestFilterSensitiveLog = DescribeMaintenanceWindowExecutionTaskInvocationsRequestFilterSensitiveLog; -const MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), - ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), -}); -exports.MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog = MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog; -const DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.WindowExecutionTaskInvocationIdentities && { - WindowExecutionTaskInvocationIdentities: obj.WindowExecutionTaskInvocationIdentities.map((item) => (0, exports.MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog)(item)), - }), -}); -exports.DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog = DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog; -const DescribeMaintenanceWindowExecutionTasksRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeMaintenanceWindowExecutionTasksRequestFilterSensitiveLog = DescribeMaintenanceWindowExecutionTasksRequestFilterSensitiveLog; -const MaintenanceWindowExecutionTaskIdentityFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.MaintenanceWindowExecutionTaskIdentityFilterSensitiveLog = MaintenanceWindowExecutionTaskIdentityFilterSensitiveLog; -const DescribeMaintenanceWindowExecutionTasksResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeMaintenanceWindowExecutionTasksResultFilterSensitiveLog = DescribeMaintenanceWindowExecutionTasksResultFilterSensitiveLog; -const DescribeMaintenanceWindowsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeMaintenanceWindowsRequestFilterSensitiveLog = DescribeMaintenanceWindowsRequestFilterSensitiveLog; -const MaintenanceWindowIdentityFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.MaintenanceWindowIdentityFilterSensitiveLog = MaintenanceWindowIdentityFilterSensitiveLog; -const DescribeMaintenanceWindowsResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.WindowIdentities && { - WindowIdentities: obj.WindowIdentities.map((item) => (0, exports.MaintenanceWindowIdentityFilterSensitiveLog)(item)), - }), -}); -exports.DescribeMaintenanceWindowsResultFilterSensitiveLog = DescribeMaintenanceWindowsResultFilterSensitiveLog; -const DescribeMaintenanceWindowScheduleRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeMaintenanceWindowScheduleRequestFilterSensitiveLog = DescribeMaintenanceWindowScheduleRequestFilterSensitiveLog; -const ScheduledWindowExecutionFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ScheduledWindowExecutionFilterSensitiveLog = ScheduledWindowExecutionFilterSensitiveLog; -const DescribeMaintenanceWindowScheduleResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeMaintenanceWindowScheduleResultFilterSensitiveLog = DescribeMaintenanceWindowScheduleResultFilterSensitiveLog; -const DescribeMaintenanceWindowsForTargetRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeMaintenanceWindowsForTargetRequestFilterSensitiveLog = DescribeMaintenanceWindowsForTargetRequestFilterSensitiveLog; -const MaintenanceWindowIdentityForTargetFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.MaintenanceWindowIdentityForTargetFilterSensitiveLog = MaintenanceWindowIdentityForTargetFilterSensitiveLog; -const DescribeMaintenanceWindowsForTargetResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeMaintenanceWindowsForTargetResultFilterSensitiveLog = DescribeMaintenanceWindowsForTargetResultFilterSensitiveLog; -const DescribeMaintenanceWindowTargetsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeMaintenanceWindowTargetsRequestFilterSensitiveLog = DescribeMaintenanceWindowTargetsRequestFilterSensitiveLog; -const MaintenanceWindowTargetFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.MaintenanceWindowTargetFilterSensitiveLog = MaintenanceWindowTargetFilterSensitiveLog; -const DescribeMaintenanceWindowTargetsResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Targets && { Targets: obj.Targets.map((item) => (0, exports.MaintenanceWindowTargetFilterSensitiveLog)(item)) }), -}); -exports.DescribeMaintenanceWindowTargetsResultFilterSensitiveLog = DescribeMaintenanceWindowTargetsResultFilterSensitiveLog; -const DescribeMaintenanceWindowTasksRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeMaintenanceWindowTasksRequestFilterSensitiveLog = DescribeMaintenanceWindowTasksRequestFilterSensitiveLog; -const LoggingInfoFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.LoggingInfoFilterSensitiveLog = LoggingInfoFilterSensitiveLog; -const MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Values && { Values: smithy_client_1.SENSITIVE_STRING }), -}); -exports.MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog = MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog; -const MaintenanceWindowTaskFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.TaskParameters && { TaskParameters: smithy_client_1.SENSITIVE_STRING }), - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.MaintenanceWindowTaskFilterSensitiveLog = MaintenanceWindowTaskFilterSensitiveLog; -const DescribeMaintenanceWindowTasksResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Tasks && { Tasks: obj.Tasks.map((item) => (0, exports.MaintenanceWindowTaskFilterSensitiveLog)(item)) }), -}); -exports.DescribeMaintenanceWindowTasksResultFilterSensitiveLog = DescribeMaintenanceWindowTasksResultFilterSensitiveLog; -const OpsItemFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.OpsItemFilterFilterSensitiveLog = OpsItemFilterFilterSensitiveLog; -const DescribeOpsItemsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeOpsItemsRequestFilterSensitiveLog = DescribeOpsItemsRequestFilterSensitiveLog; -const OpsItemSummaryFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.OpsItemSummaryFilterSensitiveLog = OpsItemSummaryFilterSensitiveLog; -const DescribeOpsItemsResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeOpsItemsResponseFilterSensitiveLog = DescribeOpsItemsResponseFilterSensitiveLog; -const ParametersFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ParametersFilterFilterSensitiveLog = ParametersFilterFilterSensitiveLog; -const ParameterStringFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ParameterStringFilterFilterSensitiveLog = ParameterStringFilterFilterSensitiveLog; -const DescribeParametersRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeParametersRequestFilterSensitiveLog = DescribeParametersRequestFilterSensitiveLog; -const ParameterInlinePolicyFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ParameterInlinePolicyFilterSensitiveLog = ParameterInlinePolicyFilterSensitiveLog; - - -/***/ }), - -/***/ 9974: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ComplianceUploadType = exports.ItemSizeLimitExceededException = exports.InvalidItemContentException = exports.ComplianceTypeCountLimitExceededException = exports.DocumentPermissionLimit = exports.LastResourceDataSyncStatus = exports.OpsItemRelatedItemsFilterOperator = exports.OpsItemRelatedItemsFilterKey = exports.OpsItemEventFilterOperator = exports.OpsItemEventFilterKey = exports.DocumentFilterKey = exports.DocumentReviewCommentType = exports.DocumentMetadataEnum = exports.ComplianceStatus = exports.ComplianceSeverity = exports.ComplianceQueryOperatorType = exports.CommandStatus = exports.CommandPluginStatus = exports.CommandFilterKey = exports.AssociationFilterKey = exports.ParameterVersionLabelLimitExceeded = exports.ServiceSettingNotFound = exports.ParameterVersionNotFound = exports.InvalidKeyId = exports.OpsFilterOperatorType = exports.NotificationType = exports.NotificationEvent = exports.InventoryAttributeDataType = exports.InvalidResultAttributeException = exports.InvalidInventoryGroupException = exports.InvalidAggregatorException = exports.InventoryQueryOperatorType = exports.AttachmentHashType = exports.UnsupportedFeatureRequiredException = exports.ConnectionStatus = exports.InvocationDoesNotExist = exports.InvalidPluginName = exports.CommandInvocationStatus = exports.UnsupportedCalendarException = exports.InvalidDocumentType = exports.CalendarState = exports.OpsItemRelatedItemAssociationNotFoundException = exports.SessionStatus = exports.SessionState = exports.SessionFilterKey = exports.PatchProperty = exports.PatchSet = exports.InvalidFilterOption = exports.ParameterType = exports.ParameterTier = void 0; -exports.DescribePatchGroupsResultFilterSensitiveLog = exports.PatchGroupPatchBaselineMappingFilterSensitiveLog = exports.DescribePatchGroupsRequestFilterSensitiveLog = exports.DescribePatchBaselinesResultFilterSensitiveLog = exports.PatchBaselineIdentityFilterSensitiveLog = exports.DescribePatchBaselinesRequestFilterSensitiveLog = exports.DescribeParametersResultFilterSensitiveLog = exports.ParameterMetadataFilterSensitiveLog = exports.DocumentReviewAction = exports.DuplicateDocumentVersionName = exports.DuplicateDocumentContent = exports.DocumentVersionLimitExceeded = exports.StatusUnchanged = exports.InvalidUpdate = exports.AssociationVersionLimitExceeded = exports.StopType = exports.InvalidAutomationStatusUpdateException = exports.TargetNotConnected = exports.AutomationDefinitionNotApprovedException = exports.InvalidAutomationExecutionParametersException = exports.AutomationExecutionLimitExceededException = exports.AutomationDefinitionVersionNotFoundException = exports.AutomationDefinitionNotFoundException = exports.InvalidAssociation = exports.InvalidRole = exports.InvalidOutputFolder = exports.InvalidNotificationConfig = exports.SignalType = exports.InvalidAutomationSignalException = exports.AutomationStepNotFoundException = exports.FeatureNotAvailableException = exports.UnsupportedParameterType = exports.PoliciesLimitExceededException = exports.ParameterPatternMismatchException = exports.ParameterMaxVersionLimitExceeded = exports.ParameterLimitExceeded = exports.ParameterAlreadyExists = exports.InvalidPolicyTypeException = exports.InvalidPolicyAttributeException = exports.InvalidAllowedPatternException = exports.IncompatiblePolicyException = exports.HierarchyTypeMismatchException = exports.HierarchyLevelLimitExceededException = exports.UnsupportedInventorySchemaVersionException = exports.UnsupportedInventoryItemContextException = exports.SubTypeCountLimitExceededException = exports.ItemContentMismatchException = exports.InvalidInventoryItemContextException = exports.CustomSchemaCountLimitExceededException = exports.TotalSizeLimitExceededException = void 0; -exports.MaintenanceWindowAutomationParametersFilterSensitiveLog = exports.GetMaintenanceWindowTaskRequestFilterSensitiveLog = exports.GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog = exports.GetMaintenanceWindowExecutionTaskInvocationRequestFilterSensitiveLog = exports.GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog = exports.GetMaintenanceWindowExecutionTaskRequestFilterSensitiveLog = exports.GetMaintenanceWindowExecutionResultFilterSensitiveLog = exports.GetMaintenanceWindowExecutionRequestFilterSensitiveLog = exports.GetMaintenanceWindowResultFilterSensitiveLog = exports.GetMaintenanceWindowRequestFilterSensitiveLog = exports.GetInventorySchemaResultFilterSensitiveLog = exports.InventoryItemSchemaFilterSensitiveLog = exports.InventoryItemAttributeFilterSensitiveLog = exports.GetInventorySchemaRequestFilterSensitiveLog = exports.GetInventoryResultFilterSensitiveLog = exports.InventoryResultEntityFilterSensitiveLog = exports.InventoryResultItemFilterSensitiveLog = exports.ResultAttributeFilterSensitiveLog = exports.InventoryGroupFilterSensitiveLog = exports.InventoryFilterFilterSensitiveLog = exports.GetDocumentResultFilterSensitiveLog = exports.AttachmentContentFilterSensitiveLog = exports.GetDocumentRequestFilterSensitiveLog = exports.GetDeployablePatchSnapshotForInstanceResultFilterSensitiveLog = exports.GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog = exports.BaselineOverrideFilterSensitiveLog = exports.GetDefaultPatchBaselineResultFilterSensitiveLog = exports.GetDefaultPatchBaselineRequestFilterSensitiveLog = exports.GetConnectionStatusResponseFilterSensitiveLog = exports.GetConnectionStatusRequestFilterSensitiveLog = exports.GetCommandInvocationResultFilterSensitiveLog = exports.CloudWatchOutputConfigFilterSensitiveLog = exports.GetCommandInvocationRequestFilterSensitiveLog = exports.GetCalendarStateResponseFilterSensitiveLog = exports.GetCalendarStateRequestFilterSensitiveLog = exports.GetAutomationExecutionResultFilterSensitiveLog = exports.AutomationExecutionFilterSensitiveLog = exports.ProgressCountersFilterSensitiveLog = exports.GetAutomationExecutionRequestFilterSensitiveLog = exports.DisassociateOpsItemRelatedItemResponseFilterSensitiveLog = exports.DisassociateOpsItemRelatedItemRequestFilterSensitiveLog = exports.DescribeSessionsResponseFilterSensitiveLog = exports.SessionFilterSensitiveLog = exports.SessionManagerOutputUrlFilterSensitiveLog = exports.DescribeSessionsRequestFilterSensitiveLog = exports.SessionFilterFilterSensitiveLog = exports.DescribePatchPropertiesResultFilterSensitiveLog = exports.DescribePatchPropertiesRequestFilterSensitiveLog = exports.DescribePatchGroupStateResultFilterSensitiveLog = exports.DescribePatchGroupStateRequestFilterSensitiveLog = void 0; -exports.ListCommandsResultFilterSensitiveLog = exports.CommandFilterSensitiveLog = exports.ListCommandsRequestFilterSensitiveLog = exports.ListCommandInvocationsResultFilterSensitiveLog = exports.CommandInvocationFilterSensitiveLog = exports.CommandPluginFilterSensitiveLog = exports.ListCommandInvocationsRequestFilterSensitiveLog = exports.CommandFilterFilterSensitiveLog = exports.ListAssociationVersionsResultFilterSensitiveLog = exports.AssociationVersionInfoFilterSensitiveLog = exports.ListAssociationVersionsRequestFilterSensitiveLog = exports.ListAssociationsResultFilterSensitiveLog = exports.AssociationFilterSensitiveLog = exports.ListAssociationsRequestFilterSensitiveLog = exports.AssociationFilterFilterSensitiveLog = exports.LabelParameterVersionResultFilterSensitiveLog = exports.LabelParameterVersionRequestFilterSensitiveLog = exports.GetServiceSettingResultFilterSensitiveLog = exports.ServiceSettingFilterSensitiveLog = exports.GetServiceSettingRequestFilterSensitiveLog = exports.GetPatchBaselineForPatchGroupResultFilterSensitiveLog = exports.GetPatchBaselineForPatchGroupRequestFilterSensitiveLog = exports.GetPatchBaselineResultFilterSensitiveLog = exports.GetPatchBaselineRequestFilterSensitiveLog = exports.GetParametersByPathResultFilterSensitiveLog = exports.GetParametersByPathRequestFilterSensitiveLog = exports.GetParametersResultFilterSensitiveLog = exports.GetParametersRequestFilterSensitiveLog = exports.GetParameterHistoryResultFilterSensitiveLog = exports.ParameterHistoryFilterSensitiveLog = exports.GetParameterHistoryRequestFilterSensitiveLog = exports.GetParameterResultFilterSensitiveLog = exports.ParameterFilterSensitiveLog = exports.GetParameterRequestFilterSensitiveLog = exports.GetOpsSummaryResultFilterSensitiveLog = exports.OpsEntityFilterSensitiveLog = exports.OpsEntityItemFilterSensitiveLog = exports.OpsResultAttributeFilterSensitiveLog = exports.OpsFilterFilterSensitiveLog = exports.GetOpsMetadataResultFilterSensitiveLog = exports.GetOpsMetadataRequestFilterSensitiveLog = exports.GetOpsItemResponseFilterSensitiveLog = exports.OpsItemFilterSensitiveLog = exports.GetOpsItemRequestFilterSensitiveLog = exports.GetMaintenanceWindowTaskResultFilterSensitiveLog = exports.MaintenanceWindowTaskInvocationParametersFilterSensitiveLog = exports.MaintenanceWindowStepFunctionsParametersFilterSensitiveLog = exports.MaintenanceWindowRunCommandParametersFilterSensitiveLog = exports.NotificationConfigFilterSensitiveLog = exports.MaintenanceWindowLambdaParametersFilterSensitiveLog = void 0; -exports.ModifyDocumentPermissionResponseFilterSensitiveLog = exports.ModifyDocumentPermissionRequestFilterSensitiveLog = exports.ListTagsForResourceResultFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListResourceDataSyncResultFilterSensitiveLog = exports.ResourceDataSyncItemFilterSensitiveLog = exports.ResourceDataSyncSourceWithStateFilterSensitiveLog = exports.ListResourceDataSyncRequestFilterSensitiveLog = exports.ListResourceComplianceSummariesResultFilterSensitiveLog = exports.ResourceComplianceSummaryItemFilterSensitiveLog = exports.ListResourceComplianceSummariesRequestFilterSensitiveLog = exports.ListOpsMetadataResultFilterSensitiveLog = exports.OpsMetadataFilterSensitiveLog = exports.ListOpsMetadataRequestFilterSensitiveLog = exports.OpsMetadataFilterFilterSensitiveLog = exports.ListOpsItemRelatedItemsResponseFilterSensitiveLog = exports.OpsItemRelatedItemSummaryFilterSensitiveLog = exports.ListOpsItemRelatedItemsRequestFilterSensitiveLog = exports.OpsItemRelatedItemsFilterFilterSensitiveLog = exports.ListOpsItemEventsResponseFilterSensitiveLog = exports.OpsItemEventSummaryFilterSensitiveLog = exports.OpsItemIdentityFilterSensitiveLog = exports.ListOpsItemEventsRequestFilterSensitiveLog = exports.OpsItemEventFilterFilterSensitiveLog = exports.ListInventoryEntriesResultFilterSensitiveLog = exports.ListInventoryEntriesRequestFilterSensitiveLog = exports.ListDocumentVersionsResultFilterSensitiveLog = exports.DocumentVersionInfoFilterSensitiveLog = exports.ListDocumentVersionsRequestFilterSensitiveLog = exports.ListDocumentsResultFilterSensitiveLog = exports.DocumentIdentifierFilterSensitiveLog = exports.ListDocumentsRequestFilterSensitiveLog = exports.DocumentKeyValuesFilterFilterSensitiveLog = exports.DocumentFilterFilterSensitiveLog = exports.ListDocumentMetadataHistoryResponseFilterSensitiveLog = exports.DocumentMetadataResponseInfoFilterSensitiveLog = exports.DocumentReviewerResponseSourceFilterSensitiveLog = exports.DocumentReviewCommentSourceFilterSensitiveLog = exports.ListDocumentMetadataHistoryRequestFilterSensitiveLog = exports.ListComplianceSummariesResultFilterSensitiveLog = exports.ComplianceSummaryItemFilterSensitiveLog = exports.NonCompliantSummaryFilterSensitiveLog = exports.CompliantSummaryFilterSensitiveLog = exports.SeveritySummaryFilterSensitiveLog = exports.ListComplianceSummariesRequestFilterSensitiveLog = exports.ListComplianceItemsResultFilterSensitiveLog = exports.ComplianceItemFilterSensitiveLog = exports.ComplianceExecutionSummaryFilterSensitiveLog = exports.ListComplianceItemsRequestFilterSensitiveLog = exports.ComplianceStringFilterFilterSensitiveLog = void 0; -exports.DocumentReviewsFilterSensitiveLog = exports.UpdateDocumentDefaultVersionResultFilterSensitiveLog = exports.DocumentDefaultVersionDescriptionFilterSensitiveLog = exports.UpdateDocumentDefaultVersionRequestFilterSensitiveLog = exports.UpdateDocumentResultFilterSensitiveLog = exports.UpdateDocumentRequestFilterSensitiveLog = exports.UpdateAssociationStatusResultFilterSensitiveLog = exports.UpdateAssociationStatusRequestFilterSensitiveLog = exports.UpdateAssociationResultFilterSensitiveLog = exports.UpdateAssociationRequestFilterSensitiveLog = exports.UnlabelParameterVersionResultFilterSensitiveLog = exports.UnlabelParameterVersionRequestFilterSensitiveLog = exports.TerminateSessionResponseFilterSensitiveLog = exports.TerminateSessionRequestFilterSensitiveLog = exports.StopAutomationExecutionResultFilterSensitiveLog = exports.StopAutomationExecutionRequestFilterSensitiveLog = exports.StartSessionResponseFilterSensitiveLog = exports.StartSessionRequestFilterSensitiveLog = exports.StartChangeRequestExecutionResultFilterSensitiveLog = exports.StartChangeRequestExecutionRequestFilterSensitiveLog = exports.StartAutomationExecutionResultFilterSensitiveLog = exports.StartAutomationExecutionRequestFilterSensitiveLog = exports.StartAssociationsOnceResultFilterSensitiveLog = exports.StartAssociationsOnceRequestFilterSensitiveLog = exports.SendCommandResultFilterSensitiveLog = exports.SendCommandRequestFilterSensitiveLog = exports.SendAutomationSignalResultFilterSensitiveLog = exports.SendAutomationSignalRequestFilterSensitiveLog = exports.ResumeSessionResponseFilterSensitiveLog = exports.ResumeSessionRequestFilterSensitiveLog = exports.ResetServiceSettingResultFilterSensitiveLog = exports.ResetServiceSettingRequestFilterSensitiveLog = exports.RemoveTagsFromResourceResultFilterSensitiveLog = exports.RemoveTagsFromResourceRequestFilterSensitiveLog = exports.RegisterTaskWithMaintenanceWindowResultFilterSensitiveLog = exports.RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog = exports.RegisterTargetWithMaintenanceWindowResultFilterSensitiveLog = exports.RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog = exports.RegisterPatchBaselineForPatchGroupResultFilterSensitiveLog = exports.RegisterPatchBaselineForPatchGroupRequestFilterSensitiveLog = exports.RegisterDefaultPatchBaselineResultFilterSensitiveLog = exports.RegisterDefaultPatchBaselineRequestFilterSensitiveLog = exports.PutParameterResultFilterSensitiveLog = exports.PutParameterRequestFilterSensitiveLog = exports.PutInventoryResultFilterSensitiveLog = exports.PutInventoryRequestFilterSensitiveLog = exports.InventoryItemFilterSensitiveLog = exports.PutComplianceItemsResultFilterSensitiveLog = exports.PutComplianceItemsRequestFilterSensitiveLog = exports.ComplianceItemEntryFilterSensitiveLog = void 0; -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const SSMServiceException_1 = __nccwpck_require__(97777); -var ParameterTier; -(function (ParameterTier) { - ParameterTier["ADVANCED"] = "Advanced"; - ParameterTier["INTELLIGENT_TIERING"] = "Intelligent-Tiering"; - ParameterTier["STANDARD"] = "Standard"; -})(ParameterTier = exports.ParameterTier || (exports.ParameterTier = {})); -var ParameterType; -(function (ParameterType) { - ParameterType["SECURE_STRING"] = "SecureString"; - ParameterType["STRING"] = "String"; - ParameterType["STRING_LIST"] = "StringList"; -})(ParameterType = exports.ParameterType || (exports.ParameterType = {})); -class InvalidFilterOption extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidFilterOption", - $fault: "client", - ...opts, - }); - this.name = "InvalidFilterOption"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidFilterOption.prototype); - } -} -exports.InvalidFilterOption = InvalidFilterOption; -var PatchSet; -(function (PatchSet) { - PatchSet["Application"] = "APPLICATION"; - PatchSet["Os"] = "OS"; -})(PatchSet = exports.PatchSet || (exports.PatchSet = {})); -var PatchProperty; -(function (PatchProperty) { - PatchProperty["PatchClassification"] = "CLASSIFICATION"; - PatchProperty["PatchMsrcSeverity"] = "MSRC_SEVERITY"; - PatchProperty["PatchPriority"] = "PRIORITY"; - PatchProperty["PatchProductFamily"] = "PRODUCT_FAMILY"; - PatchProperty["PatchSeverity"] = "SEVERITY"; - PatchProperty["Product"] = "PRODUCT"; -})(PatchProperty = exports.PatchProperty || (exports.PatchProperty = {})); -var SessionFilterKey; -(function (SessionFilterKey) { - SessionFilterKey["INVOKED_AFTER"] = "InvokedAfter"; - SessionFilterKey["INVOKED_BEFORE"] = "InvokedBefore"; - SessionFilterKey["OWNER"] = "Owner"; - SessionFilterKey["SESSION_ID"] = "SessionId"; - SessionFilterKey["STATUS"] = "Status"; - SessionFilterKey["TARGET_ID"] = "Target"; -})(SessionFilterKey = exports.SessionFilterKey || (exports.SessionFilterKey = {})); -var SessionState; -(function (SessionState) { - SessionState["ACTIVE"] = "Active"; - SessionState["HISTORY"] = "History"; -})(SessionState = exports.SessionState || (exports.SessionState = {})); -var SessionStatus; -(function (SessionStatus) { - SessionStatus["CONNECTED"] = "Connected"; - SessionStatus["CONNECTING"] = "Connecting"; - SessionStatus["DISCONNECTED"] = "Disconnected"; - SessionStatus["FAILED"] = "Failed"; - SessionStatus["TERMINATED"] = "Terminated"; - SessionStatus["TERMINATING"] = "Terminating"; -})(SessionStatus = exports.SessionStatus || (exports.SessionStatus = {})); -class OpsItemRelatedItemAssociationNotFoundException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsItemRelatedItemAssociationNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemRelatedItemAssociationNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemRelatedItemAssociationNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.OpsItemRelatedItemAssociationNotFoundException = OpsItemRelatedItemAssociationNotFoundException; -var CalendarState; -(function (CalendarState) { - CalendarState["CLOSED"] = "CLOSED"; - CalendarState["OPEN"] = "OPEN"; -})(CalendarState = exports.CalendarState || (exports.CalendarState = {})); -class InvalidDocumentType extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidDocumentType", - $fault: "client", - ...opts, - }); - this.name = "InvalidDocumentType"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDocumentType.prototype); - this.Message = opts.Message; - } -} -exports.InvalidDocumentType = InvalidDocumentType; -class UnsupportedCalendarException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "UnsupportedCalendarException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedCalendarException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedCalendarException.prototype); - this.Message = opts.Message; - } -} -exports.UnsupportedCalendarException = UnsupportedCalendarException; -var CommandInvocationStatus; -(function (CommandInvocationStatus) { - CommandInvocationStatus["CANCELLED"] = "Cancelled"; - CommandInvocationStatus["CANCELLING"] = "Cancelling"; - CommandInvocationStatus["DELAYED"] = "Delayed"; - CommandInvocationStatus["FAILED"] = "Failed"; - CommandInvocationStatus["IN_PROGRESS"] = "InProgress"; - CommandInvocationStatus["PENDING"] = "Pending"; - CommandInvocationStatus["SUCCESS"] = "Success"; - CommandInvocationStatus["TIMED_OUT"] = "TimedOut"; -})(CommandInvocationStatus = exports.CommandInvocationStatus || (exports.CommandInvocationStatus = {})); -class InvalidPluginName extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidPluginName", - $fault: "client", - ...opts, - }); - this.name = "InvalidPluginName"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidPluginName.prototype); - } -} -exports.InvalidPluginName = InvalidPluginName; -class InvocationDoesNotExist extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvocationDoesNotExist", - $fault: "client", - ...opts, - }); - this.name = "InvocationDoesNotExist"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvocationDoesNotExist.prototype); - } -} -exports.InvocationDoesNotExist = InvocationDoesNotExist; -var ConnectionStatus; -(function (ConnectionStatus) { - ConnectionStatus["CONNECTED"] = "Connected"; - ConnectionStatus["NOT_CONNECTED"] = "NotConnected"; -})(ConnectionStatus = exports.ConnectionStatus || (exports.ConnectionStatus = {})); -class UnsupportedFeatureRequiredException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "UnsupportedFeatureRequiredException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedFeatureRequiredException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedFeatureRequiredException.prototype); - this.Message = opts.Message; - } -} -exports.UnsupportedFeatureRequiredException = UnsupportedFeatureRequiredException; -var AttachmentHashType; -(function (AttachmentHashType) { - AttachmentHashType["SHA256"] = "Sha256"; -})(AttachmentHashType = exports.AttachmentHashType || (exports.AttachmentHashType = {})); -var InventoryQueryOperatorType; -(function (InventoryQueryOperatorType) { - InventoryQueryOperatorType["BEGIN_WITH"] = "BeginWith"; - InventoryQueryOperatorType["EQUAL"] = "Equal"; - InventoryQueryOperatorType["EXISTS"] = "Exists"; - InventoryQueryOperatorType["GREATER_THAN"] = "GreaterThan"; - InventoryQueryOperatorType["LESS_THAN"] = "LessThan"; - InventoryQueryOperatorType["NOT_EQUAL"] = "NotEqual"; -})(InventoryQueryOperatorType = exports.InventoryQueryOperatorType || (exports.InventoryQueryOperatorType = {})); -class InvalidAggregatorException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidAggregatorException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAggregatorException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAggregatorException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidAggregatorException = InvalidAggregatorException; -class InvalidInventoryGroupException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidInventoryGroupException", - $fault: "client", - ...opts, - }); - this.name = "InvalidInventoryGroupException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidInventoryGroupException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidInventoryGroupException = InvalidInventoryGroupException; -class InvalidResultAttributeException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidResultAttributeException", - $fault: "client", - ...opts, - }); - this.name = "InvalidResultAttributeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidResultAttributeException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidResultAttributeException = InvalidResultAttributeException; -var InventoryAttributeDataType; -(function (InventoryAttributeDataType) { - InventoryAttributeDataType["NUMBER"] = "number"; - InventoryAttributeDataType["STRING"] = "string"; -})(InventoryAttributeDataType = exports.InventoryAttributeDataType || (exports.InventoryAttributeDataType = {})); -var NotificationEvent; -(function (NotificationEvent) { - NotificationEvent["ALL"] = "All"; - NotificationEvent["CANCELLED"] = "Cancelled"; - NotificationEvent["FAILED"] = "Failed"; - NotificationEvent["IN_PROGRESS"] = "InProgress"; - NotificationEvent["SUCCESS"] = "Success"; - NotificationEvent["TIMED_OUT"] = "TimedOut"; -})(NotificationEvent = exports.NotificationEvent || (exports.NotificationEvent = {})); -var NotificationType; -(function (NotificationType) { - NotificationType["Command"] = "Command"; - NotificationType["Invocation"] = "Invocation"; -})(NotificationType = exports.NotificationType || (exports.NotificationType = {})); -var OpsFilterOperatorType; -(function (OpsFilterOperatorType) { - OpsFilterOperatorType["BEGIN_WITH"] = "BeginWith"; - OpsFilterOperatorType["EQUAL"] = "Equal"; - OpsFilterOperatorType["EXISTS"] = "Exists"; - OpsFilterOperatorType["GREATER_THAN"] = "GreaterThan"; - OpsFilterOperatorType["LESS_THAN"] = "LessThan"; - OpsFilterOperatorType["NOT_EQUAL"] = "NotEqual"; -})(OpsFilterOperatorType = exports.OpsFilterOperatorType || (exports.OpsFilterOperatorType = {})); -class InvalidKeyId extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidKeyId", - $fault: "client", - ...opts, - }); - this.name = "InvalidKeyId"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidKeyId.prototype); - } -} -exports.InvalidKeyId = InvalidKeyId; -class ParameterVersionNotFound extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ParameterVersionNotFound", - $fault: "client", - ...opts, - }); - this.name = "ParameterVersionNotFound"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterVersionNotFound.prototype); - } -} -exports.ParameterVersionNotFound = ParameterVersionNotFound; -class ServiceSettingNotFound extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ServiceSettingNotFound", - $fault: "client", - ...opts, - }); - this.name = "ServiceSettingNotFound"; - this.$fault = "client"; - Object.setPrototypeOf(this, ServiceSettingNotFound.prototype); - this.Message = opts.Message; - } -} -exports.ServiceSettingNotFound = ServiceSettingNotFound; -class ParameterVersionLabelLimitExceeded extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ParameterVersionLabelLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "ParameterVersionLabelLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterVersionLabelLimitExceeded.prototype); - } -} -exports.ParameterVersionLabelLimitExceeded = ParameterVersionLabelLimitExceeded; -var AssociationFilterKey; -(function (AssociationFilterKey) { - AssociationFilterKey["AssociationId"] = "AssociationId"; - AssociationFilterKey["AssociationName"] = "AssociationName"; - AssociationFilterKey["InstanceId"] = "InstanceId"; - AssociationFilterKey["LastExecutedAfter"] = "LastExecutedAfter"; - AssociationFilterKey["LastExecutedBefore"] = "LastExecutedBefore"; - AssociationFilterKey["Name"] = "Name"; - AssociationFilterKey["ResourceGroupName"] = "ResourceGroupName"; - AssociationFilterKey["Status"] = "AssociationStatusName"; -})(AssociationFilterKey = exports.AssociationFilterKey || (exports.AssociationFilterKey = {})); -var CommandFilterKey; -(function (CommandFilterKey) { - CommandFilterKey["DOCUMENT_NAME"] = "DocumentName"; - CommandFilterKey["EXECUTION_STAGE"] = "ExecutionStage"; - CommandFilterKey["INVOKED_AFTER"] = "InvokedAfter"; - CommandFilterKey["INVOKED_BEFORE"] = "InvokedBefore"; - CommandFilterKey["STATUS"] = "Status"; -})(CommandFilterKey = exports.CommandFilterKey || (exports.CommandFilterKey = {})); -var CommandPluginStatus; -(function (CommandPluginStatus) { - CommandPluginStatus["CANCELLED"] = "Cancelled"; - CommandPluginStatus["FAILED"] = "Failed"; - CommandPluginStatus["IN_PROGRESS"] = "InProgress"; - CommandPluginStatus["PENDING"] = "Pending"; - CommandPluginStatus["SUCCESS"] = "Success"; - CommandPluginStatus["TIMED_OUT"] = "TimedOut"; -})(CommandPluginStatus = exports.CommandPluginStatus || (exports.CommandPluginStatus = {})); -var CommandStatus; -(function (CommandStatus) { - CommandStatus["CANCELLED"] = "Cancelled"; - CommandStatus["CANCELLING"] = "Cancelling"; - CommandStatus["FAILED"] = "Failed"; - CommandStatus["IN_PROGRESS"] = "InProgress"; - CommandStatus["PENDING"] = "Pending"; - CommandStatus["SUCCESS"] = "Success"; - CommandStatus["TIMED_OUT"] = "TimedOut"; -})(CommandStatus = exports.CommandStatus || (exports.CommandStatus = {})); -var ComplianceQueryOperatorType; -(function (ComplianceQueryOperatorType) { - ComplianceQueryOperatorType["BeginWith"] = "BEGIN_WITH"; - ComplianceQueryOperatorType["Equal"] = "EQUAL"; - ComplianceQueryOperatorType["GreaterThan"] = "GREATER_THAN"; - ComplianceQueryOperatorType["LessThan"] = "LESS_THAN"; - ComplianceQueryOperatorType["NotEqual"] = "NOT_EQUAL"; -})(ComplianceQueryOperatorType = exports.ComplianceQueryOperatorType || (exports.ComplianceQueryOperatorType = {})); -var ComplianceSeverity; -(function (ComplianceSeverity) { - ComplianceSeverity["Critical"] = "CRITICAL"; - ComplianceSeverity["High"] = "HIGH"; - ComplianceSeverity["Informational"] = "INFORMATIONAL"; - ComplianceSeverity["Low"] = "LOW"; - ComplianceSeverity["Medium"] = "MEDIUM"; - ComplianceSeverity["Unspecified"] = "UNSPECIFIED"; -})(ComplianceSeverity = exports.ComplianceSeverity || (exports.ComplianceSeverity = {})); -var ComplianceStatus; -(function (ComplianceStatus) { - ComplianceStatus["Compliant"] = "COMPLIANT"; - ComplianceStatus["NonCompliant"] = "NON_COMPLIANT"; -})(ComplianceStatus = exports.ComplianceStatus || (exports.ComplianceStatus = {})); -var DocumentMetadataEnum; -(function (DocumentMetadataEnum) { - DocumentMetadataEnum["DocumentReviews"] = "DocumentReviews"; -})(DocumentMetadataEnum = exports.DocumentMetadataEnum || (exports.DocumentMetadataEnum = {})); -var DocumentReviewCommentType; -(function (DocumentReviewCommentType) { - DocumentReviewCommentType["Comment"] = "Comment"; -})(DocumentReviewCommentType = exports.DocumentReviewCommentType || (exports.DocumentReviewCommentType = {})); -var DocumentFilterKey; -(function (DocumentFilterKey) { - DocumentFilterKey["DocumentType"] = "DocumentType"; - DocumentFilterKey["Name"] = "Name"; - DocumentFilterKey["Owner"] = "Owner"; - DocumentFilterKey["PlatformTypes"] = "PlatformTypes"; -})(DocumentFilterKey = exports.DocumentFilterKey || (exports.DocumentFilterKey = {})); -var OpsItemEventFilterKey; -(function (OpsItemEventFilterKey) { - OpsItemEventFilterKey["OPSITEM_ID"] = "OpsItemId"; -})(OpsItemEventFilterKey = exports.OpsItemEventFilterKey || (exports.OpsItemEventFilterKey = {})); -var OpsItemEventFilterOperator; -(function (OpsItemEventFilterOperator) { - OpsItemEventFilterOperator["EQUAL"] = "Equal"; -})(OpsItemEventFilterOperator = exports.OpsItemEventFilterOperator || (exports.OpsItemEventFilterOperator = {})); -var OpsItemRelatedItemsFilterKey; -(function (OpsItemRelatedItemsFilterKey) { - OpsItemRelatedItemsFilterKey["ASSOCIATION_ID"] = "AssociationId"; - OpsItemRelatedItemsFilterKey["RESOURCE_TYPE"] = "ResourceType"; - OpsItemRelatedItemsFilterKey["RESOURCE_URI"] = "ResourceUri"; -})(OpsItemRelatedItemsFilterKey = exports.OpsItemRelatedItemsFilterKey || (exports.OpsItemRelatedItemsFilterKey = {})); -var OpsItemRelatedItemsFilterOperator; -(function (OpsItemRelatedItemsFilterOperator) { - OpsItemRelatedItemsFilterOperator["EQUAL"] = "Equal"; -})(OpsItemRelatedItemsFilterOperator = exports.OpsItemRelatedItemsFilterOperator || (exports.OpsItemRelatedItemsFilterOperator = {})); -var LastResourceDataSyncStatus; -(function (LastResourceDataSyncStatus) { - LastResourceDataSyncStatus["FAILED"] = "Failed"; - LastResourceDataSyncStatus["INPROGRESS"] = "InProgress"; - LastResourceDataSyncStatus["SUCCESSFUL"] = "Successful"; -})(LastResourceDataSyncStatus = exports.LastResourceDataSyncStatus || (exports.LastResourceDataSyncStatus = {})); -class DocumentPermissionLimit extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "DocumentPermissionLimit", - $fault: "client", - ...opts, - }); - this.name = "DocumentPermissionLimit"; - this.$fault = "client"; - Object.setPrototypeOf(this, DocumentPermissionLimit.prototype); - this.Message = opts.Message; - } -} -exports.DocumentPermissionLimit = DocumentPermissionLimit; -class ComplianceTypeCountLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ComplianceTypeCountLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "ComplianceTypeCountLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ComplianceTypeCountLimitExceededException.prototype); - this.Message = opts.Message; - } -} -exports.ComplianceTypeCountLimitExceededException = ComplianceTypeCountLimitExceededException; -class InvalidItemContentException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidItemContentException", - $fault: "client", - ...opts, - }); - this.name = "InvalidItemContentException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidItemContentException.prototype); - this.TypeName = opts.TypeName; - this.Message = opts.Message; - } -} -exports.InvalidItemContentException = InvalidItemContentException; -class ItemSizeLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ItemSizeLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "ItemSizeLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ItemSizeLimitExceededException.prototype); - this.TypeName = opts.TypeName; - this.Message = opts.Message; - } -} -exports.ItemSizeLimitExceededException = ItemSizeLimitExceededException; -var ComplianceUploadType; -(function (ComplianceUploadType) { - ComplianceUploadType["Complete"] = "COMPLETE"; - ComplianceUploadType["Partial"] = "PARTIAL"; -})(ComplianceUploadType = exports.ComplianceUploadType || (exports.ComplianceUploadType = {})); -class TotalSizeLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "TotalSizeLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "TotalSizeLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TotalSizeLimitExceededException.prototype); - this.Message = opts.Message; - } -} -exports.TotalSizeLimitExceededException = TotalSizeLimitExceededException; -class CustomSchemaCountLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "CustomSchemaCountLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "CustomSchemaCountLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, CustomSchemaCountLimitExceededException.prototype); - this.Message = opts.Message; - } -} -exports.CustomSchemaCountLimitExceededException = CustomSchemaCountLimitExceededException; -class InvalidInventoryItemContextException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidInventoryItemContextException", - $fault: "client", - ...opts, - }); - this.name = "InvalidInventoryItemContextException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidInventoryItemContextException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidInventoryItemContextException = InvalidInventoryItemContextException; -class ItemContentMismatchException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ItemContentMismatchException", - $fault: "client", - ...opts, - }); - this.name = "ItemContentMismatchException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ItemContentMismatchException.prototype); - this.TypeName = opts.TypeName; - this.Message = opts.Message; - } -} -exports.ItemContentMismatchException = ItemContentMismatchException; -class SubTypeCountLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "SubTypeCountLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "SubTypeCountLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, SubTypeCountLimitExceededException.prototype); - this.Message = opts.Message; - } -} -exports.SubTypeCountLimitExceededException = SubTypeCountLimitExceededException; -class UnsupportedInventoryItemContextException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "UnsupportedInventoryItemContextException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedInventoryItemContextException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedInventoryItemContextException.prototype); - this.TypeName = opts.TypeName; - this.Message = opts.Message; - } -} -exports.UnsupportedInventoryItemContextException = UnsupportedInventoryItemContextException; -class UnsupportedInventorySchemaVersionException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "UnsupportedInventorySchemaVersionException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedInventorySchemaVersionException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedInventorySchemaVersionException.prototype); - this.Message = opts.Message; - } -} -exports.UnsupportedInventorySchemaVersionException = UnsupportedInventorySchemaVersionException; -class HierarchyLevelLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "HierarchyLevelLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "HierarchyLevelLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, HierarchyLevelLimitExceededException.prototype); - } -} -exports.HierarchyLevelLimitExceededException = HierarchyLevelLimitExceededException; -class HierarchyTypeMismatchException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "HierarchyTypeMismatchException", - $fault: "client", - ...opts, - }); - this.name = "HierarchyTypeMismatchException"; - this.$fault = "client"; - Object.setPrototypeOf(this, HierarchyTypeMismatchException.prototype); - } -} -exports.HierarchyTypeMismatchException = HierarchyTypeMismatchException; -class IncompatiblePolicyException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "IncompatiblePolicyException", - $fault: "client", - ...opts, - }); - this.name = "IncompatiblePolicyException"; - this.$fault = "client"; - Object.setPrototypeOf(this, IncompatiblePolicyException.prototype); - } -} -exports.IncompatiblePolicyException = IncompatiblePolicyException; -class InvalidAllowedPatternException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidAllowedPatternException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAllowedPatternException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAllowedPatternException.prototype); - } -} -exports.InvalidAllowedPatternException = InvalidAllowedPatternException; -class InvalidPolicyAttributeException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidPolicyAttributeException", - $fault: "client", - ...opts, - }); - this.name = "InvalidPolicyAttributeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidPolicyAttributeException.prototype); - } -} -exports.InvalidPolicyAttributeException = InvalidPolicyAttributeException; -class InvalidPolicyTypeException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidPolicyTypeException", - $fault: "client", - ...opts, - }); - this.name = "InvalidPolicyTypeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidPolicyTypeException.prototype); - } -} -exports.InvalidPolicyTypeException = InvalidPolicyTypeException; -class ParameterAlreadyExists extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ParameterAlreadyExists", - $fault: "client", - ...opts, - }); - this.name = "ParameterAlreadyExists"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterAlreadyExists.prototype); - } -} -exports.ParameterAlreadyExists = ParameterAlreadyExists; -class ParameterLimitExceeded extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ParameterLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "ParameterLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterLimitExceeded.prototype); - } -} -exports.ParameterLimitExceeded = ParameterLimitExceeded; -class ParameterMaxVersionLimitExceeded extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ParameterMaxVersionLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "ParameterMaxVersionLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterMaxVersionLimitExceeded.prototype); - } -} -exports.ParameterMaxVersionLimitExceeded = ParameterMaxVersionLimitExceeded; -class ParameterPatternMismatchException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ParameterPatternMismatchException", - $fault: "client", - ...opts, - }); - this.name = "ParameterPatternMismatchException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterPatternMismatchException.prototype); - } -} -exports.ParameterPatternMismatchException = ParameterPatternMismatchException; -class PoliciesLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "PoliciesLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "PoliciesLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, PoliciesLimitExceededException.prototype); - } -} -exports.PoliciesLimitExceededException = PoliciesLimitExceededException; -class UnsupportedParameterType extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "UnsupportedParameterType", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedParameterType"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedParameterType.prototype); - } -} -exports.UnsupportedParameterType = UnsupportedParameterType; -class FeatureNotAvailableException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "FeatureNotAvailableException", - $fault: "client", - ...opts, - }); - this.name = "FeatureNotAvailableException"; - this.$fault = "client"; - Object.setPrototypeOf(this, FeatureNotAvailableException.prototype); - this.Message = opts.Message; - } -} -exports.FeatureNotAvailableException = FeatureNotAvailableException; -class AutomationStepNotFoundException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AutomationStepNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "AutomationStepNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AutomationStepNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.AutomationStepNotFoundException = AutomationStepNotFoundException; -class InvalidAutomationSignalException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidAutomationSignalException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAutomationSignalException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAutomationSignalException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidAutomationSignalException = InvalidAutomationSignalException; -var SignalType; -(function (SignalType) { - SignalType["APPROVE"] = "Approve"; - SignalType["REJECT"] = "Reject"; - SignalType["RESUME"] = "Resume"; - SignalType["START_STEP"] = "StartStep"; - SignalType["STOP_STEP"] = "StopStep"; -})(SignalType = exports.SignalType || (exports.SignalType = {})); -class InvalidNotificationConfig extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidNotificationConfig", - $fault: "client", - ...opts, - }); - this.name = "InvalidNotificationConfig"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidNotificationConfig.prototype); - this.Message = opts.Message; - } -} -exports.InvalidNotificationConfig = InvalidNotificationConfig; -class InvalidOutputFolder extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidOutputFolder", - $fault: "client", - ...opts, - }); - this.name = "InvalidOutputFolder"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidOutputFolder.prototype); - } -} -exports.InvalidOutputFolder = InvalidOutputFolder; -class InvalidRole extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidRole", - $fault: "client", - ...opts, - }); - this.name = "InvalidRole"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidRole.prototype); - this.Message = opts.Message; - } -} -exports.InvalidRole = InvalidRole; -class InvalidAssociation extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidAssociation", - $fault: "client", - ...opts, - }); - this.name = "InvalidAssociation"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAssociation.prototype); - this.Message = opts.Message; - } -} -exports.InvalidAssociation = InvalidAssociation; -class AutomationDefinitionNotFoundException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AutomationDefinitionNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "AutomationDefinitionNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AutomationDefinitionNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.AutomationDefinitionNotFoundException = AutomationDefinitionNotFoundException; -class AutomationDefinitionVersionNotFoundException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AutomationDefinitionVersionNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "AutomationDefinitionVersionNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AutomationDefinitionVersionNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.AutomationDefinitionVersionNotFoundException = AutomationDefinitionVersionNotFoundException; -class AutomationExecutionLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AutomationExecutionLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "AutomationExecutionLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AutomationExecutionLimitExceededException.prototype); - this.Message = opts.Message; - } -} -exports.AutomationExecutionLimitExceededException = AutomationExecutionLimitExceededException; -class InvalidAutomationExecutionParametersException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidAutomationExecutionParametersException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAutomationExecutionParametersException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAutomationExecutionParametersException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidAutomationExecutionParametersException = InvalidAutomationExecutionParametersException; -class AutomationDefinitionNotApprovedException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AutomationDefinitionNotApprovedException", - $fault: "client", - ...opts, - }); - this.name = "AutomationDefinitionNotApprovedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AutomationDefinitionNotApprovedException.prototype); - this.Message = opts.Message; - } -} -exports.AutomationDefinitionNotApprovedException = AutomationDefinitionNotApprovedException; -class TargetNotConnected extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "TargetNotConnected", - $fault: "client", - ...opts, - }); - this.name = "TargetNotConnected"; - this.$fault = "client"; - Object.setPrototypeOf(this, TargetNotConnected.prototype); - this.Message = opts.Message; - } -} -exports.TargetNotConnected = TargetNotConnected; -class InvalidAutomationStatusUpdateException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidAutomationStatusUpdateException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAutomationStatusUpdateException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAutomationStatusUpdateException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidAutomationStatusUpdateException = InvalidAutomationStatusUpdateException; -var StopType; -(function (StopType) { - StopType["CANCEL"] = "Cancel"; - StopType["COMPLETE"] = "Complete"; -})(StopType = exports.StopType || (exports.StopType = {})); -class AssociationVersionLimitExceeded extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AssociationVersionLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "AssociationVersionLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, AssociationVersionLimitExceeded.prototype); - this.Message = opts.Message; - } -} -exports.AssociationVersionLimitExceeded = AssociationVersionLimitExceeded; -class InvalidUpdate extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidUpdate", - $fault: "client", - ...opts, - }); - this.name = "InvalidUpdate"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidUpdate.prototype); - this.Message = opts.Message; - } -} -exports.InvalidUpdate = InvalidUpdate; -class StatusUnchanged extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "StatusUnchanged", - $fault: "client", - ...opts, - }); - this.name = "StatusUnchanged"; - this.$fault = "client"; - Object.setPrototypeOf(this, StatusUnchanged.prototype); - } -} -exports.StatusUnchanged = StatusUnchanged; -class DocumentVersionLimitExceeded extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "DocumentVersionLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "DocumentVersionLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, DocumentVersionLimitExceeded.prototype); - this.Message = opts.Message; - } -} -exports.DocumentVersionLimitExceeded = DocumentVersionLimitExceeded; -class DuplicateDocumentContent extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "DuplicateDocumentContent", - $fault: "client", - ...opts, - }); - this.name = "DuplicateDocumentContent"; - this.$fault = "client"; - Object.setPrototypeOf(this, DuplicateDocumentContent.prototype); - this.Message = opts.Message; - } -} -exports.DuplicateDocumentContent = DuplicateDocumentContent; -class DuplicateDocumentVersionName extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "DuplicateDocumentVersionName", - $fault: "client", - ...opts, - }); - this.name = "DuplicateDocumentVersionName"; - this.$fault = "client"; - Object.setPrototypeOf(this, DuplicateDocumentVersionName.prototype); - this.Message = opts.Message; - } -} -exports.DuplicateDocumentVersionName = DuplicateDocumentVersionName; -var DocumentReviewAction; -(function (DocumentReviewAction) { - DocumentReviewAction["Approve"] = "Approve"; - DocumentReviewAction["Reject"] = "Reject"; - DocumentReviewAction["SendForReview"] = "SendForReview"; - DocumentReviewAction["UpdateReview"] = "UpdateReview"; -})(DocumentReviewAction = exports.DocumentReviewAction || (exports.DocumentReviewAction = {})); -const ParameterMetadataFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ParameterMetadataFilterSensitiveLog = ParameterMetadataFilterSensitiveLog; -const DescribeParametersResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeParametersResultFilterSensitiveLog = DescribeParametersResultFilterSensitiveLog; -const DescribePatchBaselinesRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribePatchBaselinesRequestFilterSensitiveLog = DescribePatchBaselinesRequestFilterSensitiveLog; -const PatchBaselineIdentityFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.PatchBaselineIdentityFilterSensitiveLog = PatchBaselineIdentityFilterSensitiveLog; -const DescribePatchBaselinesResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribePatchBaselinesResultFilterSensitiveLog = DescribePatchBaselinesResultFilterSensitiveLog; -const DescribePatchGroupsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribePatchGroupsRequestFilterSensitiveLog = DescribePatchGroupsRequestFilterSensitiveLog; -const PatchGroupPatchBaselineMappingFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.PatchGroupPatchBaselineMappingFilterSensitiveLog = PatchGroupPatchBaselineMappingFilterSensitiveLog; -const DescribePatchGroupsResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribePatchGroupsResultFilterSensitiveLog = DescribePatchGroupsResultFilterSensitiveLog; -const DescribePatchGroupStateRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribePatchGroupStateRequestFilterSensitiveLog = DescribePatchGroupStateRequestFilterSensitiveLog; -const DescribePatchGroupStateResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribePatchGroupStateResultFilterSensitiveLog = DescribePatchGroupStateResultFilterSensitiveLog; -const DescribePatchPropertiesRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribePatchPropertiesRequestFilterSensitiveLog = DescribePatchPropertiesRequestFilterSensitiveLog; -const DescribePatchPropertiesResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribePatchPropertiesResultFilterSensitiveLog = DescribePatchPropertiesResultFilterSensitiveLog; -const SessionFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.SessionFilterFilterSensitiveLog = SessionFilterFilterSensitiveLog; -const DescribeSessionsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeSessionsRequestFilterSensitiveLog = DescribeSessionsRequestFilterSensitiveLog; -const SessionManagerOutputUrlFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.SessionManagerOutputUrlFilterSensitiveLog = SessionManagerOutputUrlFilterSensitiveLog; -const SessionFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.SessionFilterSensitiveLog = SessionFilterSensitiveLog; -const DescribeSessionsResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DescribeSessionsResponseFilterSensitiveLog = DescribeSessionsResponseFilterSensitiveLog; -const DisassociateOpsItemRelatedItemRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DisassociateOpsItemRelatedItemRequestFilterSensitiveLog = DisassociateOpsItemRelatedItemRequestFilterSensitiveLog; -const DisassociateOpsItemRelatedItemResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DisassociateOpsItemRelatedItemResponseFilterSensitiveLog = DisassociateOpsItemRelatedItemResponseFilterSensitiveLog; -const GetAutomationExecutionRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetAutomationExecutionRequestFilterSensitiveLog = GetAutomationExecutionRequestFilterSensitiveLog; -const ProgressCountersFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ProgressCountersFilterSensitiveLog = ProgressCountersFilterSensitiveLog; -const AutomationExecutionFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AutomationExecutionFilterSensitiveLog = AutomationExecutionFilterSensitiveLog; -const GetAutomationExecutionResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetAutomationExecutionResultFilterSensitiveLog = GetAutomationExecutionResultFilterSensitiveLog; -const GetCalendarStateRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetCalendarStateRequestFilterSensitiveLog = GetCalendarStateRequestFilterSensitiveLog; -const GetCalendarStateResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetCalendarStateResponseFilterSensitiveLog = GetCalendarStateResponseFilterSensitiveLog; -const GetCommandInvocationRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetCommandInvocationRequestFilterSensitiveLog = GetCommandInvocationRequestFilterSensitiveLog; -const CloudWatchOutputConfigFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CloudWatchOutputConfigFilterSensitiveLog = CloudWatchOutputConfigFilterSensitiveLog; -const GetCommandInvocationResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetCommandInvocationResultFilterSensitiveLog = GetCommandInvocationResultFilterSensitiveLog; -const GetConnectionStatusRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetConnectionStatusRequestFilterSensitiveLog = GetConnectionStatusRequestFilterSensitiveLog; -const GetConnectionStatusResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetConnectionStatusResponseFilterSensitiveLog = GetConnectionStatusResponseFilterSensitiveLog; -const GetDefaultPatchBaselineRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetDefaultPatchBaselineRequestFilterSensitiveLog = GetDefaultPatchBaselineRequestFilterSensitiveLog; -const GetDefaultPatchBaselineResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetDefaultPatchBaselineResultFilterSensitiveLog = GetDefaultPatchBaselineResultFilterSensitiveLog; -const BaselineOverrideFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Sources && { Sources: obj.Sources.map((item) => (0, models_0_1.PatchSourceFilterSensitiveLog)(item)) }), -}); -exports.BaselineOverrideFilterSensitiveLog = BaselineOverrideFilterSensitiveLog; -const GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog = GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog; -const GetDeployablePatchSnapshotForInstanceResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetDeployablePatchSnapshotForInstanceResultFilterSensitiveLog = GetDeployablePatchSnapshotForInstanceResultFilterSensitiveLog; -const GetDocumentRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetDocumentRequestFilterSensitiveLog = GetDocumentRequestFilterSensitiveLog; -const AttachmentContentFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AttachmentContentFilterSensitiveLog = AttachmentContentFilterSensitiveLog; -const GetDocumentResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetDocumentResultFilterSensitiveLog = GetDocumentResultFilterSensitiveLog; -const InventoryFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InventoryFilterFilterSensitiveLog = InventoryFilterFilterSensitiveLog; -const InventoryGroupFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InventoryGroupFilterSensitiveLog = InventoryGroupFilterSensitiveLog; -const ResultAttributeFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ResultAttributeFilterSensitiveLog = ResultAttributeFilterSensitiveLog; -const InventoryResultItemFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InventoryResultItemFilterSensitiveLog = InventoryResultItemFilterSensitiveLog; -const InventoryResultEntityFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InventoryResultEntityFilterSensitiveLog = InventoryResultEntityFilterSensitiveLog; -const GetInventoryResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetInventoryResultFilterSensitiveLog = GetInventoryResultFilterSensitiveLog; -const GetInventorySchemaRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetInventorySchemaRequestFilterSensitiveLog = GetInventorySchemaRequestFilterSensitiveLog; -const InventoryItemAttributeFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InventoryItemAttributeFilterSensitiveLog = InventoryItemAttributeFilterSensitiveLog; -const InventoryItemSchemaFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InventoryItemSchemaFilterSensitiveLog = InventoryItemSchemaFilterSensitiveLog; -const GetInventorySchemaResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetInventorySchemaResultFilterSensitiveLog = GetInventorySchemaResultFilterSensitiveLog; -const GetMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetMaintenanceWindowRequestFilterSensitiveLog = GetMaintenanceWindowRequestFilterSensitiveLog; -const GetMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.GetMaintenanceWindowResultFilterSensitiveLog = GetMaintenanceWindowResultFilterSensitiveLog; -const GetMaintenanceWindowExecutionRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetMaintenanceWindowExecutionRequestFilterSensitiveLog = GetMaintenanceWindowExecutionRequestFilterSensitiveLog; -const GetMaintenanceWindowExecutionResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetMaintenanceWindowExecutionResultFilterSensitiveLog = GetMaintenanceWindowExecutionResultFilterSensitiveLog; -const GetMaintenanceWindowExecutionTaskRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetMaintenanceWindowExecutionTaskRequestFilterSensitiveLog = GetMaintenanceWindowExecutionTaskRequestFilterSensitiveLog; -const GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.TaskParameters && { TaskParameters: smithy_client_1.SENSITIVE_STRING }), -}); -exports.GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog = GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog; -const GetMaintenanceWindowExecutionTaskInvocationRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetMaintenanceWindowExecutionTaskInvocationRequestFilterSensitiveLog = GetMaintenanceWindowExecutionTaskInvocationRequestFilterSensitiveLog; -const GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), - ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), -}); -exports.GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog = GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog; -const GetMaintenanceWindowTaskRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetMaintenanceWindowTaskRequestFilterSensitiveLog = GetMaintenanceWindowTaskRequestFilterSensitiveLog; -const MaintenanceWindowAutomationParametersFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.MaintenanceWindowAutomationParametersFilterSensitiveLog = MaintenanceWindowAutomationParametersFilterSensitiveLog; -const MaintenanceWindowLambdaParametersFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Payload && { Payload: smithy_client_1.SENSITIVE_STRING }), -}); -exports.MaintenanceWindowLambdaParametersFilterSensitiveLog = MaintenanceWindowLambdaParametersFilterSensitiveLog; -const NotificationConfigFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.NotificationConfigFilterSensitiveLog = NotificationConfigFilterSensitiveLog; -const MaintenanceWindowRunCommandParametersFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), -}); -exports.MaintenanceWindowRunCommandParametersFilterSensitiveLog = MaintenanceWindowRunCommandParametersFilterSensitiveLog; -const MaintenanceWindowStepFunctionsParametersFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Input && { Input: smithy_client_1.SENSITIVE_STRING }), -}); -exports.MaintenanceWindowStepFunctionsParametersFilterSensitiveLog = MaintenanceWindowStepFunctionsParametersFilterSensitiveLog; -const MaintenanceWindowTaskInvocationParametersFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.RunCommand && { RunCommand: (0, exports.MaintenanceWindowRunCommandParametersFilterSensitiveLog)(obj.RunCommand) }), - ...(obj.StepFunctions && { - StepFunctions: (0, exports.MaintenanceWindowStepFunctionsParametersFilterSensitiveLog)(obj.StepFunctions), - }), - ...(obj.Lambda && { Lambda: (0, exports.MaintenanceWindowLambdaParametersFilterSensitiveLog)(obj.Lambda) }), -}); -exports.MaintenanceWindowTaskInvocationParametersFilterSensitiveLog = MaintenanceWindowTaskInvocationParametersFilterSensitiveLog; -const GetMaintenanceWindowTaskResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.TaskParameters && { TaskParameters: smithy_client_1.SENSITIVE_STRING }), - ...(obj.TaskInvocationParameters && { - TaskInvocationParameters: (0, exports.MaintenanceWindowTaskInvocationParametersFilterSensitiveLog)(obj.TaskInvocationParameters), - }), - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.GetMaintenanceWindowTaskResultFilterSensitiveLog = GetMaintenanceWindowTaskResultFilterSensitiveLog; -const GetOpsItemRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetOpsItemRequestFilterSensitiveLog = GetOpsItemRequestFilterSensitiveLog; -const OpsItemFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.OpsItemFilterSensitiveLog = OpsItemFilterSensitiveLog; -const GetOpsItemResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetOpsItemResponseFilterSensitiveLog = GetOpsItemResponseFilterSensitiveLog; -const GetOpsMetadataRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetOpsMetadataRequestFilterSensitiveLog = GetOpsMetadataRequestFilterSensitiveLog; -const GetOpsMetadataResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetOpsMetadataResultFilterSensitiveLog = GetOpsMetadataResultFilterSensitiveLog; -const OpsFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.OpsFilterFilterSensitiveLog = OpsFilterFilterSensitiveLog; -const OpsResultAttributeFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.OpsResultAttributeFilterSensitiveLog = OpsResultAttributeFilterSensitiveLog; -const OpsEntityItemFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.OpsEntityItemFilterSensitiveLog = OpsEntityItemFilterSensitiveLog; -const OpsEntityFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.OpsEntityFilterSensitiveLog = OpsEntityFilterSensitiveLog; -const GetOpsSummaryResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetOpsSummaryResultFilterSensitiveLog = GetOpsSummaryResultFilterSensitiveLog; -const GetParameterRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetParameterRequestFilterSensitiveLog = GetParameterRequestFilterSensitiveLog; -const ParameterFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Value && { Value: smithy_client_1.SENSITIVE_STRING }), -}); -exports.ParameterFilterSensitiveLog = ParameterFilterSensitiveLog; -const GetParameterResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameter && { Parameter: (0, exports.ParameterFilterSensitiveLog)(obj.Parameter) }), -}); -exports.GetParameterResultFilterSensitiveLog = GetParameterResultFilterSensitiveLog; -const GetParameterHistoryRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetParameterHistoryRequestFilterSensitiveLog = GetParameterHistoryRequestFilterSensitiveLog; -const ParameterHistoryFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Value && { Value: smithy_client_1.SENSITIVE_STRING }), -}); -exports.ParameterHistoryFilterSensitiveLog = ParameterHistoryFilterSensitiveLog; -const GetParameterHistoryResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports.ParameterHistoryFilterSensitiveLog)(item)) }), -}); -exports.GetParameterHistoryResultFilterSensitiveLog = GetParameterHistoryResultFilterSensitiveLog; -const GetParametersRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetParametersRequestFilterSensitiveLog = GetParametersRequestFilterSensitiveLog; -const GetParametersResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports.ParameterFilterSensitiveLog)(item)) }), -}); -exports.GetParametersResultFilterSensitiveLog = GetParametersResultFilterSensitiveLog; -const GetParametersByPathRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetParametersByPathRequestFilterSensitiveLog = GetParametersByPathRequestFilterSensitiveLog; -const GetParametersByPathResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports.ParameterFilterSensitiveLog)(item)) }), -}); -exports.GetParametersByPathResultFilterSensitiveLog = GetParametersByPathResultFilterSensitiveLog; -const GetPatchBaselineRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetPatchBaselineRequestFilterSensitiveLog = GetPatchBaselineRequestFilterSensitiveLog; -const GetPatchBaselineResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Sources && { Sources: obj.Sources.map((item) => (0, models_0_1.PatchSourceFilterSensitiveLog)(item)) }), -}); -exports.GetPatchBaselineResultFilterSensitiveLog = GetPatchBaselineResultFilterSensitiveLog; -const GetPatchBaselineForPatchGroupRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetPatchBaselineForPatchGroupRequestFilterSensitiveLog = GetPatchBaselineForPatchGroupRequestFilterSensitiveLog; -const GetPatchBaselineForPatchGroupResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetPatchBaselineForPatchGroupResultFilterSensitiveLog = GetPatchBaselineForPatchGroupResultFilterSensitiveLog; -const GetServiceSettingRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetServiceSettingRequestFilterSensitiveLog = GetServiceSettingRequestFilterSensitiveLog; -const ServiceSettingFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ServiceSettingFilterSensitiveLog = ServiceSettingFilterSensitiveLog; -const GetServiceSettingResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetServiceSettingResultFilterSensitiveLog = GetServiceSettingResultFilterSensitiveLog; -const LabelParameterVersionRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.LabelParameterVersionRequestFilterSensitiveLog = LabelParameterVersionRequestFilterSensitiveLog; -const LabelParameterVersionResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.LabelParameterVersionResultFilterSensitiveLog = LabelParameterVersionResultFilterSensitiveLog; -const AssociationFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AssociationFilterFilterSensitiveLog = AssociationFilterFilterSensitiveLog; -const ListAssociationsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListAssociationsRequestFilterSensitiveLog = ListAssociationsRequestFilterSensitiveLog; -const AssociationFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AssociationFilterSensitiveLog = AssociationFilterSensitiveLog; -const ListAssociationsResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListAssociationsResultFilterSensitiveLog = ListAssociationsResultFilterSensitiveLog; -const ListAssociationVersionsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListAssociationVersionsRequestFilterSensitiveLog = ListAssociationVersionsRequestFilterSensitiveLog; -const AssociationVersionInfoFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), -}); -exports.AssociationVersionInfoFilterSensitiveLog = AssociationVersionInfoFilterSensitiveLog; -const ListAssociationVersionsResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.AssociationVersions && { - AssociationVersions: obj.AssociationVersions.map((item) => (0, exports.AssociationVersionInfoFilterSensitiveLog)(item)), - }), -}); -exports.ListAssociationVersionsResultFilterSensitiveLog = ListAssociationVersionsResultFilterSensitiveLog; -const CommandFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CommandFilterFilterSensitiveLog = CommandFilterFilterSensitiveLog; -const ListCommandInvocationsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListCommandInvocationsRequestFilterSensitiveLog = ListCommandInvocationsRequestFilterSensitiveLog; -const CommandPluginFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CommandPluginFilterSensitiveLog = CommandPluginFilterSensitiveLog; -const CommandInvocationFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CommandInvocationFilterSensitiveLog = CommandInvocationFilterSensitiveLog; -const ListCommandInvocationsResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListCommandInvocationsResultFilterSensitiveLog = ListCommandInvocationsResultFilterSensitiveLog; -const ListCommandsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListCommandsRequestFilterSensitiveLog = ListCommandsRequestFilterSensitiveLog; -const CommandFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), -}); -exports.CommandFilterSensitiveLog = CommandFilterSensitiveLog; -const ListCommandsResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Commands && { Commands: obj.Commands.map((item) => (0, exports.CommandFilterSensitiveLog)(item)) }), -}); -exports.ListCommandsResultFilterSensitiveLog = ListCommandsResultFilterSensitiveLog; -const ComplianceStringFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ComplianceStringFilterFilterSensitiveLog = ComplianceStringFilterFilterSensitiveLog; -const ListComplianceItemsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListComplianceItemsRequestFilterSensitiveLog = ListComplianceItemsRequestFilterSensitiveLog; -const ComplianceExecutionSummaryFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ComplianceExecutionSummaryFilterSensitiveLog = ComplianceExecutionSummaryFilterSensitiveLog; -const ComplianceItemFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ComplianceItemFilterSensitiveLog = ComplianceItemFilterSensitiveLog; -const ListComplianceItemsResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListComplianceItemsResultFilterSensitiveLog = ListComplianceItemsResultFilterSensitiveLog; -const ListComplianceSummariesRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListComplianceSummariesRequestFilterSensitiveLog = ListComplianceSummariesRequestFilterSensitiveLog; -const SeveritySummaryFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.SeveritySummaryFilterSensitiveLog = SeveritySummaryFilterSensitiveLog; -const CompliantSummaryFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CompliantSummaryFilterSensitiveLog = CompliantSummaryFilterSensitiveLog; -const NonCompliantSummaryFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.NonCompliantSummaryFilterSensitiveLog = NonCompliantSummaryFilterSensitiveLog; -const ComplianceSummaryItemFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ComplianceSummaryItemFilterSensitiveLog = ComplianceSummaryItemFilterSensitiveLog; -const ListComplianceSummariesResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListComplianceSummariesResultFilterSensitiveLog = ListComplianceSummariesResultFilterSensitiveLog; -const ListDocumentMetadataHistoryRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListDocumentMetadataHistoryRequestFilterSensitiveLog = ListDocumentMetadataHistoryRequestFilterSensitiveLog; -const DocumentReviewCommentSourceFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DocumentReviewCommentSourceFilterSensitiveLog = DocumentReviewCommentSourceFilterSensitiveLog; -const DocumentReviewerResponseSourceFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DocumentReviewerResponseSourceFilterSensitiveLog = DocumentReviewerResponseSourceFilterSensitiveLog; -const DocumentMetadataResponseInfoFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DocumentMetadataResponseInfoFilterSensitiveLog = DocumentMetadataResponseInfoFilterSensitiveLog; -const ListDocumentMetadataHistoryResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListDocumentMetadataHistoryResponseFilterSensitiveLog = ListDocumentMetadataHistoryResponseFilterSensitiveLog; -const DocumentFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DocumentFilterFilterSensitiveLog = DocumentFilterFilterSensitiveLog; -const DocumentKeyValuesFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DocumentKeyValuesFilterFilterSensitiveLog = DocumentKeyValuesFilterFilterSensitiveLog; -const ListDocumentsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListDocumentsRequestFilterSensitiveLog = ListDocumentsRequestFilterSensitiveLog; -const DocumentIdentifierFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DocumentIdentifierFilterSensitiveLog = DocumentIdentifierFilterSensitiveLog; -const ListDocumentsResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListDocumentsResultFilterSensitiveLog = ListDocumentsResultFilterSensitiveLog; -const ListDocumentVersionsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListDocumentVersionsRequestFilterSensitiveLog = ListDocumentVersionsRequestFilterSensitiveLog; -const DocumentVersionInfoFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DocumentVersionInfoFilterSensitiveLog = DocumentVersionInfoFilterSensitiveLog; -const ListDocumentVersionsResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListDocumentVersionsResultFilterSensitiveLog = ListDocumentVersionsResultFilterSensitiveLog; -const ListInventoryEntriesRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListInventoryEntriesRequestFilterSensitiveLog = ListInventoryEntriesRequestFilterSensitiveLog; -const ListInventoryEntriesResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListInventoryEntriesResultFilterSensitiveLog = ListInventoryEntriesResultFilterSensitiveLog; -const OpsItemEventFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.OpsItemEventFilterFilterSensitiveLog = OpsItemEventFilterFilterSensitiveLog; -const ListOpsItemEventsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListOpsItemEventsRequestFilterSensitiveLog = ListOpsItemEventsRequestFilterSensitiveLog; -const OpsItemIdentityFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.OpsItemIdentityFilterSensitiveLog = OpsItemIdentityFilterSensitiveLog; -const OpsItemEventSummaryFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.OpsItemEventSummaryFilterSensitiveLog = OpsItemEventSummaryFilterSensitiveLog; -const ListOpsItemEventsResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListOpsItemEventsResponseFilterSensitiveLog = ListOpsItemEventsResponseFilterSensitiveLog; -const OpsItemRelatedItemsFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.OpsItemRelatedItemsFilterFilterSensitiveLog = OpsItemRelatedItemsFilterFilterSensitiveLog; -const ListOpsItemRelatedItemsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListOpsItemRelatedItemsRequestFilterSensitiveLog = ListOpsItemRelatedItemsRequestFilterSensitiveLog; -const OpsItemRelatedItemSummaryFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.OpsItemRelatedItemSummaryFilterSensitiveLog = OpsItemRelatedItemSummaryFilterSensitiveLog; -const ListOpsItemRelatedItemsResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListOpsItemRelatedItemsResponseFilterSensitiveLog = ListOpsItemRelatedItemsResponseFilterSensitiveLog; -const OpsMetadataFilterFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.OpsMetadataFilterFilterSensitiveLog = OpsMetadataFilterFilterSensitiveLog; -const ListOpsMetadataRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListOpsMetadataRequestFilterSensitiveLog = ListOpsMetadataRequestFilterSensitiveLog; -const OpsMetadataFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.OpsMetadataFilterSensitiveLog = OpsMetadataFilterSensitiveLog; -const ListOpsMetadataResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListOpsMetadataResultFilterSensitiveLog = ListOpsMetadataResultFilterSensitiveLog; -const ListResourceComplianceSummariesRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListResourceComplianceSummariesRequestFilterSensitiveLog = ListResourceComplianceSummariesRequestFilterSensitiveLog; -const ResourceComplianceSummaryItemFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ResourceComplianceSummaryItemFilterSensitiveLog = ResourceComplianceSummaryItemFilterSensitiveLog; -const ListResourceComplianceSummariesResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListResourceComplianceSummariesResultFilterSensitiveLog = ListResourceComplianceSummariesResultFilterSensitiveLog; -const ListResourceDataSyncRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListResourceDataSyncRequestFilterSensitiveLog = ListResourceDataSyncRequestFilterSensitiveLog; -const ResourceDataSyncSourceWithStateFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ResourceDataSyncSourceWithStateFilterSensitiveLog = ResourceDataSyncSourceWithStateFilterSensitiveLog; -const ResourceDataSyncItemFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ResourceDataSyncItemFilterSensitiveLog = ResourceDataSyncItemFilterSensitiveLog; -const ListResourceDataSyncResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListResourceDataSyncResultFilterSensitiveLog = ListResourceDataSyncResultFilterSensitiveLog; -const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListTagsForResourceRequestFilterSensitiveLog = ListTagsForResourceRequestFilterSensitiveLog; -const ListTagsForResourceResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListTagsForResourceResultFilterSensitiveLog = ListTagsForResourceResultFilterSensitiveLog; -const ModifyDocumentPermissionRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ModifyDocumentPermissionRequestFilterSensitiveLog = ModifyDocumentPermissionRequestFilterSensitiveLog; -const ModifyDocumentPermissionResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ModifyDocumentPermissionResponseFilterSensitiveLog = ModifyDocumentPermissionResponseFilterSensitiveLog; -const ComplianceItemEntryFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ComplianceItemEntryFilterSensitiveLog = ComplianceItemEntryFilterSensitiveLog; -const PutComplianceItemsRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.PutComplianceItemsRequestFilterSensitiveLog = PutComplianceItemsRequestFilterSensitiveLog; -const PutComplianceItemsResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.PutComplianceItemsResultFilterSensitiveLog = PutComplianceItemsResultFilterSensitiveLog; -const InventoryItemFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InventoryItemFilterSensitiveLog = InventoryItemFilterSensitiveLog; -const PutInventoryRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.PutInventoryRequestFilterSensitiveLog = PutInventoryRequestFilterSensitiveLog; -const PutInventoryResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.PutInventoryResultFilterSensitiveLog = PutInventoryResultFilterSensitiveLog; -const PutParameterRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Value && { Value: smithy_client_1.SENSITIVE_STRING }), -}); -exports.PutParameterRequestFilterSensitiveLog = PutParameterRequestFilterSensitiveLog; -const PutParameterResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.PutParameterResultFilterSensitiveLog = PutParameterResultFilterSensitiveLog; -const RegisterDefaultPatchBaselineRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.RegisterDefaultPatchBaselineRequestFilterSensitiveLog = RegisterDefaultPatchBaselineRequestFilterSensitiveLog; -const RegisterDefaultPatchBaselineResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.RegisterDefaultPatchBaselineResultFilterSensitiveLog = RegisterDefaultPatchBaselineResultFilterSensitiveLog; -const RegisterPatchBaselineForPatchGroupRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.RegisterPatchBaselineForPatchGroupRequestFilterSensitiveLog = RegisterPatchBaselineForPatchGroupRequestFilterSensitiveLog; -const RegisterPatchBaselineForPatchGroupResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.RegisterPatchBaselineForPatchGroupResultFilterSensitiveLog = RegisterPatchBaselineForPatchGroupResultFilterSensitiveLog; -const RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog = RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog; -const RegisterTargetWithMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.RegisterTargetWithMaintenanceWindowResultFilterSensitiveLog = RegisterTargetWithMaintenanceWindowResultFilterSensitiveLog; -const RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.TaskParameters && { TaskParameters: smithy_client_1.SENSITIVE_STRING }), - ...(obj.TaskInvocationParameters && { - TaskInvocationParameters: (0, exports.MaintenanceWindowTaskInvocationParametersFilterSensitiveLog)(obj.TaskInvocationParameters), - }), - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog = RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog; -const RegisterTaskWithMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.RegisterTaskWithMaintenanceWindowResultFilterSensitiveLog = RegisterTaskWithMaintenanceWindowResultFilterSensitiveLog; -const RemoveTagsFromResourceRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.RemoveTagsFromResourceRequestFilterSensitiveLog = RemoveTagsFromResourceRequestFilterSensitiveLog; -const RemoveTagsFromResourceResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.RemoveTagsFromResourceResultFilterSensitiveLog = RemoveTagsFromResourceResultFilterSensitiveLog; -const ResetServiceSettingRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ResetServiceSettingRequestFilterSensitiveLog = ResetServiceSettingRequestFilterSensitiveLog; -const ResetServiceSettingResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ResetServiceSettingResultFilterSensitiveLog = ResetServiceSettingResultFilterSensitiveLog; -const ResumeSessionRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ResumeSessionRequestFilterSensitiveLog = ResumeSessionRequestFilterSensitiveLog; -const ResumeSessionResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ResumeSessionResponseFilterSensitiveLog = ResumeSessionResponseFilterSensitiveLog; -const SendAutomationSignalRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.SendAutomationSignalRequestFilterSensitiveLog = SendAutomationSignalRequestFilterSensitiveLog; -const SendAutomationSignalResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.SendAutomationSignalResultFilterSensitiveLog = SendAutomationSignalResultFilterSensitiveLog; -const SendCommandRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), -}); -exports.SendCommandRequestFilterSensitiveLog = SendCommandRequestFilterSensitiveLog; -const SendCommandResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Command && { Command: (0, exports.CommandFilterSensitiveLog)(obj.Command) }), -}); -exports.SendCommandResultFilterSensitiveLog = SendCommandResultFilterSensitiveLog; -const StartAssociationsOnceRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.StartAssociationsOnceRequestFilterSensitiveLog = StartAssociationsOnceRequestFilterSensitiveLog; -const StartAssociationsOnceResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.StartAssociationsOnceResultFilterSensitiveLog = StartAssociationsOnceResultFilterSensitiveLog; -const StartAutomationExecutionRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.StartAutomationExecutionRequestFilterSensitiveLog = StartAutomationExecutionRequestFilterSensitiveLog; -const StartAutomationExecutionResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.StartAutomationExecutionResultFilterSensitiveLog = StartAutomationExecutionResultFilterSensitiveLog; -const StartChangeRequestExecutionRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.StartChangeRequestExecutionRequestFilterSensitiveLog = StartChangeRequestExecutionRequestFilterSensitiveLog; -const StartChangeRequestExecutionResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.StartChangeRequestExecutionResultFilterSensitiveLog = StartChangeRequestExecutionResultFilterSensitiveLog; -const StartSessionRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.StartSessionRequestFilterSensitiveLog = StartSessionRequestFilterSensitiveLog; -const StartSessionResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.StartSessionResponseFilterSensitiveLog = StartSessionResponseFilterSensitiveLog; -const StopAutomationExecutionRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.StopAutomationExecutionRequestFilterSensitiveLog = StopAutomationExecutionRequestFilterSensitiveLog; -const StopAutomationExecutionResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.StopAutomationExecutionResultFilterSensitiveLog = StopAutomationExecutionResultFilterSensitiveLog; -const TerminateSessionRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.TerminateSessionRequestFilterSensitiveLog = TerminateSessionRequestFilterSensitiveLog; -const TerminateSessionResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.TerminateSessionResponseFilterSensitiveLog = TerminateSessionResponseFilterSensitiveLog; -const UnlabelParameterVersionRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UnlabelParameterVersionRequestFilterSensitiveLog = UnlabelParameterVersionRequestFilterSensitiveLog; -const UnlabelParameterVersionResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UnlabelParameterVersionResultFilterSensitiveLog = UnlabelParameterVersionResultFilterSensitiveLog; -const UpdateAssociationRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), -}); -exports.UpdateAssociationRequestFilterSensitiveLog = UpdateAssociationRequestFilterSensitiveLog; -const UpdateAssociationResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.AssociationDescription && { - AssociationDescription: (0, models_0_1.AssociationDescriptionFilterSensitiveLog)(obj.AssociationDescription), - }), -}); -exports.UpdateAssociationResultFilterSensitiveLog = UpdateAssociationResultFilterSensitiveLog; -const UpdateAssociationStatusRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UpdateAssociationStatusRequestFilterSensitiveLog = UpdateAssociationStatusRequestFilterSensitiveLog; -const UpdateAssociationStatusResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.AssociationDescription && { - AssociationDescription: (0, models_0_1.AssociationDescriptionFilterSensitiveLog)(obj.AssociationDescription), - }), -}); -exports.UpdateAssociationStatusResultFilterSensitiveLog = UpdateAssociationStatusResultFilterSensitiveLog; -const UpdateDocumentRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UpdateDocumentRequestFilterSensitiveLog = UpdateDocumentRequestFilterSensitiveLog; -const UpdateDocumentResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UpdateDocumentResultFilterSensitiveLog = UpdateDocumentResultFilterSensitiveLog; -const UpdateDocumentDefaultVersionRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UpdateDocumentDefaultVersionRequestFilterSensitiveLog = UpdateDocumentDefaultVersionRequestFilterSensitiveLog; -const DocumentDefaultVersionDescriptionFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DocumentDefaultVersionDescriptionFilterSensitiveLog = DocumentDefaultVersionDescriptionFilterSensitiveLog; -const UpdateDocumentDefaultVersionResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UpdateDocumentDefaultVersionResultFilterSensitiveLog = UpdateDocumentDefaultVersionResultFilterSensitiveLog; -const DocumentReviewsFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DocumentReviewsFilterSensitiveLog = DocumentReviewsFilterSensitiveLog; - - -/***/ }), - -/***/ 33439: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetOpsSummaryRequestFilterSensitiveLog = exports.GetInventoryRequestFilterSensitiveLog = exports.OpsAggregatorFilterSensitiveLog = exports.InventoryAggregatorFilterSensitiveLog = exports.UpdateServiceSettingResultFilterSensitiveLog = exports.UpdateServiceSettingRequestFilterSensitiveLog = exports.UpdateResourceDataSyncResultFilterSensitiveLog = exports.UpdateResourceDataSyncRequestFilterSensitiveLog = exports.UpdatePatchBaselineResultFilterSensitiveLog = exports.UpdatePatchBaselineRequestFilterSensitiveLog = exports.UpdateOpsMetadataResultFilterSensitiveLog = exports.UpdateOpsMetadataRequestFilterSensitiveLog = exports.UpdateOpsItemResponseFilterSensitiveLog = exports.UpdateOpsItemRequestFilterSensitiveLog = exports.UpdateManagedInstanceRoleResultFilterSensitiveLog = exports.UpdateManagedInstanceRoleRequestFilterSensitiveLog = exports.UpdateMaintenanceWindowTaskResultFilterSensitiveLog = exports.UpdateMaintenanceWindowTaskRequestFilterSensitiveLog = exports.UpdateMaintenanceWindowTargetResultFilterSensitiveLog = exports.UpdateMaintenanceWindowTargetRequestFilterSensitiveLog = exports.UpdateMaintenanceWindowResultFilterSensitiveLog = exports.UpdateMaintenanceWindowRequestFilterSensitiveLog = exports.UpdateDocumentMetadataResponseFilterSensitiveLog = exports.UpdateDocumentMetadataRequestFilterSensitiveLog = exports.ResourceDataSyncConflictException = exports.OpsMetadataKeyLimitExceededException = void 0; -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(82053); -const models_1_1 = __nccwpck_require__(9974); -const SSMServiceException_1 = __nccwpck_require__(97777); -class OpsMetadataKeyLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsMetadataKeyLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "OpsMetadataKeyLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsMetadataKeyLimitExceededException.prototype); - } -} -exports.OpsMetadataKeyLimitExceededException = OpsMetadataKeyLimitExceededException; -class ResourceDataSyncConflictException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ResourceDataSyncConflictException", - $fault: "client", - ...opts, - }); - this.name = "ResourceDataSyncConflictException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceDataSyncConflictException.prototype); - this.Message = opts.Message; - } -} -exports.ResourceDataSyncConflictException = ResourceDataSyncConflictException; -const UpdateDocumentMetadataRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UpdateDocumentMetadataRequestFilterSensitiveLog = UpdateDocumentMetadataRequestFilterSensitiveLog; -const UpdateDocumentMetadataResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UpdateDocumentMetadataResponseFilterSensitiveLog = UpdateDocumentMetadataResponseFilterSensitiveLog; -const UpdateMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.UpdateMaintenanceWindowRequestFilterSensitiveLog = UpdateMaintenanceWindowRequestFilterSensitiveLog; -const UpdateMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.UpdateMaintenanceWindowResultFilterSensitiveLog = UpdateMaintenanceWindowResultFilterSensitiveLog; -const UpdateMaintenanceWindowTargetRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.UpdateMaintenanceWindowTargetRequestFilterSensitiveLog = UpdateMaintenanceWindowTargetRequestFilterSensitiveLog; -const UpdateMaintenanceWindowTargetResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.UpdateMaintenanceWindowTargetResultFilterSensitiveLog = UpdateMaintenanceWindowTargetResultFilterSensitiveLog; -const UpdateMaintenanceWindowTaskRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.TaskParameters && { TaskParameters: smithy_client_1.SENSITIVE_STRING }), - ...(obj.TaskInvocationParameters && { - TaskInvocationParameters: (0, models_1_1.MaintenanceWindowTaskInvocationParametersFilterSensitiveLog)(obj.TaskInvocationParameters), - }), - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.UpdateMaintenanceWindowTaskRequestFilterSensitiveLog = UpdateMaintenanceWindowTaskRequestFilterSensitiveLog; -const UpdateMaintenanceWindowTaskResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.TaskParameters && { TaskParameters: smithy_client_1.SENSITIVE_STRING }), - ...(obj.TaskInvocationParameters && { - TaskInvocationParameters: (0, models_1_1.MaintenanceWindowTaskInvocationParametersFilterSensitiveLog)(obj.TaskInvocationParameters), - }), - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.UpdateMaintenanceWindowTaskResultFilterSensitiveLog = UpdateMaintenanceWindowTaskResultFilterSensitiveLog; -const UpdateManagedInstanceRoleRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UpdateManagedInstanceRoleRequestFilterSensitiveLog = UpdateManagedInstanceRoleRequestFilterSensitiveLog; -const UpdateManagedInstanceRoleResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UpdateManagedInstanceRoleResultFilterSensitiveLog = UpdateManagedInstanceRoleResultFilterSensitiveLog; -const UpdateOpsItemRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UpdateOpsItemRequestFilterSensitiveLog = UpdateOpsItemRequestFilterSensitiveLog; -const UpdateOpsItemResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UpdateOpsItemResponseFilterSensitiveLog = UpdateOpsItemResponseFilterSensitiveLog; -const UpdateOpsMetadataRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UpdateOpsMetadataRequestFilterSensitiveLog = UpdateOpsMetadataRequestFilterSensitiveLog; -const UpdateOpsMetadataResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UpdateOpsMetadataResultFilterSensitiveLog = UpdateOpsMetadataResultFilterSensitiveLog; -const UpdatePatchBaselineRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Sources && { Sources: obj.Sources.map((item) => (0, models_0_1.PatchSourceFilterSensitiveLog)(item)) }), -}); -exports.UpdatePatchBaselineRequestFilterSensitiveLog = UpdatePatchBaselineRequestFilterSensitiveLog; -const UpdatePatchBaselineResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Sources && { Sources: obj.Sources.map((item) => (0, models_0_1.PatchSourceFilterSensitiveLog)(item)) }), -}); -exports.UpdatePatchBaselineResultFilterSensitiveLog = UpdatePatchBaselineResultFilterSensitiveLog; -const UpdateResourceDataSyncRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UpdateResourceDataSyncRequestFilterSensitiveLog = UpdateResourceDataSyncRequestFilterSensitiveLog; -const UpdateResourceDataSyncResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UpdateResourceDataSyncResultFilterSensitiveLog = UpdateResourceDataSyncResultFilterSensitiveLog; -const UpdateServiceSettingRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UpdateServiceSettingRequestFilterSensitiveLog = UpdateServiceSettingRequestFilterSensitiveLog; -const UpdateServiceSettingResultFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.UpdateServiceSettingResultFilterSensitiveLog = UpdateServiceSettingResultFilterSensitiveLog; -const InventoryAggregatorFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.InventoryAggregatorFilterSensitiveLog = InventoryAggregatorFilterSensitiveLog; -const OpsAggregatorFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.OpsAggregatorFilterSensitiveLog = OpsAggregatorFilterSensitiveLog; -const GetInventoryRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetInventoryRequestFilterSensitiveLog = GetInventoryRequestFilterSensitiveLog; -const GetOpsSummaryRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetOpsSummaryRequestFilterSensitiveLog = GetOpsSummaryRequestFilterSensitiveLog; - - -/***/ }), - -/***/ 38664: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeActivations = void 0; -const DescribeActivationsCommand_1 = __nccwpck_require__(99158); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeActivationsCommand_1.DescribeActivationsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeActivations(input, ...args); -}; -async function* paginateDescribeActivations(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeActivations = paginateDescribeActivations; - - -/***/ }), - -/***/ 25387: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeAssociationExecutionTargets = void 0; -const DescribeAssociationExecutionTargetsCommand_1 = __nccwpck_require__(89459); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeAssociationExecutionTargetsCommand_1.DescribeAssociationExecutionTargetsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeAssociationExecutionTargets(input, ...args); -}; -async function* paginateDescribeAssociationExecutionTargets(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeAssociationExecutionTargets = paginateDescribeAssociationExecutionTargets; - - -/***/ }), - -/***/ 4094: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeAssociationExecutions = void 0; -const DescribeAssociationExecutionsCommand_1 = __nccwpck_require__(3119); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeAssociationExecutionsCommand_1.DescribeAssociationExecutionsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeAssociationExecutions(input, ...args); -}; -async function* paginateDescribeAssociationExecutions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeAssociationExecutions = paginateDescribeAssociationExecutions; - - -/***/ }), - -/***/ 35119: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeAutomationExecutions = void 0; -const DescribeAutomationExecutionsCommand_1 = __nccwpck_require__(70342); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeAutomationExecutionsCommand_1.DescribeAutomationExecutionsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeAutomationExecutions(input, ...args); -}; -async function* paginateDescribeAutomationExecutions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeAutomationExecutions = paginateDescribeAutomationExecutions; - - -/***/ }), - -/***/ 76943: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeAutomationStepExecutions = void 0; -const DescribeAutomationStepExecutionsCommand_1 = __nccwpck_require__(50626); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeAutomationStepExecutionsCommand_1.DescribeAutomationStepExecutionsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeAutomationStepExecutions(input, ...args); -}; -async function* paginateDescribeAutomationStepExecutions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeAutomationStepExecutions = paginateDescribeAutomationStepExecutions; - - -/***/ }), - -/***/ 19798: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeAvailablePatches = void 0; -const DescribeAvailablePatchesCommand_1 = __nccwpck_require__(73378); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeAvailablePatchesCommand_1.DescribeAvailablePatchesCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeAvailablePatches(input, ...args); -}; -async function* paginateDescribeAvailablePatches(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeAvailablePatches = paginateDescribeAvailablePatches; - - -/***/ }), - -/***/ 54408: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeEffectiveInstanceAssociations = void 0; -const DescribeEffectiveInstanceAssociationsCommand_1 = __nccwpck_require__(48907); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeEffectiveInstanceAssociationsCommand_1.DescribeEffectiveInstanceAssociationsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeEffectiveInstanceAssociations(input, ...args); -}; -async function* paginateDescribeEffectiveInstanceAssociations(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeEffectiveInstanceAssociations = paginateDescribeEffectiveInstanceAssociations; - - -/***/ }), - -/***/ 83091: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeEffectivePatchesForPatchBaseline = void 0; -const DescribeEffectivePatchesForPatchBaselineCommand_1 = __nccwpck_require__(11074); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeEffectivePatchesForPatchBaselineCommand_1.DescribeEffectivePatchesForPatchBaselineCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeEffectivePatchesForPatchBaseline(input, ...args); -}; -async function* paginateDescribeEffectivePatchesForPatchBaseline(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeEffectivePatchesForPatchBaseline = paginateDescribeEffectivePatchesForPatchBaseline; - - -/***/ }), - -/***/ 71274: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeInstanceAssociationsStatus = void 0; -const DescribeInstanceAssociationsStatusCommand_1 = __nccwpck_require__(50546); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeInstanceAssociationsStatusCommand_1.DescribeInstanceAssociationsStatusCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeInstanceAssociationsStatus(input, ...args); -}; -async function* paginateDescribeInstanceAssociationsStatus(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeInstanceAssociationsStatus = paginateDescribeInstanceAssociationsStatus; - - -/***/ }), - -/***/ 93287: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeInstanceInformation = void 0; -const DescribeInstanceInformationCommand_1 = __nccwpck_require__(72297); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeInstanceInformationCommand_1.DescribeInstanceInformationCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeInstanceInformation(input, ...args); -}; -async function* paginateDescribeInstanceInformation(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeInstanceInformation = paginateDescribeInstanceInformation; - - -/***/ }), - -/***/ 44444: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeInstancePatchStatesForPatchGroup = void 0; -const DescribeInstancePatchStatesForPatchGroupCommand_1 = __nccwpck_require__(50028); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeInstancePatchStatesForPatchGroupCommand_1.DescribeInstancePatchStatesForPatchGroupCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeInstancePatchStatesForPatchGroup(input, ...args); -}; -async function* paginateDescribeInstancePatchStatesForPatchGroup(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeInstancePatchStatesForPatchGroup = paginateDescribeInstancePatchStatesForPatchGroup; - - -/***/ }), - -/***/ 43172: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeInstancePatchStates = void 0; -const DescribeInstancePatchStatesCommand_1 = __nccwpck_require__(96994); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeInstancePatchStatesCommand_1.DescribeInstancePatchStatesCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeInstancePatchStates(input, ...args); -}; -async function* paginateDescribeInstancePatchStates(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeInstancePatchStates = paginateDescribeInstancePatchStates; - - -/***/ }), - -/***/ 81129: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeInstancePatches = void 0; -const DescribeInstancePatchesCommand_1 = __nccwpck_require__(45672); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeInstancePatchesCommand_1.DescribeInstancePatchesCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeInstancePatches(input, ...args); -}; -async function* paginateDescribeInstancePatches(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeInstancePatches = paginateDescribeInstancePatches; - - -/***/ }), - -/***/ 84268: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeInventoryDeletions = void 0; -const DescribeInventoryDeletionsCommand_1 = __nccwpck_require__(51289); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeInventoryDeletionsCommand_1.DescribeInventoryDeletionsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeInventoryDeletions(input, ...args); -}; -async function* paginateDescribeInventoryDeletions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeInventoryDeletions = paginateDescribeInventoryDeletions; - - -/***/ }), - -/***/ 60525: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeMaintenanceWindowExecutionTaskInvocations = void 0; -const DescribeMaintenanceWindowExecutionTaskInvocationsCommand_1 = __nccwpck_require__(71741); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowExecutionTaskInvocationsCommand_1.DescribeMaintenanceWindowExecutionTaskInvocationsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeMaintenanceWindowExecutionTaskInvocations(input, ...args); -}; -async function* paginateDescribeMaintenanceWindowExecutionTaskInvocations(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeMaintenanceWindowExecutionTaskInvocations = paginateDescribeMaintenanceWindowExecutionTaskInvocations; - - -/***/ }), - -/***/ 48289: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeMaintenanceWindowExecutionTasks = void 0; -const DescribeMaintenanceWindowExecutionTasksCommand_1 = __nccwpck_require__(19495); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowExecutionTasksCommand_1.DescribeMaintenanceWindowExecutionTasksCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeMaintenanceWindowExecutionTasks(input, ...args); -}; -async function* paginateDescribeMaintenanceWindowExecutionTasks(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeMaintenanceWindowExecutionTasks = paginateDescribeMaintenanceWindowExecutionTasks; - - -/***/ }), - -/***/ 67564: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeMaintenanceWindowExecutions = void 0; -const DescribeMaintenanceWindowExecutionsCommand_1 = __nccwpck_require__(66016); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowExecutionsCommand_1.DescribeMaintenanceWindowExecutionsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeMaintenanceWindowExecutions(input, ...args); -}; -async function* paginateDescribeMaintenanceWindowExecutions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeMaintenanceWindowExecutions = paginateDescribeMaintenanceWindowExecutions; - - -/***/ }), - -/***/ 11462: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeMaintenanceWindowSchedule = void 0; -const DescribeMaintenanceWindowScheduleCommand_1 = __nccwpck_require__(83598); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowScheduleCommand_1.DescribeMaintenanceWindowScheduleCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeMaintenanceWindowSchedule(input, ...args); -}; -async function* paginateDescribeMaintenanceWindowSchedule(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeMaintenanceWindowSchedule = paginateDescribeMaintenanceWindowSchedule; - - -/***/ }), - -/***/ 3605: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeMaintenanceWindowTargets = void 0; -const DescribeMaintenanceWindowTargetsCommand_1 = __nccwpck_require__(78871); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowTargetsCommand_1.DescribeMaintenanceWindowTargetsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeMaintenanceWindowTargets(input, ...args); -}; -async function* paginateDescribeMaintenanceWindowTargets(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeMaintenanceWindowTargets = paginateDescribeMaintenanceWindowTargets; - - -/***/ }), - -/***/ 45445: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeMaintenanceWindowTasks = void 0; -const DescribeMaintenanceWindowTasksCommand_1 = __nccwpck_require__(26677); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowTasksCommand_1.DescribeMaintenanceWindowTasksCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeMaintenanceWindowTasks(input, ...args); -}; -async function* paginateDescribeMaintenanceWindowTasks(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeMaintenanceWindowTasks = paginateDescribeMaintenanceWindowTasks; - - -/***/ }), - -/***/ 25787: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeMaintenanceWindowsForTarget = void 0; -const DescribeMaintenanceWindowsForTargetCommand_1 = __nccwpck_require__(41025); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowsForTargetCommand_1.DescribeMaintenanceWindowsForTargetCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeMaintenanceWindowsForTarget(input, ...args); -}; -async function* paginateDescribeMaintenanceWindowsForTarget(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeMaintenanceWindowsForTarget = paginateDescribeMaintenanceWindowsForTarget; - - -/***/ }), - -/***/ 68896: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeMaintenanceWindows = void 0; -const DescribeMaintenanceWindowsCommand_1 = __nccwpck_require__(99482); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowsCommand_1.DescribeMaintenanceWindowsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeMaintenanceWindows(input, ...args); -}; -async function* paginateDescribeMaintenanceWindows(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeMaintenanceWindows = paginateDescribeMaintenanceWindows; - - -/***/ }), - -/***/ 7344: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeOpsItems = void 0; -const DescribeOpsItemsCommand_1 = __nccwpck_require__(76177); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeOpsItemsCommand_1.DescribeOpsItemsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeOpsItems(input, ...args); -}; -async function* paginateDescribeOpsItems(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeOpsItems = paginateDescribeOpsItems; - - -/***/ }), - -/***/ 96395: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeParameters = void 0; -const DescribeParametersCommand_1 = __nccwpck_require__(45975); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeParametersCommand_1.DescribeParametersCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeParameters(input, ...args); -}; -async function* paginateDescribeParameters(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeParameters = paginateDescribeParameters; - - -/***/ }), - -/***/ 44390: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribePatchBaselines = void 0; -const DescribePatchBaselinesCommand_1 = __nccwpck_require__(83186); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribePatchBaselinesCommand_1.DescribePatchBaselinesCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describePatchBaselines(input, ...args); -}; -async function* paginateDescribePatchBaselines(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribePatchBaselines = paginateDescribePatchBaselines; - - -/***/ }), - -/***/ 14639: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribePatchGroups = void 0; -const DescribePatchGroupsCommand_1 = __nccwpck_require__(45192); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribePatchGroupsCommand_1.DescribePatchGroupsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describePatchGroups(input, ...args); -}; -async function* paginateDescribePatchGroups(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribePatchGroups = paginateDescribePatchGroups; - - -/***/ }), - -/***/ 92680: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribePatchProperties = void 0; -const DescribePatchPropertiesCommand_1 = __nccwpck_require__(36964); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribePatchPropertiesCommand_1.DescribePatchPropertiesCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describePatchProperties(input, ...args); -}; -async function* paginateDescribePatchProperties(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribePatchProperties = paginateDescribePatchProperties; - - -/***/ }), - -/***/ 42731: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateDescribeSessions = void 0; -const DescribeSessionsCommand_1 = __nccwpck_require__(43787); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeSessionsCommand_1.DescribeSessionsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.describeSessions(input, ...args); -}; -async function* paginateDescribeSessions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeSessions = paginateDescribeSessions; - - -/***/ }), - -/***/ 72813: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateGetInventory = void 0; -const GetInventoryCommand_1 = __nccwpck_require__(93690); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new GetInventoryCommand_1.GetInventoryCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.getInventory(input, ...args); -}; -async function* paginateGetInventory(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateGetInventory = paginateGetInventory; - - -/***/ }), - -/***/ 85353: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateGetInventorySchema = void 0; -const GetInventorySchemaCommand_1 = __nccwpck_require__(88675); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new GetInventorySchemaCommand_1.GetInventorySchemaCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.getInventorySchema(input, ...args); -}; -async function* paginateGetInventorySchema(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateGetInventorySchema = paginateGetInventorySchema; - - -/***/ }), - -/***/ 78257: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateGetOpsSummary = void 0; -const GetOpsSummaryCommand_1 = __nccwpck_require__(19458); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new GetOpsSummaryCommand_1.GetOpsSummaryCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.getOpsSummary(input, ...args); -}; -async function* paginateGetOpsSummary(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateGetOpsSummary = paginateGetOpsSummary; - - -/***/ }), - -/***/ 58800: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateGetParameterHistory = void 0; -const GetParameterHistoryCommand_1 = __nccwpck_require__(30108); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new GetParameterHistoryCommand_1.GetParameterHistoryCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.getParameterHistory(input, ...args); -}; -async function* paginateGetParameterHistory(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateGetParameterHistory = paginateGetParameterHistory; - - -/***/ }), - -/***/ 93579: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateGetParametersByPath = void 0; -const GetParametersByPathCommand_1 = __nccwpck_require__(22164); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new GetParametersByPathCommand_1.GetParametersByPathCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.getParametersByPath(input, ...args); -}; -async function* paginateGetParametersByPath(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateGetParametersByPath = paginateGetParametersByPath; - - -/***/ }), - -/***/ 2511: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 2205: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListAssociationVersions = void 0; -const ListAssociationVersionsCommand_1 = __nccwpck_require__(40838); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAssociationVersionsCommand_1.ListAssociationVersionsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.listAssociationVersions(input, ...args); -}; -async function* paginateListAssociationVersions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListAssociationVersions = paginateListAssociationVersions; - - -/***/ }), - -/***/ 59920: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListAssociations = void 0; -const ListAssociationsCommand_1 = __nccwpck_require__(29074); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAssociationsCommand_1.ListAssociationsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.listAssociations(input, ...args); -}; -async function* paginateListAssociations(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListAssociations = paginateListAssociations; - - -/***/ }), - -/***/ 87610: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListCommandInvocations = void 0; -const ListCommandInvocationsCommand_1 = __nccwpck_require__(27002); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListCommandInvocationsCommand_1.ListCommandInvocationsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.listCommandInvocations(input, ...args); -}; -async function* paginateListCommandInvocations(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListCommandInvocations = paginateListCommandInvocations; - - -/***/ }), - -/***/ 73478: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListCommands = void 0; -const ListCommandsCommand_1 = __nccwpck_require__(56883); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListCommandsCommand_1.ListCommandsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.listCommands(input, ...args); -}; -async function* paginateListCommands(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListCommands = paginateListCommands; - - -/***/ }), - -/***/ 68453: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListComplianceItems = void 0; -const ListComplianceItemsCommand_1 = __nccwpck_require__(29771); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListComplianceItemsCommand_1.ListComplianceItemsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.listComplianceItems(input, ...args); -}; -async function* paginateListComplianceItems(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListComplianceItems = paginateListComplianceItems; - - -/***/ }), - -/***/ 78627: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListComplianceSummaries = void 0; -const ListComplianceSummariesCommand_1 = __nccwpck_require__(93331); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListComplianceSummariesCommand_1.ListComplianceSummariesCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.listComplianceSummaries(input, ...args); -}; -async function* paginateListComplianceSummaries(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListComplianceSummaries = paginateListComplianceSummaries; - - -/***/ }), - -/***/ 60248: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListDocumentVersions = void 0; -const ListDocumentVersionsCommand_1 = __nccwpck_require__(41473); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListDocumentVersionsCommand_1.ListDocumentVersionsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.listDocumentVersions(input, ...args); -}; -async function* paginateListDocumentVersions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListDocumentVersions = paginateListDocumentVersions; - - -/***/ }), - -/***/ 790: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListDocuments = void 0; -const ListDocumentsCommand_1 = __nccwpck_require__(37018); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListDocumentsCommand_1.ListDocumentsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.listDocuments(input, ...args); -}; -async function* paginateListDocuments(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListDocuments = paginateListDocuments; - - -/***/ }), - -/***/ 21278: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListOpsItemEvents = void 0; -const ListOpsItemEventsCommand_1 = __nccwpck_require__(23927); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListOpsItemEventsCommand_1.ListOpsItemEventsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.listOpsItemEvents(input, ...args); -}; -async function* paginateListOpsItemEvents(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListOpsItemEvents = paginateListOpsItemEvents; - - -/***/ }), - -/***/ 87317: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListOpsItemRelatedItems = void 0; -const ListOpsItemRelatedItemsCommand_1 = __nccwpck_require__(95342); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListOpsItemRelatedItemsCommand_1.ListOpsItemRelatedItemsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.listOpsItemRelatedItems(input, ...args); -}; -async function* paginateListOpsItemRelatedItems(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListOpsItemRelatedItems = paginateListOpsItemRelatedItems; - - -/***/ }), - -/***/ 38860: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListOpsMetadata = void 0; -const ListOpsMetadataCommand_1 = __nccwpck_require__(93770); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListOpsMetadataCommand_1.ListOpsMetadataCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.listOpsMetadata(input, ...args); -}; -async function* paginateListOpsMetadata(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListOpsMetadata = paginateListOpsMetadata; - - -/***/ }), - -/***/ 93620: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListResourceComplianceSummaries = void 0; -const ListResourceComplianceSummariesCommand_1 = __nccwpck_require__(25219); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListResourceComplianceSummariesCommand_1.ListResourceComplianceSummariesCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.listResourceComplianceSummaries(input, ...args); -}; -async function* paginateListResourceComplianceSummaries(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListResourceComplianceSummaries = paginateListResourceComplianceSummaries; - - -/***/ }), - -/***/ 99617: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListResourceDataSync = void 0; -const ListResourceDataSyncCommand_1 = __nccwpck_require__(30788); -const SSM_1 = __nccwpck_require__(24046); -const SSMClient_1 = __nccwpck_require__(13440); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListResourceDataSyncCommand_1.ListResourceDataSyncCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.listResourceDataSync(input, ...args); -}; -async function* paginateListResourceDataSync(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSM_1.SSM) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListResourceDataSync = paginateListResourceDataSync; - - -/***/ }), - -/***/ 62666: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(38664), exports); -tslib_1.__exportStar(__nccwpck_require__(25387), exports); -tslib_1.__exportStar(__nccwpck_require__(4094), exports); -tslib_1.__exportStar(__nccwpck_require__(35119), exports); -tslib_1.__exportStar(__nccwpck_require__(76943), exports); -tslib_1.__exportStar(__nccwpck_require__(19798), exports); -tslib_1.__exportStar(__nccwpck_require__(54408), exports); -tslib_1.__exportStar(__nccwpck_require__(83091), exports); -tslib_1.__exportStar(__nccwpck_require__(71274), exports); -tslib_1.__exportStar(__nccwpck_require__(93287), exports); -tslib_1.__exportStar(__nccwpck_require__(2511), exports); -tslib_1.__exportStar(__nccwpck_require__(44444), exports); -tslib_1.__exportStar(__nccwpck_require__(43172), exports); -tslib_1.__exportStar(__nccwpck_require__(81129), exports); -tslib_1.__exportStar(__nccwpck_require__(84268), exports); -tslib_1.__exportStar(__nccwpck_require__(60525), exports); -tslib_1.__exportStar(__nccwpck_require__(48289), exports); -tslib_1.__exportStar(__nccwpck_require__(67564), exports); -tslib_1.__exportStar(__nccwpck_require__(11462), exports); -tslib_1.__exportStar(__nccwpck_require__(3605), exports); -tslib_1.__exportStar(__nccwpck_require__(45445), exports); -tslib_1.__exportStar(__nccwpck_require__(25787), exports); -tslib_1.__exportStar(__nccwpck_require__(68896), exports); -tslib_1.__exportStar(__nccwpck_require__(7344), exports); -tslib_1.__exportStar(__nccwpck_require__(96395), exports); -tslib_1.__exportStar(__nccwpck_require__(44390), exports); -tslib_1.__exportStar(__nccwpck_require__(14639), exports); -tslib_1.__exportStar(__nccwpck_require__(92680), exports); -tslib_1.__exportStar(__nccwpck_require__(42731), exports); -tslib_1.__exportStar(__nccwpck_require__(72813), exports); -tslib_1.__exportStar(__nccwpck_require__(85353), exports); -tslib_1.__exportStar(__nccwpck_require__(78257), exports); -tslib_1.__exportStar(__nccwpck_require__(58800), exports); -tslib_1.__exportStar(__nccwpck_require__(93579), exports); -tslib_1.__exportStar(__nccwpck_require__(2205), exports); -tslib_1.__exportStar(__nccwpck_require__(59920), exports); -tslib_1.__exportStar(__nccwpck_require__(87610), exports); -tslib_1.__exportStar(__nccwpck_require__(73478), exports); -tslib_1.__exportStar(__nccwpck_require__(68453), exports); -tslib_1.__exportStar(__nccwpck_require__(78627), exports); -tslib_1.__exportStar(__nccwpck_require__(60248), exports); -tslib_1.__exportStar(__nccwpck_require__(790), exports); -tslib_1.__exportStar(__nccwpck_require__(21278), exports); -tslib_1.__exportStar(__nccwpck_require__(87317), exports); -tslib_1.__exportStar(__nccwpck_require__(38860), exports); -tslib_1.__exportStar(__nccwpck_require__(93620), exports); -tslib_1.__exportStar(__nccwpck_require__(99617), exports); - - -/***/ }), - -/***/ 95750: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.serializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand = exports.serializeAws_json1_1DescribeMaintenanceWindowScheduleCommand = exports.serializeAws_json1_1DescribeMaintenanceWindowsCommand = exports.serializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand = exports.serializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand = exports.serializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand = exports.serializeAws_json1_1DescribeInventoryDeletionsCommand = exports.serializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand = exports.serializeAws_json1_1DescribeInstancePatchStatesCommand = exports.serializeAws_json1_1DescribeInstancePatchesCommand = exports.serializeAws_json1_1DescribeInstanceInformationCommand = exports.serializeAws_json1_1DescribeInstanceAssociationsStatusCommand = exports.serializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand = exports.serializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand = exports.serializeAws_json1_1DescribeDocumentPermissionCommand = exports.serializeAws_json1_1DescribeDocumentCommand = exports.serializeAws_json1_1DescribeAvailablePatchesCommand = exports.serializeAws_json1_1DescribeAutomationStepExecutionsCommand = exports.serializeAws_json1_1DescribeAutomationExecutionsCommand = exports.serializeAws_json1_1DescribeAssociationExecutionTargetsCommand = exports.serializeAws_json1_1DescribeAssociationExecutionsCommand = exports.serializeAws_json1_1DescribeAssociationCommand = exports.serializeAws_json1_1DescribeActivationsCommand = exports.serializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand = exports.serializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand = exports.serializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand = exports.serializeAws_json1_1DeregisterManagedInstanceCommand = exports.serializeAws_json1_1DeleteResourceDataSyncCommand = exports.serializeAws_json1_1DeletePatchBaselineCommand = exports.serializeAws_json1_1DeleteParametersCommand = exports.serializeAws_json1_1DeleteParameterCommand = exports.serializeAws_json1_1DeleteOpsMetadataCommand = exports.serializeAws_json1_1DeleteMaintenanceWindowCommand = exports.serializeAws_json1_1DeleteInventoryCommand = exports.serializeAws_json1_1DeleteDocumentCommand = exports.serializeAws_json1_1DeleteAssociationCommand = exports.serializeAws_json1_1DeleteActivationCommand = exports.serializeAws_json1_1CreateResourceDataSyncCommand = exports.serializeAws_json1_1CreatePatchBaselineCommand = exports.serializeAws_json1_1CreateOpsMetadataCommand = exports.serializeAws_json1_1CreateOpsItemCommand = exports.serializeAws_json1_1CreateMaintenanceWindowCommand = exports.serializeAws_json1_1CreateDocumentCommand = exports.serializeAws_json1_1CreateAssociationBatchCommand = exports.serializeAws_json1_1CreateAssociationCommand = exports.serializeAws_json1_1CreateActivationCommand = exports.serializeAws_json1_1CancelMaintenanceWindowExecutionCommand = exports.serializeAws_json1_1CancelCommandCommand = exports.serializeAws_json1_1AssociateOpsItemRelatedItemCommand = exports.serializeAws_json1_1AddTagsToResourceCommand = void 0; -exports.serializeAws_json1_1ListResourceDataSyncCommand = exports.serializeAws_json1_1ListResourceComplianceSummariesCommand = exports.serializeAws_json1_1ListOpsMetadataCommand = exports.serializeAws_json1_1ListOpsItemRelatedItemsCommand = exports.serializeAws_json1_1ListOpsItemEventsCommand = exports.serializeAws_json1_1ListInventoryEntriesCommand = exports.serializeAws_json1_1ListDocumentVersionsCommand = exports.serializeAws_json1_1ListDocumentsCommand = exports.serializeAws_json1_1ListDocumentMetadataHistoryCommand = exports.serializeAws_json1_1ListComplianceSummariesCommand = exports.serializeAws_json1_1ListComplianceItemsCommand = exports.serializeAws_json1_1ListCommandsCommand = exports.serializeAws_json1_1ListCommandInvocationsCommand = exports.serializeAws_json1_1ListAssociationVersionsCommand = exports.serializeAws_json1_1ListAssociationsCommand = exports.serializeAws_json1_1LabelParameterVersionCommand = exports.serializeAws_json1_1GetServiceSettingCommand = exports.serializeAws_json1_1GetPatchBaselineForPatchGroupCommand = exports.serializeAws_json1_1GetPatchBaselineCommand = exports.serializeAws_json1_1GetParametersByPathCommand = exports.serializeAws_json1_1GetParametersCommand = exports.serializeAws_json1_1GetParameterHistoryCommand = exports.serializeAws_json1_1GetParameterCommand = exports.serializeAws_json1_1GetOpsSummaryCommand = exports.serializeAws_json1_1GetOpsMetadataCommand = exports.serializeAws_json1_1GetOpsItemCommand = exports.serializeAws_json1_1GetMaintenanceWindowTaskCommand = exports.serializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand = exports.serializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand = exports.serializeAws_json1_1GetMaintenanceWindowExecutionCommand = exports.serializeAws_json1_1GetMaintenanceWindowCommand = exports.serializeAws_json1_1GetInventorySchemaCommand = exports.serializeAws_json1_1GetInventoryCommand = exports.serializeAws_json1_1GetDocumentCommand = exports.serializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand = exports.serializeAws_json1_1GetDefaultPatchBaselineCommand = exports.serializeAws_json1_1GetConnectionStatusCommand = exports.serializeAws_json1_1GetCommandInvocationCommand = exports.serializeAws_json1_1GetCalendarStateCommand = exports.serializeAws_json1_1GetAutomationExecutionCommand = exports.serializeAws_json1_1DisassociateOpsItemRelatedItemCommand = exports.serializeAws_json1_1DescribeSessionsCommand = exports.serializeAws_json1_1DescribePatchPropertiesCommand = exports.serializeAws_json1_1DescribePatchGroupStateCommand = exports.serializeAws_json1_1DescribePatchGroupsCommand = exports.serializeAws_json1_1DescribePatchBaselinesCommand = exports.serializeAws_json1_1DescribeParametersCommand = exports.serializeAws_json1_1DescribeOpsItemsCommand = exports.serializeAws_json1_1DescribeMaintenanceWindowTasksCommand = exports.serializeAws_json1_1DescribeMaintenanceWindowTargetsCommand = void 0; -exports.deserializeAws_json1_1DeleteAssociationCommand = exports.deserializeAws_json1_1DeleteActivationCommand = exports.deserializeAws_json1_1CreateResourceDataSyncCommand = exports.deserializeAws_json1_1CreatePatchBaselineCommand = exports.deserializeAws_json1_1CreateOpsMetadataCommand = exports.deserializeAws_json1_1CreateOpsItemCommand = exports.deserializeAws_json1_1CreateMaintenanceWindowCommand = exports.deserializeAws_json1_1CreateDocumentCommand = exports.deserializeAws_json1_1CreateAssociationBatchCommand = exports.deserializeAws_json1_1CreateAssociationCommand = exports.deserializeAws_json1_1CreateActivationCommand = exports.deserializeAws_json1_1CancelMaintenanceWindowExecutionCommand = exports.deserializeAws_json1_1CancelCommandCommand = exports.deserializeAws_json1_1AssociateOpsItemRelatedItemCommand = exports.deserializeAws_json1_1AddTagsToResourceCommand = exports.serializeAws_json1_1UpdateServiceSettingCommand = exports.serializeAws_json1_1UpdateResourceDataSyncCommand = exports.serializeAws_json1_1UpdatePatchBaselineCommand = exports.serializeAws_json1_1UpdateOpsMetadataCommand = exports.serializeAws_json1_1UpdateOpsItemCommand = exports.serializeAws_json1_1UpdateManagedInstanceRoleCommand = exports.serializeAws_json1_1UpdateMaintenanceWindowTaskCommand = exports.serializeAws_json1_1UpdateMaintenanceWindowTargetCommand = exports.serializeAws_json1_1UpdateMaintenanceWindowCommand = exports.serializeAws_json1_1UpdateDocumentMetadataCommand = exports.serializeAws_json1_1UpdateDocumentDefaultVersionCommand = exports.serializeAws_json1_1UpdateDocumentCommand = exports.serializeAws_json1_1UpdateAssociationStatusCommand = exports.serializeAws_json1_1UpdateAssociationCommand = exports.serializeAws_json1_1UnlabelParameterVersionCommand = exports.serializeAws_json1_1TerminateSessionCommand = exports.serializeAws_json1_1StopAutomationExecutionCommand = exports.serializeAws_json1_1StartSessionCommand = exports.serializeAws_json1_1StartChangeRequestExecutionCommand = exports.serializeAws_json1_1StartAutomationExecutionCommand = exports.serializeAws_json1_1StartAssociationsOnceCommand = exports.serializeAws_json1_1SendCommandCommand = exports.serializeAws_json1_1SendAutomationSignalCommand = exports.serializeAws_json1_1ResumeSessionCommand = exports.serializeAws_json1_1ResetServiceSettingCommand = exports.serializeAws_json1_1RemoveTagsFromResourceCommand = exports.serializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand = exports.serializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand = exports.serializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand = exports.serializeAws_json1_1RegisterDefaultPatchBaselineCommand = exports.serializeAws_json1_1PutParameterCommand = exports.serializeAws_json1_1PutInventoryCommand = exports.serializeAws_json1_1PutComplianceItemsCommand = exports.serializeAws_json1_1ModifyDocumentPermissionCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = void 0; -exports.deserializeAws_json1_1GetDefaultPatchBaselineCommand = exports.deserializeAws_json1_1GetConnectionStatusCommand = exports.deserializeAws_json1_1GetCommandInvocationCommand = exports.deserializeAws_json1_1GetCalendarStateCommand = exports.deserializeAws_json1_1GetAutomationExecutionCommand = exports.deserializeAws_json1_1DisassociateOpsItemRelatedItemCommand = exports.deserializeAws_json1_1DescribeSessionsCommand = exports.deserializeAws_json1_1DescribePatchPropertiesCommand = exports.deserializeAws_json1_1DescribePatchGroupStateCommand = exports.deserializeAws_json1_1DescribePatchGroupsCommand = exports.deserializeAws_json1_1DescribePatchBaselinesCommand = exports.deserializeAws_json1_1DescribeParametersCommand = exports.deserializeAws_json1_1DescribeOpsItemsCommand = exports.deserializeAws_json1_1DescribeMaintenanceWindowTasksCommand = exports.deserializeAws_json1_1DescribeMaintenanceWindowTargetsCommand = exports.deserializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand = exports.deserializeAws_json1_1DescribeMaintenanceWindowScheduleCommand = exports.deserializeAws_json1_1DescribeMaintenanceWindowsCommand = exports.deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand = exports.deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand = exports.deserializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand = exports.deserializeAws_json1_1DescribeInventoryDeletionsCommand = exports.deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand = exports.deserializeAws_json1_1DescribeInstancePatchStatesCommand = exports.deserializeAws_json1_1DescribeInstancePatchesCommand = exports.deserializeAws_json1_1DescribeInstanceInformationCommand = exports.deserializeAws_json1_1DescribeInstanceAssociationsStatusCommand = exports.deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand = exports.deserializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand = exports.deserializeAws_json1_1DescribeDocumentPermissionCommand = exports.deserializeAws_json1_1DescribeDocumentCommand = exports.deserializeAws_json1_1DescribeAvailablePatchesCommand = exports.deserializeAws_json1_1DescribeAutomationStepExecutionsCommand = exports.deserializeAws_json1_1DescribeAutomationExecutionsCommand = exports.deserializeAws_json1_1DescribeAssociationExecutionTargetsCommand = exports.deserializeAws_json1_1DescribeAssociationExecutionsCommand = exports.deserializeAws_json1_1DescribeAssociationCommand = exports.deserializeAws_json1_1DescribeActivationsCommand = exports.deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand = exports.deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand = exports.deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand = exports.deserializeAws_json1_1DeregisterManagedInstanceCommand = exports.deserializeAws_json1_1DeleteResourceDataSyncCommand = exports.deserializeAws_json1_1DeletePatchBaselineCommand = exports.deserializeAws_json1_1DeleteParametersCommand = exports.deserializeAws_json1_1DeleteParameterCommand = exports.deserializeAws_json1_1DeleteOpsMetadataCommand = exports.deserializeAws_json1_1DeleteMaintenanceWindowCommand = exports.deserializeAws_json1_1DeleteInventoryCommand = exports.deserializeAws_json1_1DeleteDocumentCommand = void 0; -exports.deserializeAws_json1_1StartAssociationsOnceCommand = exports.deserializeAws_json1_1SendCommandCommand = exports.deserializeAws_json1_1SendAutomationSignalCommand = exports.deserializeAws_json1_1ResumeSessionCommand = exports.deserializeAws_json1_1ResetServiceSettingCommand = exports.deserializeAws_json1_1RemoveTagsFromResourceCommand = exports.deserializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand = exports.deserializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand = exports.deserializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand = exports.deserializeAws_json1_1RegisterDefaultPatchBaselineCommand = exports.deserializeAws_json1_1PutParameterCommand = exports.deserializeAws_json1_1PutInventoryCommand = exports.deserializeAws_json1_1PutComplianceItemsCommand = exports.deserializeAws_json1_1ModifyDocumentPermissionCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListResourceDataSyncCommand = exports.deserializeAws_json1_1ListResourceComplianceSummariesCommand = exports.deserializeAws_json1_1ListOpsMetadataCommand = exports.deserializeAws_json1_1ListOpsItemRelatedItemsCommand = exports.deserializeAws_json1_1ListOpsItemEventsCommand = exports.deserializeAws_json1_1ListInventoryEntriesCommand = exports.deserializeAws_json1_1ListDocumentVersionsCommand = exports.deserializeAws_json1_1ListDocumentsCommand = exports.deserializeAws_json1_1ListDocumentMetadataHistoryCommand = exports.deserializeAws_json1_1ListComplianceSummariesCommand = exports.deserializeAws_json1_1ListComplianceItemsCommand = exports.deserializeAws_json1_1ListCommandsCommand = exports.deserializeAws_json1_1ListCommandInvocationsCommand = exports.deserializeAws_json1_1ListAssociationVersionsCommand = exports.deserializeAws_json1_1ListAssociationsCommand = exports.deserializeAws_json1_1LabelParameterVersionCommand = exports.deserializeAws_json1_1GetServiceSettingCommand = exports.deserializeAws_json1_1GetPatchBaselineForPatchGroupCommand = exports.deserializeAws_json1_1GetPatchBaselineCommand = exports.deserializeAws_json1_1GetParametersByPathCommand = exports.deserializeAws_json1_1GetParametersCommand = exports.deserializeAws_json1_1GetParameterHistoryCommand = exports.deserializeAws_json1_1GetParameterCommand = exports.deserializeAws_json1_1GetOpsSummaryCommand = exports.deserializeAws_json1_1GetOpsMetadataCommand = exports.deserializeAws_json1_1GetOpsItemCommand = exports.deserializeAws_json1_1GetMaintenanceWindowTaskCommand = exports.deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand = exports.deserializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand = exports.deserializeAws_json1_1GetMaintenanceWindowExecutionCommand = exports.deserializeAws_json1_1GetMaintenanceWindowCommand = exports.deserializeAws_json1_1GetInventorySchemaCommand = exports.deserializeAws_json1_1GetInventoryCommand = exports.deserializeAws_json1_1GetDocumentCommand = exports.deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand = void 0; -exports.deserializeAws_json1_1UpdateServiceSettingCommand = exports.deserializeAws_json1_1UpdateResourceDataSyncCommand = exports.deserializeAws_json1_1UpdatePatchBaselineCommand = exports.deserializeAws_json1_1UpdateOpsMetadataCommand = exports.deserializeAws_json1_1UpdateOpsItemCommand = exports.deserializeAws_json1_1UpdateManagedInstanceRoleCommand = exports.deserializeAws_json1_1UpdateMaintenanceWindowTaskCommand = exports.deserializeAws_json1_1UpdateMaintenanceWindowTargetCommand = exports.deserializeAws_json1_1UpdateMaintenanceWindowCommand = exports.deserializeAws_json1_1UpdateDocumentMetadataCommand = exports.deserializeAws_json1_1UpdateDocumentDefaultVersionCommand = exports.deserializeAws_json1_1UpdateDocumentCommand = exports.deserializeAws_json1_1UpdateAssociationStatusCommand = exports.deserializeAws_json1_1UpdateAssociationCommand = exports.deserializeAws_json1_1UnlabelParameterVersionCommand = exports.deserializeAws_json1_1TerminateSessionCommand = exports.deserializeAws_json1_1StopAutomationExecutionCommand = exports.deserializeAws_json1_1StartSessionCommand = exports.deserializeAws_json1_1StartChangeRequestExecutionCommand = exports.deserializeAws_json1_1StartAutomationExecutionCommand = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const smithy_client_1 = __nccwpck_require__(4963); -const uuid_1 = __nccwpck_require__(75840); -const models_0_1 = __nccwpck_require__(82053); -const models_1_1 = __nccwpck_require__(9974); -const models_2_1 = __nccwpck_require__(33439); -const SSMServiceException_1 = __nccwpck_require__(97777); -const serializeAws_json1_1AddTagsToResourceCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.AddTagsToResource", - }; - let body; - body = JSON.stringify(serializeAws_json1_1AddTagsToResourceRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1AddTagsToResourceCommand = serializeAws_json1_1AddTagsToResourceCommand; -const serializeAws_json1_1AssociateOpsItemRelatedItemCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.AssociateOpsItemRelatedItem", - }; - let body; - body = JSON.stringify(serializeAws_json1_1AssociateOpsItemRelatedItemRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1AssociateOpsItemRelatedItemCommand = serializeAws_json1_1AssociateOpsItemRelatedItemCommand; -const serializeAws_json1_1CancelCommandCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.CancelCommand", - }; - let body; - body = JSON.stringify(serializeAws_json1_1CancelCommandRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1CancelCommandCommand = serializeAws_json1_1CancelCommandCommand; -const serializeAws_json1_1CancelMaintenanceWindowExecutionCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.CancelMaintenanceWindowExecution", - }; - let body; - body = JSON.stringify(serializeAws_json1_1CancelMaintenanceWindowExecutionRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1CancelMaintenanceWindowExecutionCommand = serializeAws_json1_1CancelMaintenanceWindowExecutionCommand; -const serializeAws_json1_1CreateActivationCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.CreateActivation", - }; - let body; - body = JSON.stringify(serializeAws_json1_1CreateActivationRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1CreateActivationCommand = serializeAws_json1_1CreateActivationCommand; -const serializeAws_json1_1CreateAssociationCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.CreateAssociation", - }; - let body; - body = JSON.stringify(serializeAws_json1_1CreateAssociationRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1CreateAssociationCommand = serializeAws_json1_1CreateAssociationCommand; -const serializeAws_json1_1CreateAssociationBatchCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.CreateAssociationBatch", - }; - let body; - body = JSON.stringify(serializeAws_json1_1CreateAssociationBatchRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1CreateAssociationBatchCommand = serializeAws_json1_1CreateAssociationBatchCommand; -const serializeAws_json1_1CreateDocumentCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.CreateDocument", - }; - let body; - body = JSON.stringify(serializeAws_json1_1CreateDocumentRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1CreateDocumentCommand = serializeAws_json1_1CreateDocumentCommand; -const serializeAws_json1_1CreateMaintenanceWindowCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.CreateMaintenanceWindow", - }; - let body; - body = JSON.stringify(serializeAws_json1_1CreateMaintenanceWindowRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1CreateMaintenanceWindowCommand = serializeAws_json1_1CreateMaintenanceWindowCommand; -const serializeAws_json1_1CreateOpsItemCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.CreateOpsItem", - }; - let body; - body = JSON.stringify(serializeAws_json1_1CreateOpsItemRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1CreateOpsItemCommand = serializeAws_json1_1CreateOpsItemCommand; -const serializeAws_json1_1CreateOpsMetadataCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.CreateOpsMetadata", - }; - let body; - body = JSON.stringify(serializeAws_json1_1CreateOpsMetadataRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1CreateOpsMetadataCommand = serializeAws_json1_1CreateOpsMetadataCommand; -const serializeAws_json1_1CreatePatchBaselineCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.CreatePatchBaseline", - }; - let body; - body = JSON.stringify(serializeAws_json1_1CreatePatchBaselineRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1CreatePatchBaselineCommand = serializeAws_json1_1CreatePatchBaselineCommand; -const serializeAws_json1_1CreateResourceDataSyncCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.CreateResourceDataSync", - }; - let body; - body = JSON.stringify(serializeAws_json1_1CreateResourceDataSyncRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1CreateResourceDataSyncCommand = serializeAws_json1_1CreateResourceDataSyncCommand; -const serializeAws_json1_1DeleteActivationCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DeleteActivation", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeleteActivationRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeleteActivationCommand = serializeAws_json1_1DeleteActivationCommand; -const serializeAws_json1_1DeleteAssociationCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DeleteAssociation", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeleteAssociationRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeleteAssociationCommand = serializeAws_json1_1DeleteAssociationCommand; -const serializeAws_json1_1DeleteDocumentCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DeleteDocument", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeleteDocumentRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeleteDocumentCommand = serializeAws_json1_1DeleteDocumentCommand; -const serializeAws_json1_1DeleteInventoryCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DeleteInventory", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeleteInventoryRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeleteInventoryCommand = serializeAws_json1_1DeleteInventoryCommand; -const serializeAws_json1_1DeleteMaintenanceWindowCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DeleteMaintenanceWindow", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeleteMaintenanceWindowRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeleteMaintenanceWindowCommand = serializeAws_json1_1DeleteMaintenanceWindowCommand; -const serializeAws_json1_1DeleteOpsMetadataCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DeleteOpsMetadata", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeleteOpsMetadataRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeleteOpsMetadataCommand = serializeAws_json1_1DeleteOpsMetadataCommand; -const serializeAws_json1_1DeleteParameterCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DeleteParameter", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeleteParameterRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeleteParameterCommand = serializeAws_json1_1DeleteParameterCommand; -const serializeAws_json1_1DeleteParametersCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DeleteParameters", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeleteParametersRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeleteParametersCommand = serializeAws_json1_1DeleteParametersCommand; -const serializeAws_json1_1DeletePatchBaselineCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DeletePatchBaseline", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeletePatchBaselineRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeletePatchBaselineCommand = serializeAws_json1_1DeletePatchBaselineCommand; -const serializeAws_json1_1DeleteResourceDataSyncCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DeleteResourceDataSync", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeleteResourceDataSyncRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeleteResourceDataSyncCommand = serializeAws_json1_1DeleteResourceDataSyncCommand; -const serializeAws_json1_1DeregisterManagedInstanceCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DeregisterManagedInstance", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeregisterManagedInstanceRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeregisterManagedInstanceCommand = serializeAws_json1_1DeregisterManagedInstanceCommand; -const serializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DeregisterPatchBaselineForPatchGroup", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeregisterPatchBaselineForPatchGroupRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand = serializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand; -const serializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DeregisterTargetFromMaintenanceWindow", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeregisterTargetFromMaintenanceWindowRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand = serializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand; -const serializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DeregisterTaskFromMaintenanceWindow", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DeregisterTaskFromMaintenanceWindowRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand = serializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand; -const serializeAws_json1_1DescribeActivationsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeActivations", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeActivationsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeActivationsCommand = serializeAws_json1_1DescribeActivationsCommand; -const serializeAws_json1_1DescribeAssociationCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeAssociation", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeAssociationRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeAssociationCommand = serializeAws_json1_1DescribeAssociationCommand; -const serializeAws_json1_1DescribeAssociationExecutionsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeAssociationExecutions", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeAssociationExecutionsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeAssociationExecutionsCommand = serializeAws_json1_1DescribeAssociationExecutionsCommand; -const serializeAws_json1_1DescribeAssociationExecutionTargetsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeAssociationExecutionTargets", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeAssociationExecutionTargetsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeAssociationExecutionTargetsCommand = serializeAws_json1_1DescribeAssociationExecutionTargetsCommand; -const serializeAws_json1_1DescribeAutomationExecutionsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeAutomationExecutions", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeAutomationExecutionsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeAutomationExecutionsCommand = serializeAws_json1_1DescribeAutomationExecutionsCommand; -const serializeAws_json1_1DescribeAutomationStepExecutionsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeAutomationStepExecutions", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeAutomationStepExecutionsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeAutomationStepExecutionsCommand = serializeAws_json1_1DescribeAutomationStepExecutionsCommand; -const serializeAws_json1_1DescribeAvailablePatchesCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeAvailablePatches", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeAvailablePatchesRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeAvailablePatchesCommand = serializeAws_json1_1DescribeAvailablePatchesCommand; -const serializeAws_json1_1DescribeDocumentCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeDocument", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeDocumentRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeDocumentCommand = serializeAws_json1_1DescribeDocumentCommand; -const serializeAws_json1_1DescribeDocumentPermissionCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeDocumentPermission", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeDocumentPermissionRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeDocumentPermissionCommand = serializeAws_json1_1DescribeDocumentPermissionCommand; -const serializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeEffectiveInstanceAssociations", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeEffectiveInstanceAssociationsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand = serializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand; -const serializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeEffectivePatchesForPatchBaseline", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeEffectivePatchesForPatchBaselineRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand = serializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand; -const serializeAws_json1_1DescribeInstanceAssociationsStatusCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeInstanceAssociationsStatus", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeInstanceAssociationsStatusRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeInstanceAssociationsStatusCommand = serializeAws_json1_1DescribeInstanceAssociationsStatusCommand; -const serializeAws_json1_1DescribeInstanceInformationCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeInstanceInformation", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeInstanceInformationRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeInstanceInformationCommand = serializeAws_json1_1DescribeInstanceInformationCommand; -const serializeAws_json1_1DescribeInstancePatchesCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeInstancePatches", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeInstancePatchesRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeInstancePatchesCommand = serializeAws_json1_1DescribeInstancePatchesCommand; -const serializeAws_json1_1DescribeInstancePatchStatesCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeInstancePatchStates", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeInstancePatchStatesRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeInstancePatchStatesCommand = serializeAws_json1_1DescribeInstancePatchStatesCommand; -const serializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeInstancePatchStatesForPatchGroup", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeInstancePatchStatesForPatchGroupRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand = serializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand; -const serializeAws_json1_1DescribeInventoryDeletionsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeInventoryDeletions", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeInventoryDeletionsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeInventoryDeletionsCommand = serializeAws_json1_1DescribeInventoryDeletionsCommand; -const serializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowExecutions", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeMaintenanceWindowExecutionsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand = serializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand; -const serializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowExecutionTaskInvocations", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand = serializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand; -const serializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowExecutionTasks", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeMaintenanceWindowExecutionTasksRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand = serializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand; -const serializeAws_json1_1DescribeMaintenanceWindowsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeMaintenanceWindows", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeMaintenanceWindowsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeMaintenanceWindowsCommand = serializeAws_json1_1DescribeMaintenanceWindowsCommand; -const serializeAws_json1_1DescribeMaintenanceWindowScheduleCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowSchedule", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeMaintenanceWindowScheduleRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeMaintenanceWindowScheduleCommand = serializeAws_json1_1DescribeMaintenanceWindowScheduleCommand; -const serializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowsForTarget", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeMaintenanceWindowsForTargetRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand = serializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand; -const serializeAws_json1_1DescribeMaintenanceWindowTargetsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowTargets", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeMaintenanceWindowTargetsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeMaintenanceWindowTargetsCommand = serializeAws_json1_1DescribeMaintenanceWindowTargetsCommand; -const serializeAws_json1_1DescribeMaintenanceWindowTasksCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowTasks", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeMaintenanceWindowTasksRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeMaintenanceWindowTasksCommand = serializeAws_json1_1DescribeMaintenanceWindowTasksCommand; -const serializeAws_json1_1DescribeOpsItemsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeOpsItems", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeOpsItemsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeOpsItemsCommand = serializeAws_json1_1DescribeOpsItemsCommand; -const serializeAws_json1_1DescribeParametersCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeParameters", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeParametersRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeParametersCommand = serializeAws_json1_1DescribeParametersCommand; -const serializeAws_json1_1DescribePatchBaselinesCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribePatchBaselines", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribePatchBaselinesRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribePatchBaselinesCommand = serializeAws_json1_1DescribePatchBaselinesCommand; -const serializeAws_json1_1DescribePatchGroupsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribePatchGroups", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribePatchGroupsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribePatchGroupsCommand = serializeAws_json1_1DescribePatchGroupsCommand; -const serializeAws_json1_1DescribePatchGroupStateCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribePatchGroupState", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribePatchGroupStateRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribePatchGroupStateCommand = serializeAws_json1_1DescribePatchGroupStateCommand; -const serializeAws_json1_1DescribePatchPropertiesCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribePatchProperties", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribePatchPropertiesRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribePatchPropertiesCommand = serializeAws_json1_1DescribePatchPropertiesCommand; -const serializeAws_json1_1DescribeSessionsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DescribeSessions", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DescribeSessionsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DescribeSessionsCommand = serializeAws_json1_1DescribeSessionsCommand; -const serializeAws_json1_1DisassociateOpsItemRelatedItemCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.DisassociateOpsItemRelatedItem", - }; - let body; - body = JSON.stringify(serializeAws_json1_1DisassociateOpsItemRelatedItemRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1DisassociateOpsItemRelatedItemCommand = serializeAws_json1_1DisassociateOpsItemRelatedItemCommand; -const serializeAws_json1_1GetAutomationExecutionCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetAutomationExecution", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetAutomationExecutionRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetAutomationExecutionCommand = serializeAws_json1_1GetAutomationExecutionCommand; -const serializeAws_json1_1GetCalendarStateCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetCalendarState", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetCalendarStateRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetCalendarStateCommand = serializeAws_json1_1GetCalendarStateCommand; -const serializeAws_json1_1GetCommandInvocationCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetCommandInvocation", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetCommandInvocationRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetCommandInvocationCommand = serializeAws_json1_1GetCommandInvocationCommand; -const serializeAws_json1_1GetConnectionStatusCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetConnectionStatus", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetConnectionStatusRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetConnectionStatusCommand = serializeAws_json1_1GetConnectionStatusCommand; -const serializeAws_json1_1GetDefaultPatchBaselineCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetDefaultPatchBaseline", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetDefaultPatchBaselineRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetDefaultPatchBaselineCommand = serializeAws_json1_1GetDefaultPatchBaselineCommand; -const serializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetDeployablePatchSnapshotForInstance", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetDeployablePatchSnapshotForInstanceRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand = serializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand; -const serializeAws_json1_1GetDocumentCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetDocument", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetDocumentRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetDocumentCommand = serializeAws_json1_1GetDocumentCommand; -const serializeAws_json1_1GetInventoryCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetInventory", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetInventoryRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetInventoryCommand = serializeAws_json1_1GetInventoryCommand; -const serializeAws_json1_1GetInventorySchemaCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetInventorySchema", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetInventorySchemaRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetInventorySchemaCommand = serializeAws_json1_1GetInventorySchemaCommand; -const serializeAws_json1_1GetMaintenanceWindowCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetMaintenanceWindow", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetMaintenanceWindowRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetMaintenanceWindowCommand = serializeAws_json1_1GetMaintenanceWindowCommand; -const serializeAws_json1_1GetMaintenanceWindowExecutionCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetMaintenanceWindowExecution", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetMaintenanceWindowExecutionRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetMaintenanceWindowExecutionCommand = serializeAws_json1_1GetMaintenanceWindowExecutionCommand; -const serializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetMaintenanceWindowExecutionTask", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetMaintenanceWindowExecutionTaskRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand = serializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand; -const serializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetMaintenanceWindowExecutionTaskInvocation", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand = serializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand; -const serializeAws_json1_1GetMaintenanceWindowTaskCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetMaintenanceWindowTask", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetMaintenanceWindowTaskRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetMaintenanceWindowTaskCommand = serializeAws_json1_1GetMaintenanceWindowTaskCommand; -const serializeAws_json1_1GetOpsItemCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetOpsItem", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetOpsItemRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetOpsItemCommand = serializeAws_json1_1GetOpsItemCommand; -const serializeAws_json1_1GetOpsMetadataCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetOpsMetadata", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetOpsMetadataRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetOpsMetadataCommand = serializeAws_json1_1GetOpsMetadataCommand; -const serializeAws_json1_1GetOpsSummaryCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetOpsSummary", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetOpsSummaryRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetOpsSummaryCommand = serializeAws_json1_1GetOpsSummaryCommand; -const serializeAws_json1_1GetParameterCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetParameter", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetParameterRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetParameterCommand = serializeAws_json1_1GetParameterCommand; -const serializeAws_json1_1GetParameterHistoryCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetParameterHistory", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetParameterHistoryRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetParameterHistoryCommand = serializeAws_json1_1GetParameterHistoryCommand; -const serializeAws_json1_1GetParametersCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetParameters", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetParametersRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetParametersCommand = serializeAws_json1_1GetParametersCommand; -const serializeAws_json1_1GetParametersByPathCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetParametersByPath", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetParametersByPathRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetParametersByPathCommand = serializeAws_json1_1GetParametersByPathCommand; -const serializeAws_json1_1GetPatchBaselineCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetPatchBaseline", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetPatchBaselineRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetPatchBaselineCommand = serializeAws_json1_1GetPatchBaselineCommand; -const serializeAws_json1_1GetPatchBaselineForPatchGroupCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetPatchBaselineForPatchGroup", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetPatchBaselineForPatchGroupRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetPatchBaselineForPatchGroupCommand = serializeAws_json1_1GetPatchBaselineForPatchGroupCommand; -const serializeAws_json1_1GetServiceSettingCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.GetServiceSetting", - }; - let body; - body = JSON.stringify(serializeAws_json1_1GetServiceSettingRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1GetServiceSettingCommand = serializeAws_json1_1GetServiceSettingCommand; -const serializeAws_json1_1LabelParameterVersionCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.LabelParameterVersion", - }; - let body; - body = JSON.stringify(serializeAws_json1_1LabelParameterVersionRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1LabelParameterVersionCommand = serializeAws_json1_1LabelParameterVersionCommand; -const serializeAws_json1_1ListAssociationsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ListAssociations", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListAssociationsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListAssociationsCommand = serializeAws_json1_1ListAssociationsCommand; -const serializeAws_json1_1ListAssociationVersionsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ListAssociationVersions", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListAssociationVersionsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListAssociationVersionsCommand = serializeAws_json1_1ListAssociationVersionsCommand; -const serializeAws_json1_1ListCommandInvocationsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ListCommandInvocations", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListCommandInvocationsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListCommandInvocationsCommand = serializeAws_json1_1ListCommandInvocationsCommand; -const serializeAws_json1_1ListCommandsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ListCommands", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListCommandsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListCommandsCommand = serializeAws_json1_1ListCommandsCommand; -const serializeAws_json1_1ListComplianceItemsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ListComplianceItems", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListComplianceItemsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListComplianceItemsCommand = serializeAws_json1_1ListComplianceItemsCommand; -const serializeAws_json1_1ListComplianceSummariesCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ListComplianceSummaries", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListComplianceSummariesRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListComplianceSummariesCommand = serializeAws_json1_1ListComplianceSummariesCommand; -const serializeAws_json1_1ListDocumentMetadataHistoryCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ListDocumentMetadataHistory", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListDocumentMetadataHistoryRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListDocumentMetadataHistoryCommand = serializeAws_json1_1ListDocumentMetadataHistoryCommand; -const serializeAws_json1_1ListDocumentsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ListDocuments", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListDocumentsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListDocumentsCommand = serializeAws_json1_1ListDocumentsCommand; -const serializeAws_json1_1ListDocumentVersionsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ListDocumentVersions", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListDocumentVersionsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListDocumentVersionsCommand = serializeAws_json1_1ListDocumentVersionsCommand; -const serializeAws_json1_1ListInventoryEntriesCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ListInventoryEntries", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListInventoryEntriesRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListInventoryEntriesCommand = serializeAws_json1_1ListInventoryEntriesCommand; -const serializeAws_json1_1ListOpsItemEventsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ListOpsItemEvents", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListOpsItemEventsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListOpsItemEventsCommand = serializeAws_json1_1ListOpsItemEventsCommand; -const serializeAws_json1_1ListOpsItemRelatedItemsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ListOpsItemRelatedItems", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListOpsItemRelatedItemsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListOpsItemRelatedItemsCommand = serializeAws_json1_1ListOpsItemRelatedItemsCommand; -const serializeAws_json1_1ListOpsMetadataCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ListOpsMetadata", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListOpsMetadataRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListOpsMetadataCommand = serializeAws_json1_1ListOpsMetadataCommand; -const serializeAws_json1_1ListResourceComplianceSummariesCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ListResourceComplianceSummaries", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListResourceComplianceSummariesRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListResourceComplianceSummariesCommand = serializeAws_json1_1ListResourceComplianceSummariesCommand; -const serializeAws_json1_1ListResourceDataSyncCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ListResourceDataSync", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListResourceDataSyncRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListResourceDataSyncCommand = serializeAws_json1_1ListResourceDataSyncCommand; -const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ListTagsForResource", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ListTagsForResourceCommand = serializeAws_json1_1ListTagsForResourceCommand; -const serializeAws_json1_1ModifyDocumentPermissionCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ModifyDocumentPermission", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ModifyDocumentPermissionRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ModifyDocumentPermissionCommand = serializeAws_json1_1ModifyDocumentPermissionCommand; -const serializeAws_json1_1PutComplianceItemsCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.PutComplianceItems", - }; - let body; - body = JSON.stringify(serializeAws_json1_1PutComplianceItemsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1PutComplianceItemsCommand = serializeAws_json1_1PutComplianceItemsCommand; -const serializeAws_json1_1PutInventoryCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.PutInventory", - }; - let body; - body = JSON.stringify(serializeAws_json1_1PutInventoryRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1PutInventoryCommand = serializeAws_json1_1PutInventoryCommand; -const serializeAws_json1_1PutParameterCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.PutParameter", - }; - let body; - body = JSON.stringify(serializeAws_json1_1PutParameterRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1PutParameterCommand = serializeAws_json1_1PutParameterCommand; -const serializeAws_json1_1RegisterDefaultPatchBaselineCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.RegisterDefaultPatchBaseline", - }; - let body; - body = JSON.stringify(serializeAws_json1_1RegisterDefaultPatchBaselineRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1RegisterDefaultPatchBaselineCommand = serializeAws_json1_1RegisterDefaultPatchBaselineCommand; -const serializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.RegisterPatchBaselineForPatchGroup", - }; - let body; - body = JSON.stringify(serializeAws_json1_1RegisterPatchBaselineForPatchGroupRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand = serializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand; -const serializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.RegisterTargetWithMaintenanceWindow", - }; - let body; - body = JSON.stringify(serializeAws_json1_1RegisterTargetWithMaintenanceWindowRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand = serializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand; -const serializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.RegisterTaskWithMaintenanceWindow", - }; - let body; - body = JSON.stringify(serializeAws_json1_1RegisterTaskWithMaintenanceWindowRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand = serializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand; -const serializeAws_json1_1RemoveTagsFromResourceCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.RemoveTagsFromResource", - }; - let body; - body = JSON.stringify(serializeAws_json1_1RemoveTagsFromResourceRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1RemoveTagsFromResourceCommand = serializeAws_json1_1RemoveTagsFromResourceCommand; -const serializeAws_json1_1ResetServiceSettingCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ResetServiceSetting", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ResetServiceSettingRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ResetServiceSettingCommand = serializeAws_json1_1ResetServiceSettingCommand; -const serializeAws_json1_1ResumeSessionCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.ResumeSession", - }; - let body; - body = JSON.stringify(serializeAws_json1_1ResumeSessionRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1ResumeSessionCommand = serializeAws_json1_1ResumeSessionCommand; -const serializeAws_json1_1SendAutomationSignalCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.SendAutomationSignal", - }; - let body; - body = JSON.stringify(serializeAws_json1_1SendAutomationSignalRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1SendAutomationSignalCommand = serializeAws_json1_1SendAutomationSignalCommand; -const serializeAws_json1_1SendCommandCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.SendCommand", - }; - let body; - body = JSON.stringify(serializeAws_json1_1SendCommandRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1SendCommandCommand = serializeAws_json1_1SendCommandCommand; -const serializeAws_json1_1StartAssociationsOnceCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.StartAssociationsOnce", - }; - let body; - body = JSON.stringify(serializeAws_json1_1StartAssociationsOnceRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1StartAssociationsOnceCommand = serializeAws_json1_1StartAssociationsOnceCommand; -const serializeAws_json1_1StartAutomationExecutionCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.StartAutomationExecution", - }; - let body; - body = JSON.stringify(serializeAws_json1_1StartAutomationExecutionRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1StartAutomationExecutionCommand = serializeAws_json1_1StartAutomationExecutionCommand; -const serializeAws_json1_1StartChangeRequestExecutionCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.StartChangeRequestExecution", - }; - let body; - body = JSON.stringify(serializeAws_json1_1StartChangeRequestExecutionRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1StartChangeRequestExecutionCommand = serializeAws_json1_1StartChangeRequestExecutionCommand; -const serializeAws_json1_1StartSessionCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.StartSession", - }; - let body; - body = JSON.stringify(serializeAws_json1_1StartSessionRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1StartSessionCommand = serializeAws_json1_1StartSessionCommand; -const serializeAws_json1_1StopAutomationExecutionCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.StopAutomationExecution", - }; - let body; - body = JSON.stringify(serializeAws_json1_1StopAutomationExecutionRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1StopAutomationExecutionCommand = serializeAws_json1_1StopAutomationExecutionCommand; -const serializeAws_json1_1TerminateSessionCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.TerminateSession", - }; - let body; - body = JSON.stringify(serializeAws_json1_1TerminateSessionRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1TerminateSessionCommand = serializeAws_json1_1TerminateSessionCommand; -const serializeAws_json1_1UnlabelParameterVersionCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.UnlabelParameterVersion", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UnlabelParameterVersionRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UnlabelParameterVersionCommand = serializeAws_json1_1UnlabelParameterVersionCommand; -const serializeAws_json1_1UpdateAssociationCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.UpdateAssociation", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UpdateAssociationRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UpdateAssociationCommand = serializeAws_json1_1UpdateAssociationCommand; -const serializeAws_json1_1UpdateAssociationStatusCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.UpdateAssociationStatus", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UpdateAssociationStatusRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UpdateAssociationStatusCommand = serializeAws_json1_1UpdateAssociationStatusCommand; -const serializeAws_json1_1UpdateDocumentCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.UpdateDocument", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UpdateDocumentRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UpdateDocumentCommand = serializeAws_json1_1UpdateDocumentCommand; -const serializeAws_json1_1UpdateDocumentDefaultVersionCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.UpdateDocumentDefaultVersion", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UpdateDocumentDefaultVersionRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UpdateDocumentDefaultVersionCommand = serializeAws_json1_1UpdateDocumentDefaultVersionCommand; -const serializeAws_json1_1UpdateDocumentMetadataCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.UpdateDocumentMetadata", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UpdateDocumentMetadataRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UpdateDocumentMetadataCommand = serializeAws_json1_1UpdateDocumentMetadataCommand; -const serializeAws_json1_1UpdateMaintenanceWindowCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.UpdateMaintenanceWindow", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UpdateMaintenanceWindowRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UpdateMaintenanceWindowCommand = serializeAws_json1_1UpdateMaintenanceWindowCommand; -const serializeAws_json1_1UpdateMaintenanceWindowTargetCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.UpdateMaintenanceWindowTarget", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UpdateMaintenanceWindowTargetRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UpdateMaintenanceWindowTargetCommand = serializeAws_json1_1UpdateMaintenanceWindowTargetCommand; -const serializeAws_json1_1UpdateMaintenanceWindowTaskCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.UpdateMaintenanceWindowTask", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UpdateMaintenanceWindowTaskRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UpdateMaintenanceWindowTaskCommand = serializeAws_json1_1UpdateMaintenanceWindowTaskCommand; -const serializeAws_json1_1UpdateManagedInstanceRoleCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.UpdateManagedInstanceRole", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UpdateManagedInstanceRoleRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UpdateManagedInstanceRoleCommand = serializeAws_json1_1UpdateManagedInstanceRoleCommand; -const serializeAws_json1_1UpdateOpsItemCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.UpdateOpsItem", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UpdateOpsItemRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UpdateOpsItemCommand = serializeAws_json1_1UpdateOpsItemCommand; -const serializeAws_json1_1UpdateOpsMetadataCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.UpdateOpsMetadata", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UpdateOpsMetadataRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UpdateOpsMetadataCommand = serializeAws_json1_1UpdateOpsMetadataCommand; -const serializeAws_json1_1UpdatePatchBaselineCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.UpdatePatchBaseline", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UpdatePatchBaselineRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UpdatePatchBaselineCommand = serializeAws_json1_1UpdatePatchBaselineCommand; -const serializeAws_json1_1UpdateResourceDataSyncCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.UpdateResourceDataSync", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UpdateResourceDataSyncRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UpdateResourceDataSyncCommand = serializeAws_json1_1UpdateResourceDataSyncCommand; -const serializeAws_json1_1UpdateServiceSettingCommand = async (input, context) => { - const headers = { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": "AmazonSSM.UpdateServiceSetting", - }; - let body; - body = JSON.stringify(serializeAws_json1_1UpdateServiceSettingRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_json1_1UpdateServiceSettingCommand = serializeAws_json1_1UpdateServiceSettingCommand; -const deserializeAws_json1_1AddTagsToResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1AddTagsToResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1AddTagsToResourceResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1AddTagsToResourceCommand = deserializeAws_json1_1AddTagsToResourceCommand; -const deserializeAws_json1_1AddTagsToResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); - case "InvalidResourceType": - case "com.amazonaws.ssm#InvalidResourceType": - throw await deserializeAws_json1_1InvalidResourceTypeResponse(parsedOutput, context); - case "TooManyTagsError": - case "com.amazonaws.ssm#TooManyTagsError": - throw await deserializeAws_json1_1TooManyTagsErrorResponse(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1AssociateOpsItemRelatedItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1AssociateOpsItemRelatedItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1AssociateOpsItemRelatedItemResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1AssociateOpsItemRelatedItemCommand = deserializeAws_json1_1AssociateOpsItemRelatedItemCommand; -const deserializeAws_json1_1AssociateOpsItemRelatedItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await deserializeAws_json1_1OpsItemInvalidParameterExceptionResponse(parsedOutput, context); - case "OpsItemLimitExceededException": - case "com.amazonaws.ssm#OpsItemLimitExceededException": - throw await deserializeAws_json1_1OpsItemLimitExceededExceptionResponse(parsedOutput, context); - case "OpsItemNotFoundException": - case "com.amazonaws.ssm#OpsItemNotFoundException": - throw await deserializeAws_json1_1OpsItemNotFoundExceptionResponse(parsedOutput, context); - case "OpsItemRelatedItemAlreadyExistsException": - case "com.amazonaws.ssm#OpsItemRelatedItemAlreadyExistsException": - throw await deserializeAws_json1_1OpsItemRelatedItemAlreadyExistsExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1CancelCommandCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1CancelCommandCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1CancelCommandResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1CancelCommandCommand = deserializeAws_json1_1CancelCommandCommand; -const deserializeAws_json1_1CancelCommandCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DuplicateInstanceId": - case "com.amazonaws.ssm#DuplicateInstanceId": - throw await deserializeAws_json1_1DuplicateInstanceIdResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidCommandId": - case "com.amazonaws.ssm#InvalidCommandId": - throw await deserializeAws_json1_1InvalidCommandIdResponse(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1CancelMaintenanceWindowExecutionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1CancelMaintenanceWindowExecutionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1CancelMaintenanceWindowExecutionResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1CancelMaintenanceWindowExecutionCommand = deserializeAws_json1_1CancelMaintenanceWindowExecutionCommand; -const deserializeAws_json1_1CancelMaintenanceWindowExecutionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1CreateActivationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1CreateActivationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1CreateActivationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1CreateActivationCommand = deserializeAws_json1_1CreateActivationCommand; -const deserializeAws_json1_1CreateActivationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidParameters": - case "com.amazonaws.ssm#InvalidParameters": - throw await deserializeAws_json1_1InvalidParametersResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1CreateAssociationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1CreateAssociationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1CreateAssociationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1CreateAssociationCommand = deserializeAws_json1_1CreateAssociationCommand; -const deserializeAws_json1_1CreateAssociationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationAlreadyExists": - case "com.amazonaws.ssm#AssociationAlreadyExists": - throw await deserializeAws_json1_1AssociationAlreadyExistsResponse(parsedOutput, context); - case "AssociationLimitExceeded": - case "com.amazonaws.ssm#AssociationLimitExceeded": - throw await deserializeAws_json1_1AssociationLimitExceededResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); - case "InvalidOutputLocation": - case "com.amazonaws.ssm#InvalidOutputLocation": - throw await deserializeAws_json1_1InvalidOutputLocationResponse(parsedOutput, context); - case "InvalidParameters": - case "com.amazonaws.ssm#InvalidParameters": - throw await deserializeAws_json1_1InvalidParametersResponse(parsedOutput, context); - case "InvalidSchedule": - case "com.amazonaws.ssm#InvalidSchedule": - throw await deserializeAws_json1_1InvalidScheduleResponse(parsedOutput, context); - case "InvalidTarget": - case "com.amazonaws.ssm#InvalidTarget": - throw await deserializeAws_json1_1InvalidTargetResponse(parsedOutput, context); - case "InvalidTargetMaps": - case "com.amazonaws.ssm#InvalidTargetMaps": - throw await deserializeAws_json1_1InvalidTargetMapsResponse(parsedOutput, context); - case "UnsupportedPlatformType": - case "com.amazonaws.ssm#UnsupportedPlatformType": - throw await deserializeAws_json1_1UnsupportedPlatformTypeResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1CreateAssociationBatchCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1CreateAssociationBatchCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1CreateAssociationBatchResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1CreateAssociationBatchCommand = deserializeAws_json1_1CreateAssociationBatchCommand; -const deserializeAws_json1_1CreateAssociationBatchCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationLimitExceeded": - case "com.amazonaws.ssm#AssociationLimitExceeded": - throw await deserializeAws_json1_1AssociationLimitExceededResponse(parsedOutput, context); - case "DuplicateInstanceId": - case "com.amazonaws.ssm#DuplicateInstanceId": - throw await deserializeAws_json1_1DuplicateInstanceIdResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); - case "InvalidOutputLocation": - case "com.amazonaws.ssm#InvalidOutputLocation": - throw await deserializeAws_json1_1InvalidOutputLocationResponse(parsedOutput, context); - case "InvalidParameters": - case "com.amazonaws.ssm#InvalidParameters": - throw await deserializeAws_json1_1InvalidParametersResponse(parsedOutput, context); - case "InvalidSchedule": - case "com.amazonaws.ssm#InvalidSchedule": - throw await deserializeAws_json1_1InvalidScheduleResponse(parsedOutput, context); - case "InvalidTarget": - case "com.amazonaws.ssm#InvalidTarget": - throw await deserializeAws_json1_1InvalidTargetResponse(parsedOutput, context); - case "InvalidTargetMaps": - case "com.amazonaws.ssm#InvalidTargetMaps": - throw await deserializeAws_json1_1InvalidTargetMapsResponse(parsedOutput, context); - case "UnsupportedPlatformType": - case "com.amazonaws.ssm#UnsupportedPlatformType": - throw await deserializeAws_json1_1UnsupportedPlatformTypeResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1CreateDocumentCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1CreateDocumentCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1CreateDocumentResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1CreateDocumentCommand = deserializeAws_json1_1CreateDocumentCommand; -const deserializeAws_json1_1CreateDocumentCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DocumentAlreadyExists": - case "com.amazonaws.ssm#DocumentAlreadyExists": - throw await deserializeAws_json1_1DocumentAlreadyExistsResponse(parsedOutput, context); - case "DocumentLimitExceeded": - case "com.amazonaws.ssm#DocumentLimitExceeded": - throw await deserializeAws_json1_1DocumentLimitExceededResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDocumentContent": - case "com.amazonaws.ssm#InvalidDocumentContent": - throw await deserializeAws_json1_1InvalidDocumentContentResponse(parsedOutput, context); - case "InvalidDocumentSchemaVersion": - case "com.amazonaws.ssm#InvalidDocumentSchemaVersion": - throw await deserializeAws_json1_1InvalidDocumentSchemaVersionResponse(parsedOutput, context); - case "MaxDocumentSizeExceeded": - case "com.amazonaws.ssm#MaxDocumentSizeExceeded": - throw await deserializeAws_json1_1MaxDocumentSizeExceededResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1CreateMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1CreateMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1CreateMaintenanceWindowResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1CreateMaintenanceWindowCommand = deserializeAws_json1_1CreateMaintenanceWindowCommand; -const deserializeAws_json1_1CreateMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "IdempotentParameterMismatch": - case "com.amazonaws.ssm#IdempotentParameterMismatch": - throw await deserializeAws_json1_1IdempotentParameterMismatchResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "ResourceLimitExceededException": - case "com.amazonaws.ssm#ResourceLimitExceededException": - throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1CreateOpsItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1CreateOpsItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1CreateOpsItemResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1CreateOpsItemCommand = deserializeAws_json1_1CreateOpsItemCommand; -const deserializeAws_json1_1CreateOpsItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "OpsItemAlreadyExistsException": - case "com.amazonaws.ssm#OpsItemAlreadyExistsException": - throw await deserializeAws_json1_1OpsItemAlreadyExistsExceptionResponse(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await deserializeAws_json1_1OpsItemInvalidParameterExceptionResponse(parsedOutput, context); - case "OpsItemLimitExceededException": - case "com.amazonaws.ssm#OpsItemLimitExceededException": - throw await deserializeAws_json1_1OpsItemLimitExceededExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1CreateOpsMetadataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1CreateOpsMetadataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1CreateOpsMetadataResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1CreateOpsMetadataCommand = deserializeAws_json1_1CreateOpsMetadataCommand; -const deserializeAws_json1_1CreateOpsMetadataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "OpsMetadataAlreadyExistsException": - case "com.amazonaws.ssm#OpsMetadataAlreadyExistsException": - throw await deserializeAws_json1_1OpsMetadataAlreadyExistsExceptionResponse(parsedOutput, context); - case "OpsMetadataInvalidArgumentException": - case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": - throw await deserializeAws_json1_1OpsMetadataInvalidArgumentExceptionResponse(parsedOutput, context); - case "OpsMetadataLimitExceededException": - case "com.amazonaws.ssm#OpsMetadataLimitExceededException": - throw await deserializeAws_json1_1OpsMetadataLimitExceededExceptionResponse(parsedOutput, context); - case "OpsMetadataTooManyUpdatesException": - case "com.amazonaws.ssm#OpsMetadataTooManyUpdatesException": - throw await deserializeAws_json1_1OpsMetadataTooManyUpdatesExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1CreatePatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1CreatePatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1CreatePatchBaselineResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1CreatePatchBaselineCommand = deserializeAws_json1_1CreatePatchBaselineCommand; -const deserializeAws_json1_1CreatePatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "IdempotentParameterMismatch": - case "com.amazonaws.ssm#IdempotentParameterMismatch": - throw await deserializeAws_json1_1IdempotentParameterMismatchResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "ResourceLimitExceededException": - case "com.amazonaws.ssm#ResourceLimitExceededException": - throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1CreateResourceDataSyncCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1CreateResourceDataSyncCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1CreateResourceDataSyncResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1CreateResourceDataSyncCommand = deserializeAws_json1_1CreateResourceDataSyncCommand; -const deserializeAws_json1_1CreateResourceDataSyncCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "ResourceDataSyncAlreadyExistsException": - case "com.amazonaws.ssm#ResourceDataSyncAlreadyExistsException": - throw await deserializeAws_json1_1ResourceDataSyncAlreadyExistsExceptionResponse(parsedOutput, context); - case "ResourceDataSyncCountExceededException": - case "com.amazonaws.ssm#ResourceDataSyncCountExceededException": - throw await deserializeAws_json1_1ResourceDataSyncCountExceededExceptionResponse(parsedOutput, context); - case "ResourceDataSyncInvalidConfigurationException": - case "com.amazonaws.ssm#ResourceDataSyncInvalidConfigurationException": - throw await deserializeAws_json1_1ResourceDataSyncInvalidConfigurationExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DeleteActivationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeleteActivationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeleteActivationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeleteActivationCommand = deserializeAws_json1_1DeleteActivationCommand; -const deserializeAws_json1_1DeleteActivationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidActivation": - case "com.amazonaws.ssm#InvalidActivation": - throw await deserializeAws_json1_1InvalidActivationResponse(parsedOutput, context); - case "InvalidActivationId": - case "com.amazonaws.ssm#InvalidActivationId": - throw await deserializeAws_json1_1InvalidActivationIdResponse(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DeleteAssociationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeleteAssociationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeleteAssociationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeleteAssociationCommand = deserializeAws_json1_1DeleteAssociationCommand; -const deserializeAws_json1_1DeleteAssociationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await deserializeAws_json1_1AssociationDoesNotExistResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DeleteDocumentCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeleteDocumentCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeleteDocumentResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeleteDocumentCommand = deserializeAws_json1_1DeleteDocumentCommand; -const deserializeAws_json1_1DeleteDocumentCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociatedInstances": - case "com.amazonaws.ssm#AssociatedInstances": - throw await deserializeAws_json1_1AssociatedInstancesResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "InvalidDocumentOperation": - case "com.amazonaws.ssm#InvalidDocumentOperation": - throw await deserializeAws_json1_1InvalidDocumentOperationResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DeleteInventoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeleteInventoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeleteInventoryResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeleteInventoryCommand = deserializeAws_json1_1DeleteInventoryCommand; -const deserializeAws_json1_1DeleteInventoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDeleteInventoryParametersException": - case "com.amazonaws.ssm#InvalidDeleteInventoryParametersException": - throw await deserializeAws_json1_1InvalidDeleteInventoryParametersExceptionResponse(parsedOutput, context); - case "InvalidInventoryRequestException": - case "com.amazonaws.ssm#InvalidInventoryRequestException": - throw await deserializeAws_json1_1InvalidInventoryRequestExceptionResponse(parsedOutput, context); - case "InvalidOptionException": - case "com.amazonaws.ssm#InvalidOptionException": - throw await deserializeAws_json1_1InvalidOptionExceptionResponse(parsedOutput, context); - case "InvalidTypeNameException": - case "com.amazonaws.ssm#InvalidTypeNameException": - throw await deserializeAws_json1_1InvalidTypeNameExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DeleteMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeleteMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeleteMaintenanceWindowResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeleteMaintenanceWindowCommand = deserializeAws_json1_1DeleteMaintenanceWindowCommand; -const deserializeAws_json1_1DeleteMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DeleteOpsMetadataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeleteOpsMetadataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeleteOpsMetadataResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeleteOpsMetadataCommand = deserializeAws_json1_1DeleteOpsMetadataCommand; -const deserializeAws_json1_1DeleteOpsMetadataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "OpsMetadataInvalidArgumentException": - case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": - throw await deserializeAws_json1_1OpsMetadataInvalidArgumentExceptionResponse(parsedOutput, context); - case "OpsMetadataNotFoundException": - case "com.amazonaws.ssm#OpsMetadataNotFoundException": - throw await deserializeAws_json1_1OpsMetadataNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DeleteParameterCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeleteParameterCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeleteParameterResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeleteParameterCommand = deserializeAws_json1_1DeleteParameterCommand; -const deserializeAws_json1_1DeleteParameterCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "ParameterNotFound": - case "com.amazonaws.ssm#ParameterNotFound": - throw await deserializeAws_json1_1ParameterNotFoundResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DeleteParametersCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeleteParametersCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeleteParametersResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeleteParametersCommand = deserializeAws_json1_1DeleteParametersCommand; -const deserializeAws_json1_1DeleteParametersCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DeletePatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeletePatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeletePatchBaselineResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeletePatchBaselineCommand = deserializeAws_json1_1DeletePatchBaselineCommand; -const deserializeAws_json1_1DeletePatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "ResourceInUseException": - case "com.amazonaws.ssm#ResourceInUseException": - throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DeleteResourceDataSyncCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeleteResourceDataSyncCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeleteResourceDataSyncResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeleteResourceDataSyncCommand = deserializeAws_json1_1DeleteResourceDataSyncCommand; -const deserializeAws_json1_1DeleteResourceDataSyncCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "ResourceDataSyncInvalidConfigurationException": - case "com.amazonaws.ssm#ResourceDataSyncInvalidConfigurationException": - throw await deserializeAws_json1_1ResourceDataSyncInvalidConfigurationExceptionResponse(parsedOutput, context); - case "ResourceDataSyncNotFoundException": - case "com.amazonaws.ssm#ResourceDataSyncNotFoundException": - throw await deserializeAws_json1_1ResourceDataSyncNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DeregisterManagedInstanceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeregisterManagedInstanceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeregisterManagedInstanceResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeregisterManagedInstanceCommand = deserializeAws_json1_1DeregisterManagedInstanceCommand; -const deserializeAws_json1_1DeregisterManagedInstanceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand = deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand; -const deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand = deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand; -const deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "TargetInUseException": - case "com.amazonaws.ssm#TargetInUseException": - throw await deserializeAws_json1_1TargetInUseExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand = deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand; -const deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeActivationsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeActivationsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeActivationsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeActivationsCommand = deserializeAws_json1_1DescribeActivationsCommand; -const deserializeAws_json1_1DescribeActivationsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await deserializeAws_json1_1InvalidFilterResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeAssociationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeAssociationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeAssociationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeAssociationCommand = deserializeAws_json1_1DescribeAssociationCommand; -const deserializeAws_json1_1DescribeAssociationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await deserializeAws_json1_1AssociationDoesNotExistResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidAssociationVersion": - case "com.amazonaws.ssm#InvalidAssociationVersion": - throw await deserializeAws_json1_1InvalidAssociationVersionResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeAssociationExecutionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeAssociationExecutionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeAssociationExecutionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeAssociationExecutionsCommand = deserializeAws_json1_1DescribeAssociationExecutionsCommand; -const deserializeAws_json1_1DescribeAssociationExecutionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await deserializeAws_json1_1AssociationDoesNotExistResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeAssociationExecutionTargetsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeAssociationExecutionTargetsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeAssociationExecutionTargetsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeAssociationExecutionTargetsCommand = deserializeAws_json1_1DescribeAssociationExecutionTargetsCommand; -const deserializeAws_json1_1DescribeAssociationExecutionTargetsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await deserializeAws_json1_1AssociationDoesNotExistResponse(parsedOutput, context); - case "AssociationExecutionDoesNotExist": - case "com.amazonaws.ssm#AssociationExecutionDoesNotExist": - throw await deserializeAws_json1_1AssociationExecutionDoesNotExistResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeAutomationExecutionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeAutomationExecutionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeAutomationExecutionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeAutomationExecutionsCommand = deserializeAws_json1_1DescribeAutomationExecutionsCommand; -const deserializeAws_json1_1DescribeAutomationExecutionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await deserializeAws_json1_1InvalidFilterKeyResponse(parsedOutput, context); - case "InvalidFilterValue": - case "com.amazonaws.ssm#InvalidFilterValue": - throw await deserializeAws_json1_1InvalidFilterValueResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeAutomationStepExecutionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeAutomationStepExecutionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeAutomationStepExecutionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeAutomationStepExecutionsCommand = deserializeAws_json1_1DescribeAutomationStepExecutionsCommand; -const deserializeAws_json1_1DescribeAutomationStepExecutionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AutomationExecutionNotFoundException": - case "com.amazonaws.ssm#AutomationExecutionNotFoundException": - throw await deserializeAws_json1_1AutomationExecutionNotFoundExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await deserializeAws_json1_1InvalidFilterKeyResponse(parsedOutput, context); - case "InvalidFilterValue": - case "com.amazonaws.ssm#InvalidFilterValue": - throw await deserializeAws_json1_1InvalidFilterValueResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeAvailablePatchesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeAvailablePatchesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeAvailablePatchesResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeAvailablePatchesCommand = deserializeAws_json1_1DescribeAvailablePatchesCommand; -const deserializeAws_json1_1DescribeAvailablePatchesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeDocumentCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeDocumentCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeDocumentResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeDocumentCommand = deserializeAws_json1_1DescribeDocumentCommand; -const deserializeAws_json1_1DescribeDocumentCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeDocumentPermissionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeDocumentPermissionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeDocumentPermissionResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeDocumentPermissionCommand = deserializeAws_json1_1DescribeDocumentPermissionCommand; -const deserializeAws_json1_1DescribeDocumentPermissionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "InvalidDocumentOperation": - case "com.amazonaws.ssm#InvalidDocumentOperation": - throw await deserializeAws_json1_1InvalidDocumentOperationResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - case "InvalidPermissionType": - case "com.amazonaws.ssm#InvalidPermissionType": - throw await deserializeAws_json1_1InvalidPermissionTypeResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeEffectiveInstanceAssociationsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeEffectiveInstanceAssociationsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand = deserializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand; -const deserializeAws_json1_1DescribeEffectiveInstanceAssociationsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand = deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand; -const deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); - case "UnsupportedOperatingSystem": - case "com.amazonaws.ssm#UnsupportedOperatingSystem": - throw await deserializeAws_json1_1UnsupportedOperatingSystemResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeInstanceAssociationsStatusCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeInstanceAssociationsStatusCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeInstanceAssociationsStatusResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeInstanceAssociationsStatusCommand = deserializeAws_json1_1DescribeInstanceAssociationsStatusCommand; -const deserializeAws_json1_1DescribeInstanceAssociationsStatusCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeInstanceInformationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeInstanceInformationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeInstanceInformationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeInstanceInformationCommand = deserializeAws_json1_1DescribeInstanceInformationCommand; -const deserializeAws_json1_1DescribeInstanceInformationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await deserializeAws_json1_1InvalidFilterKeyResponse(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); - case "InvalidInstanceInformationFilterValue": - case "com.amazonaws.ssm#InvalidInstanceInformationFilterValue": - throw await deserializeAws_json1_1InvalidInstanceInformationFilterValueResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeInstancePatchesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeInstancePatchesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeInstancePatchesResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeInstancePatchesCommand = deserializeAws_json1_1DescribeInstancePatchesCommand; -const deserializeAws_json1_1DescribeInstancePatchesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await deserializeAws_json1_1InvalidFilterResponse(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeInstancePatchStatesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeInstancePatchStatesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeInstancePatchStatesResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeInstancePatchStatesCommand = deserializeAws_json1_1DescribeInstancePatchStatesCommand; -const deserializeAws_json1_1DescribeInstancePatchStatesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand = deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand; -const deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await deserializeAws_json1_1InvalidFilterResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeInventoryDeletionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeInventoryDeletionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeInventoryDeletionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeInventoryDeletionsCommand = deserializeAws_json1_1DescribeInventoryDeletionsCommand; -const deserializeAws_json1_1DescribeInventoryDeletionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDeletionIdException": - case "com.amazonaws.ssm#InvalidDeletionIdException": - throw await deserializeAws_json1_1InvalidDeletionIdExceptionResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeMaintenanceWindowExecutionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeMaintenanceWindowExecutionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand = deserializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand; -const deserializeAws_json1_1DescribeMaintenanceWindowExecutionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand = deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand; -const deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand = deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand; -const deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeMaintenanceWindowsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeMaintenanceWindowsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeMaintenanceWindowsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeMaintenanceWindowsCommand = deserializeAws_json1_1DescribeMaintenanceWindowsCommand; -const deserializeAws_json1_1DescribeMaintenanceWindowsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeMaintenanceWindowScheduleCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeMaintenanceWindowScheduleCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeMaintenanceWindowScheduleResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeMaintenanceWindowScheduleCommand = deserializeAws_json1_1DescribeMaintenanceWindowScheduleCommand; -const deserializeAws_json1_1DescribeMaintenanceWindowScheduleCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeMaintenanceWindowsForTargetCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeMaintenanceWindowsForTargetResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand = deserializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand; -const deserializeAws_json1_1DescribeMaintenanceWindowsForTargetCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeMaintenanceWindowTargetsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeMaintenanceWindowTargetsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeMaintenanceWindowTargetsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeMaintenanceWindowTargetsCommand = deserializeAws_json1_1DescribeMaintenanceWindowTargetsCommand; -const deserializeAws_json1_1DescribeMaintenanceWindowTargetsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeMaintenanceWindowTasksCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeMaintenanceWindowTasksCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeMaintenanceWindowTasksResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeMaintenanceWindowTasksCommand = deserializeAws_json1_1DescribeMaintenanceWindowTasksCommand; -const deserializeAws_json1_1DescribeMaintenanceWindowTasksCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeOpsItemsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeOpsItemsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeOpsItemsResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeOpsItemsCommand = deserializeAws_json1_1DescribeOpsItemsCommand; -const deserializeAws_json1_1DescribeOpsItemsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeParametersCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeParametersCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeParametersResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeParametersCommand = deserializeAws_json1_1DescribeParametersCommand; -const deserializeAws_json1_1DescribeParametersCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await deserializeAws_json1_1InvalidFilterKeyResponse(parsedOutput, context); - case "InvalidFilterOption": - case "com.amazonaws.ssm#InvalidFilterOption": - throw await deserializeAws_json1_1InvalidFilterOptionResponse(parsedOutput, context); - case "InvalidFilterValue": - case "com.amazonaws.ssm#InvalidFilterValue": - throw await deserializeAws_json1_1InvalidFilterValueResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribePatchBaselinesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribePatchBaselinesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribePatchBaselinesResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribePatchBaselinesCommand = deserializeAws_json1_1DescribePatchBaselinesCommand; -const deserializeAws_json1_1DescribePatchBaselinesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribePatchGroupsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribePatchGroupsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribePatchGroupsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribePatchGroupsCommand = deserializeAws_json1_1DescribePatchGroupsCommand; -const deserializeAws_json1_1DescribePatchGroupsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribePatchGroupStateCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribePatchGroupStateCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribePatchGroupStateResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribePatchGroupStateCommand = deserializeAws_json1_1DescribePatchGroupStateCommand; -const deserializeAws_json1_1DescribePatchGroupStateCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribePatchPropertiesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribePatchPropertiesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribePatchPropertiesResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribePatchPropertiesCommand = deserializeAws_json1_1DescribePatchPropertiesCommand; -const deserializeAws_json1_1DescribePatchPropertiesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DescribeSessionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DescribeSessionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DescribeSessionsResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DescribeSessionsCommand = deserializeAws_json1_1DescribeSessionsCommand; -const deserializeAws_json1_1DescribeSessionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await deserializeAws_json1_1InvalidFilterKeyResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1DisassociateOpsItemRelatedItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1DisassociateOpsItemRelatedItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1DisassociateOpsItemRelatedItemResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1DisassociateOpsItemRelatedItemCommand = deserializeAws_json1_1DisassociateOpsItemRelatedItemCommand; -const deserializeAws_json1_1DisassociateOpsItemRelatedItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await deserializeAws_json1_1OpsItemInvalidParameterExceptionResponse(parsedOutput, context); - case "OpsItemNotFoundException": - case "com.amazonaws.ssm#OpsItemNotFoundException": - throw await deserializeAws_json1_1OpsItemNotFoundExceptionResponse(parsedOutput, context); - case "OpsItemRelatedItemAssociationNotFoundException": - case "com.amazonaws.ssm#OpsItemRelatedItemAssociationNotFoundException": - throw await deserializeAws_json1_1OpsItemRelatedItemAssociationNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetAutomationExecutionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetAutomationExecutionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetAutomationExecutionResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetAutomationExecutionCommand = deserializeAws_json1_1GetAutomationExecutionCommand; -const deserializeAws_json1_1GetAutomationExecutionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AutomationExecutionNotFoundException": - case "com.amazonaws.ssm#AutomationExecutionNotFoundException": - throw await deserializeAws_json1_1AutomationExecutionNotFoundExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetCalendarStateCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetCalendarStateCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetCalendarStateResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetCalendarStateCommand = deserializeAws_json1_1GetCalendarStateCommand; -const deserializeAws_json1_1GetCalendarStateCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "InvalidDocumentType": - case "com.amazonaws.ssm#InvalidDocumentType": - throw await deserializeAws_json1_1InvalidDocumentTypeResponse(parsedOutput, context); - case "UnsupportedCalendarException": - case "com.amazonaws.ssm#UnsupportedCalendarException": - throw await deserializeAws_json1_1UnsupportedCalendarExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetCommandInvocationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetCommandInvocationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetCommandInvocationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetCommandInvocationCommand = deserializeAws_json1_1GetCommandInvocationCommand; -const deserializeAws_json1_1GetCommandInvocationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidCommandId": - case "com.amazonaws.ssm#InvalidCommandId": - throw await deserializeAws_json1_1InvalidCommandIdResponse(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); - case "InvalidPluginName": - case "com.amazonaws.ssm#InvalidPluginName": - throw await deserializeAws_json1_1InvalidPluginNameResponse(parsedOutput, context); - case "InvocationDoesNotExist": - case "com.amazonaws.ssm#InvocationDoesNotExist": - throw await deserializeAws_json1_1InvocationDoesNotExistResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetConnectionStatusCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetConnectionStatusCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetConnectionStatusResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetConnectionStatusCommand = deserializeAws_json1_1GetConnectionStatusCommand; -const deserializeAws_json1_1GetConnectionStatusCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetDefaultPatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetDefaultPatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetDefaultPatchBaselineResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetDefaultPatchBaselineCommand = deserializeAws_json1_1GetDefaultPatchBaselineCommand; -const deserializeAws_json1_1GetDefaultPatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand = deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand; -const deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "UnsupportedFeatureRequiredException": - case "com.amazonaws.ssm#UnsupportedFeatureRequiredException": - throw await deserializeAws_json1_1UnsupportedFeatureRequiredExceptionResponse(parsedOutput, context); - case "UnsupportedOperatingSystem": - case "com.amazonaws.ssm#UnsupportedOperatingSystem": - throw await deserializeAws_json1_1UnsupportedOperatingSystemResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetDocumentCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetDocumentCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetDocumentResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetDocumentCommand = deserializeAws_json1_1GetDocumentCommand; -const deserializeAws_json1_1GetDocumentCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetInventoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetInventoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetInventoryResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetInventoryCommand = deserializeAws_json1_1GetInventoryCommand; -const deserializeAws_json1_1GetInventoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidAggregatorException": - case "com.amazonaws.ssm#InvalidAggregatorException": - throw await deserializeAws_json1_1InvalidAggregatorExceptionResponse(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await deserializeAws_json1_1InvalidFilterResponse(parsedOutput, context); - case "InvalidInventoryGroupException": - case "com.amazonaws.ssm#InvalidInventoryGroupException": - throw await deserializeAws_json1_1InvalidInventoryGroupExceptionResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - case "InvalidResultAttributeException": - case "com.amazonaws.ssm#InvalidResultAttributeException": - throw await deserializeAws_json1_1InvalidResultAttributeExceptionResponse(parsedOutput, context); - case "InvalidTypeNameException": - case "com.amazonaws.ssm#InvalidTypeNameException": - throw await deserializeAws_json1_1InvalidTypeNameExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetInventorySchemaCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetInventorySchemaCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetInventorySchemaResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetInventorySchemaCommand = deserializeAws_json1_1GetInventorySchemaCommand; -const deserializeAws_json1_1GetInventorySchemaCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - case "InvalidTypeNameException": - case "com.amazonaws.ssm#InvalidTypeNameException": - throw await deserializeAws_json1_1InvalidTypeNameExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetMaintenanceWindowResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetMaintenanceWindowCommand = deserializeAws_json1_1GetMaintenanceWindowCommand; -const deserializeAws_json1_1GetMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetMaintenanceWindowExecutionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetMaintenanceWindowExecutionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetMaintenanceWindowExecutionResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetMaintenanceWindowExecutionCommand = deserializeAws_json1_1GetMaintenanceWindowExecutionCommand; -const deserializeAws_json1_1GetMaintenanceWindowExecutionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetMaintenanceWindowExecutionTaskCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetMaintenanceWindowExecutionTaskResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand = deserializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand; -const deserializeAws_json1_1GetMaintenanceWindowExecutionTaskCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand = deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand; -const deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetMaintenanceWindowTaskCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetMaintenanceWindowTaskCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetMaintenanceWindowTaskResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetMaintenanceWindowTaskCommand = deserializeAws_json1_1GetMaintenanceWindowTaskCommand; -const deserializeAws_json1_1GetMaintenanceWindowTaskCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetOpsItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetOpsItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetOpsItemResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetOpsItemCommand = deserializeAws_json1_1GetOpsItemCommand; -const deserializeAws_json1_1GetOpsItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "OpsItemNotFoundException": - case "com.amazonaws.ssm#OpsItemNotFoundException": - throw await deserializeAws_json1_1OpsItemNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetOpsMetadataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetOpsMetadataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetOpsMetadataResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetOpsMetadataCommand = deserializeAws_json1_1GetOpsMetadataCommand; -const deserializeAws_json1_1GetOpsMetadataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "OpsMetadataInvalidArgumentException": - case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": - throw await deserializeAws_json1_1OpsMetadataInvalidArgumentExceptionResponse(parsedOutput, context); - case "OpsMetadataNotFoundException": - case "com.amazonaws.ssm#OpsMetadataNotFoundException": - throw await deserializeAws_json1_1OpsMetadataNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetOpsSummaryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetOpsSummaryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetOpsSummaryResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetOpsSummaryCommand = deserializeAws_json1_1GetOpsSummaryCommand; -const deserializeAws_json1_1GetOpsSummaryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidAggregatorException": - case "com.amazonaws.ssm#InvalidAggregatorException": - throw await deserializeAws_json1_1InvalidAggregatorExceptionResponse(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await deserializeAws_json1_1InvalidFilterResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - case "InvalidTypeNameException": - case "com.amazonaws.ssm#InvalidTypeNameException": - throw await deserializeAws_json1_1InvalidTypeNameExceptionResponse(parsedOutput, context); - case "ResourceDataSyncNotFoundException": - case "com.amazonaws.ssm#ResourceDataSyncNotFoundException": - throw await deserializeAws_json1_1ResourceDataSyncNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetParameterCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetParameterCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetParameterResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetParameterCommand = deserializeAws_json1_1GetParameterCommand; -const deserializeAws_json1_1GetParameterCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidKeyId": - case "com.amazonaws.ssm#InvalidKeyId": - throw await deserializeAws_json1_1InvalidKeyIdResponse(parsedOutput, context); - case "ParameterNotFound": - case "com.amazonaws.ssm#ParameterNotFound": - throw await deserializeAws_json1_1ParameterNotFoundResponse(parsedOutput, context); - case "ParameterVersionNotFound": - case "com.amazonaws.ssm#ParameterVersionNotFound": - throw await deserializeAws_json1_1ParameterVersionNotFoundResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetParameterHistoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetParameterHistoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetParameterHistoryResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetParameterHistoryCommand = deserializeAws_json1_1GetParameterHistoryCommand; -const deserializeAws_json1_1GetParameterHistoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidKeyId": - case "com.amazonaws.ssm#InvalidKeyId": - throw await deserializeAws_json1_1InvalidKeyIdResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - case "ParameterNotFound": - case "com.amazonaws.ssm#ParameterNotFound": - throw await deserializeAws_json1_1ParameterNotFoundResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetParametersCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetParametersCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetParametersResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetParametersCommand = deserializeAws_json1_1GetParametersCommand; -const deserializeAws_json1_1GetParametersCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidKeyId": - case "com.amazonaws.ssm#InvalidKeyId": - throw await deserializeAws_json1_1InvalidKeyIdResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetParametersByPathCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetParametersByPathCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetParametersByPathResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetParametersByPathCommand = deserializeAws_json1_1GetParametersByPathCommand; -const deserializeAws_json1_1GetParametersByPathCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await deserializeAws_json1_1InvalidFilterKeyResponse(parsedOutput, context); - case "InvalidFilterOption": - case "com.amazonaws.ssm#InvalidFilterOption": - throw await deserializeAws_json1_1InvalidFilterOptionResponse(parsedOutput, context); - case "InvalidFilterValue": - case "com.amazonaws.ssm#InvalidFilterValue": - throw await deserializeAws_json1_1InvalidFilterValueResponse(parsedOutput, context); - case "InvalidKeyId": - case "com.amazonaws.ssm#InvalidKeyId": - throw await deserializeAws_json1_1InvalidKeyIdResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetPatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetPatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetPatchBaselineResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetPatchBaselineCommand = deserializeAws_json1_1GetPatchBaselineCommand; -const deserializeAws_json1_1GetPatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetPatchBaselineForPatchGroupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetPatchBaselineForPatchGroupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetPatchBaselineForPatchGroupResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetPatchBaselineForPatchGroupCommand = deserializeAws_json1_1GetPatchBaselineForPatchGroupCommand; -const deserializeAws_json1_1GetPatchBaselineForPatchGroupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1GetServiceSettingCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1GetServiceSettingCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1GetServiceSettingResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1GetServiceSettingCommand = deserializeAws_json1_1GetServiceSettingCommand; -const deserializeAws_json1_1GetServiceSettingCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "ServiceSettingNotFound": - case "com.amazonaws.ssm#ServiceSettingNotFound": - throw await deserializeAws_json1_1ServiceSettingNotFoundResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1LabelParameterVersionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1LabelParameterVersionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1LabelParameterVersionResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1LabelParameterVersionCommand = deserializeAws_json1_1LabelParameterVersionCommand; -const deserializeAws_json1_1LabelParameterVersionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "ParameterNotFound": - case "com.amazonaws.ssm#ParameterNotFound": - throw await deserializeAws_json1_1ParameterNotFoundResponse(parsedOutput, context); - case "ParameterVersionLabelLimitExceeded": - case "com.amazonaws.ssm#ParameterVersionLabelLimitExceeded": - throw await deserializeAws_json1_1ParameterVersionLabelLimitExceededResponse(parsedOutput, context); - case "ParameterVersionNotFound": - case "com.amazonaws.ssm#ParameterVersionNotFound": - throw await deserializeAws_json1_1ParameterVersionNotFoundResponse(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ListAssociationsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListAssociationsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListAssociationsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListAssociationsCommand = deserializeAws_json1_1ListAssociationsCommand; -const deserializeAws_json1_1ListAssociationsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ListAssociationVersionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListAssociationVersionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListAssociationVersionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListAssociationVersionsCommand = deserializeAws_json1_1ListAssociationVersionsCommand; -const deserializeAws_json1_1ListAssociationVersionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await deserializeAws_json1_1AssociationDoesNotExistResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ListCommandInvocationsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListCommandInvocationsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListCommandInvocationsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListCommandInvocationsCommand = deserializeAws_json1_1ListCommandInvocationsCommand; -const deserializeAws_json1_1ListCommandInvocationsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidCommandId": - case "com.amazonaws.ssm#InvalidCommandId": - throw await deserializeAws_json1_1InvalidCommandIdResponse(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await deserializeAws_json1_1InvalidFilterKeyResponse(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ListCommandsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListCommandsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListCommandsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListCommandsCommand = deserializeAws_json1_1ListCommandsCommand; -const deserializeAws_json1_1ListCommandsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidCommandId": - case "com.amazonaws.ssm#InvalidCommandId": - throw await deserializeAws_json1_1InvalidCommandIdResponse(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await deserializeAws_json1_1InvalidFilterKeyResponse(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ListComplianceItemsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListComplianceItemsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListComplianceItemsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListComplianceItemsCommand = deserializeAws_json1_1ListComplianceItemsCommand; -const deserializeAws_json1_1ListComplianceItemsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await deserializeAws_json1_1InvalidFilterResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); - case "InvalidResourceType": - case "com.amazonaws.ssm#InvalidResourceType": - throw await deserializeAws_json1_1InvalidResourceTypeResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ListComplianceSummariesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListComplianceSummariesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListComplianceSummariesResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListComplianceSummariesCommand = deserializeAws_json1_1ListComplianceSummariesCommand; -const deserializeAws_json1_1ListComplianceSummariesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await deserializeAws_json1_1InvalidFilterResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ListDocumentMetadataHistoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListDocumentMetadataHistoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListDocumentMetadataHistoryResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListDocumentMetadataHistoryCommand = deserializeAws_json1_1ListDocumentMetadataHistoryCommand; -const deserializeAws_json1_1ListDocumentMetadataHistoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ListDocumentsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListDocumentsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListDocumentsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListDocumentsCommand = deserializeAws_json1_1ListDocumentsCommand; -const deserializeAws_json1_1ListDocumentsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await deserializeAws_json1_1InvalidFilterKeyResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ListDocumentVersionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListDocumentVersionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListDocumentVersionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListDocumentVersionsCommand = deserializeAws_json1_1ListDocumentVersionsCommand; -const deserializeAws_json1_1ListDocumentVersionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ListInventoryEntriesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListInventoryEntriesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListInventoryEntriesResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListInventoryEntriesCommand = deserializeAws_json1_1ListInventoryEntriesCommand; -const deserializeAws_json1_1ListInventoryEntriesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await deserializeAws_json1_1InvalidFilterResponse(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - case "InvalidTypeNameException": - case "com.amazonaws.ssm#InvalidTypeNameException": - throw await deserializeAws_json1_1InvalidTypeNameExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ListOpsItemEventsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListOpsItemEventsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListOpsItemEventsResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListOpsItemEventsCommand = deserializeAws_json1_1ListOpsItemEventsCommand; -const deserializeAws_json1_1ListOpsItemEventsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await deserializeAws_json1_1OpsItemInvalidParameterExceptionResponse(parsedOutput, context); - case "OpsItemLimitExceededException": - case "com.amazonaws.ssm#OpsItemLimitExceededException": - throw await deserializeAws_json1_1OpsItemLimitExceededExceptionResponse(parsedOutput, context); - case "OpsItemNotFoundException": - case "com.amazonaws.ssm#OpsItemNotFoundException": - throw await deserializeAws_json1_1OpsItemNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ListOpsItemRelatedItemsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListOpsItemRelatedItemsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListOpsItemRelatedItemsResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListOpsItemRelatedItemsCommand = deserializeAws_json1_1ListOpsItemRelatedItemsCommand; -const deserializeAws_json1_1ListOpsItemRelatedItemsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await deserializeAws_json1_1OpsItemInvalidParameterExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ListOpsMetadataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListOpsMetadataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListOpsMetadataResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListOpsMetadataCommand = deserializeAws_json1_1ListOpsMetadataCommand; -const deserializeAws_json1_1ListOpsMetadataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "OpsMetadataInvalidArgumentException": - case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": - throw await deserializeAws_json1_1OpsMetadataInvalidArgumentExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ListResourceComplianceSummariesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListResourceComplianceSummariesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListResourceComplianceSummariesResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListResourceComplianceSummariesCommand = deserializeAws_json1_1ListResourceComplianceSummariesCommand; -const deserializeAws_json1_1ListResourceComplianceSummariesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await deserializeAws_json1_1InvalidFilterResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ListResourceDataSyncCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListResourceDataSyncCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListResourceDataSyncResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListResourceDataSyncCommand = deserializeAws_json1_1ListResourceDataSyncCommand; -const deserializeAws_json1_1ListResourceDataSyncCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); - case "ResourceDataSyncInvalidConfigurationException": - case "com.amazonaws.ssm#ResourceDataSyncInvalidConfigurationException": - throw await deserializeAws_json1_1ResourceDataSyncInvalidConfigurationExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ListTagsForResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ListTagsForResourceResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_1ListTagsForResourceCommand; -const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); - case "InvalidResourceType": - case "com.amazonaws.ssm#InvalidResourceType": - throw await deserializeAws_json1_1InvalidResourceTypeResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ModifyDocumentPermissionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ModifyDocumentPermissionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ModifyDocumentPermissionResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ModifyDocumentPermissionCommand = deserializeAws_json1_1ModifyDocumentPermissionCommand; -const deserializeAws_json1_1ModifyDocumentPermissionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DocumentLimitExceeded": - case "com.amazonaws.ssm#DocumentLimitExceeded": - throw await deserializeAws_json1_1DocumentLimitExceededResponse(parsedOutput, context); - case "DocumentPermissionLimit": - case "com.amazonaws.ssm#DocumentPermissionLimit": - throw await deserializeAws_json1_1DocumentPermissionLimitResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "InvalidPermissionType": - case "com.amazonaws.ssm#InvalidPermissionType": - throw await deserializeAws_json1_1InvalidPermissionTypeResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1PutComplianceItemsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1PutComplianceItemsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1PutComplianceItemsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1PutComplianceItemsCommand = deserializeAws_json1_1PutComplianceItemsCommand; -const deserializeAws_json1_1PutComplianceItemsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ComplianceTypeCountLimitExceededException": - case "com.amazonaws.ssm#ComplianceTypeCountLimitExceededException": - throw await deserializeAws_json1_1ComplianceTypeCountLimitExceededExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidItemContentException": - case "com.amazonaws.ssm#InvalidItemContentException": - throw await deserializeAws_json1_1InvalidItemContentExceptionResponse(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); - case "InvalidResourceType": - case "com.amazonaws.ssm#InvalidResourceType": - throw await deserializeAws_json1_1InvalidResourceTypeResponse(parsedOutput, context); - case "ItemSizeLimitExceededException": - case "com.amazonaws.ssm#ItemSizeLimitExceededException": - throw await deserializeAws_json1_1ItemSizeLimitExceededExceptionResponse(parsedOutput, context); - case "TotalSizeLimitExceededException": - case "com.amazonaws.ssm#TotalSizeLimitExceededException": - throw await deserializeAws_json1_1TotalSizeLimitExceededExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1PutInventoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1PutInventoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1PutInventoryResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1PutInventoryCommand = deserializeAws_json1_1PutInventoryCommand; -const deserializeAws_json1_1PutInventoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "CustomSchemaCountLimitExceededException": - case "com.amazonaws.ssm#CustomSchemaCountLimitExceededException": - throw await deserializeAws_json1_1CustomSchemaCountLimitExceededExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); - case "InvalidInventoryItemContextException": - case "com.amazonaws.ssm#InvalidInventoryItemContextException": - throw await deserializeAws_json1_1InvalidInventoryItemContextExceptionResponse(parsedOutput, context); - case "InvalidItemContentException": - case "com.amazonaws.ssm#InvalidItemContentException": - throw await deserializeAws_json1_1InvalidItemContentExceptionResponse(parsedOutput, context); - case "InvalidTypeNameException": - case "com.amazonaws.ssm#InvalidTypeNameException": - throw await deserializeAws_json1_1InvalidTypeNameExceptionResponse(parsedOutput, context); - case "ItemContentMismatchException": - case "com.amazonaws.ssm#ItemContentMismatchException": - throw await deserializeAws_json1_1ItemContentMismatchExceptionResponse(parsedOutput, context); - case "ItemSizeLimitExceededException": - case "com.amazonaws.ssm#ItemSizeLimitExceededException": - throw await deserializeAws_json1_1ItemSizeLimitExceededExceptionResponse(parsedOutput, context); - case "SubTypeCountLimitExceededException": - case "com.amazonaws.ssm#SubTypeCountLimitExceededException": - throw await deserializeAws_json1_1SubTypeCountLimitExceededExceptionResponse(parsedOutput, context); - case "TotalSizeLimitExceededException": - case "com.amazonaws.ssm#TotalSizeLimitExceededException": - throw await deserializeAws_json1_1TotalSizeLimitExceededExceptionResponse(parsedOutput, context); - case "UnsupportedInventoryItemContextException": - case "com.amazonaws.ssm#UnsupportedInventoryItemContextException": - throw await deserializeAws_json1_1UnsupportedInventoryItemContextExceptionResponse(parsedOutput, context); - case "UnsupportedInventorySchemaVersionException": - case "com.amazonaws.ssm#UnsupportedInventorySchemaVersionException": - throw await deserializeAws_json1_1UnsupportedInventorySchemaVersionExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1PutParameterCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1PutParameterCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1PutParameterResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1PutParameterCommand = deserializeAws_json1_1PutParameterCommand; -const deserializeAws_json1_1PutParameterCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "HierarchyLevelLimitExceededException": - case "com.amazonaws.ssm#HierarchyLevelLimitExceededException": - throw await deserializeAws_json1_1HierarchyLevelLimitExceededExceptionResponse(parsedOutput, context); - case "HierarchyTypeMismatchException": - case "com.amazonaws.ssm#HierarchyTypeMismatchException": - throw await deserializeAws_json1_1HierarchyTypeMismatchExceptionResponse(parsedOutput, context); - case "IncompatiblePolicyException": - case "com.amazonaws.ssm#IncompatiblePolicyException": - throw await deserializeAws_json1_1IncompatiblePolicyExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidAllowedPatternException": - case "com.amazonaws.ssm#InvalidAllowedPatternException": - throw await deserializeAws_json1_1InvalidAllowedPatternExceptionResponse(parsedOutput, context); - case "InvalidKeyId": - case "com.amazonaws.ssm#InvalidKeyId": - throw await deserializeAws_json1_1InvalidKeyIdResponse(parsedOutput, context); - case "InvalidPolicyAttributeException": - case "com.amazonaws.ssm#InvalidPolicyAttributeException": - throw await deserializeAws_json1_1InvalidPolicyAttributeExceptionResponse(parsedOutput, context); - case "InvalidPolicyTypeException": - case "com.amazonaws.ssm#InvalidPolicyTypeException": - throw await deserializeAws_json1_1InvalidPolicyTypeExceptionResponse(parsedOutput, context); - case "ParameterAlreadyExists": - case "com.amazonaws.ssm#ParameterAlreadyExists": - throw await deserializeAws_json1_1ParameterAlreadyExistsResponse(parsedOutput, context); - case "ParameterLimitExceeded": - case "com.amazonaws.ssm#ParameterLimitExceeded": - throw await deserializeAws_json1_1ParameterLimitExceededResponse(parsedOutput, context); - case "ParameterMaxVersionLimitExceeded": - case "com.amazonaws.ssm#ParameterMaxVersionLimitExceeded": - throw await deserializeAws_json1_1ParameterMaxVersionLimitExceededResponse(parsedOutput, context); - case "ParameterPatternMismatchException": - case "com.amazonaws.ssm#ParameterPatternMismatchException": - throw await deserializeAws_json1_1ParameterPatternMismatchExceptionResponse(parsedOutput, context); - case "PoliciesLimitExceededException": - case "com.amazonaws.ssm#PoliciesLimitExceededException": - throw await deserializeAws_json1_1PoliciesLimitExceededExceptionResponse(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); - case "UnsupportedParameterType": - case "com.amazonaws.ssm#UnsupportedParameterType": - throw await deserializeAws_json1_1UnsupportedParameterTypeResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1RegisterDefaultPatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1RegisterDefaultPatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1RegisterDefaultPatchBaselineResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1RegisterDefaultPatchBaselineCommand = deserializeAws_json1_1RegisterDefaultPatchBaselineCommand; -const deserializeAws_json1_1RegisterDefaultPatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1RegisterPatchBaselineForPatchGroupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1RegisterPatchBaselineForPatchGroupResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand = deserializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand; -const deserializeAws_json1_1RegisterPatchBaselineForPatchGroupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AlreadyExistsException": - case "com.amazonaws.ssm#AlreadyExistsException": - throw await deserializeAws_json1_1AlreadyExistsExceptionResponse(parsedOutput, context); - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); - case "ResourceLimitExceededException": - case "com.amazonaws.ssm#ResourceLimitExceededException": - throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1RegisterTargetWithMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1RegisterTargetWithMaintenanceWindowResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand = deserializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand; -const deserializeAws_json1_1RegisterTargetWithMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "IdempotentParameterMismatch": - case "com.amazonaws.ssm#IdempotentParameterMismatch": - throw await deserializeAws_json1_1IdempotentParameterMismatchResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "ResourceLimitExceededException": - case "com.amazonaws.ssm#ResourceLimitExceededException": - throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1RegisterTaskWithMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1RegisterTaskWithMaintenanceWindowResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand = deserializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand; -const deserializeAws_json1_1RegisterTaskWithMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "FeatureNotAvailableException": - case "com.amazonaws.ssm#FeatureNotAvailableException": - throw await deserializeAws_json1_1FeatureNotAvailableExceptionResponse(parsedOutput, context); - case "IdempotentParameterMismatch": - case "com.amazonaws.ssm#IdempotentParameterMismatch": - throw await deserializeAws_json1_1IdempotentParameterMismatchResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "ResourceLimitExceededException": - case "com.amazonaws.ssm#ResourceLimitExceededException": - throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1RemoveTagsFromResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1RemoveTagsFromResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1RemoveTagsFromResourceResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1RemoveTagsFromResourceCommand = deserializeAws_json1_1RemoveTagsFromResourceCommand; -const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); - case "InvalidResourceType": - case "com.amazonaws.ssm#InvalidResourceType": - throw await deserializeAws_json1_1InvalidResourceTypeResponse(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ResetServiceSettingCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ResetServiceSettingCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ResetServiceSettingResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ResetServiceSettingCommand = deserializeAws_json1_1ResetServiceSettingCommand; -const deserializeAws_json1_1ResetServiceSettingCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "ServiceSettingNotFound": - case "com.amazonaws.ssm#ServiceSettingNotFound": - throw await deserializeAws_json1_1ServiceSettingNotFoundResponse(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1ResumeSessionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1ResumeSessionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1ResumeSessionResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1ResumeSessionCommand = deserializeAws_json1_1ResumeSessionCommand; -const deserializeAws_json1_1ResumeSessionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1SendAutomationSignalCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1SendAutomationSignalCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1SendAutomationSignalResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1SendAutomationSignalCommand = deserializeAws_json1_1SendAutomationSignalCommand; -const deserializeAws_json1_1SendAutomationSignalCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AutomationExecutionNotFoundException": - case "com.amazonaws.ssm#AutomationExecutionNotFoundException": - throw await deserializeAws_json1_1AutomationExecutionNotFoundExceptionResponse(parsedOutput, context); - case "AutomationStepNotFoundException": - case "com.amazonaws.ssm#AutomationStepNotFoundException": - throw await deserializeAws_json1_1AutomationStepNotFoundExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidAutomationSignalException": - case "com.amazonaws.ssm#InvalidAutomationSignalException": - throw await deserializeAws_json1_1InvalidAutomationSignalExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1SendCommandCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1SendCommandCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1SendCommandResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1SendCommandCommand = deserializeAws_json1_1SendCommandCommand; -const deserializeAws_json1_1SendCommandCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DuplicateInstanceId": - case "com.amazonaws.ssm#DuplicateInstanceId": - throw await deserializeAws_json1_1DuplicateInstanceIdResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); - case "InvalidNotificationConfig": - case "com.amazonaws.ssm#InvalidNotificationConfig": - throw await deserializeAws_json1_1InvalidNotificationConfigResponse(parsedOutput, context); - case "InvalidOutputFolder": - case "com.amazonaws.ssm#InvalidOutputFolder": - throw await deserializeAws_json1_1InvalidOutputFolderResponse(parsedOutput, context); - case "InvalidParameters": - case "com.amazonaws.ssm#InvalidParameters": - throw await deserializeAws_json1_1InvalidParametersResponse(parsedOutput, context); - case "InvalidRole": - case "com.amazonaws.ssm#InvalidRole": - throw await deserializeAws_json1_1InvalidRoleResponse(parsedOutput, context); - case "MaxDocumentSizeExceeded": - case "com.amazonaws.ssm#MaxDocumentSizeExceeded": - throw await deserializeAws_json1_1MaxDocumentSizeExceededResponse(parsedOutput, context); - case "UnsupportedPlatformType": - case "com.amazonaws.ssm#UnsupportedPlatformType": - throw await deserializeAws_json1_1UnsupportedPlatformTypeResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1StartAssociationsOnceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1StartAssociationsOnceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1StartAssociationsOnceResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1StartAssociationsOnceCommand = deserializeAws_json1_1StartAssociationsOnceCommand; -const deserializeAws_json1_1StartAssociationsOnceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await deserializeAws_json1_1AssociationDoesNotExistResponse(parsedOutput, context); - case "InvalidAssociation": - case "com.amazonaws.ssm#InvalidAssociation": - throw await deserializeAws_json1_1InvalidAssociationResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1StartAutomationExecutionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1StartAutomationExecutionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1StartAutomationExecutionResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1StartAutomationExecutionCommand = deserializeAws_json1_1StartAutomationExecutionCommand; -const deserializeAws_json1_1StartAutomationExecutionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AutomationDefinitionNotFoundException": - case "com.amazonaws.ssm#AutomationDefinitionNotFoundException": - throw await deserializeAws_json1_1AutomationDefinitionNotFoundExceptionResponse(parsedOutput, context); - case "AutomationDefinitionVersionNotFoundException": - case "com.amazonaws.ssm#AutomationDefinitionVersionNotFoundException": - throw await deserializeAws_json1_1AutomationDefinitionVersionNotFoundExceptionResponse(parsedOutput, context); - case "AutomationExecutionLimitExceededException": - case "com.amazonaws.ssm#AutomationExecutionLimitExceededException": - throw await deserializeAws_json1_1AutomationExecutionLimitExceededExceptionResponse(parsedOutput, context); - case "IdempotentParameterMismatch": - case "com.amazonaws.ssm#IdempotentParameterMismatch": - throw await deserializeAws_json1_1IdempotentParameterMismatchResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidAutomationExecutionParametersException": - case "com.amazonaws.ssm#InvalidAutomationExecutionParametersException": - throw await deserializeAws_json1_1InvalidAutomationExecutionParametersExceptionResponse(parsedOutput, context); - case "InvalidTarget": - case "com.amazonaws.ssm#InvalidTarget": - throw await deserializeAws_json1_1InvalidTargetResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1StartChangeRequestExecutionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1StartChangeRequestExecutionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1StartChangeRequestExecutionResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1StartChangeRequestExecutionCommand = deserializeAws_json1_1StartChangeRequestExecutionCommand; -const deserializeAws_json1_1StartChangeRequestExecutionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AutomationDefinitionNotApprovedException": - case "com.amazonaws.ssm#AutomationDefinitionNotApprovedException": - throw await deserializeAws_json1_1AutomationDefinitionNotApprovedExceptionResponse(parsedOutput, context); - case "AutomationDefinitionNotFoundException": - case "com.amazonaws.ssm#AutomationDefinitionNotFoundException": - throw await deserializeAws_json1_1AutomationDefinitionNotFoundExceptionResponse(parsedOutput, context); - case "AutomationDefinitionVersionNotFoundException": - case "com.amazonaws.ssm#AutomationDefinitionVersionNotFoundException": - throw await deserializeAws_json1_1AutomationDefinitionVersionNotFoundExceptionResponse(parsedOutput, context); - case "AutomationExecutionLimitExceededException": - case "com.amazonaws.ssm#AutomationExecutionLimitExceededException": - throw await deserializeAws_json1_1AutomationExecutionLimitExceededExceptionResponse(parsedOutput, context); - case "IdempotentParameterMismatch": - case "com.amazonaws.ssm#IdempotentParameterMismatch": - throw await deserializeAws_json1_1IdempotentParameterMismatchResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidAutomationExecutionParametersException": - case "com.amazonaws.ssm#InvalidAutomationExecutionParametersException": - throw await deserializeAws_json1_1InvalidAutomationExecutionParametersExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1StartSessionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1StartSessionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1StartSessionResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1StartSessionCommand = deserializeAws_json1_1StartSessionCommand; -const deserializeAws_json1_1StartSessionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "TargetNotConnected": - case "com.amazonaws.ssm#TargetNotConnected": - throw await deserializeAws_json1_1TargetNotConnectedResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1StopAutomationExecutionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1StopAutomationExecutionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1StopAutomationExecutionResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1StopAutomationExecutionCommand = deserializeAws_json1_1StopAutomationExecutionCommand; -const deserializeAws_json1_1StopAutomationExecutionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AutomationExecutionNotFoundException": - case "com.amazonaws.ssm#AutomationExecutionNotFoundException": - throw await deserializeAws_json1_1AutomationExecutionNotFoundExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidAutomationStatusUpdateException": - case "com.amazonaws.ssm#InvalidAutomationStatusUpdateException": - throw await deserializeAws_json1_1InvalidAutomationStatusUpdateExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1TerminateSessionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1TerminateSessionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1TerminateSessionResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1TerminateSessionCommand = deserializeAws_json1_1TerminateSessionCommand; -const deserializeAws_json1_1TerminateSessionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1UnlabelParameterVersionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UnlabelParameterVersionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UnlabelParameterVersionResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UnlabelParameterVersionCommand = deserializeAws_json1_1UnlabelParameterVersionCommand; -const deserializeAws_json1_1UnlabelParameterVersionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "ParameterNotFound": - case "com.amazonaws.ssm#ParameterNotFound": - throw await deserializeAws_json1_1ParameterNotFoundResponse(parsedOutput, context); - case "ParameterVersionNotFound": - case "com.amazonaws.ssm#ParameterVersionNotFound": - throw await deserializeAws_json1_1ParameterVersionNotFoundResponse(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1UpdateAssociationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UpdateAssociationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UpdateAssociationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UpdateAssociationCommand = deserializeAws_json1_1UpdateAssociationCommand; -const deserializeAws_json1_1UpdateAssociationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await deserializeAws_json1_1AssociationDoesNotExistResponse(parsedOutput, context); - case "AssociationVersionLimitExceeded": - case "com.amazonaws.ssm#AssociationVersionLimitExceeded": - throw await deserializeAws_json1_1AssociationVersionLimitExceededResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidAssociationVersion": - case "com.amazonaws.ssm#InvalidAssociationVersion": - throw await deserializeAws_json1_1InvalidAssociationVersionResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); - case "InvalidOutputLocation": - case "com.amazonaws.ssm#InvalidOutputLocation": - throw await deserializeAws_json1_1InvalidOutputLocationResponse(parsedOutput, context); - case "InvalidParameters": - case "com.amazonaws.ssm#InvalidParameters": - throw await deserializeAws_json1_1InvalidParametersResponse(parsedOutput, context); - case "InvalidSchedule": - case "com.amazonaws.ssm#InvalidSchedule": - throw await deserializeAws_json1_1InvalidScheduleResponse(parsedOutput, context); - case "InvalidTarget": - case "com.amazonaws.ssm#InvalidTarget": - throw await deserializeAws_json1_1InvalidTargetResponse(parsedOutput, context); - case "InvalidTargetMaps": - case "com.amazonaws.ssm#InvalidTargetMaps": - throw await deserializeAws_json1_1InvalidTargetMapsResponse(parsedOutput, context); - case "InvalidUpdate": - case "com.amazonaws.ssm#InvalidUpdate": - throw await deserializeAws_json1_1InvalidUpdateResponse(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1UpdateAssociationStatusCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UpdateAssociationStatusCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UpdateAssociationStatusResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UpdateAssociationStatusCommand = deserializeAws_json1_1UpdateAssociationStatusCommand; -const deserializeAws_json1_1UpdateAssociationStatusCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await deserializeAws_json1_1AssociationDoesNotExistResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); - case "StatusUnchanged": - case "com.amazonaws.ssm#StatusUnchanged": - throw await deserializeAws_json1_1StatusUnchangedResponse(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1UpdateDocumentCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UpdateDocumentCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UpdateDocumentResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UpdateDocumentCommand = deserializeAws_json1_1UpdateDocumentCommand; -const deserializeAws_json1_1UpdateDocumentCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DocumentVersionLimitExceeded": - case "com.amazonaws.ssm#DocumentVersionLimitExceeded": - throw await deserializeAws_json1_1DocumentVersionLimitExceededResponse(parsedOutput, context); - case "DuplicateDocumentContent": - case "com.amazonaws.ssm#DuplicateDocumentContent": - throw await deserializeAws_json1_1DuplicateDocumentContentResponse(parsedOutput, context); - case "DuplicateDocumentVersionName": - case "com.amazonaws.ssm#DuplicateDocumentVersionName": - throw await deserializeAws_json1_1DuplicateDocumentVersionNameResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "InvalidDocumentContent": - case "com.amazonaws.ssm#InvalidDocumentContent": - throw await deserializeAws_json1_1InvalidDocumentContentResponse(parsedOutput, context); - case "InvalidDocumentOperation": - case "com.amazonaws.ssm#InvalidDocumentOperation": - throw await deserializeAws_json1_1InvalidDocumentOperationResponse(parsedOutput, context); - case "InvalidDocumentSchemaVersion": - case "com.amazonaws.ssm#InvalidDocumentSchemaVersion": - throw await deserializeAws_json1_1InvalidDocumentSchemaVersionResponse(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); - case "MaxDocumentSizeExceeded": - case "com.amazonaws.ssm#MaxDocumentSizeExceeded": - throw await deserializeAws_json1_1MaxDocumentSizeExceededResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1UpdateDocumentDefaultVersionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UpdateDocumentDefaultVersionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UpdateDocumentDefaultVersionResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UpdateDocumentDefaultVersionCommand = deserializeAws_json1_1UpdateDocumentDefaultVersionCommand; -const deserializeAws_json1_1UpdateDocumentDefaultVersionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "InvalidDocumentSchemaVersion": - case "com.amazonaws.ssm#InvalidDocumentSchemaVersion": - throw await deserializeAws_json1_1InvalidDocumentSchemaVersionResponse(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1UpdateDocumentMetadataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UpdateDocumentMetadataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UpdateDocumentMetadataResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UpdateDocumentMetadataCommand = deserializeAws_json1_1UpdateDocumentMetadataCommand; -const deserializeAws_json1_1UpdateDocumentMetadataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); - case "InvalidDocumentOperation": - case "com.amazonaws.ssm#InvalidDocumentOperation": - throw await deserializeAws_json1_1InvalidDocumentOperationResponse(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1UpdateMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UpdateMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UpdateMaintenanceWindowResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UpdateMaintenanceWindowCommand = deserializeAws_json1_1UpdateMaintenanceWindowCommand; -const deserializeAws_json1_1UpdateMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1UpdateMaintenanceWindowTargetCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UpdateMaintenanceWindowTargetCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UpdateMaintenanceWindowTargetResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UpdateMaintenanceWindowTargetCommand = deserializeAws_json1_1UpdateMaintenanceWindowTargetCommand; -const deserializeAws_json1_1UpdateMaintenanceWindowTargetCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1UpdateMaintenanceWindowTaskCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UpdateMaintenanceWindowTaskCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UpdateMaintenanceWindowTaskResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UpdateMaintenanceWindowTaskCommand = deserializeAws_json1_1UpdateMaintenanceWindowTaskCommand; -const deserializeAws_json1_1UpdateMaintenanceWindowTaskCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1UpdateManagedInstanceRoleCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UpdateManagedInstanceRoleCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UpdateManagedInstanceRoleResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UpdateManagedInstanceRoleCommand = deserializeAws_json1_1UpdateManagedInstanceRoleCommand; -const deserializeAws_json1_1UpdateManagedInstanceRoleCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1UpdateOpsItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UpdateOpsItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UpdateOpsItemResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UpdateOpsItemCommand = deserializeAws_json1_1UpdateOpsItemCommand; -const deserializeAws_json1_1UpdateOpsItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "OpsItemAlreadyExistsException": - case "com.amazonaws.ssm#OpsItemAlreadyExistsException": - throw await deserializeAws_json1_1OpsItemAlreadyExistsExceptionResponse(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await deserializeAws_json1_1OpsItemInvalidParameterExceptionResponse(parsedOutput, context); - case "OpsItemLimitExceededException": - case "com.amazonaws.ssm#OpsItemLimitExceededException": - throw await deserializeAws_json1_1OpsItemLimitExceededExceptionResponse(parsedOutput, context); - case "OpsItemNotFoundException": - case "com.amazonaws.ssm#OpsItemNotFoundException": - throw await deserializeAws_json1_1OpsItemNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1UpdateOpsMetadataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UpdateOpsMetadataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UpdateOpsMetadataResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UpdateOpsMetadataCommand = deserializeAws_json1_1UpdateOpsMetadataCommand; -const deserializeAws_json1_1UpdateOpsMetadataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "OpsMetadataInvalidArgumentException": - case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": - throw await deserializeAws_json1_1OpsMetadataInvalidArgumentExceptionResponse(parsedOutput, context); - case "OpsMetadataKeyLimitExceededException": - case "com.amazonaws.ssm#OpsMetadataKeyLimitExceededException": - throw await deserializeAws_json1_1OpsMetadataKeyLimitExceededExceptionResponse(parsedOutput, context); - case "OpsMetadataNotFoundException": - case "com.amazonaws.ssm#OpsMetadataNotFoundException": - throw await deserializeAws_json1_1OpsMetadataNotFoundExceptionResponse(parsedOutput, context); - case "OpsMetadataTooManyUpdatesException": - case "com.amazonaws.ssm#OpsMetadataTooManyUpdatesException": - throw await deserializeAws_json1_1OpsMetadataTooManyUpdatesExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1UpdatePatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UpdatePatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UpdatePatchBaselineResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UpdatePatchBaselineCommand = deserializeAws_json1_1UpdatePatchBaselineCommand; -const deserializeAws_json1_1UpdatePatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1UpdateResourceDataSyncCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UpdateResourceDataSyncCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UpdateResourceDataSyncResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UpdateResourceDataSyncCommand = deserializeAws_json1_1UpdateResourceDataSyncCommand; -const deserializeAws_json1_1UpdateResourceDataSyncCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "ResourceDataSyncConflictException": - case "com.amazonaws.ssm#ResourceDataSyncConflictException": - throw await deserializeAws_json1_1ResourceDataSyncConflictExceptionResponse(parsedOutput, context); - case "ResourceDataSyncInvalidConfigurationException": - case "com.amazonaws.ssm#ResourceDataSyncInvalidConfigurationException": - throw await deserializeAws_json1_1ResourceDataSyncInvalidConfigurationExceptionResponse(parsedOutput, context); - case "ResourceDataSyncNotFoundException": - case "com.amazonaws.ssm#ResourceDataSyncNotFoundException": - throw await deserializeAws_json1_1ResourceDataSyncNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1UpdateServiceSettingCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_1UpdateServiceSettingCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_1UpdateServiceSettingResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_json1_1UpdateServiceSettingCommand = deserializeAws_json1_1UpdateServiceSettingCommand; -const deserializeAws_json1_1UpdateServiceSettingCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); - case "ServiceSettingNotFound": - case "com.amazonaws.ssm#ServiceSettingNotFound": - throw await deserializeAws_json1_1ServiceSettingNotFoundResponse(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSMServiceException_1.SSMServiceException, - errorCode, - }); - } -}; -const deserializeAws_json1_1AlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1AlreadyExistsException(body, context); - const exception = new models_0_1.AlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1AssociatedInstancesResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1AssociatedInstances(body, context); - const exception = new models_0_1.AssociatedInstances({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1AssociationAlreadyExistsResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1AssociationAlreadyExists(body, context); - const exception = new models_0_1.AssociationAlreadyExists({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1AssociationDoesNotExistResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1AssociationDoesNotExist(body, context); - const exception = new models_0_1.AssociationDoesNotExist({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1AssociationExecutionDoesNotExistResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1AssociationExecutionDoesNotExist(body, context); - const exception = new models_0_1.AssociationExecutionDoesNotExist({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1AssociationLimitExceededResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1AssociationLimitExceeded(body, context); - const exception = new models_0_1.AssociationLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1AssociationVersionLimitExceededResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1AssociationVersionLimitExceeded(body, context); - const exception = new models_1_1.AssociationVersionLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1AutomationDefinitionNotApprovedExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1AutomationDefinitionNotApprovedException(body, context); - const exception = new models_1_1.AutomationDefinitionNotApprovedException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1AutomationDefinitionNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1AutomationDefinitionNotFoundException(body, context); - const exception = new models_1_1.AutomationDefinitionNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1AutomationDefinitionVersionNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1AutomationDefinitionVersionNotFoundException(body, context); - const exception = new models_1_1.AutomationDefinitionVersionNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1AutomationExecutionLimitExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1AutomationExecutionLimitExceededException(body, context); - const exception = new models_1_1.AutomationExecutionLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1AutomationExecutionNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1AutomationExecutionNotFoundException(body, context); - const exception = new models_0_1.AutomationExecutionNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1AutomationStepNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1AutomationStepNotFoundException(body, context); - const exception = new models_1_1.AutomationStepNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1ComplianceTypeCountLimitExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ComplianceTypeCountLimitExceededException(body, context); - const exception = new models_1_1.ComplianceTypeCountLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1CustomSchemaCountLimitExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1CustomSchemaCountLimitExceededException(body, context); - const exception = new models_1_1.CustomSchemaCountLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1DocumentAlreadyExistsResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1DocumentAlreadyExists(body, context); - const exception = new models_0_1.DocumentAlreadyExists({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1DocumentLimitExceededResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1DocumentLimitExceeded(body, context); - const exception = new models_0_1.DocumentLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1DocumentPermissionLimitResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1DocumentPermissionLimit(body, context); - const exception = new models_1_1.DocumentPermissionLimit({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1DocumentVersionLimitExceededResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1DocumentVersionLimitExceeded(body, context); - const exception = new models_1_1.DocumentVersionLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1DoesNotExistExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1DoesNotExistException(body, context); - const exception = new models_0_1.DoesNotExistException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1DuplicateDocumentContentResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1DuplicateDocumentContent(body, context); - const exception = new models_1_1.DuplicateDocumentContent({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1DuplicateDocumentVersionNameResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1DuplicateDocumentVersionName(body, context); - const exception = new models_1_1.DuplicateDocumentVersionName({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1DuplicateInstanceIdResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1DuplicateInstanceId(body, context); - const exception = new models_0_1.DuplicateInstanceId({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1FeatureNotAvailableExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1FeatureNotAvailableException(body, context); - const exception = new models_1_1.FeatureNotAvailableException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1HierarchyLevelLimitExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1HierarchyLevelLimitExceededException(body, context); - const exception = new models_1_1.HierarchyLevelLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1HierarchyTypeMismatchExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1HierarchyTypeMismatchException(body, context); - const exception = new models_1_1.HierarchyTypeMismatchException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1IdempotentParameterMismatchResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1IdempotentParameterMismatch(body, context); - const exception = new models_0_1.IdempotentParameterMismatch({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1IncompatiblePolicyExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1IncompatiblePolicyException(body, context); - const exception = new models_1_1.IncompatiblePolicyException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InternalServerErrorResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InternalServerError(body, context); - const exception = new models_0_1.InternalServerError({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidActivationResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidActivation(body, context); - const exception = new models_0_1.InvalidActivation({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidActivationIdResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidActivationId(body, context); - const exception = new models_0_1.InvalidActivationId({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidAggregatorExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidAggregatorException(body, context); - const exception = new models_1_1.InvalidAggregatorException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidAllowedPatternExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidAllowedPatternException(body, context); - const exception = new models_1_1.InvalidAllowedPatternException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidAssociationResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidAssociation(body, context); - const exception = new models_1_1.InvalidAssociation({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidAssociationVersionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidAssociationVersion(body, context); - const exception = new models_0_1.InvalidAssociationVersion({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidAutomationExecutionParametersExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidAutomationExecutionParametersException(body, context); - const exception = new models_1_1.InvalidAutomationExecutionParametersException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidAutomationSignalExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidAutomationSignalException(body, context); - const exception = new models_1_1.InvalidAutomationSignalException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidAutomationStatusUpdateExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidAutomationStatusUpdateException(body, context); - const exception = new models_1_1.InvalidAutomationStatusUpdateException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidCommandIdResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidCommandId(body, context); - const exception = new models_0_1.InvalidCommandId({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidDeleteInventoryParametersExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidDeleteInventoryParametersException(body, context); - const exception = new models_0_1.InvalidDeleteInventoryParametersException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidDeletionIdExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidDeletionIdException(body, context); - const exception = new models_0_1.InvalidDeletionIdException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidDocumentResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidDocument(body, context); - const exception = new models_0_1.InvalidDocument({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidDocumentContentResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidDocumentContent(body, context); - const exception = new models_0_1.InvalidDocumentContent({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidDocumentOperationResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidDocumentOperation(body, context); - const exception = new models_0_1.InvalidDocumentOperation({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidDocumentSchemaVersionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidDocumentSchemaVersion(body, context); - const exception = new models_0_1.InvalidDocumentSchemaVersion({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidDocumentTypeResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidDocumentType(body, context); - const exception = new models_1_1.InvalidDocumentType({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidDocumentVersionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidDocumentVersion(body, context); - const exception = new models_0_1.InvalidDocumentVersion({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidFilterResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidFilter(body, context); - const exception = new models_0_1.InvalidFilter({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidFilterKeyResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidFilterKey(body, context); - const exception = new models_0_1.InvalidFilterKey({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidFilterOptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidFilterOption(body, context); - const exception = new models_1_1.InvalidFilterOption({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidFilterValueResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidFilterValue(body, context); - const exception = new models_0_1.InvalidFilterValue({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidInstanceIdResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidInstanceId(body, context); - const exception = new models_0_1.InvalidInstanceId({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidInstanceInformationFilterValueResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidInstanceInformationFilterValue(body, context); - const exception = new models_0_1.InvalidInstanceInformationFilterValue({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidInventoryGroupExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidInventoryGroupException(body, context); - const exception = new models_1_1.InvalidInventoryGroupException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidInventoryItemContextExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidInventoryItemContextException(body, context); - const exception = new models_1_1.InvalidInventoryItemContextException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidInventoryRequestExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidInventoryRequestException(body, context); - const exception = new models_0_1.InvalidInventoryRequestException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidItemContentExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidItemContentException(body, context); - const exception = new models_1_1.InvalidItemContentException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidKeyIdResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidKeyId(body, context); - const exception = new models_1_1.InvalidKeyId({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidNextTokenResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidNextToken(body, context); - const exception = new models_0_1.InvalidNextToken({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidNotificationConfigResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidNotificationConfig(body, context); - const exception = new models_1_1.InvalidNotificationConfig({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidOptionExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidOptionException(body, context); - const exception = new models_0_1.InvalidOptionException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidOutputFolderResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidOutputFolder(body, context); - const exception = new models_1_1.InvalidOutputFolder({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidOutputLocationResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidOutputLocation(body, context); - const exception = new models_0_1.InvalidOutputLocation({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidParametersResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidParameters(body, context); - const exception = new models_0_1.InvalidParameters({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidPermissionTypeResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidPermissionType(body, context); - const exception = new models_0_1.InvalidPermissionType({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidPluginNameResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidPluginName(body, context); - const exception = new models_1_1.InvalidPluginName({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidPolicyAttributeExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidPolicyAttributeException(body, context); - const exception = new models_1_1.InvalidPolicyAttributeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidPolicyTypeExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidPolicyTypeException(body, context); - const exception = new models_1_1.InvalidPolicyTypeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidResourceIdResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidResourceId(body, context); - const exception = new models_0_1.InvalidResourceId({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidResourceTypeResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidResourceType(body, context); - const exception = new models_0_1.InvalidResourceType({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidResultAttributeExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidResultAttributeException(body, context); - const exception = new models_1_1.InvalidResultAttributeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidRoleResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidRole(body, context); - const exception = new models_1_1.InvalidRole({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidScheduleResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidSchedule(body, context); - const exception = new models_0_1.InvalidSchedule({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidTargetResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidTarget(body, context); - const exception = new models_0_1.InvalidTarget({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidTargetMapsResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidTargetMaps(body, context); - const exception = new models_0_1.InvalidTargetMaps({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidTypeNameExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidTypeNameException(body, context); - const exception = new models_0_1.InvalidTypeNameException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvalidUpdateResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvalidUpdate(body, context); - const exception = new models_1_1.InvalidUpdate({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1InvocationDoesNotExistResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1InvocationDoesNotExist(body, context); - const exception = new models_1_1.InvocationDoesNotExist({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1ItemContentMismatchExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ItemContentMismatchException(body, context); - const exception = new models_1_1.ItemContentMismatchException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1ItemSizeLimitExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ItemSizeLimitExceededException(body, context); - const exception = new models_1_1.ItemSizeLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1MaxDocumentSizeExceededResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1MaxDocumentSizeExceeded(body, context); - const exception = new models_0_1.MaxDocumentSizeExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1OpsItemAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1OpsItemAlreadyExistsException(body, context); - const exception = new models_0_1.OpsItemAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1OpsItemInvalidParameterExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1OpsItemInvalidParameterException(body, context); - const exception = new models_0_1.OpsItemInvalidParameterException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1OpsItemLimitExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1OpsItemLimitExceededException(body, context); - const exception = new models_0_1.OpsItemLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1OpsItemNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1OpsItemNotFoundException(body, context); - const exception = new models_0_1.OpsItemNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1OpsItemRelatedItemAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1OpsItemRelatedItemAlreadyExistsException(body, context); - const exception = new models_0_1.OpsItemRelatedItemAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1OpsItemRelatedItemAssociationNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1OpsItemRelatedItemAssociationNotFoundException(body, context); - const exception = new models_1_1.OpsItemRelatedItemAssociationNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1OpsMetadataAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1OpsMetadataAlreadyExistsException(body, context); - const exception = new models_0_1.OpsMetadataAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1OpsMetadataInvalidArgumentExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1OpsMetadataInvalidArgumentException(body, context); - const exception = new models_0_1.OpsMetadataInvalidArgumentException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1OpsMetadataKeyLimitExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1OpsMetadataKeyLimitExceededException(body, context); - const exception = new models_2_1.OpsMetadataKeyLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1OpsMetadataLimitExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1OpsMetadataLimitExceededException(body, context); - const exception = new models_0_1.OpsMetadataLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1OpsMetadataNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1OpsMetadataNotFoundException(body, context); - const exception = new models_0_1.OpsMetadataNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1OpsMetadataTooManyUpdatesExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1OpsMetadataTooManyUpdatesException(body, context); - const exception = new models_0_1.OpsMetadataTooManyUpdatesException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1ParameterAlreadyExistsResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ParameterAlreadyExists(body, context); - const exception = new models_1_1.ParameterAlreadyExists({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1ParameterLimitExceededResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ParameterLimitExceeded(body, context); - const exception = new models_1_1.ParameterLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1ParameterMaxVersionLimitExceededResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ParameterMaxVersionLimitExceeded(body, context); - const exception = new models_1_1.ParameterMaxVersionLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1ParameterNotFoundResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ParameterNotFound(body, context); - const exception = new models_0_1.ParameterNotFound({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1ParameterPatternMismatchExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ParameterPatternMismatchException(body, context); - const exception = new models_1_1.ParameterPatternMismatchException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1ParameterVersionLabelLimitExceededResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ParameterVersionLabelLimitExceeded(body, context); - const exception = new models_1_1.ParameterVersionLabelLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1ParameterVersionNotFoundResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ParameterVersionNotFound(body, context); - const exception = new models_1_1.ParameterVersionNotFound({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1PoliciesLimitExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1PoliciesLimitExceededException(body, context); - const exception = new models_1_1.PoliciesLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1ResourceDataSyncAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ResourceDataSyncAlreadyExistsException(body, context); - const exception = new models_0_1.ResourceDataSyncAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1ResourceDataSyncConflictExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ResourceDataSyncConflictException(body, context); - const exception = new models_2_1.ResourceDataSyncConflictException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1ResourceDataSyncCountExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ResourceDataSyncCountExceededException(body, context); - const exception = new models_0_1.ResourceDataSyncCountExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1ResourceDataSyncInvalidConfigurationExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ResourceDataSyncInvalidConfigurationException(body, context); - const exception = new models_0_1.ResourceDataSyncInvalidConfigurationException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1ResourceDataSyncNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ResourceDataSyncNotFoundException(body, context); - const exception = new models_0_1.ResourceDataSyncNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1ResourceInUseExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ResourceInUseException(body, context); - const exception = new models_0_1.ResourceInUseException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1ResourceLimitExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ResourceLimitExceededException(body, context); - const exception = new models_0_1.ResourceLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1ServiceSettingNotFoundResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1ServiceSettingNotFound(body, context); - const exception = new models_1_1.ServiceSettingNotFound({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1StatusUnchangedResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1StatusUnchanged(body, context); - const exception = new models_1_1.StatusUnchanged({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1SubTypeCountLimitExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1SubTypeCountLimitExceededException(body, context); - const exception = new models_1_1.SubTypeCountLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1TargetInUseExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1TargetInUseException(body, context); - const exception = new models_0_1.TargetInUseException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1TargetNotConnectedResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1TargetNotConnected(body, context); - const exception = new models_1_1.TargetNotConnected({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1TooManyTagsErrorResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1TooManyTagsError(body, context); - const exception = new models_0_1.TooManyTagsError({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1TooManyUpdatesResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1TooManyUpdates(body, context); - const exception = new models_0_1.TooManyUpdates({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1TotalSizeLimitExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1TotalSizeLimitExceededException(body, context); - const exception = new models_1_1.TotalSizeLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1UnsupportedCalendarExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1UnsupportedCalendarException(body, context); - const exception = new models_1_1.UnsupportedCalendarException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1UnsupportedFeatureRequiredExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1UnsupportedFeatureRequiredException(body, context); - const exception = new models_1_1.UnsupportedFeatureRequiredException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1UnsupportedInventoryItemContextExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1UnsupportedInventoryItemContextException(body, context); - const exception = new models_1_1.UnsupportedInventoryItemContextException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1UnsupportedInventorySchemaVersionExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1UnsupportedInventorySchemaVersionException(body, context); - const exception = new models_1_1.UnsupportedInventorySchemaVersionException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1UnsupportedOperatingSystemResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1UnsupportedOperatingSystem(body, context); - const exception = new models_0_1.UnsupportedOperatingSystem({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1UnsupportedParameterTypeResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1UnsupportedParameterType(body, context); - const exception = new models_1_1.UnsupportedParameterType({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_json1_1UnsupportedPlatformTypeResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_1UnsupportedPlatformType(body, context); - const exception = new models_0_1.UnsupportedPlatformType({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const serializeAws_json1_1AccountIdList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1Accounts = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1AddTagsToResourceRequest = (input, context) => { - return { - ...(input.ResourceId != null && { ResourceId: input.ResourceId }), - ...(input.ResourceType != null && { ResourceType: input.ResourceType }), - ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), - }; -}; -const serializeAws_json1_1AssociateOpsItemRelatedItemRequest = (input, context) => { - return { - ...(input.AssociationType != null && { AssociationType: input.AssociationType }), - ...(input.OpsItemId != null && { OpsItemId: input.OpsItemId }), - ...(input.ResourceType != null && { ResourceType: input.ResourceType }), - ...(input.ResourceUri != null && { ResourceUri: input.ResourceUri }), - }; -}; -const serializeAws_json1_1AssociationExecutionFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Type != null && { Type: input.Type }), - ...(input.Value != null && { Value: input.Value }), - }; -}; -const serializeAws_json1_1AssociationExecutionFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1AssociationExecutionFilter(entry, context); - }); -}; -const serializeAws_json1_1AssociationExecutionTargetsFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Value != null && { Value: input.Value }), - }; -}; -const serializeAws_json1_1AssociationExecutionTargetsFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1AssociationExecutionTargetsFilter(entry, context); - }); -}; -const serializeAws_json1_1AssociationFilter = (input, context) => { - return { - ...(input.key != null && { key: input.key }), - ...(input.value != null && { value: input.value }), - }; -}; -const serializeAws_json1_1AssociationFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1AssociationFilter(entry, context); - }); -}; -const serializeAws_json1_1AssociationIdList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1AssociationStatus = (input, context) => { - return { - ...(input.AdditionalInfo != null && { AdditionalInfo: input.AdditionalInfo }), - ...(input.Date != null && { Date: Math.round(input.Date.getTime() / 1000) }), - ...(input.Message != null && { Message: input.Message }), - ...(input.Name != null && { Name: input.Name }), - }; -}; -const serializeAws_json1_1AttachmentsSource = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Name != null && { Name: input.Name }), - ...(input.Values != null && { Values: serializeAws_json1_1AttachmentsSourceValues(input.Values, context) }), - }; -}; -const serializeAws_json1_1AttachmentsSourceList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1AttachmentsSource(entry, context); - }); -}; -const serializeAws_json1_1AttachmentsSourceValues = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1AutomationExecutionFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Values != null && { - Values: serializeAws_json1_1AutomationExecutionFilterValueList(input.Values, context), - }), - }; -}; -const serializeAws_json1_1AutomationExecutionFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1AutomationExecutionFilter(entry, context); - }); -}; -const serializeAws_json1_1AutomationExecutionFilterValueList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1AutomationParameterMap = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_1AutomationParameterValueList(value, context), - }; - }, {}); -}; -const serializeAws_json1_1AutomationParameterValueList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1BaselineOverride = (input, context) => { - return { - ...(input.ApprovalRules != null && { - ApprovalRules: serializeAws_json1_1PatchRuleGroup(input.ApprovalRules, context), - }), - ...(input.ApprovedPatches != null && { - ApprovedPatches: serializeAws_json1_1PatchIdList(input.ApprovedPatches, context), - }), - ...(input.ApprovedPatchesComplianceLevel != null && { - ApprovedPatchesComplianceLevel: input.ApprovedPatchesComplianceLevel, - }), - ...(input.ApprovedPatchesEnableNonSecurity != null && { - ApprovedPatchesEnableNonSecurity: input.ApprovedPatchesEnableNonSecurity, - }), - ...(input.GlobalFilters != null && { - GlobalFilters: serializeAws_json1_1PatchFilterGroup(input.GlobalFilters, context), - }), - ...(input.OperatingSystem != null && { OperatingSystem: input.OperatingSystem }), - ...(input.RejectedPatches != null && { - RejectedPatches: serializeAws_json1_1PatchIdList(input.RejectedPatches, context), - }), - ...(input.RejectedPatchesAction != null && { RejectedPatchesAction: input.RejectedPatchesAction }), - ...(input.Sources != null && { Sources: serializeAws_json1_1PatchSourceList(input.Sources, context) }), - }; -}; -const serializeAws_json1_1CalendarNameOrARNList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1CancelCommandRequest = (input, context) => { - return { - ...(input.CommandId != null && { CommandId: input.CommandId }), - ...(input.InstanceIds != null && { InstanceIds: serializeAws_json1_1InstanceIdList(input.InstanceIds, context) }), - }; -}; -const serializeAws_json1_1CancelMaintenanceWindowExecutionRequest = (input, context) => { - return { - ...(input.WindowExecutionId != null && { WindowExecutionId: input.WindowExecutionId }), - }; -}; -const serializeAws_json1_1CloudWatchOutputConfig = (input, context) => { - return { - ...(input.CloudWatchLogGroupName != null && { CloudWatchLogGroupName: input.CloudWatchLogGroupName }), - ...(input.CloudWatchOutputEnabled != null && { CloudWatchOutputEnabled: input.CloudWatchOutputEnabled }), - }; -}; -const serializeAws_json1_1CommandFilter = (input, context) => { - return { - ...(input.key != null && { key: input.key }), - ...(input.value != null && { value: input.value }), - }; -}; -const serializeAws_json1_1CommandFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1CommandFilter(entry, context); - }); -}; -const serializeAws_json1_1ComplianceExecutionSummary = (input, context) => { - return { - ...(input.ExecutionId != null && { ExecutionId: input.ExecutionId }), - ...(input.ExecutionTime != null && { ExecutionTime: Math.round(input.ExecutionTime.getTime() / 1000) }), - ...(input.ExecutionType != null && { ExecutionType: input.ExecutionType }), - }; -}; -const serializeAws_json1_1ComplianceItemDetails = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: value, - }; - }, {}); -}; -const serializeAws_json1_1ComplianceItemEntry = (input, context) => { - return { - ...(input.Details != null && { Details: serializeAws_json1_1ComplianceItemDetails(input.Details, context) }), - ...(input.Id != null && { Id: input.Id }), - ...(input.Severity != null && { Severity: input.Severity }), - ...(input.Status != null && { Status: input.Status }), - ...(input.Title != null && { Title: input.Title }), - }; -}; -const serializeAws_json1_1ComplianceItemEntryList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1ComplianceItemEntry(entry, context); - }); -}; -const serializeAws_json1_1ComplianceResourceIdList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1ComplianceResourceTypeList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1ComplianceStringFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Type != null && { Type: input.Type }), - ...(input.Values != null && { Values: serializeAws_json1_1ComplianceStringFilterValueList(input.Values, context) }), - }; -}; -const serializeAws_json1_1ComplianceStringFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1ComplianceStringFilter(entry, context); - }); -}; -const serializeAws_json1_1ComplianceStringFilterValueList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1CreateActivationRequest = (input, context) => { - return { - ...(input.DefaultInstanceName != null && { DefaultInstanceName: input.DefaultInstanceName }), - ...(input.Description != null && { Description: input.Description }), - ...(input.ExpirationDate != null && { ExpirationDate: Math.round(input.ExpirationDate.getTime() / 1000) }), - ...(input.IamRole != null && { IamRole: input.IamRole }), - ...(input.RegistrationLimit != null && { RegistrationLimit: input.RegistrationLimit }), - ...(input.RegistrationMetadata != null && { - RegistrationMetadata: serializeAws_json1_1RegistrationMetadataList(input.RegistrationMetadata, context), - }), - ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), - }; -}; -const serializeAws_json1_1CreateAssociationBatchRequest = (input, context) => { - return { - ...(input.Entries != null && { - Entries: serializeAws_json1_1CreateAssociationBatchRequestEntries(input.Entries, context), - }), - }; -}; -const serializeAws_json1_1CreateAssociationBatchRequestEntries = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1CreateAssociationBatchRequestEntry(entry, context); - }); -}; -const serializeAws_json1_1CreateAssociationBatchRequestEntry = (input, context) => { - return { - ...(input.ApplyOnlyAtCronInterval != null && { ApplyOnlyAtCronInterval: input.ApplyOnlyAtCronInterval }), - ...(input.AssociationName != null && { AssociationName: input.AssociationName }), - ...(input.AutomationTargetParameterName != null && { - AutomationTargetParameterName: input.AutomationTargetParameterName, - }), - ...(input.CalendarNames != null && { - CalendarNames: serializeAws_json1_1CalendarNameOrARNList(input.CalendarNames, context), - }), - ...(input.ComplianceSeverity != null && { ComplianceSeverity: input.ComplianceSeverity }), - ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), - ...(input.InstanceId != null && { InstanceId: input.InstanceId }), - ...(input.MaxConcurrency != null && { MaxConcurrency: input.MaxConcurrency }), - ...(input.MaxErrors != null && { MaxErrors: input.MaxErrors }), - ...(input.Name != null && { Name: input.Name }), - ...(input.OutputLocation != null && { - OutputLocation: serializeAws_json1_1InstanceAssociationOutputLocation(input.OutputLocation, context), - }), - ...(input.Parameters != null && { Parameters: serializeAws_json1_1Parameters(input.Parameters, context) }), - ...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }), - ...(input.ScheduleOffset != null && { ScheduleOffset: input.ScheduleOffset }), - ...(input.SyncCompliance != null && { SyncCompliance: input.SyncCompliance }), - ...(input.TargetLocations != null && { - TargetLocations: serializeAws_json1_1TargetLocations(input.TargetLocations, context), - }), - ...(input.TargetMaps != null && { TargetMaps: serializeAws_json1_1TargetMaps(input.TargetMaps, context) }), - ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), - }; -}; -const serializeAws_json1_1CreateAssociationRequest = (input, context) => { - return { - ...(input.ApplyOnlyAtCronInterval != null && { ApplyOnlyAtCronInterval: input.ApplyOnlyAtCronInterval }), - ...(input.AssociationName != null && { AssociationName: input.AssociationName }), - ...(input.AutomationTargetParameterName != null && { - AutomationTargetParameterName: input.AutomationTargetParameterName, - }), - ...(input.CalendarNames != null && { - CalendarNames: serializeAws_json1_1CalendarNameOrARNList(input.CalendarNames, context), - }), - ...(input.ComplianceSeverity != null && { ComplianceSeverity: input.ComplianceSeverity }), - ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), - ...(input.InstanceId != null && { InstanceId: input.InstanceId }), - ...(input.MaxConcurrency != null && { MaxConcurrency: input.MaxConcurrency }), - ...(input.MaxErrors != null && { MaxErrors: input.MaxErrors }), - ...(input.Name != null && { Name: input.Name }), - ...(input.OutputLocation != null && { - OutputLocation: serializeAws_json1_1InstanceAssociationOutputLocation(input.OutputLocation, context), - }), - ...(input.Parameters != null && { Parameters: serializeAws_json1_1Parameters(input.Parameters, context) }), - ...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }), - ...(input.ScheduleOffset != null && { ScheduleOffset: input.ScheduleOffset }), - ...(input.SyncCompliance != null && { SyncCompliance: input.SyncCompliance }), - ...(input.TargetLocations != null && { - TargetLocations: serializeAws_json1_1TargetLocations(input.TargetLocations, context), - }), - ...(input.TargetMaps != null && { TargetMaps: serializeAws_json1_1TargetMaps(input.TargetMaps, context) }), - ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), - }; -}; -const serializeAws_json1_1CreateDocumentRequest = (input, context) => { - return { - ...(input.Attachments != null && { - Attachments: serializeAws_json1_1AttachmentsSourceList(input.Attachments, context), - }), - ...(input.Content != null && { Content: input.Content }), - ...(input.DisplayName != null && { DisplayName: input.DisplayName }), - ...(input.DocumentFormat != null && { DocumentFormat: input.DocumentFormat }), - ...(input.DocumentType != null && { DocumentType: input.DocumentType }), - ...(input.Name != null && { Name: input.Name }), - ...(input.Requires != null && { Requires: serializeAws_json1_1DocumentRequiresList(input.Requires, context) }), - ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), - ...(input.TargetType != null && { TargetType: input.TargetType }), - ...(input.VersionName != null && { VersionName: input.VersionName }), - }; -}; -const serializeAws_json1_1CreateMaintenanceWindowRequest = (input, context) => { - var _a; - return { - ...(input.AllowUnassociatedTargets != null && { AllowUnassociatedTargets: input.AllowUnassociatedTargets }), - ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), - ...(input.Cutoff != null && { Cutoff: input.Cutoff }), - ...(input.Description != null && { Description: input.Description }), - ...(input.Duration != null && { Duration: input.Duration }), - ...(input.EndDate != null && { EndDate: input.EndDate }), - ...(input.Name != null && { Name: input.Name }), - ...(input.Schedule != null && { Schedule: input.Schedule }), - ...(input.ScheduleOffset != null && { ScheduleOffset: input.ScheduleOffset }), - ...(input.ScheduleTimezone != null && { ScheduleTimezone: input.ScheduleTimezone }), - ...(input.StartDate != null && { StartDate: input.StartDate }), - ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), - }; -}; -const serializeAws_json1_1CreateOpsItemRequest = (input, context) => { - return { - ...(input.ActualEndTime != null && { ActualEndTime: Math.round(input.ActualEndTime.getTime() / 1000) }), - ...(input.ActualStartTime != null && { ActualStartTime: Math.round(input.ActualStartTime.getTime() / 1000) }), - ...(input.Category != null && { Category: input.Category }), - ...(input.Description != null && { Description: input.Description }), - ...(input.Notifications != null && { - Notifications: serializeAws_json1_1OpsItemNotifications(input.Notifications, context), - }), - ...(input.OperationalData != null && { - OperationalData: serializeAws_json1_1OpsItemOperationalData(input.OperationalData, context), - }), - ...(input.OpsItemType != null && { OpsItemType: input.OpsItemType }), - ...(input.PlannedEndTime != null && { PlannedEndTime: Math.round(input.PlannedEndTime.getTime() / 1000) }), - ...(input.PlannedStartTime != null && { PlannedStartTime: Math.round(input.PlannedStartTime.getTime() / 1000) }), - ...(input.Priority != null && { Priority: input.Priority }), - ...(input.RelatedOpsItems != null && { - RelatedOpsItems: serializeAws_json1_1RelatedOpsItems(input.RelatedOpsItems, context), - }), - ...(input.Severity != null && { Severity: input.Severity }), - ...(input.Source != null && { Source: input.Source }), - ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), - ...(input.Title != null && { Title: input.Title }), - }; -}; -const serializeAws_json1_1CreateOpsMetadataRequest = (input, context) => { - return { - ...(input.Metadata != null && { Metadata: serializeAws_json1_1MetadataMap(input.Metadata, context) }), - ...(input.ResourceId != null && { ResourceId: input.ResourceId }), - ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), - }; -}; -const serializeAws_json1_1CreatePatchBaselineRequest = (input, context) => { - var _a; - return { - ...(input.ApprovalRules != null && { - ApprovalRules: serializeAws_json1_1PatchRuleGroup(input.ApprovalRules, context), - }), - ...(input.ApprovedPatches != null && { - ApprovedPatches: serializeAws_json1_1PatchIdList(input.ApprovedPatches, context), - }), - ...(input.ApprovedPatchesComplianceLevel != null && { - ApprovedPatchesComplianceLevel: input.ApprovedPatchesComplianceLevel, - }), - ...(input.ApprovedPatchesEnableNonSecurity != null && { - ApprovedPatchesEnableNonSecurity: input.ApprovedPatchesEnableNonSecurity, - }), - ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), - ...(input.Description != null && { Description: input.Description }), - ...(input.GlobalFilters != null && { - GlobalFilters: serializeAws_json1_1PatchFilterGroup(input.GlobalFilters, context), - }), - ...(input.Name != null && { Name: input.Name }), - ...(input.OperatingSystem != null && { OperatingSystem: input.OperatingSystem }), - ...(input.RejectedPatches != null && { - RejectedPatches: serializeAws_json1_1PatchIdList(input.RejectedPatches, context), - }), - ...(input.RejectedPatchesAction != null && { RejectedPatchesAction: input.RejectedPatchesAction }), - ...(input.Sources != null && { Sources: serializeAws_json1_1PatchSourceList(input.Sources, context) }), - ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), - }; -}; -const serializeAws_json1_1CreateResourceDataSyncRequest = (input, context) => { - return { - ...(input.S3Destination != null && { - S3Destination: serializeAws_json1_1ResourceDataSyncS3Destination(input.S3Destination, context), - }), - ...(input.SyncName != null && { SyncName: input.SyncName }), - ...(input.SyncSource != null && { - SyncSource: serializeAws_json1_1ResourceDataSyncSource(input.SyncSource, context), - }), - ...(input.SyncType != null && { SyncType: input.SyncType }), - }; -}; -const serializeAws_json1_1DeleteActivationRequest = (input, context) => { - return { - ...(input.ActivationId != null && { ActivationId: input.ActivationId }), - }; -}; -const serializeAws_json1_1DeleteAssociationRequest = (input, context) => { - return { - ...(input.AssociationId != null && { AssociationId: input.AssociationId }), - ...(input.InstanceId != null && { InstanceId: input.InstanceId }), - ...(input.Name != null && { Name: input.Name }), - }; -}; -const serializeAws_json1_1DeleteDocumentRequest = (input, context) => { - return { - ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), - ...(input.Force != null && { Force: input.Force }), - ...(input.Name != null && { Name: input.Name }), - ...(input.VersionName != null && { VersionName: input.VersionName }), - }; -}; -const serializeAws_json1_1DeleteInventoryRequest = (input, context) => { - var _a; - return { - ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), - ...(input.DryRun != null && { DryRun: input.DryRun }), - ...(input.SchemaDeleteOption != null && { SchemaDeleteOption: input.SchemaDeleteOption }), - ...(input.TypeName != null && { TypeName: input.TypeName }), - }; -}; -const serializeAws_json1_1DeleteMaintenanceWindowRequest = (input, context) => { - return { - ...(input.WindowId != null && { WindowId: input.WindowId }), - }; -}; -const serializeAws_json1_1DeleteOpsMetadataRequest = (input, context) => { - return { - ...(input.OpsMetadataArn != null && { OpsMetadataArn: input.OpsMetadataArn }), - }; -}; -const serializeAws_json1_1DeleteParameterRequest = (input, context) => { - return { - ...(input.Name != null && { Name: input.Name }), - }; -}; -const serializeAws_json1_1DeleteParametersRequest = (input, context) => { - return { - ...(input.Names != null && { Names: serializeAws_json1_1ParameterNameList(input.Names, context) }), - }; -}; -const serializeAws_json1_1DeletePatchBaselineRequest = (input, context) => { - return { - ...(input.BaselineId != null && { BaselineId: input.BaselineId }), - }; -}; -const serializeAws_json1_1DeleteResourceDataSyncRequest = (input, context) => { - return { - ...(input.SyncName != null && { SyncName: input.SyncName }), - ...(input.SyncType != null && { SyncType: input.SyncType }), - }; -}; -const serializeAws_json1_1DeregisterManagedInstanceRequest = (input, context) => { - return { - ...(input.InstanceId != null && { InstanceId: input.InstanceId }), - }; -}; -const serializeAws_json1_1DeregisterPatchBaselineForPatchGroupRequest = (input, context) => { - return { - ...(input.BaselineId != null && { BaselineId: input.BaselineId }), - ...(input.PatchGroup != null && { PatchGroup: input.PatchGroup }), - }; -}; -const serializeAws_json1_1DeregisterTargetFromMaintenanceWindowRequest = (input, context) => { - return { - ...(input.Safe != null && { Safe: input.Safe }), - ...(input.WindowId != null && { WindowId: input.WindowId }), - ...(input.WindowTargetId != null && { WindowTargetId: input.WindowTargetId }), - }; -}; -const serializeAws_json1_1DeregisterTaskFromMaintenanceWindowRequest = (input, context) => { - return { - ...(input.WindowId != null && { WindowId: input.WindowId }), - ...(input.WindowTaskId != null && { WindowTaskId: input.WindowTaskId }), - }; -}; -const serializeAws_json1_1DescribeActivationsFilter = (input, context) => { - return { - ...(input.FilterKey != null && { FilterKey: input.FilterKey }), - ...(input.FilterValues != null && { FilterValues: serializeAws_json1_1StringList(input.FilterValues, context) }), - }; -}; -const serializeAws_json1_1DescribeActivationsFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1DescribeActivationsFilter(entry, context); - }); -}; -const serializeAws_json1_1DescribeActivationsRequest = (input, context) => { - return { - ...(input.Filters != null && { - Filters: serializeAws_json1_1DescribeActivationsFilterList(input.Filters, context), - }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1DescribeAssociationExecutionsRequest = (input, context) => { - return { - ...(input.AssociationId != null && { AssociationId: input.AssociationId }), - ...(input.Filters != null && { - Filters: serializeAws_json1_1AssociationExecutionFilterList(input.Filters, context), - }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1DescribeAssociationExecutionTargetsRequest = (input, context) => { - return { - ...(input.AssociationId != null && { AssociationId: input.AssociationId }), - ...(input.ExecutionId != null && { ExecutionId: input.ExecutionId }), - ...(input.Filters != null && { - Filters: serializeAws_json1_1AssociationExecutionTargetsFilterList(input.Filters, context), - }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1DescribeAssociationRequest = (input, context) => { - return { - ...(input.AssociationId != null && { AssociationId: input.AssociationId }), - ...(input.AssociationVersion != null && { AssociationVersion: input.AssociationVersion }), - ...(input.InstanceId != null && { InstanceId: input.InstanceId }), - ...(input.Name != null && { Name: input.Name }), - }; -}; -const serializeAws_json1_1DescribeAutomationExecutionsRequest = (input, context) => { - return { - ...(input.Filters != null && { - Filters: serializeAws_json1_1AutomationExecutionFilterList(input.Filters, context), - }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1DescribeAutomationStepExecutionsRequest = (input, context) => { - return { - ...(input.AutomationExecutionId != null && { AutomationExecutionId: input.AutomationExecutionId }), - ...(input.Filters != null && { Filters: serializeAws_json1_1StepExecutionFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.ReverseOrder != null && { ReverseOrder: input.ReverseOrder }), - }; -}; -const serializeAws_json1_1DescribeAvailablePatchesRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1PatchOrchestratorFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1DescribeDocumentPermissionRequest = (input, context) => { - return { - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.Name != null && { Name: input.Name }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.PermissionType != null && { PermissionType: input.PermissionType }), - }; -}; -const serializeAws_json1_1DescribeDocumentRequest = (input, context) => { - return { - ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), - ...(input.Name != null && { Name: input.Name }), - ...(input.VersionName != null && { VersionName: input.VersionName }), - }; -}; -const serializeAws_json1_1DescribeEffectiveInstanceAssociationsRequest = (input, context) => { - return { - ...(input.InstanceId != null && { InstanceId: input.InstanceId }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1DescribeEffectivePatchesForPatchBaselineRequest = (input, context) => { - return { - ...(input.BaselineId != null && { BaselineId: input.BaselineId }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1DescribeInstanceAssociationsStatusRequest = (input, context) => { - return { - ...(input.InstanceId != null && { InstanceId: input.InstanceId }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1DescribeInstanceInformationRequest = (input, context) => { - return { - ...(input.Filters != null && { - Filters: serializeAws_json1_1InstanceInformationStringFilterList(input.Filters, context), - }), - ...(input.InstanceInformationFilterList != null && { - InstanceInformationFilterList: serializeAws_json1_1InstanceInformationFilterList(input.InstanceInformationFilterList, context), - }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1DescribeInstancePatchesRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1PatchOrchestratorFilterList(input.Filters, context) }), - ...(input.InstanceId != null && { InstanceId: input.InstanceId }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1DescribeInstancePatchStatesForPatchGroupRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1InstancePatchStateFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.PatchGroup != null && { PatchGroup: input.PatchGroup }), - }; -}; -const serializeAws_json1_1DescribeInstancePatchStatesRequest = (input, context) => { - return { - ...(input.InstanceIds != null && { InstanceIds: serializeAws_json1_1InstanceIdList(input.InstanceIds, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1DescribeInventoryDeletionsRequest = (input, context) => { - return { - ...(input.DeletionId != null && { DeletionId: input.DeletionId }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1DescribeMaintenanceWindowExecutionsRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1MaintenanceWindowFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.WindowId != null && { WindowId: input.WindowId }), - }; -}; -const serializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1MaintenanceWindowFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.TaskId != null && { TaskId: input.TaskId }), - ...(input.WindowExecutionId != null && { WindowExecutionId: input.WindowExecutionId }), - }; -}; -const serializeAws_json1_1DescribeMaintenanceWindowExecutionTasksRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1MaintenanceWindowFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.WindowExecutionId != null && { WindowExecutionId: input.WindowExecutionId }), - }; -}; -const serializeAws_json1_1DescribeMaintenanceWindowScheduleRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1PatchOrchestratorFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.ResourceType != null && { ResourceType: input.ResourceType }), - ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), - ...(input.WindowId != null && { WindowId: input.WindowId }), - }; -}; -const serializeAws_json1_1DescribeMaintenanceWindowsForTargetRequest = (input, context) => { - return { - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.ResourceType != null && { ResourceType: input.ResourceType }), - ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), - }; -}; -const serializeAws_json1_1DescribeMaintenanceWindowsRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1MaintenanceWindowFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1DescribeMaintenanceWindowTargetsRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1MaintenanceWindowFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.WindowId != null && { WindowId: input.WindowId }), - }; -}; -const serializeAws_json1_1DescribeMaintenanceWindowTasksRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1MaintenanceWindowFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.WindowId != null && { WindowId: input.WindowId }), - }; -}; -const serializeAws_json1_1DescribeOpsItemsRequest = (input, context) => { - return { - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.OpsItemFilters != null && { - OpsItemFilters: serializeAws_json1_1OpsItemFilters(input.OpsItemFilters, context), - }), - }; -}; -const serializeAws_json1_1DescribeParametersRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1ParametersFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.ParameterFilters != null && { - ParameterFilters: serializeAws_json1_1ParameterStringFilterList(input.ParameterFilters, context), - }), - }; -}; -const serializeAws_json1_1DescribePatchBaselinesRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1PatchOrchestratorFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1DescribePatchGroupsRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1PatchOrchestratorFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1DescribePatchGroupStateRequest = (input, context) => { - return { - ...(input.PatchGroup != null && { PatchGroup: input.PatchGroup }), - }; -}; -const serializeAws_json1_1DescribePatchPropertiesRequest = (input, context) => { - return { - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.OperatingSystem != null && { OperatingSystem: input.OperatingSystem }), - ...(input.PatchSet != null && { PatchSet: input.PatchSet }), - ...(input.Property != null && { Property: input.Property }), - }; -}; -const serializeAws_json1_1DescribeSessionsRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1SessionFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.State != null && { State: input.State }), - }; -}; -const serializeAws_json1_1DisassociateOpsItemRelatedItemRequest = (input, context) => { - return { - ...(input.AssociationId != null && { AssociationId: input.AssociationId }), - ...(input.OpsItemId != null && { OpsItemId: input.OpsItemId }), - }; -}; -const serializeAws_json1_1DocumentFilter = (input, context) => { - return { - ...(input.key != null && { key: input.key }), - ...(input.value != null && { value: input.value }), - }; -}; -const serializeAws_json1_1DocumentFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1DocumentFilter(entry, context); - }); -}; -const serializeAws_json1_1DocumentKeyValuesFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Values != null && { Values: serializeAws_json1_1DocumentKeyValuesFilterValues(input.Values, context) }), - }; -}; -const serializeAws_json1_1DocumentKeyValuesFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1DocumentKeyValuesFilter(entry, context); - }); -}; -const serializeAws_json1_1DocumentKeyValuesFilterValues = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1DocumentRequires = (input, context) => { - return { - ...(input.Name != null && { Name: input.Name }), - ...(input.Version != null && { Version: input.Version }), - }; -}; -const serializeAws_json1_1DocumentRequiresList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1DocumentRequires(entry, context); - }); -}; -const serializeAws_json1_1DocumentReviewCommentList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1DocumentReviewCommentSource(entry, context); - }); -}; -const serializeAws_json1_1DocumentReviewCommentSource = (input, context) => { - return { - ...(input.Content != null && { Content: input.Content }), - ...(input.Type != null && { Type: input.Type }), - }; -}; -const serializeAws_json1_1DocumentReviews = (input, context) => { - return { - ...(input.Action != null && { Action: input.Action }), - ...(input.Comment != null && { Comment: serializeAws_json1_1DocumentReviewCommentList(input.Comment, context) }), - }; -}; -const serializeAws_json1_1GetAutomationExecutionRequest = (input, context) => { - return { - ...(input.AutomationExecutionId != null && { AutomationExecutionId: input.AutomationExecutionId }), - }; -}; -const serializeAws_json1_1GetCalendarStateRequest = (input, context) => { - return { - ...(input.AtTime != null && { AtTime: input.AtTime }), - ...(input.CalendarNames != null && { - CalendarNames: serializeAws_json1_1CalendarNameOrARNList(input.CalendarNames, context), - }), - }; -}; -const serializeAws_json1_1GetCommandInvocationRequest = (input, context) => { - return { - ...(input.CommandId != null && { CommandId: input.CommandId }), - ...(input.InstanceId != null && { InstanceId: input.InstanceId }), - ...(input.PluginName != null && { PluginName: input.PluginName }), - }; -}; -const serializeAws_json1_1GetConnectionStatusRequest = (input, context) => { - return { - ...(input.Target != null && { Target: input.Target }), - }; -}; -const serializeAws_json1_1GetDefaultPatchBaselineRequest = (input, context) => { - return { - ...(input.OperatingSystem != null && { OperatingSystem: input.OperatingSystem }), - }; -}; -const serializeAws_json1_1GetDeployablePatchSnapshotForInstanceRequest = (input, context) => { - return { - ...(input.BaselineOverride != null && { - BaselineOverride: serializeAws_json1_1BaselineOverride(input.BaselineOverride, context), - }), - ...(input.InstanceId != null && { InstanceId: input.InstanceId }), - ...(input.SnapshotId != null && { SnapshotId: input.SnapshotId }), - }; -}; -const serializeAws_json1_1GetDocumentRequest = (input, context) => { - return { - ...(input.DocumentFormat != null && { DocumentFormat: input.DocumentFormat }), - ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), - ...(input.Name != null && { Name: input.Name }), - ...(input.VersionName != null && { VersionName: input.VersionName }), - }; -}; -const serializeAws_json1_1GetInventoryRequest = (input, context) => { - return { - ...(input.Aggregators != null && { - Aggregators: serializeAws_json1_1InventoryAggregatorList(input.Aggregators, context), - }), - ...(input.Filters != null && { Filters: serializeAws_json1_1InventoryFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.ResultAttributes != null && { - ResultAttributes: serializeAws_json1_1ResultAttributeList(input.ResultAttributes, context), - }), - }; -}; -const serializeAws_json1_1GetInventorySchemaRequest = (input, context) => { - return { - ...(input.Aggregator != null && { Aggregator: input.Aggregator }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.SubType != null && { SubType: input.SubType }), - ...(input.TypeName != null && { TypeName: input.TypeName }), - }; -}; -const serializeAws_json1_1GetMaintenanceWindowExecutionRequest = (input, context) => { - return { - ...(input.WindowExecutionId != null && { WindowExecutionId: input.WindowExecutionId }), - }; -}; -const serializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationRequest = (input, context) => { - return { - ...(input.InvocationId != null && { InvocationId: input.InvocationId }), - ...(input.TaskId != null && { TaskId: input.TaskId }), - ...(input.WindowExecutionId != null && { WindowExecutionId: input.WindowExecutionId }), - }; -}; -const serializeAws_json1_1GetMaintenanceWindowExecutionTaskRequest = (input, context) => { - return { - ...(input.TaskId != null && { TaskId: input.TaskId }), - ...(input.WindowExecutionId != null && { WindowExecutionId: input.WindowExecutionId }), - }; -}; -const serializeAws_json1_1GetMaintenanceWindowRequest = (input, context) => { - return { - ...(input.WindowId != null && { WindowId: input.WindowId }), - }; -}; -const serializeAws_json1_1GetMaintenanceWindowTaskRequest = (input, context) => { - return { - ...(input.WindowId != null && { WindowId: input.WindowId }), - ...(input.WindowTaskId != null && { WindowTaskId: input.WindowTaskId }), - }; -}; -const serializeAws_json1_1GetOpsItemRequest = (input, context) => { - return { - ...(input.OpsItemId != null && { OpsItemId: input.OpsItemId }), - }; -}; -const serializeAws_json1_1GetOpsMetadataRequest = (input, context) => { - return { - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.OpsMetadataArn != null && { OpsMetadataArn: input.OpsMetadataArn }), - }; -}; -const serializeAws_json1_1GetOpsSummaryRequest = (input, context) => { - return { - ...(input.Aggregators != null && { - Aggregators: serializeAws_json1_1OpsAggregatorList(input.Aggregators, context), - }), - ...(input.Filters != null && { Filters: serializeAws_json1_1OpsFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.ResultAttributes != null && { - ResultAttributes: serializeAws_json1_1OpsResultAttributeList(input.ResultAttributes, context), - }), - ...(input.SyncName != null && { SyncName: input.SyncName }), - }; -}; -const serializeAws_json1_1GetParameterHistoryRequest = (input, context) => { - return { - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.Name != null && { Name: input.Name }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.WithDecryption != null && { WithDecryption: input.WithDecryption }), - }; -}; -const serializeAws_json1_1GetParameterRequest = (input, context) => { - return { - ...(input.Name != null && { Name: input.Name }), - ...(input.WithDecryption != null && { WithDecryption: input.WithDecryption }), - }; -}; -const serializeAws_json1_1GetParametersByPathRequest = (input, context) => { - return { - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.ParameterFilters != null && { - ParameterFilters: serializeAws_json1_1ParameterStringFilterList(input.ParameterFilters, context), - }), - ...(input.Path != null && { Path: input.Path }), - ...(input.Recursive != null && { Recursive: input.Recursive }), - ...(input.WithDecryption != null && { WithDecryption: input.WithDecryption }), - }; -}; -const serializeAws_json1_1GetParametersRequest = (input, context) => { - return { - ...(input.Names != null && { Names: serializeAws_json1_1ParameterNameList(input.Names, context) }), - ...(input.WithDecryption != null && { WithDecryption: input.WithDecryption }), - }; -}; -const serializeAws_json1_1GetPatchBaselineForPatchGroupRequest = (input, context) => { - return { - ...(input.OperatingSystem != null && { OperatingSystem: input.OperatingSystem }), - ...(input.PatchGroup != null && { PatchGroup: input.PatchGroup }), - }; -}; -const serializeAws_json1_1GetPatchBaselineRequest = (input, context) => { - return { - ...(input.BaselineId != null && { BaselineId: input.BaselineId }), - }; -}; -const serializeAws_json1_1GetServiceSettingRequest = (input, context) => { - return { - ...(input.SettingId != null && { SettingId: input.SettingId }), - }; -}; -const serializeAws_json1_1InstanceAssociationOutputLocation = (input, context) => { - return { - ...(input.S3Location != null && { S3Location: serializeAws_json1_1S3OutputLocation(input.S3Location, context) }), - }; -}; -const serializeAws_json1_1InstanceIdList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1InstanceInformationFilter = (input, context) => { - return { - ...(input.key != null && { key: input.key }), - ...(input.valueSet != null && { - valueSet: serializeAws_json1_1InstanceInformationFilterValueSet(input.valueSet, context), - }), - }; -}; -const serializeAws_json1_1InstanceInformationFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1InstanceInformationFilter(entry, context); - }); -}; -const serializeAws_json1_1InstanceInformationFilterValueSet = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1InstanceInformationStringFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Values != null && { - Values: serializeAws_json1_1InstanceInformationFilterValueSet(input.Values, context), - }), - }; -}; -const serializeAws_json1_1InstanceInformationStringFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1InstanceInformationStringFilter(entry, context); - }); -}; -const serializeAws_json1_1InstancePatchStateFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Type != null && { Type: input.Type }), - ...(input.Values != null && { Values: serializeAws_json1_1InstancePatchStateFilterValues(input.Values, context) }), - }; -}; -const serializeAws_json1_1InstancePatchStateFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1InstancePatchStateFilter(entry, context); - }); -}; -const serializeAws_json1_1InstancePatchStateFilterValues = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1InventoryAggregator = (input, context) => { - return { - ...(input.Aggregators != null && { - Aggregators: serializeAws_json1_1InventoryAggregatorList(input.Aggregators, context), - }), - ...(input.Expression != null && { Expression: input.Expression }), - ...(input.Groups != null && { Groups: serializeAws_json1_1InventoryGroupList(input.Groups, context) }), - }; -}; -const serializeAws_json1_1InventoryAggregatorList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1InventoryAggregator(entry, context); - }); -}; -const serializeAws_json1_1InventoryFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Type != null && { Type: input.Type }), - ...(input.Values != null && { Values: serializeAws_json1_1InventoryFilterValueList(input.Values, context) }), - }; -}; -const serializeAws_json1_1InventoryFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1InventoryFilter(entry, context); - }); -}; -const serializeAws_json1_1InventoryFilterValueList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1InventoryGroup = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1InventoryFilterList(input.Filters, context) }), - ...(input.Name != null && { Name: input.Name }), - }; -}; -const serializeAws_json1_1InventoryGroupList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1InventoryGroup(entry, context); - }); -}; -const serializeAws_json1_1InventoryItem = (input, context) => { - return { - ...(input.CaptureTime != null && { CaptureTime: input.CaptureTime }), - ...(input.Content != null && { Content: serializeAws_json1_1InventoryItemEntryList(input.Content, context) }), - ...(input.ContentHash != null && { ContentHash: input.ContentHash }), - ...(input.Context != null && { Context: serializeAws_json1_1InventoryItemContentContext(input.Context, context) }), - ...(input.SchemaVersion != null && { SchemaVersion: input.SchemaVersion }), - ...(input.TypeName != null && { TypeName: input.TypeName }), - }; -}; -const serializeAws_json1_1InventoryItemContentContext = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: value, - }; - }, {}); -}; -const serializeAws_json1_1InventoryItemEntry = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: value, - }; - }, {}); -}; -const serializeAws_json1_1InventoryItemEntryList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1InventoryItemEntry(entry, context); - }); -}; -const serializeAws_json1_1InventoryItemList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1InventoryItem(entry, context); - }); -}; -const serializeAws_json1_1KeyList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1LabelParameterVersionRequest = (input, context) => { - return { - ...(input.Labels != null && { Labels: serializeAws_json1_1ParameterLabelList(input.Labels, context) }), - ...(input.Name != null && { Name: input.Name }), - ...(input.ParameterVersion != null && { ParameterVersion: input.ParameterVersion }), - }; -}; -const serializeAws_json1_1ListAssociationsRequest = (input, context) => { - return { - ...(input.AssociationFilterList != null && { - AssociationFilterList: serializeAws_json1_1AssociationFilterList(input.AssociationFilterList, context), - }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1ListAssociationVersionsRequest = (input, context) => { - return { - ...(input.AssociationId != null && { AssociationId: input.AssociationId }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1ListCommandInvocationsRequest = (input, context) => { - return { - ...(input.CommandId != null && { CommandId: input.CommandId }), - ...(input.Details != null && { Details: input.Details }), - ...(input.Filters != null && { Filters: serializeAws_json1_1CommandFilterList(input.Filters, context) }), - ...(input.InstanceId != null && { InstanceId: input.InstanceId }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1ListCommandsRequest = (input, context) => { - return { - ...(input.CommandId != null && { CommandId: input.CommandId }), - ...(input.Filters != null && { Filters: serializeAws_json1_1CommandFilterList(input.Filters, context) }), - ...(input.InstanceId != null && { InstanceId: input.InstanceId }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1ListComplianceItemsRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1ComplianceStringFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.ResourceIds != null && { - ResourceIds: serializeAws_json1_1ComplianceResourceIdList(input.ResourceIds, context), - }), - ...(input.ResourceTypes != null && { - ResourceTypes: serializeAws_json1_1ComplianceResourceTypeList(input.ResourceTypes, context), - }), - }; -}; -const serializeAws_json1_1ListComplianceSummariesRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1ComplianceStringFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1ListDocumentMetadataHistoryRequest = (input, context) => { - return { - ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.Metadata != null && { Metadata: input.Metadata }), - ...(input.Name != null && { Name: input.Name }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1ListDocumentsRequest = (input, context) => { - return { - ...(input.DocumentFilterList != null && { - DocumentFilterList: serializeAws_json1_1DocumentFilterList(input.DocumentFilterList, context), - }), - ...(input.Filters != null && { Filters: serializeAws_json1_1DocumentKeyValuesFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1ListDocumentVersionsRequest = (input, context) => { - return { - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.Name != null && { Name: input.Name }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1ListInventoryEntriesRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1InventoryFilterList(input.Filters, context) }), - ...(input.InstanceId != null && { InstanceId: input.InstanceId }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.TypeName != null && { TypeName: input.TypeName }), - }; -}; -const serializeAws_json1_1ListOpsItemEventsRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1OpsItemEventFilters(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1ListOpsItemRelatedItemsRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1OpsItemRelatedItemsFilters(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.OpsItemId != null && { OpsItemId: input.OpsItemId }), - }; -}; -const serializeAws_json1_1ListOpsMetadataRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1OpsMetadataFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1ListResourceComplianceSummariesRequest = (input, context) => { - return { - ...(input.Filters != null && { Filters: serializeAws_json1_1ComplianceStringFilterList(input.Filters, context) }), - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - }; -}; -const serializeAws_json1_1ListResourceDataSyncRequest = (input, context) => { - return { - ...(input.MaxResults != null && { MaxResults: input.MaxResults }), - ...(input.NextToken != null && { NextToken: input.NextToken }), - ...(input.SyncType != null && { SyncType: input.SyncType }), - }; -}; -const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => { - return { - ...(input.ResourceId != null && { ResourceId: input.ResourceId }), - ...(input.ResourceType != null && { ResourceType: input.ResourceType }), - }; -}; -const serializeAws_json1_1LoggingInfo = (input, context) => { - return { - ...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }), - ...(input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }), - ...(input.S3Region != null && { S3Region: input.S3Region }), - }; -}; -const serializeAws_json1_1MaintenanceWindowAutomationParameters = (input, context) => { - return { - ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), - ...(input.Parameters != null && { - Parameters: serializeAws_json1_1AutomationParameterMap(input.Parameters, context), - }), - }; -}; -const serializeAws_json1_1MaintenanceWindowFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Values != null && { Values: serializeAws_json1_1MaintenanceWindowFilterValues(input.Values, context) }), - }; -}; -const serializeAws_json1_1MaintenanceWindowFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1MaintenanceWindowFilter(entry, context); - }); -}; -const serializeAws_json1_1MaintenanceWindowFilterValues = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1MaintenanceWindowLambdaParameters = (input, context) => { - return { - ...(input.ClientContext != null && { ClientContext: input.ClientContext }), - ...(input.Payload != null && { Payload: context.base64Encoder(input.Payload) }), - ...(input.Qualifier != null && { Qualifier: input.Qualifier }), - }; -}; -const serializeAws_json1_1MaintenanceWindowRunCommandParameters = (input, context) => { - return { - ...(input.CloudWatchOutputConfig != null && { - CloudWatchOutputConfig: serializeAws_json1_1CloudWatchOutputConfig(input.CloudWatchOutputConfig, context), - }), - ...(input.Comment != null && { Comment: input.Comment }), - ...(input.DocumentHash != null && { DocumentHash: input.DocumentHash }), - ...(input.DocumentHashType != null && { DocumentHashType: input.DocumentHashType }), - ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), - ...(input.NotificationConfig != null && { - NotificationConfig: serializeAws_json1_1NotificationConfig(input.NotificationConfig, context), - }), - ...(input.OutputS3BucketName != null && { OutputS3BucketName: input.OutputS3BucketName }), - ...(input.OutputS3KeyPrefix != null && { OutputS3KeyPrefix: input.OutputS3KeyPrefix }), - ...(input.Parameters != null && { Parameters: serializeAws_json1_1Parameters(input.Parameters, context) }), - ...(input.ServiceRoleArn != null && { ServiceRoleArn: input.ServiceRoleArn }), - ...(input.TimeoutSeconds != null && { TimeoutSeconds: input.TimeoutSeconds }), - }; -}; -const serializeAws_json1_1MaintenanceWindowStepFunctionsParameters = (input, context) => { - return { - ...(input.Input != null && { Input: input.Input }), - ...(input.Name != null && { Name: input.Name }), - }; -}; -const serializeAws_json1_1MaintenanceWindowTaskInvocationParameters = (input, context) => { - return { - ...(input.Automation != null && { - Automation: serializeAws_json1_1MaintenanceWindowAutomationParameters(input.Automation, context), - }), - ...(input.Lambda != null && { - Lambda: serializeAws_json1_1MaintenanceWindowLambdaParameters(input.Lambda, context), - }), - ...(input.RunCommand != null && { - RunCommand: serializeAws_json1_1MaintenanceWindowRunCommandParameters(input.RunCommand, context), - }), - ...(input.StepFunctions != null && { - StepFunctions: serializeAws_json1_1MaintenanceWindowStepFunctionsParameters(input.StepFunctions, context), - }), - }; -}; -const serializeAws_json1_1MaintenanceWindowTaskParameters = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_1MaintenanceWindowTaskParameterValueExpression(value, context), - }; - }, {}); -}; -const serializeAws_json1_1MaintenanceWindowTaskParameterValueExpression = (input, context) => { - return { - ...(input.Values != null && { - Values: serializeAws_json1_1MaintenanceWindowTaskParameterValueList(input.Values, context), - }), - }; -}; -const serializeAws_json1_1MaintenanceWindowTaskParameterValueList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1MetadataKeysToDeleteList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1MetadataMap = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_1MetadataValue(value, context), - }; - }, {}); -}; -const serializeAws_json1_1MetadataValue = (input, context) => { - return { - ...(input.Value != null && { Value: input.Value }), - }; -}; -const serializeAws_json1_1ModifyDocumentPermissionRequest = (input, context) => { - return { - ...(input.AccountIdsToAdd != null && { - AccountIdsToAdd: serializeAws_json1_1AccountIdList(input.AccountIdsToAdd, context), - }), - ...(input.AccountIdsToRemove != null && { - AccountIdsToRemove: serializeAws_json1_1AccountIdList(input.AccountIdsToRemove, context), - }), - ...(input.Name != null && { Name: input.Name }), - ...(input.PermissionType != null && { PermissionType: input.PermissionType }), - ...(input.SharedDocumentVersion != null && { SharedDocumentVersion: input.SharedDocumentVersion }), - }; -}; -const serializeAws_json1_1NotificationConfig = (input, context) => { - return { - ...(input.NotificationArn != null && { NotificationArn: input.NotificationArn }), - ...(input.NotificationEvents != null && { - NotificationEvents: serializeAws_json1_1NotificationEventList(input.NotificationEvents, context), - }), - ...(input.NotificationType != null && { NotificationType: input.NotificationType }), - }; -}; -const serializeAws_json1_1NotificationEventList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1OpsAggregator = (input, context) => { - return { - ...(input.AggregatorType != null && { AggregatorType: input.AggregatorType }), - ...(input.Aggregators != null && { - Aggregators: serializeAws_json1_1OpsAggregatorList(input.Aggregators, context), - }), - ...(input.AttributeName != null && { AttributeName: input.AttributeName }), - ...(input.Filters != null && { Filters: serializeAws_json1_1OpsFilterList(input.Filters, context) }), - ...(input.TypeName != null && { TypeName: input.TypeName }), - ...(input.Values != null && { Values: serializeAws_json1_1OpsAggregatorValueMap(input.Values, context) }), - }; -}; -const serializeAws_json1_1OpsAggregatorList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1OpsAggregator(entry, context); - }); -}; -const serializeAws_json1_1OpsAggregatorValueMap = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: value, - }; - }, {}); -}; -const serializeAws_json1_1OpsFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Type != null && { Type: input.Type }), - ...(input.Values != null && { Values: serializeAws_json1_1OpsFilterValueList(input.Values, context) }), - }; -}; -const serializeAws_json1_1OpsFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1OpsFilter(entry, context); - }); -}; -const serializeAws_json1_1OpsFilterValueList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1OpsItemDataValue = (input, context) => { - return { - ...(input.Type != null && { Type: input.Type }), - ...(input.Value != null && { Value: input.Value }), - }; -}; -const serializeAws_json1_1OpsItemEventFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Operator != null && { Operator: input.Operator }), - ...(input.Values != null && { Values: serializeAws_json1_1OpsItemEventFilterValues(input.Values, context) }), - }; -}; -const serializeAws_json1_1OpsItemEventFilters = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1OpsItemEventFilter(entry, context); - }); -}; -const serializeAws_json1_1OpsItemEventFilterValues = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1OpsItemFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Operator != null && { Operator: input.Operator }), - ...(input.Values != null && { Values: serializeAws_json1_1OpsItemFilterValues(input.Values, context) }), - }; -}; -const serializeAws_json1_1OpsItemFilters = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1OpsItemFilter(entry, context); - }); -}; -const serializeAws_json1_1OpsItemFilterValues = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1OpsItemNotification = (input, context) => { - return { - ...(input.Arn != null && { Arn: input.Arn }), - }; -}; -const serializeAws_json1_1OpsItemNotifications = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1OpsItemNotification(entry, context); - }); -}; -const serializeAws_json1_1OpsItemOperationalData = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_1OpsItemDataValue(value, context), - }; - }, {}); -}; -const serializeAws_json1_1OpsItemOpsDataKeysList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1OpsItemRelatedItemsFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Operator != null && { Operator: input.Operator }), - ...(input.Values != null && { Values: serializeAws_json1_1OpsItemRelatedItemsFilterValues(input.Values, context) }), - }; -}; -const serializeAws_json1_1OpsItemRelatedItemsFilters = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1OpsItemRelatedItemsFilter(entry, context); - }); -}; -const serializeAws_json1_1OpsItemRelatedItemsFilterValues = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1OpsMetadataFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Values != null && { Values: serializeAws_json1_1OpsMetadataFilterValueList(input.Values, context) }), - }; -}; -const serializeAws_json1_1OpsMetadataFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1OpsMetadataFilter(entry, context); - }); -}; -const serializeAws_json1_1OpsMetadataFilterValueList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1OpsResultAttribute = (input, context) => { - return { - ...(input.TypeName != null && { TypeName: input.TypeName }), - }; -}; -const serializeAws_json1_1OpsResultAttributeList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1OpsResultAttribute(entry, context); - }); -}; -const serializeAws_json1_1ParameterLabelList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1ParameterNameList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1Parameters = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_1ParameterValueList(value, context), - }; - }, {}); -}; -const serializeAws_json1_1ParametersFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Values != null && { Values: serializeAws_json1_1ParametersFilterValueList(input.Values, context) }), - }; -}; -const serializeAws_json1_1ParametersFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1ParametersFilter(entry, context); - }); -}; -const serializeAws_json1_1ParametersFilterValueList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1ParameterStringFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Option != null && { Option: input.Option }), - ...(input.Values != null && { Values: serializeAws_json1_1ParameterStringFilterValueList(input.Values, context) }), - }; -}; -const serializeAws_json1_1ParameterStringFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1ParameterStringFilter(entry, context); - }); -}; -const serializeAws_json1_1ParameterStringFilterValueList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1ParameterValueList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1PatchFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Values != null && { Values: serializeAws_json1_1PatchFilterValueList(input.Values, context) }), - }; -}; -const serializeAws_json1_1PatchFilterGroup = (input, context) => { - return { - ...(input.PatchFilters != null && { - PatchFilters: serializeAws_json1_1PatchFilterList(input.PatchFilters, context), - }), - }; -}; -const serializeAws_json1_1PatchFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1PatchFilter(entry, context); - }); -}; -const serializeAws_json1_1PatchFilterValueList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1PatchIdList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1PatchOrchestratorFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Values != null && { Values: serializeAws_json1_1PatchOrchestratorFilterValues(input.Values, context) }), - }; -}; -const serializeAws_json1_1PatchOrchestratorFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1PatchOrchestratorFilter(entry, context); - }); -}; -const serializeAws_json1_1PatchOrchestratorFilterValues = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1PatchRule = (input, context) => { - return { - ...(input.ApproveAfterDays != null && { ApproveAfterDays: input.ApproveAfterDays }), - ...(input.ApproveUntilDate != null && { ApproveUntilDate: input.ApproveUntilDate }), - ...(input.ComplianceLevel != null && { ComplianceLevel: input.ComplianceLevel }), - ...(input.EnableNonSecurity != null && { EnableNonSecurity: input.EnableNonSecurity }), - ...(input.PatchFilterGroup != null && { - PatchFilterGroup: serializeAws_json1_1PatchFilterGroup(input.PatchFilterGroup, context), - }), - }; -}; -const serializeAws_json1_1PatchRuleGroup = (input, context) => { - return { - ...(input.PatchRules != null && { PatchRules: serializeAws_json1_1PatchRuleList(input.PatchRules, context) }), - }; -}; -const serializeAws_json1_1PatchRuleList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1PatchRule(entry, context); - }); -}; -const serializeAws_json1_1PatchSource = (input, context) => { - return { - ...(input.Configuration != null && { Configuration: input.Configuration }), - ...(input.Name != null && { Name: input.Name }), - ...(input.Products != null && { Products: serializeAws_json1_1PatchSourceProductList(input.Products, context) }), - }; -}; -const serializeAws_json1_1PatchSourceList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1PatchSource(entry, context); - }); -}; -const serializeAws_json1_1PatchSourceProductList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1PutComplianceItemsRequest = (input, context) => { - return { - ...(input.ComplianceType != null && { ComplianceType: input.ComplianceType }), - ...(input.ExecutionSummary != null && { - ExecutionSummary: serializeAws_json1_1ComplianceExecutionSummary(input.ExecutionSummary, context), - }), - ...(input.ItemContentHash != null && { ItemContentHash: input.ItemContentHash }), - ...(input.Items != null && { Items: serializeAws_json1_1ComplianceItemEntryList(input.Items, context) }), - ...(input.ResourceId != null && { ResourceId: input.ResourceId }), - ...(input.ResourceType != null && { ResourceType: input.ResourceType }), - ...(input.UploadType != null && { UploadType: input.UploadType }), - }; -}; -const serializeAws_json1_1PutInventoryRequest = (input, context) => { - return { - ...(input.InstanceId != null && { InstanceId: input.InstanceId }), - ...(input.Items != null && { Items: serializeAws_json1_1InventoryItemList(input.Items, context) }), - }; -}; -const serializeAws_json1_1PutParameterRequest = (input, context) => { - return { - ...(input.AllowedPattern != null && { AllowedPattern: input.AllowedPattern }), - ...(input.DataType != null && { DataType: input.DataType }), - ...(input.Description != null && { Description: input.Description }), - ...(input.KeyId != null && { KeyId: input.KeyId }), - ...(input.Name != null && { Name: input.Name }), - ...(input.Overwrite != null && { Overwrite: input.Overwrite }), - ...(input.Policies != null && { Policies: input.Policies }), - ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), - ...(input.Tier != null && { Tier: input.Tier }), - ...(input.Type != null && { Type: input.Type }), - ...(input.Value != null && { Value: input.Value }), - }; -}; -const serializeAws_json1_1Regions = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1RegisterDefaultPatchBaselineRequest = (input, context) => { - return { - ...(input.BaselineId != null && { BaselineId: input.BaselineId }), - }; -}; -const serializeAws_json1_1RegisterPatchBaselineForPatchGroupRequest = (input, context) => { - return { - ...(input.BaselineId != null && { BaselineId: input.BaselineId }), - ...(input.PatchGroup != null && { PatchGroup: input.PatchGroup }), - }; -}; -const serializeAws_json1_1RegisterTargetWithMaintenanceWindowRequest = (input, context) => { - var _a; - return { - ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), - ...(input.Description != null && { Description: input.Description }), - ...(input.Name != null && { Name: input.Name }), - ...(input.OwnerInformation != null && { OwnerInformation: input.OwnerInformation }), - ...(input.ResourceType != null && { ResourceType: input.ResourceType }), - ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), - ...(input.WindowId != null && { WindowId: input.WindowId }), - }; -}; -const serializeAws_json1_1RegisterTaskWithMaintenanceWindowRequest = (input, context) => { - var _a; - return { - ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), - ...(input.CutoffBehavior != null && { CutoffBehavior: input.CutoffBehavior }), - ...(input.Description != null && { Description: input.Description }), - ...(input.LoggingInfo != null && { LoggingInfo: serializeAws_json1_1LoggingInfo(input.LoggingInfo, context) }), - ...(input.MaxConcurrency != null && { MaxConcurrency: input.MaxConcurrency }), - ...(input.MaxErrors != null && { MaxErrors: input.MaxErrors }), - ...(input.Name != null && { Name: input.Name }), - ...(input.Priority != null && { Priority: input.Priority }), - ...(input.ServiceRoleArn != null && { ServiceRoleArn: input.ServiceRoleArn }), - ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), - ...(input.TaskArn != null && { TaskArn: input.TaskArn }), - ...(input.TaskInvocationParameters != null && { - TaskInvocationParameters: serializeAws_json1_1MaintenanceWindowTaskInvocationParameters(input.TaskInvocationParameters, context), - }), - ...(input.TaskParameters != null && { - TaskParameters: serializeAws_json1_1MaintenanceWindowTaskParameters(input.TaskParameters, context), - }), - ...(input.TaskType != null && { TaskType: input.TaskType }), - ...(input.WindowId != null && { WindowId: input.WindowId }), - }; -}; -const serializeAws_json1_1RegistrationMetadataItem = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Value != null && { Value: input.Value }), - }; -}; -const serializeAws_json1_1RegistrationMetadataList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1RegistrationMetadataItem(entry, context); - }); -}; -const serializeAws_json1_1RelatedOpsItem = (input, context) => { - return { - ...(input.OpsItemId != null && { OpsItemId: input.OpsItemId }), - }; -}; -const serializeAws_json1_1RelatedOpsItems = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1RelatedOpsItem(entry, context); - }); -}; -const serializeAws_json1_1RemoveTagsFromResourceRequest = (input, context) => { - return { - ...(input.ResourceId != null && { ResourceId: input.ResourceId }), - ...(input.ResourceType != null && { ResourceType: input.ResourceType }), - ...(input.TagKeys != null && { TagKeys: serializeAws_json1_1KeyList(input.TagKeys, context) }), - }; -}; -const serializeAws_json1_1ResetServiceSettingRequest = (input, context) => { - return { - ...(input.SettingId != null && { SettingId: input.SettingId }), - }; -}; -const serializeAws_json1_1ResourceDataSyncAwsOrganizationsSource = (input, context) => { - return { - ...(input.OrganizationSourceType != null && { OrganizationSourceType: input.OrganizationSourceType }), - ...(input.OrganizationalUnits != null && { - OrganizationalUnits: serializeAws_json1_1ResourceDataSyncOrganizationalUnitList(input.OrganizationalUnits, context), - }), - }; -}; -const serializeAws_json1_1ResourceDataSyncDestinationDataSharing = (input, context) => { - return { - ...(input.DestinationDataSharingType != null && { DestinationDataSharingType: input.DestinationDataSharingType }), - }; -}; -const serializeAws_json1_1ResourceDataSyncOrganizationalUnit = (input, context) => { - return { - ...(input.OrganizationalUnitId != null && { OrganizationalUnitId: input.OrganizationalUnitId }), - }; -}; -const serializeAws_json1_1ResourceDataSyncOrganizationalUnitList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1ResourceDataSyncOrganizationalUnit(entry, context); - }); -}; -const serializeAws_json1_1ResourceDataSyncS3Destination = (input, context) => { - return { - ...(input.AWSKMSKeyARN != null && { AWSKMSKeyARN: input.AWSKMSKeyARN }), - ...(input.BucketName != null && { BucketName: input.BucketName }), - ...(input.DestinationDataSharing != null && { - DestinationDataSharing: serializeAws_json1_1ResourceDataSyncDestinationDataSharing(input.DestinationDataSharing, context), - }), - ...(input.Prefix != null && { Prefix: input.Prefix }), - ...(input.Region != null && { Region: input.Region }), - ...(input.SyncFormat != null && { SyncFormat: input.SyncFormat }), - }; -}; -const serializeAws_json1_1ResourceDataSyncSource = (input, context) => { - return { - ...(input.AwsOrganizationsSource != null && { - AwsOrganizationsSource: serializeAws_json1_1ResourceDataSyncAwsOrganizationsSource(input.AwsOrganizationsSource, context), - }), - ...(input.EnableAllOpsDataSources != null && { EnableAllOpsDataSources: input.EnableAllOpsDataSources }), - ...(input.IncludeFutureRegions != null && { IncludeFutureRegions: input.IncludeFutureRegions }), - ...(input.SourceRegions != null && { - SourceRegions: serializeAws_json1_1ResourceDataSyncSourceRegionList(input.SourceRegions, context), - }), - ...(input.SourceType != null && { SourceType: input.SourceType }), - }; -}; -const serializeAws_json1_1ResourceDataSyncSourceRegionList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1ResultAttribute = (input, context) => { - return { - ...(input.TypeName != null && { TypeName: input.TypeName }), - }; -}; -const serializeAws_json1_1ResultAttributeList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1ResultAttribute(entry, context); - }); -}; -const serializeAws_json1_1ResumeSessionRequest = (input, context) => { - return { - ...(input.SessionId != null && { SessionId: input.SessionId }), - }; -}; -const serializeAws_json1_1Runbook = (input, context) => { - return { - ...(input.DocumentName != null && { DocumentName: input.DocumentName }), - ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), - ...(input.MaxConcurrency != null && { MaxConcurrency: input.MaxConcurrency }), - ...(input.MaxErrors != null && { MaxErrors: input.MaxErrors }), - ...(input.Parameters != null && { - Parameters: serializeAws_json1_1AutomationParameterMap(input.Parameters, context), - }), - ...(input.TargetLocations != null && { - TargetLocations: serializeAws_json1_1TargetLocations(input.TargetLocations, context), - }), - ...(input.TargetMaps != null && { TargetMaps: serializeAws_json1_1TargetMaps(input.TargetMaps, context) }), - ...(input.TargetParameterName != null && { TargetParameterName: input.TargetParameterName }), - ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), - }; -}; -const serializeAws_json1_1Runbooks = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1Runbook(entry, context); - }); -}; -const serializeAws_json1_1S3OutputLocation = (input, context) => { - return { - ...(input.OutputS3BucketName != null && { OutputS3BucketName: input.OutputS3BucketName }), - ...(input.OutputS3KeyPrefix != null && { OutputS3KeyPrefix: input.OutputS3KeyPrefix }), - ...(input.OutputS3Region != null && { OutputS3Region: input.OutputS3Region }), - }; -}; -const serializeAws_json1_1SendAutomationSignalRequest = (input, context) => { - return { - ...(input.AutomationExecutionId != null && { AutomationExecutionId: input.AutomationExecutionId }), - ...(input.Payload != null && { Payload: serializeAws_json1_1AutomationParameterMap(input.Payload, context) }), - ...(input.SignalType != null && { SignalType: input.SignalType }), - }; -}; -const serializeAws_json1_1SendCommandRequest = (input, context) => { - return { - ...(input.CloudWatchOutputConfig != null && { - CloudWatchOutputConfig: serializeAws_json1_1CloudWatchOutputConfig(input.CloudWatchOutputConfig, context), - }), - ...(input.Comment != null && { Comment: input.Comment }), - ...(input.DocumentHash != null && { DocumentHash: input.DocumentHash }), - ...(input.DocumentHashType != null && { DocumentHashType: input.DocumentHashType }), - ...(input.DocumentName != null && { DocumentName: input.DocumentName }), - ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), - ...(input.InstanceIds != null && { InstanceIds: serializeAws_json1_1InstanceIdList(input.InstanceIds, context) }), - ...(input.MaxConcurrency != null && { MaxConcurrency: input.MaxConcurrency }), - ...(input.MaxErrors != null && { MaxErrors: input.MaxErrors }), - ...(input.NotificationConfig != null && { - NotificationConfig: serializeAws_json1_1NotificationConfig(input.NotificationConfig, context), - }), - ...(input.OutputS3BucketName != null && { OutputS3BucketName: input.OutputS3BucketName }), - ...(input.OutputS3KeyPrefix != null && { OutputS3KeyPrefix: input.OutputS3KeyPrefix }), - ...(input.OutputS3Region != null && { OutputS3Region: input.OutputS3Region }), - ...(input.Parameters != null && { Parameters: serializeAws_json1_1Parameters(input.Parameters, context) }), - ...(input.ServiceRoleArn != null && { ServiceRoleArn: input.ServiceRoleArn }), - ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), - ...(input.TimeoutSeconds != null && { TimeoutSeconds: input.TimeoutSeconds }), - }; -}; -const serializeAws_json1_1SessionFilter = (input, context) => { - return { - ...(input.key != null && { key: input.key }), - ...(input.value != null && { value: input.value }), - }; -}; -const serializeAws_json1_1SessionFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1SessionFilter(entry, context); - }); -}; -const serializeAws_json1_1SessionManagerParameters = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_1SessionManagerParameterValueList(value, context), - }; - }, {}); -}; -const serializeAws_json1_1SessionManagerParameterValueList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1StartAssociationsOnceRequest = (input, context) => { - return { - ...(input.AssociationIds != null && { - AssociationIds: serializeAws_json1_1AssociationIdList(input.AssociationIds, context), - }), - }; -}; -const serializeAws_json1_1StartAutomationExecutionRequest = (input, context) => { - return { - ...(input.ClientToken != null && { ClientToken: input.ClientToken }), - ...(input.DocumentName != null && { DocumentName: input.DocumentName }), - ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), - ...(input.MaxConcurrency != null && { MaxConcurrency: input.MaxConcurrency }), - ...(input.MaxErrors != null && { MaxErrors: input.MaxErrors }), - ...(input.Mode != null && { Mode: input.Mode }), - ...(input.Parameters != null && { - Parameters: serializeAws_json1_1AutomationParameterMap(input.Parameters, context), - }), - ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), - ...(input.TargetLocations != null && { - TargetLocations: serializeAws_json1_1TargetLocations(input.TargetLocations, context), - }), - ...(input.TargetMaps != null && { TargetMaps: serializeAws_json1_1TargetMaps(input.TargetMaps, context) }), - ...(input.TargetParameterName != null && { TargetParameterName: input.TargetParameterName }), - ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), - }; -}; -const serializeAws_json1_1StartChangeRequestExecutionRequest = (input, context) => { - return { - ...(input.AutoApprove != null && { AutoApprove: input.AutoApprove }), - ...(input.ChangeDetails != null && { ChangeDetails: input.ChangeDetails }), - ...(input.ChangeRequestName != null && { ChangeRequestName: input.ChangeRequestName }), - ...(input.ClientToken != null && { ClientToken: input.ClientToken }), - ...(input.DocumentName != null && { DocumentName: input.DocumentName }), - ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), - ...(input.Parameters != null && { - Parameters: serializeAws_json1_1AutomationParameterMap(input.Parameters, context), - }), - ...(input.Runbooks != null && { Runbooks: serializeAws_json1_1Runbooks(input.Runbooks, context) }), - ...(input.ScheduledEndTime != null && { ScheduledEndTime: Math.round(input.ScheduledEndTime.getTime() / 1000) }), - ...(input.ScheduledTime != null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) }), - ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), - }; -}; -const serializeAws_json1_1StartSessionRequest = (input, context) => { - return { - ...(input.DocumentName != null && { DocumentName: input.DocumentName }), - ...(input.Parameters != null && { - Parameters: serializeAws_json1_1SessionManagerParameters(input.Parameters, context), - }), - ...(input.Reason != null && { Reason: input.Reason }), - ...(input.Target != null && { Target: input.Target }), - }; -}; -const serializeAws_json1_1StepExecutionFilter = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Values != null && { Values: serializeAws_json1_1StepExecutionFilterValueList(input.Values, context) }), - }; -}; -const serializeAws_json1_1StepExecutionFilterList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1StepExecutionFilter(entry, context); - }); -}; -const serializeAws_json1_1StepExecutionFilterValueList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1StopAutomationExecutionRequest = (input, context) => { - return { - ...(input.AutomationExecutionId != null && { AutomationExecutionId: input.AutomationExecutionId }), - ...(input.Type != null && { Type: input.Type }), - }; -}; -const serializeAws_json1_1StringList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1Tag = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Value != null && { Value: input.Value }), - }; -}; -const serializeAws_json1_1TagList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1Tag(entry, context); - }); -}; -const serializeAws_json1_1Target = (input, context) => { - return { - ...(input.Key != null && { Key: input.Key }), - ...(input.Values != null && { Values: serializeAws_json1_1TargetValues(input.Values, context) }), - }; -}; -const serializeAws_json1_1TargetLocation = (input, context) => { - return { - ...(input.Accounts != null && { Accounts: serializeAws_json1_1Accounts(input.Accounts, context) }), - ...(input.ExecutionRoleName != null && { ExecutionRoleName: input.ExecutionRoleName }), - ...(input.Regions != null && { Regions: serializeAws_json1_1Regions(input.Regions, context) }), - ...(input.TargetLocationMaxConcurrency != null && { - TargetLocationMaxConcurrency: input.TargetLocationMaxConcurrency, - }), - ...(input.TargetLocationMaxErrors != null && { TargetLocationMaxErrors: input.TargetLocationMaxErrors }), - }; -}; -const serializeAws_json1_1TargetLocations = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1TargetLocation(entry, context); - }); -}; -const serializeAws_json1_1TargetMap = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_1TargetMapValueList(value, context), - }; - }, {}); -}; -const serializeAws_json1_1TargetMaps = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1TargetMap(entry, context); - }); -}; -const serializeAws_json1_1TargetMapValueList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1Targets = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return serializeAws_json1_1Target(entry, context); - }); -}; -const serializeAws_json1_1TargetValues = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return entry; - }); -}; -const serializeAws_json1_1TerminateSessionRequest = (input, context) => { - return { - ...(input.SessionId != null && { SessionId: input.SessionId }), - }; -}; -const serializeAws_json1_1UnlabelParameterVersionRequest = (input, context) => { - return { - ...(input.Labels != null && { Labels: serializeAws_json1_1ParameterLabelList(input.Labels, context) }), - ...(input.Name != null && { Name: input.Name }), - ...(input.ParameterVersion != null && { ParameterVersion: input.ParameterVersion }), - }; -}; -const serializeAws_json1_1UpdateAssociationRequest = (input, context) => { - return { - ...(input.ApplyOnlyAtCronInterval != null && { ApplyOnlyAtCronInterval: input.ApplyOnlyAtCronInterval }), - ...(input.AssociationId != null && { AssociationId: input.AssociationId }), - ...(input.AssociationName != null && { AssociationName: input.AssociationName }), - ...(input.AssociationVersion != null && { AssociationVersion: input.AssociationVersion }), - ...(input.AutomationTargetParameterName != null && { - AutomationTargetParameterName: input.AutomationTargetParameterName, - }), - ...(input.CalendarNames != null && { - CalendarNames: serializeAws_json1_1CalendarNameOrARNList(input.CalendarNames, context), - }), - ...(input.ComplianceSeverity != null && { ComplianceSeverity: input.ComplianceSeverity }), - ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), - ...(input.MaxConcurrency != null && { MaxConcurrency: input.MaxConcurrency }), - ...(input.MaxErrors != null && { MaxErrors: input.MaxErrors }), - ...(input.Name != null && { Name: input.Name }), - ...(input.OutputLocation != null && { - OutputLocation: serializeAws_json1_1InstanceAssociationOutputLocation(input.OutputLocation, context), - }), - ...(input.Parameters != null && { Parameters: serializeAws_json1_1Parameters(input.Parameters, context) }), - ...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }), - ...(input.ScheduleOffset != null && { ScheduleOffset: input.ScheduleOffset }), - ...(input.SyncCompliance != null && { SyncCompliance: input.SyncCompliance }), - ...(input.TargetLocations != null && { - TargetLocations: serializeAws_json1_1TargetLocations(input.TargetLocations, context), - }), - ...(input.TargetMaps != null && { TargetMaps: serializeAws_json1_1TargetMaps(input.TargetMaps, context) }), - ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), - }; -}; -const serializeAws_json1_1UpdateAssociationStatusRequest = (input, context) => { - return { - ...(input.AssociationStatus != null && { - AssociationStatus: serializeAws_json1_1AssociationStatus(input.AssociationStatus, context), - }), - ...(input.InstanceId != null && { InstanceId: input.InstanceId }), - ...(input.Name != null && { Name: input.Name }), - }; -}; -const serializeAws_json1_1UpdateDocumentDefaultVersionRequest = (input, context) => { - return { - ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), - ...(input.Name != null && { Name: input.Name }), - }; -}; -const serializeAws_json1_1UpdateDocumentMetadataRequest = (input, context) => { - return { - ...(input.DocumentReviews != null && { - DocumentReviews: serializeAws_json1_1DocumentReviews(input.DocumentReviews, context), - }), - ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), - ...(input.Name != null && { Name: input.Name }), - }; -}; -const serializeAws_json1_1UpdateDocumentRequest = (input, context) => { - return { - ...(input.Attachments != null && { - Attachments: serializeAws_json1_1AttachmentsSourceList(input.Attachments, context), - }), - ...(input.Content != null && { Content: input.Content }), - ...(input.DisplayName != null && { DisplayName: input.DisplayName }), - ...(input.DocumentFormat != null && { DocumentFormat: input.DocumentFormat }), - ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), - ...(input.Name != null && { Name: input.Name }), - ...(input.TargetType != null && { TargetType: input.TargetType }), - ...(input.VersionName != null && { VersionName: input.VersionName }), - }; -}; -const serializeAws_json1_1UpdateMaintenanceWindowRequest = (input, context) => { - return { - ...(input.AllowUnassociatedTargets != null && { AllowUnassociatedTargets: input.AllowUnassociatedTargets }), - ...(input.Cutoff != null && { Cutoff: input.Cutoff }), - ...(input.Description != null && { Description: input.Description }), - ...(input.Duration != null && { Duration: input.Duration }), - ...(input.Enabled != null && { Enabled: input.Enabled }), - ...(input.EndDate != null && { EndDate: input.EndDate }), - ...(input.Name != null && { Name: input.Name }), - ...(input.Replace != null && { Replace: input.Replace }), - ...(input.Schedule != null && { Schedule: input.Schedule }), - ...(input.ScheduleOffset != null && { ScheduleOffset: input.ScheduleOffset }), - ...(input.ScheduleTimezone != null && { ScheduleTimezone: input.ScheduleTimezone }), - ...(input.StartDate != null && { StartDate: input.StartDate }), - ...(input.WindowId != null && { WindowId: input.WindowId }), - }; -}; -const serializeAws_json1_1UpdateMaintenanceWindowTargetRequest = (input, context) => { - return { - ...(input.Description != null && { Description: input.Description }), - ...(input.Name != null && { Name: input.Name }), - ...(input.OwnerInformation != null && { OwnerInformation: input.OwnerInformation }), - ...(input.Replace != null && { Replace: input.Replace }), - ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), - ...(input.WindowId != null && { WindowId: input.WindowId }), - ...(input.WindowTargetId != null && { WindowTargetId: input.WindowTargetId }), - }; -}; -const serializeAws_json1_1UpdateMaintenanceWindowTaskRequest = (input, context) => { - return { - ...(input.CutoffBehavior != null && { CutoffBehavior: input.CutoffBehavior }), - ...(input.Description != null && { Description: input.Description }), - ...(input.LoggingInfo != null && { LoggingInfo: serializeAws_json1_1LoggingInfo(input.LoggingInfo, context) }), - ...(input.MaxConcurrency != null && { MaxConcurrency: input.MaxConcurrency }), - ...(input.MaxErrors != null && { MaxErrors: input.MaxErrors }), - ...(input.Name != null && { Name: input.Name }), - ...(input.Priority != null && { Priority: input.Priority }), - ...(input.Replace != null && { Replace: input.Replace }), - ...(input.ServiceRoleArn != null && { ServiceRoleArn: input.ServiceRoleArn }), - ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), - ...(input.TaskArn != null && { TaskArn: input.TaskArn }), - ...(input.TaskInvocationParameters != null && { - TaskInvocationParameters: serializeAws_json1_1MaintenanceWindowTaskInvocationParameters(input.TaskInvocationParameters, context), - }), - ...(input.TaskParameters != null && { - TaskParameters: serializeAws_json1_1MaintenanceWindowTaskParameters(input.TaskParameters, context), - }), - ...(input.WindowId != null && { WindowId: input.WindowId }), - ...(input.WindowTaskId != null && { WindowTaskId: input.WindowTaskId }), - }; -}; -const serializeAws_json1_1UpdateManagedInstanceRoleRequest = (input, context) => { - return { - ...(input.IamRole != null && { IamRole: input.IamRole }), - ...(input.InstanceId != null && { InstanceId: input.InstanceId }), - }; -}; -const serializeAws_json1_1UpdateOpsItemRequest = (input, context) => { - return { - ...(input.ActualEndTime != null && { ActualEndTime: Math.round(input.ActualEndTime.getTime() / 1000) }), - ...(input.ActualStartTime != null && { ActualStartTime: Math.round(input.ActualStartTime.getTime() / 1000) }), - ...(input.Category != null && { Category: input.Category }), - ...(input.Description != null && { Description: input.Description }), - ...(input.Notifications != null && { - Notifications: serializeAws_json1_1OpsItemNotifications(input.Notifications, context), - }), - ...(input.OperationalData != null && { - OperationalData: serializeAws_json1_1OpsItemOperationalData(input.OperationalData, context), - }), - ...(input.OperationalDataToDelete != null && { - OperationalDataToDelete: serializeAws_json1_1OpsItemOpsDataKeysList(input.OperationalDataToDelete, context), - }), - ...(input.OpsItemId != null && { OpsItemId: input.OpsItemId }), - ...(input.PlannedEndTime != null && { PlannedEndTime: Math.round(input.PlannedEndTime.getTime() / 1000) }), - ...(input.PlannedStartTime != null && { PlannedStartTime: Math.round(input.PlannedStartTime.getTime() / 1000) }), - ...(input.Priority != null && { Priority: input.Priority }), - ...(input.RelatedOpsItems != null && { - RelatedOpsItems: serializeAws_json1_1RelatedOpsItems(input.RelatedOpsItems, context), - }), - ...(input.Severity != null && { Severity: input.Severity }), - ...(input.Status != null && { Status: input.Status }), - ...(input.Title != null && { Title: input.Title }), - }; -}; -const serializeAws_json1_1UpdateOpsMetadataRequest = (input, context) => { - return { - ...(input.KeysToDelete != null && { - KeysToDelete: serializeAws_json1_1MetadataKeysToDeleteList(input.KeysToDelete, context), - }), - ...(input.MetadataToUpdate != null && { - MetadataToUpdate: serializeAws_json1_1MetadataMap(input.MetadataToUpdate, context), - }), - ...(input.OpsMetadataArn != null && { OpsMetadataArn: input.OpsMetadataArn }), - }; -}; -const serializeAws_json1_1UpdatePatchBaselineRequest = (input, context) => { - return { - ...(input.ApprovalRules != null && { - ApprovalRules: serializeAws_json1_1PatchRuleGroup(input.ApprovalRules, context), - }), - ...(input.ApprovedPatches != null && { - ApprovedPatches: serializeAws_json1_1PatchIdList(input.ApprovedPatches, context), - }), - ...(input.ApprovedPatchesComplianceLevel != null && { - ApprovedPatchesComplianceLevel: input.ApprovedPatchesComplianceLevel, - }), - ...(input.ApprovedPatchesEnableNonSecurity != null && { - ApprovedPatchesEnableNonSecurity: input.ApprovedPatchesEnableNonSecurity, - }), - ...(input.BaselineId != null && { BaselineId: input.BaselineId }), - ...(input.Description != null && { Description: input.Description }), - ...(input.GlobalFilters != null && { - GlobalFilters: serializeAws_json1_1PatchFilterGroup(input.GlobalFilters, context), - }), - ...(input.Name != null && { Name: input.Name }), - ...(input.RejectedPatches != null && { - RejectedPatches: serializeAws_json1_1PatchIdList(input.RejectedPatches, context), - }), - ...(input.RejectedPatchesAction != null && { RejectedPatchesAction: input.RejectedPatchesAction }), - ...(input.Replace != null && { Replace: input.Replace }), - ...(input.Sources != null && { Sources: serializeAws_json1_1PatchSourceList(input.Sources, context) }), - }; -}; -const serializeAws_json1_1UpdateResourceDataSyncRequest = (input, context) => { - return { - ...(input.SyncName != null && { SyncName: input.SyncName }), - ...(input.SyncSource != null && { - SyncSource: serializeAws_json1_1ResourceDataSyncSource(input.SyncSource, context), - }), - ...(input.SyncType != null && { SyncType: input.SyncType }), - }; -}; -const serializeAws_json1_1UpdateServiceSettingRequest = (input, context) => { - return { - ...(input.SettingId != null && { SettingId: input.SettingId }), - ...(input.SettingValue != null && { SettingValue: input.SettingValue }), - }; -}; -const deserializeAws_json1_1AccountIdList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1Accounts = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1AccountSharingInfo = (output, context) => { - return { - AccountId: (0, smithy_client_1.expectString)(output.AccountId), - SharedDocumentVersion: (0, smithy_client_1.expectString)(output.SharedDocumentVersion), - }; -}; -const deserializeAws_json1_1AccountSharingInfoList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1AccountSharingInfo(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1Activation = (output, context) => { - return { - ActivationId: (0, smithy_client_1.expectString)(output.ActivationId), - CreatedDate: output.CreatedDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate))) - : undefined, - DefaultInstanceName: (0, smithy_client_1.expectString)(output.DefaultInstanceName), - Description: (0, smithy_client_1.expectString)(output.Description), - ExpirationDate: output.ExpirationDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpirationDate))) - : undefined, - Expired: (0, smithy_client_1.expectBoolean)(output.Expired), - IamRole: (0, smithy_client_1.expectString)(output.IamRole), - RegistrationLimit: (0, smithy_client_1.expectInt32)(output.RegistrationLimit), - RegistrationsCount: (0, smithy_client_1.expectInt32)(output.RegistrationsCount), - Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined, - }; -}; -const deserializeAws_json1_1ActivationList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Activation(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1AddTagsToResourceResult = (output, context) => { - return {}; -}; -const deserializeAws_json1_1AlreadyExistsException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1AssociatedInstances = (output, context) => { - return {}; -}; -const deserializeAws_json1_1AssociateOpsItemRelatedItemResponse = (output, context) => { - return { - AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), - }; -}; -const deserializeAws_json1_1Association = (output, context) => { - return { - AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), - AssociationName: (0, smithy_client_1.expectString)(output.AssociationName), - AssociationVersion: (0, smithy_client_1.expectString)(output.AssociationVersion), - DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), - InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), - LastExecutionDate: output.LastExecutionDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastExecutionDate))) - : undefined, - Name: (0, smithy_client_1.expectString)(output.Name), - Overview: output.Overview != null ? deserializeAws_json1_1AssociationOverview(output.Overview, context) : undefined, - ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression), - ScheduleOffset: (0, smithy_client_1.expectInt32)(output.ScheduleOffset), - TargetMaps: output.TargetMaps != null ? deserializeAws_json1_1TargetMaps(output.TargetMaps, context) : undefined, - Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, - }; -}; -const deserializeAws_json1_1AssociationAlreadyExists = (output, context) => { - return {}; -}; -const deserializeAws_json1_1AssociationDescription = (output, context) => { - return { - ApplyOnlyAtCronInterval: (0, smithy_client_1.expectBoolean)(output.ApplyOnlyAtCronInterval), - AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), - AssociationName: (0, smithy_client_1.expectString)(output.AssociationName), - AssociationVersion: (0, smithy_client_1.expectString)(output.AssociationVersion), - AutomationTargetParameterName: (0, smithy_client_1.expectString)(output.AutomationTargetParameterName), - CalendarNames: output.CalendarNames != null - ? deserializeAws_json1_1CalendarNameOrARNList(output.CalendarNames, context) - : undefined, - ComplianceSeverity: (0, smithy_client_1.expectString)(output.ComplianceSeverity), - Date: output.Date != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Date))) : undefined, - DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), - InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), - LastExecutionDate: output.LastExecutionDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastExecutionDate))) - : undefined, - LastSuccessfulExecutionDate: output.LastSuccessfulExecutionDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastSuccessfulExecutionDate))) - : undefined, - LastUpdateAssociationDate: output.LastUpdateAssociationDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateAssociationDate))) - : undefined, - MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), - MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), - Name: (0, smithy_client_1.expectString)(output.Name), - OutputLocation: output.OutputLocation != null - ? deserializeAws_json1_1InstanceAssociationOutputLocation(output.OutputLocation, context) - : undefined, - Overview: output.Overview != null ? deserializeAws_json1_1AssociationOverview(output.Overview, context) : undefined, - Parameters: output.Parameters != null ? deserializeAws_json1_1Parameters(output.Parameters, context) : undefined, - ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression), - ScheduleOffset: (0, smithy_client_1.expectInt32)(output.ScheduleOffset), - Status: output.Status != null ? deserializeAws_json1_1AssociationStatus(output.Status, context) : undefined, - SyncCompliance: (0, smithy_client_1.expectString)(output.SyncCompliance), - TargetLocations: output.TargetLocations != null - ? deserializeAws_json1_1TargetLocations(output.TargetLocations, context) - : undefined, - TargetMaps: output.TargetMaps != null ? deserializeAws_json1_1TargetMaps(output.TargetMaps, context) : undefined, - Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, - }; -}; -const deserializeAws_json1_1AssociationDescriptionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1AssociationDescription(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1AssociationDoesNotExist = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1AssociationExecution = (output, context) => { - return { - AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), - AssociationVersion: (0, smithy_client_1.expectString)(output.AssociationVersion), - CreatedTime: output.CreatedTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime))) - : undefined, - DetailedStatus: (0, smithy_client_1.expectString)(output.DetailedStatus), - ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId), - LastExecutionDate: output.LastExecutionDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastExecutionDate))) - : undefined, - ResourceCountByStatus: (0, smithy_client_1.expectString)(output.ResourceCountByStatus), - Status: (0, smithy_client_1.expectString)(output.Status), - }; -}; -const deserializeAws_json1_1AssociationExecutionDoesNotExist = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1AssociationExecutionsList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1AssociationExecution(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1AssociationExecutionTarget = (output, context) => { - return { - AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), - AssociationVersion: (0, smithy_client_1.expectString)(output.AssociationVersion), - DetailedStatus: (0, smithy_client_1.expectString)(output.DetailedStatus), - ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId), - LastExecutionDate: output.LastExecutionDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastExecutionDate))) - : undefined, - OutputSource: output.OutputSource != null ? deserializeAws_json1_1OutputSource(output.OutputSource, context) : undefined, - ResourceId: (0, smithy_client_1.expectString)(output.ResourceId), - ResourceType: (0, smithy_client_1.expectString)(output.ResourceType), - Status: (0, smithy_client_1.expectString)(output.Status), - }; -}; -const deserializeAws_json1_1AssociationExecutionTargetsList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1AssociationExecutionTarget(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1AssociationLimitExceeded = (output, context) => { - return {}; -}; -const deserializeAws_json1_1AssociationList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Association(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1AssociationOverview = (output, context) => { - return { - AssociationStatusAggregatedCount: output.AssociationStatusAggregatedCount != null - ? deserializeAws_json1_1AssociationStatusAggregatedCount(output.AssociationStatusAggregatedCount, context) - : undefined, - DetailedStatus: (0, smithy_client_1.expectString)(output.DetailedStatus), - Status: (0, smithy_client_1.expectString)(output.Status), - }; -}; -const deserializeAws_json1_1AssociationStatus = (output, context) => { - return { - AdditionalInfo: (0, smithy_client_1.expectString)(output.AdditionalInfo), - Date: output.Date != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Date))) : undefined, - Message: (0, smithy_client_1.expectString)(output.Message), - Name: (0, smithy_client_1.expectString)(output.Name), - }; -}; -const deserializeAws_json1_1AssociationStatusAggregatedCount = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: (0, smithy_client_1.expectInt32)(value), - }; - }, {}); -}; -const deserializeAws_json1_1AssociationVersionInfo = (output, context) => { - return { - ApplyOnlyAtCronInterval: (0, smithy_client_1.expectBoolean)(output.ApplyOnlyAtCronInterval), - AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), - AssociationName: (0, smithy_client_1.expectString)(output.AssociationName), - AssociationVersion: (0, smithy_client_1.expectString)(output.AssociationVersion), - CalendarNames: output.CalendarNames != null - ? deserializeAws_json1_1CalendarNameOrARNList(output.CalendarNames, context) - : undefined, - ComplianceSeverity: (0, smithy_client_1.expectString)(output.ComplianceSeverity), - CreatedDate: output.CreatedDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate))) - : undefined, - DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), - MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), - MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), - Name: (0, smithy_client_1.expectString)(output.Name), - OutputLocation: output.OutputLocation != null - ? deserializeAws_json1_1InstanceAssociationOutputLocation(output.OutputLocation, context) - : undefined, - Parameters: output.Parameters != null ? deserializeAws_json1_1Parameters(output.Parameters, context) : undefined, - ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression), - ScheduleOffset: (0, smithy_client_1.expectInt32)(output.ScheduleOffset), - SyncCompliance: (0, smithy_client_1.expectString)(output.SyncCompliance), - TargetLocations: output.TargetLocations != null - ? deserializeAws_json1_1TargetLocations(output.TargetLocations, context) - : undefined, - TargetMaps: output.TargetMaps != null ? deserializeAws_json1_1TargetMaps(output.TargetMaps, context) : undefined, - Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, - }; -}; -const deserializeAws_json1_1AssociationVersionLimitExceeded = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1AssociationVersionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1AssociationVersionInfo(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1AttachmentContent = (output, context) => { - return { - Hash: (0, smithy_client_1.expectString)(output.Hash), - HashType: (0, smithy_client_1.expectString)(output.HashType), - Name: (0, smithy_client_1.expectString)(output.Name), - Size: (0, smithy_client_1.expectLong)(output.Size), - Url: (0, smithy_client_1.expectString)(output.Url), - }; -}; -const deserializeAws_json1_1AttachmentContentList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1AttachmentContent(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1AttachmentInformation = (output, context) => { - return { - Name: (0, smithy_client_1.expectString)(output.Name), - }; -}; -const deserializeAws_json1_1AttachmentInformationList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1AttachmentInformation(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1AutomationDefinitionNotApprovedException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1AutomationDefinitionNotFoundException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1AutomationDefinitionVersionNotFoundException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1AutomationExecution = (output, context) => { - return { - AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), - AutomationExecutionId: (0, smithy_client_1.expectString)(output.AutomationExecutionId), - AutomationExecutionStatus: (0, smithy_client_1.expectString)(output.AutomationExecutionStatus), - AutomationSubtype: (0, smithy_client_1.expectString)(output.AutomationSubtype), - ChangeRequestName: (0, smithy_client_1.expectString)(output.ChangeRequestName), - CurrentAction: (0, smithy_client_1.expectString)(output.CurrentAction), - CurrentStepName: (0, smithy_client_1.expectString)(output.CurrentStepName), - DocumentName: (0, smithy_client_1.expectString)(output.DocumentName), - DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), - ExecutedBy: (0, smithy_client_1.expectString)(output.ExecutedBy), - ExecutionEndTime: output.ExecutionEndTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExecutionEndTime))) - : undefined, - ExecutionStartTime: output.ExecutionStartTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExecutionStartTime))) - : undefined, - FailureMessage: (0, smithy_client_1.expectString)(output.FailureMessage), - MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), - MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), - Mode: (0, smithy_client_1.expectString)(output.Mode), - OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), - Outputs: output.Outputs != null ? deserializeAws_json1_1AutomationParameterMap(output.Outputs, context) : undefined, - Parameters: output.Parameters != null ? deserializeAws_json1_1AutomationParameterMap(output.Parameters, context) : undefined, - ParentAutomationExecutionId: (0, smithy_client_1.expectString)(output.ParentAutomationExecutionId), - ProgressCounters: output.ProgressCounters != null - ? deserializeAws_json1_1ProgressCounters(output.ProgressCounters, context) - : undefined, - ResolvedTargets: output.ResolvedTargets != null - ? deserializeAws_json1_1ResolvedTargets(output.ResolvedTargets, context) - : undefined, - Runbooks: output.Runbooks != null ? deserializeAws_json1_1Runbooks(output.Runbooks, context) : undefined, - ScheduledTime: output.ScheduledTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ScheduledTime))) - : undefined, - StepExecutions: output.StepExecutions != null - ? deserializeAws_json1_1StepExecutionList(output.StepExecutions, context) - : undefined, - StepExecutionsTruncated: (0, smithy_client_1.expectBoolean)(output.StepExecutionsTruncated), - Target: (0, smithy_client_1.expectString)(output.Target), - TargetLocations: output.TargetLocations != null - ? deserializeAws_json1_1TargetLocations(output.TargetLocations, context) - : undefined, - TargetMaps: output.TargetMaps != null ? deserializeAws_json1_1TargetMaps(output.TargetMaps, context) : undefined, - TargetParameterName: (0, smithy_client_1.expectString)(output.TargetParameterName), - Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, - }; -}; -const deserializeAws_json1_1AutomationExecutionLimitExceededException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1AutomationExecutionMetadata = (output, context) => { - return { - AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), - AutomationExecutionId: (0, smithy_client_1.expectString)(output.AutomationExecutionId), - AutomationExecutionStatus: (0, smithy_client_1.expectString)(output.AutomationExecutionStatus), - AutomationSubtype: (0, smithy_client_1.expectString)(output.AutomationSubtype), - AutomationType: (0, smithy_client_1.expectString)(output.AutomationType), - ChangeRequestName: (0, smithy_client_1.expectString)(output.ChangeRequestName), - CurrentAction: (0, smithy_client_1.expectString)(output.CurrentAction), - CurrentStepName: (0, smithy_client_1.expectString)(output.CurrentStepName), - DocumentName: (0, smithy_client_1.expectString)(output.DocumentName), - DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), - ExecutedBy: (0, smithy_client_1.expectString)(output.ExecutedBy), - ExecutionEndTime: output.ExecutionEndTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExecutionEndTime))) - : undefined, - ExecutionStartTime: output.ExecutionStartTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExecutionStartTime))) - : undefined, - FailureMessage: (0, smithy_client_1.expectString)(output.FailureMessage), - LogFile: (0, smithy_client_1.expectString)(output.LogFile), - MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), - MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), - Mode: (0, smithy_client_1.expectString)(output.Mode), - OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), - Outputs: output.Outputs != null ? deserializeAws_json1_1AutomationParameterMap(output.Outputs, context) : undefined, - ParentAutomationExecutionId: (0, smithy_client_1.expectString)(output.ParentAutomationExecutionId), - ResolvedTargets: output.ResolvedTargets != null - ? deserializeAws_json1_1ResolvedTargets(output.ResolvedTargets, context) - : undefined, - Runbooks: output.Runbooks != null ? deserializeAws_json1_1Runbooks(output.Runbooks, context) : undefined, - ScheduledTime: output.ScheduledTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ScheduledTime))) - : undefined, - Target: (0, smithy_client_1.expectString)(output.Target), - TargetMaps: output.TargetMaps != null ? deserializeAws_json1_1TargetMaps(output.TargetMaps, context) : undefined, - TargetParameterName: (0, smithy_client_1.expectString)(output.TargetParameterName), - Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, - }; -}; -const deserializeAws_json1_1AutomationExecutionMetadataList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1AutomationExecutionMetadata(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1AutomationExecutionNotFoundException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1AutomationParameterMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_1AutomationParameterValueList(value, context), - }; - }, {}); -}; -const deserializeAws_json1_1AutomationParameterValueList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1AutomationStepNotFoundException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1CalendarNameOrARNList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1CancelCommandResult = (output, context) => { - return {}; -}; -const deserializeAws_json1_1CancelMaintenanceWindowExecutionResult = (output, context) => { - return { - WindowExecutionId: (0, smithy_client_1.expectString)(output.WindowExecutionId), - }; -}; -const deserializeAws_json1_1CategoryEnumList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1CategoryList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1CloudWatchOutputConfig = (output, context) => { - return { - CloudWatchLogGroupName: (0, smithy_client_1.expectString)(output.CloudWatchLogGroupName), - CloudWatchOutputEnabled: (0, smithy_client_1.expectBoolean)(output.CloudWatchOutputEnabled), - }; -}; -const deserializeAws_json1_1Command = (output, context) => { - return { - CloudWatchOutputConfig: output.CloudWatchOutputConfig != null - ? deserializeAws_json1_1CloudWatchOutputConfig(output.CloudWatchOutputConfig, context) - : undefined, - CommandId: (0, smithy_client_1.expectString)(output.CommandId), - Comment: (0, smithy_client_1.expectString)(output.Comment), - CompletedCount: (0, smithy_client_1.expectInt32)(output.CompletedCount), - DeliveryTimedOutCount: (0, smithy_client_1.expectInt32)(output.DeliveryTimedOutCount), - DocumentName: (0, smithy_client_1.expectString)(output.DocumentName), - DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), - ErrorCount: (0, smithy_client_1.expectInt32)(output.ErrorCount), - ExpiresAfter: output.ExpiresAfter != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpiresAfter))) - : undefined, - InstanceIds: output.InstanceIds != null ? deserializeAws_json1_1InstanceIdList(output.InstanceIds, context) : undefined, - MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), - MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), - NotificationConfig: output.NotificationConfig != null - ? deserializeAws_json1_1NotificationConfig(output.NotificationConfig, context) - : undefined, - OutputS3BucketName: (0, smithy_client_1.expectString)(output.OutputS3BucketName), - OutputS3KeyPrefix: (0, smithy_client_1.expectString)(output.OutputS3KeyPrefix), - OutputS3Region: (0, smithy_client_1.expectString)(output.OutputS3Region), - Parameters: output.Parameters != null ? deserializeAws_json1_1Parameters(output.Parameters, context) : undefined, - RequestedDateTime: output.RequestedDateTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RequestedDateTime))) - : undefined, - ServiceRole: (0, smithy_client_1.expectString)(output.ServiceRole), - Status: (0, smithy_client_1.expectString)(output.Status), - StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), - TargetCount: (0, smithy_client_1.expectInt32)(output.TargetCount), - Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, - TimeoutSeconds: (0, smithy_client_1.expectInt32)(output.TimeoutSeconds), - }; -}; -const deserializeAws_json1_1CommandInvocation = (output, context) => { - return { - CloudWatchOutputConfig: output.CloudWatchOutputConfig != null - ? deserializeAws_json1_1CloudWatchOutputConfig(output.CloudWatchOutputConfig, context) - : undefined, - CommandId: (0, smithy_client_1.expectString)(output.CommandId), - CommandPlugins: output.CommandPlugins != null - ? deserializeAws_json1_1CommandPluginList(output.CommandPlugins, context) - : undefined, - Comment: (0, smithy_client_1.expectString)(output.Comment), - DocumentName: (0, smithy_client_1.expectString)(output.DocumentName), - DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), - InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), - InstanceName: (0, smithy_client_1.expectString)(output.InstanceName), - NotificationConfig: output.NotificationConfig != null - ? deserializeAws_json1_1NotificationConfig(output.NotificationConfig, context) - : undefined, - RequestedDateTime: output.RequestedDateTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RequestedDateTime))) - : undefined, - ServiceRole: (0, smithy_client_1.expectString)(output.ServiceRole), - StandardErrorUrl: (0, smithy_client_1.expectString)(output.StandardErrorUrl), - StandardOutputUrl: (0, smithy_client_1.expectString)(output.StandardOutputUrl), - Status: (0, smithy_client_1.expectString)(output.Status), - StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), - TraceOutput: (0, smithy_client_1.expectString)(output.TraceOutput), - }; -}; -const deserializeAws_json1_1CommandInvocationList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1CommandInvocation(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1CommandList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Command(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1CommandPlugin = (output, context) => { - return { - Name: (0, smithy_client_1.expectString)(output.Name), - Output: (0, smithy_client_1.expectString)(output.Output), - OutputS3BucketName: (0, smithy_client_1.expectString)(output.OutputS3BucketName), - OutputS3KeyPrefix: (0, smithy_client_1.expectString)(output.OutputS3KeyPrefix), - OutputS3Region: (0, smithy_client_1.expectString)(output.OutputS3Region), - ResponseCode: (0, smithy_client_1.expectInt32)(output.ResponseCode), - ResponseFinishDateTime: output.ResponseFinishDateTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ResponseFinishDateTime))) - : undefined, - ResponseStartDateTime: output.ResponseStartDateTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ResponseStartDateTime))) - : undefined, - StandardErrorUrl: (0, smithy_client_1.expectString)(output.StandardErrorUrl), - StandardOutputUrl: (0, smithy_client_1.expectString)(output.StandardOutputUrl), - Status: (0, smithy_client_1.expectString)(output.Status), - StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), - }; -}; -const deserializeAws_json1_1CommandPluginList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1CommandPlugin(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1ComplianceExecutionSummary = (output, context) => { - return { - ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId), - ExecutionTime: output.ExecutionTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExecutionTime))) - : undefined, - ExecutionType: (0, smithy_client_1.expectString)(output.ExecutionType), - }; -}; -const deserializeAws_json1_1ComplianceItem = (output, context) => { - return { - ComplianceType: (0, smithy_client_1.expectString)(output.ComplianceType), - Details: output.Details != null ? deserializeAws_json1_1ComplianceItemDetails(output.Details, context) : undefined, - ExecutionSummary: output.ExecutionSummary != null - ? deserializeAws_json1_1ComplianceExecutionSummary(output.ExecutionSummary, context) - : undefined, - Id: (0, smithy_client_1.expectString)(output.Id), - ResourceId: (0, smithy_client_1.expectString)(output.ResourceId), - ResourceType: (0, smithy_client_1.expectString)(output.ResourceType), - Severity: (0, smithy_client_1.expectString)(output.Severity), - Status: (0, smithy_client_1.expectString)(output.Status), - Title: (0, smithy_client_1.expectString)(output.Title), - }; -}; -const deserializeAws_json1_1ComplianceItemDetails = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: (0, smithy_client_1.expectString)(value), - }; - }, {}); -}; -const deserializeAws_json1_1ComplianceItemList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ComplianceItem(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1ComplianceSummaryItem = (output, context) => { - return { - ComplianceType: (0, smithy_client_1.expectString)(output.ComplianceType), - CompliantSummary: output.CompliantSummary != null - ? deserializeAws_json1_1CompliantSummary(output.CompliantSummary, context) - : undefined, - NonCompliantSummary: output.NonCompliantSummary != null - ? deserializeAws_json1_1NonCompliantSummary(output.NonCompliantSummary, context) - : undefined, - }; -}; -const deserializeAws_json1_1ComplianceSummaryItemList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ComplianceSummaryItem(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1ComplianceTypeCountLimitExceededException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1CompliantSummary = (output, context) => { - return { - CompliantCount: (0, smithy_client_1.expectInt32)(output.CompliantCount), - SeveritySummary: output.SeveritySummary != null - ? deserializeAws_json1_1SeveritySummary(output.SeveritySummary, context) - : undefined, - }; -}; -const deserializeAws_json1_1CreateActivationResult = (output, context) => { - return { - ActivationCode: (0, smithy_client_1.expectString)(output.ActivationCode), - ActivationId: (0, smithy_client_1.expectString)(output.ActivationId), - }; -}; -const deserializeAws_json1_1CreateAssociationBatchRequestEntry = (output, context) => { - return { - ApplyOnlyAtCronInterval: (0, smithy_client_1.expectBoolean)(output.ApplyOnlyAtCronInterval), - AssociationName: (0, smithy_client_1.expectString)(output.AssociationName), - AutomationTargetParameterName: (0, smithy_client_1.expectString)(output.AutomationTargetParameterName), - CalendarNames: output.CalendarNames != null - ? deserializeAws_json1_1CalendarNameOrARNList(output.CalendarNames, context) - : undefined, - ComplianceSeverity: (0, smithy_client_1.expectString)(output.ComplianceSeverity), - DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), - InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), - MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), - MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), - Name: (0, smithy_client_1.expectString)(output.Name), - OutputLocation: output.OutputLocation != null - ? deserializeAws_json1_1InstanceAssociationOutputLocation(output.OutputLocation, context) - : undefined, - Parameters: output.Parameters != null ? deserializeAws_json1_1Parameters(output.Parameters, context) : undefined, - ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression), - ScheduleOffset: (0, smithy_client_1.expectInt32)(output.ScheduleOffset), - SyncCompliance: (0, smithy_client_1.expectString)(output.SyncCompliance), - TargetLocations: output.TargetLocations != null - ? deserializeAws_json1_1TargetLocations(output.TargetLocations, context) - : undefined, - TargetMaps: output.TargetMaps != null ? deserializeAws_json1_1TargetMaps(output.TargetMaps, context) : undefined, - Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, - }; -}; -const deserializeAws_json1_1CreateAssociationBatchResult = (output, context) => { - return { - Failed: output.Failed != null ? deserializeAws_json1_1FailedCreateAssociationList(output.Failed, context) : undefined, - Successful: output.Successful != null - ? deserializeAws_json1_1AssociationDescriptionList(output.Successful, context) - : undefined, - }; -}; -const deserializeAws_json1_1CreateAssociationResult = (output, context) => { - return { - AssociationDescription: output.AssociationDescription != null - ? deserializeAws_json1_1AssociationDescription(output.AssociationDescription, context) - : undefined, - }; -}; -const deserializeAws_json1_1CreateDocumentResult = (output, context) => { - return { - DocumentDescription: output.DocumentDescription != null - ? deserializeAws_json1_1DocumentDescription(output.DocumentDescription, context) - : undefined, - }; -}; -const deserializeAws_json1_1CreateMaintenanceWindowResult = (output, context) => { - return { - WindowId: (0, smithy_client_1.expectString)(output.WindowId), - }; -}; -const deserializeAws_json1_1CreateOpsItemResponse = (output, context) => { - return { - OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), - }; -}; -const deserializeAws_json1_1CreateOpsMetadataResult = (output, context) => { - return { - OpsMetadataArn: (0, smithy_client_1.expectString)(output.OpsMetadataArn), - }; -}; -const deserializeAws_json1_1CreatePatchBaselineResult = (output, context) => { - return { - BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), - }; -}; -const deserializeAws_json1_1CreateResourceDataSyncResult = (output, context) => { - return {}; -}; -const deserializeAws_json1_1CustomSchemaCountLimitExceededException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1DeleteActivationResult = (output, context) => { - return {}; -}; -const deserializeAws_json1_1DeleteAssociationResult = (output, context) => { - return {}; -}; -const deserializeAws_json1_1DeleteDocumentResult = (output, context) => { - return {}; -}; -const deserializeAws_json1_1DeleteInventoryResult = (output, context) => { - return { - DeletionId: (0, smithy_client_1.expectString)(output.DeletionId), - DeletionSummary: output.DeletionSummary != null - ? deserializeAws_json1_1InventoryDeletionSummary(output.DeletionSummary, context) - : undefined, - TypeName: (0, smithy_client_1.expectString)(output.TypeName), - }; -}; -const deserializeAws_json1_1DeleteMaintenanceWindowResult = (output, context) => { - return { - WindowId: (0, smithy_client_1.expectString)(output.WindowId), - }; -}; -const deserializeAws_json1_1DeleteOpsMetadataResult = (output, context) => { - return {}; -}; -const deserializeAws_json1_1DeleteParameterResult = (output, context) => { - return {}; -}; -const deserializeAws_json1_1DeleteParametersResult = (output, context) => { - return { - DeletedParameters: output.DeletedParameters != null - ? deserializeAws_json1_1ParameterNameList(output.DeletedParameters, context) - : undefined, - InvalidParameters: output.InvalidParameters != null - ? deserializeAws_json1_1ParameterNameList(output.InvalidParameters, context) - : undefined, - }; -}; -const deserializeAws_json1_1DeletePatchBaselineResult = (output, context) => { - return { - BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), - }; -}; -const deserializeAws_json1_1DeleteResourceDataSyncResult = (output, context) => { - return {}; -}; -const deserializeAws_json1_1DeregisterManagedInstanceResult = (output, context) => { - return {}; -}; -const deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupResult = (output, context) => { - return { - BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), - PatchGroup: (0, smithy_client_1.expectString)(output.PatchGroup), - }; -}; -const deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowResult = (output, context) => { - return { - WindowId: (0, smithy_client_1.expectString)(output.WindowId), - WindowTargetId: (0, smithy_client_1.expectString)(output.WindowTargetId), - }; -}; -const deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowResult = (output, context) => { - return { - WindowId: (0, smithy_client_1.expectString)(output.WindowId), - WindowTaskId: (0, smithy_client_1.expectString)(output.WindowTaskId), - }; -}; -const deserializeAws_json1_1DescribeActivationsResult = (output, context) => { - return { - ActivationList: output.ActivationList != null ? deserializeAws_json1_1ActivationList(output.ActivationList, context) : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1DescribeAssociationExecutionsResult = (output, context) => { - return { - AssociationExecutions: output.AssociationExecutions != null - ? deserializeAws_json1_1AssociationExecutionsList(output.AssociationExecutions, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1DescribeAssociationExecutionTargetsResult = (output, context) => { - return { - AssociationExecutionTargets: output.AssociationExecutionTargets != null - ? deserializeAws_json1_1AssociationExecutionTargetsList(output.AssociationExecutionTargets, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1DescribeAssociationResult = (output, context) => { - return { - AssociationDescription: output.AssociationDescription != null - ? deserializeAws_json1_1AssociationDescription(output.AssociationDescription, context) - : undefined, - }; -}; -const deserializeAws_json1_1DescribeAutomationExecutionsResult = (output, context) => { - return { - AutomationExecutionMetadataList: output.AutomationExecutionMetadataList != null - ? deserializeAws_json1_1AutomationExecutionMetadataList(output.AutomationExecutionMetadataList, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1DescribeAutomationStepExecutionsResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - StepExecutions: output.StepExecutions != null - ? deserializeAws_json1_1StepExecutionList(output.StepExecutions, context) - : undefined, - }; -}; -const deserializeAws_json1_1DescribeAvailablePatchesResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - Patches: output.Patches != null ? deserializeAws_json1_1PatchList(output.Patches, context) : undefined, - }; -}; -const deserializeAws_json1_1DescribeDocumentPermissionResponse = (output, context) => { - return { - AccountIds: output.AccountIds != null ? deserializeAws_json1_1AccountIdList(output.AccountIds, context) : undefined, - AccountSharingInfoList: output.AccountSharingInfoList != null - ? deserializeAws_json1_1AccountSharingInfoList(output.AccountSharingInfoList, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1DescribeDocumentResult = (output, context) => { - return { - Document: output.Document != null ? deserializeAws_json1_1DocumentDescription(output.Document, context) : undefined, - }; -}; -const deserializeAws_json1_1DescribeEffectiveInstanceAssociationsResult = (output, context) => { - return { - Associations: output.Associations != null - ? deserializeAws_json1_1InstanceAssociationList(output.Associations, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineResult = (output, context) => { - return { - EffectivePatches: output.EffectivePatches != null - ? deserializeAws_json1_1EffectivePatchList(output.EffectivePatches, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1DescribeInstanceAssociationsStatusResult = (output, context) => { - return { - InstanceAssociationStatusInfos: output.InstanceAssociationStatusInfos != null - ? deserializeAws_json1_1InstanceAssociationStatusInfos(output.InstanceAssociationStatusInfos, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1DescribeInstanceInformationResult = (output, context) => { - return { - InstanceInformationList: output.InstanceInformationList != null - ? deserializeAws_json1_1InstanceInformationList(output.InstanceInformationList, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1DescribeInstancePatchesResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - Patches: output.Patches != null ? deserializeAws_json1_1PatchComplianceDataList(output.Patches, context) : undefined, - }; -}; -const deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupResult = (output, context) => { - return { - InstancePatchStates: output.InstancePatchStates != null - ? deserializeAws_json1_1InstancePatchStatesList(output.InstancePatchStates, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1DescribeInstancePatchStatesResult = (output, context) => { - return { - InstancePatchStates: output.InstancePatchStates != null - ? deserializeAws_json1_1InstancePatchStateList(output.InstancePatchStates, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1DescribeInventoryDeletionsResult = (output, context) => { - return { - InventoryDeletions: output.InventoryDeletions != null - ? deserializeAws_json1_1InventoryDeletionsList(output.InventoryDeletions, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1DescribeMaintenanceWindowExecutionsResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - WindowExecutions: output.WindowExecutions != null - ? deserializeAws_json1_1MaintenanceWindowExecutionList(output.WindowExecutions, context) - : undefined, - }; -}; -const deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - WindowExecutionTaskInvocationIdentities: output.WindowExecutionTaskInvocationIdentities != null - ? deserializeAws_json1_1MaintenanceWindowExecutionTaskInvocationIdentityList(output.WindowExecutionTaskInvocationIdentities, context) - : undefined, - }; -}; -const deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - WindowExecutionTaskIdentities: output.WindowExecutionTaskIdentities != null - ? deserializeAws_json1_1MaintenanceWindowExecutionTaskIdentityList(output.WindowExecutionTaskIdentities, context) - : undefined, - }; -}; -const deserializeAws_json1_1DescribeMaintenanceWindowScheduleResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - ScheduledWindowExecutions: output.ScheduledWindowExecutions != null - ? deserializeAws_json1_1ScheduledWindowExecutionList(output.ScheduledWindowExecutions, context) - : undefined, - }; -}; -const deserializeAws_json1_1DescribeMaintenanceWindowsForTargetResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - WindowIdentities: output.WindowIdentities != null - ? deserializeAws_json1_1MaintenanceWindowsForTargetList(output.WindowIdentities, context) - : undefined, - }; -}; -const deserializeAws_json1_1DescribeMaintenanceWindowsResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - WindowIdentities: output.WindowIdentities != null - ? deserializeAws_json1_1MaintenanceWindowIdentityList(output.WindowIdentities, context) - : undefined, - }; -}; -const deserializeAws_json1_1DescribeMaintenanceWindowTargetsResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - Targets: output.Targets != null ? deserializeAws_json1_1MaintenanceWindowTargetList(output.Targets, context) : undefined, - }; -}; -const deserializeAws_json1_1DescribeMaintenanceWindowTasksResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - Tasks: output.Tasks != null ? deserializeAws_json1_1MaintenanceWindowTaskList(output.Tasks, context) : undefined, - }; -}; -const deserializeAws_json1_1DescribeOpsItemsResponse = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - OpsItemSummaries: output.OpsItemSummaries != null - ? deserializeAws_json1_1OpsItemSummaries(output.OpsItemSummaries, context) - : undefined, - }; -}; -const deserializeAws_json1_1DescribeParametersResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - Parameters: output.Parameters != null ? deserializeAws_json1_1ParameterMetadataList(output.Parameters, context) : undefined, - }; -}; -const deserializeAws_json1_1DescribePatchBaselinesResult = (output, context) => { - return { - BaselineIdentities: output.BaselineIdentities != null - ? deserializeAws_json1_1PatchBaselineIdentityList(output.BaselineIdentities, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1DescribePatchGroupsResult = (output, context) => { - return { - Mappings: output.Mappings != null - ? deserializeAws_json1_1PatchGroupPatchBaselineMappingList(output.Mappings, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1DescribePatchGroupStateResult = (output, context) => { - return { - Instances: (0, smithy_client_1.expectInt32)(output.Instances), - InstancesWithCriticalNonCompliantPatches: (0, smithy_client_1.expectInt32)(output.InstancesWithCriticalNonCompliantPatches), - InstancesWithFailedPatches: (0, smithy_client_1.expectInt32)(output.InstancesWithFailedPatches), - InstancesWithInstalledOtherPatches: (0, smithy_client_1.expectInt32)(output.InstancesWithInstalledOtherPatches), - InstancesWithInstalledPatches: (0, smithy_client_1.expectInt32)(output.InstancesWithInstalledPatches), - InstancesWithInstalledPendingRebootPatches: (0, smithy_client_1.expectInt32)(output.InstancesWithInstalledPendingRebootPatches), - InstancesWithInstalledRejectedPatches: (0, smithy_client_1.expectInt32)(output.InstancesWithInstalledRejectedPatches), - InstancesWithMissingPatches: (0, smithy_client_1.expectInt32)(output.InstancesWithMissingPatches), - InstancesWithNotApplicablePatches: (0, smithy_client_1.expectInt32)(output.InstancesWithNotApplicablePatches), - InstancesWithOtherNonCompliantPatches: (0, smithy_client_1.expectInt32)(output.InstancesWithOtherNonCompliantPatches), - InstancesWithSecurityNonCompliantPatches: (0, smithy_client_1.expectInt32)(output.InstancesWithSecurityNonCompliantPatches), - InstancesWithUnreportedNotApplicablePatches: (0, smithy_client_1.expectInt32)(output.InstancesWithUnreportedNotApplicablePatches), - }; -}; -const deserializeAws_json1_1DescribePatchPropertiesResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - Properties: output.Properties != null ? deserializeAws_json1_1PatchPropertiesList(output.Properties, context) : undefined, - }; -}; -const deserializeAws_json1_1DescribeSessionsResponse = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - Sessions: output.Sessions != null ? deserializeAws_json1_1SessionList(output.Sessions, context) : undefined, - }; -}; -const deserializeAws_json1_1DisassociateOpsItemRelatedItemResponse = (output, context) => { - return {}; -}; -const deserializeAws_json1_1DocumentAlreadyExists = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1DocumentDefaultVersionDescription = (output, context) => { - return { - DefaultVersion: (0, smithy_client_1.expectString)(output.DefaultVersion), - DefaultVersionName: (0, smithy_client_1.expectString)(output.DefaultVersionName), - Name: (0, smithy_client_1.expectString)(output.Name), - }; -}; -const deserializeAws_json1_1DocumentDescription = (output, context) => { - return { - ApprovedVersion: (0, smithy_client_1.expectString)(output.ApprovedVersion), - AttachmentsInformation: output.AttachmentsInformation != null - ? deserializeAws_json1_1AttachmentInformationList(output.AttachmentsInformation, context) - : undefined, - Author: (0, smithy_client_1.expectString)(output.Author), - Category: output.Category != null ? deserializeAws_json1_1CategoryList(output.Category, context) : undefined, - CategoryEnum: output.CategoryEnum != null ? deserializeAws_json1_1CategoryEnumList(output.CategoryEnum, context) : undefined, - CreatedDate: output.CreatedDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate))) - : undefined, - DefaultVersion: (0, smithy_client_1.expectString)(output.DefaultVersion), - Description: (0, smithy_client_1.expectString)(output.Description), - DisplayName: (0, smithy_client_1.expectString)(output.DisplayName), - DocumentFormat: (0, smithy_client_1.expectString)(output.DocumentFormat), - DocumentType: (0, smithy_client_1.expectString)(output.DocumentType), - DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), - Hash: (0, smithy_client_1.expectString)(output.Hash), - HashType: (0, smithy_client_1.expectString)(output.HashType), - LatestVersion: (0, smithy_client_1.expectString)(output.LatestVersion), - Name: (0, smithy_client_1.expectString)(output.Name), - Owner: (0, smithy_client_1.expectString)(output.Owner), - Parameters: output.Parameters != null ? deserializeAws_json1_1DocumentParameterList(output.Parameters, context) : undefined, - PendingReviewVersion: (0, smithy_client_1.expectString)(output.PendingReviewVersion), - PlatformTypes: output.PlatformTypes != null ? deserializeAws_json1_1PlatformTypeList(output.PlatformTypes, context) : undefined, - Requires: output.Requires != null ? deserializeAws_json1_1DocumentRequiresList(output.Requires, context) : undefined, - ReviewInformation: output.ReviewInformation != null - ? deserializeAws_json1_1ReviewInformationList(output.ReviewInformation, context) - : undefined, - ReviewStatus: (0, smithy_client_1.expectString)(output.ReviewStatus), - SchemaVersion: (0, smithy_client_1.expectString)(output.SchemaVersion), - Sha1: (0, smithy_client_1.expectString)(output.Sha1), - Status: (0, smithy_client_1.expectString)(output.Status), - StatusInformation: (0, smithy_client_1.expectString)(output.StatusInformation), - Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined, - TargetType: (0, smithy_client_1.expectString)(output.TargetType), - VersionName: (0, smithy_client_1.expectString)(output.VersionName), - }; -}; -const deserializeAws_json1_1DocumentIdentifier = (output, context) => { - return { - Author: (0, smithy_client_1.expectString)(output.Author), - CreatedDate: output.CreatedDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate))) - : undefined, - DisplayName: (0, smithy_client_1.expectString)(output.DisplayName), - DocumentFormat: (0, smithy_client_1.expectString)(output.DocumentFormat), - DocumentType: (0, smithy_client_1.expectString)(output.DocumentType), - DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), - Name: (0, smithy_client_1.expectString)(output.Name), - Owner: (0, smithy_client_1.expectString)(output.Owner), - PlatformTypes: output.PlatformTypes != null ? deserializeAws_json1_1PlatformTypeList(output.PlatformTypes, context) : undefined, - Requires: output.Requires != null ? deserializeAws_json1_1DocumentRequiresList(output.Requires, context) : undefined, - ReviewStatus: (0, smithy_client_1.expectString)(output.ReviewStatus), - SchemaVersion: (0, smithy_client_1.expectString)(output.SchemaVersion), - Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined, - TargetType: (0, smithy_client_1.expectString)(output.TargetType), - VersionName: (0, smithy_client_1.expectString)(output.VersionName), - }; -}; -const deserializeAws_json1_1DocumentIdentifierList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1DocumentIdentifier(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1DocumentLimitExceeded = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1DocumentMetadataResponseInfo = (output, context) => { - return { - ReviewerResponse: output.ReviewerResponse != null - ? deserializeAws_json1_1DocumentReviewerResponseList(output.ReviewerResponse, context) - : undefined, - }; -}; -const deserializeAws_json1_1DocumentParameter = (output, context) => { - return { - DefaultValue: (0, smithy_client_1.expectString)(output.DefaultValue), - Description: (0, smithy_client_1.expectString)(output.Description), - Name: (0, smithy_client_1.expectString)(output.Name), - Type: (0, smithy_client_1.expectString)(output.Type), - }; -}; -const deserializeAws_json1_1DocumentParameterList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1DocumentParameter(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1DocumentPermissionLimit = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1DocumentRequires = (output, context) => { - return { - Name: (0, smithy_client_1.expectString)(output.Name), - Version: (0, smithy_client_1.expectString)(output.Version), - }; -}; -const deserializeAws_json1_1DocumentRequiresList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1DocumentRequires(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1DocumentReviewCommentList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1DocumentReviewCommentSource(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1DocumentReviewCommentSource = (output, context) => { - return { - Content: (0, smithy_client_1.expectString)(output.Content), - Type: (0, smithy_client_1.expectString)(output.Type), - }; -}; -const deserializeAws_json1_1DocumentReviewerResponseList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1DocumentReviewerResponseSource(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1DocumentReviewerResponseSource = (output, context) => { - return { - Comment: output.Comment != null ? deserializeAws_json1_1DocumentReviewCommentList(output.Comment, context) : undefined, - CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTime))) : undefined, - ReviewStatus: (0, smithy_client_1.expectString)(output.ReviewStatus), - Reviewer: (0, smithy_client_1.expectString)(output.Reviewer), - UpdatedTime: output.UpdatedTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTime))) - : undefined, - }; -}; -const deserializeAws_json1_1DocumentVersionInfo = (output, context) => { - return { - CreatedDate: output.CreatedDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate))) - : undefined, - DisplayName: (0, smithy_client_1.expectString)(output.DisplayName), - DocumentFormat: (0, smithy_client_1.expectString)(output.DocumentFormat), - DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), - IsDefaultVersion: (0, smithy_client_1.expectBoolean)(output.IsDefaultVersion), - Name: (0, smithy_client_1.expectString)(output.Name), - ReviewStatus: (0, smithy_client_1.expectString)(output.ReviewStatus), - Status: (0, smithy_client_1.expectString)(output.Status), - StatusInformation: (0, smithy_client_1.expectString)(output.StatusInformation), - VersionName: (0, smithy_client_1.expectString)(output.VersionName), - }; -}; -const deserializeAws_json1_1DocumentVersionLimitExceeded = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1DocumentVersionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1DocumentVersionInfo(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1DoesNotExistException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1DuplicateDocumentContent = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1DuplicateDocumentVersionName = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1DuplicateInstanceId = (output, context) => { - return {}; -}; -const deserializeAws_json1_1EffectivePatch = (output, context) => { - return { - Patch: output.Patch != null ? deserializeAws_json1_1Patch(output.Patch, context) : undefined, - PatchStatus: output.PatchStatus != null ? deserializeAws_json1_1PatchStatus(output.PatchStatus, context) : undefined, - }; -}; -const deserializeAws_json1_1EffectivePatchList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1EffectivePatch(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1FailedCreateAssociation = (output, context) => { - return { - Entry: output.Entry != null - ? deserializeAws_json1_1CreateAssociationBatchRequestEntry(output.Entry, context) - : undefined, - Fault: (0, smithy_client_1.expectString)(output.Fault), - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1FailedCreateAssociationList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1FailedCreateAssociation(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1FailureDetails = (output, context) => { - return { - Details: output.Details != null ? deserializeAws_json1_1AutomationParameterMap(output.Details, context) : undefined, - FailureStage: (0, smithy_client_1.expectString)(output.FailureStage), - FailureType: (0, smithy_client_1.expectString)(output.FailureType), - }; -}; -const deserializeAws_json1_1FeatureNotAvailableException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1GetAutomationExecutionResult = (output, context) => { - return { - AutomationExecution: output.AutomationExecution != null - ? deserializeAws_json1_1AutomationExecution(output.AutomationExecution, context) - : undefined, - }; -}; -const deserializeAws_json1_1GetCalendarStateResponse = (output, context) => { - return { - AtTime: (0, smithy_client_1.expectString)(output.AtTime), - NextTransitionTime: (0, smithy_client_1.expectString)(output.NextTransitionTime), - State: (0, smithy_client_1.expectString)(output.State), - }; -}; -const deserializeAws_json1_1GetCommandInvocationResult = (output, context) => { - return { - CloudWatchOutputConfig: output.CloudWatchOutputConfig != null - ? deserializeAws_json1_1CloudWatchOutputConfig(output.CloudWatchOutputConfig, context) - : undefined, - CommandId: (0, smithy_client_1.expectString)(output.CommandId), - Comment: (0, smithy_client_1.expectString)(output.Comment), - DocumentName: (0, smithy_client_1.expectString)(output.DocumentName), - DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), - ExecutionElapsedTime: (0, smithy_client_1.expectString)(output.ExecutionElapsedTime), - ExecutionEndDateTime: (0, smithy_client_1.expectString)(output.ExecutionEndDateTime), - ExecutionStartDateTime: (0, smithy_client_1.expectString)(output.ExecutionStartDateTime), - InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), - PluginName: (0, smithy_client_1.expectString)(output.PluginName), - ResponseCode: (0, smithy_client_1.expectInt32)(output.ResponseCode), - StandardErrorContent: (0, smithy_client_1.expectString)(output.StandardErrorContent), - StandardErrorUrl: (0, smithy_client_1.expectString)(output.StandardErrorUrl), - StandardOutputContent: (0, smithy_client_1.expectString)(output.StandardOutputContent), - StandardOutputUrl: (0, smithy_client_1.expectString)(output.StandardOutputUrl), - Status: (0, smithy_client_1.expectString)(output.Status), - StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), - }; -}; -const deserializeAws_json1_1GetConnectionStatusResponse = (output, context) => { - return { - Status: (0, smithy_client_1.expectString)(output.Status), - Target: (0, smithy_client_1.expectString)(output.Target), - }; -}; -const deserializeAws_json1_1GetDefaultPatchBaselineResult = (output, context) => { - return { - BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), - OperatingSystem: (0, smithy_client_1.expectString)(output.OperatingSystem), - }; -}; -const deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceResult = (output, context) => { - return { - InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), - Product: (0, smithy_client_1.expectString)(output.Product), - SnapshotDownloadUrl: (0, smithy_client_1.expectString)(output.SnapshotDownloadUrl), - SnapshotId: (0, smithy_client_1.expectString)(output.SnapshotId), - }; -}; -const deserializeAws_json1_1GetDocumentResult = (output, context) => { - return { - AttachmentsContent: output.AttachmentsContent != null - ? deserializeAws_json1_1AttachmentContentList(output.AttachmentsContent, context) - : undefined, - Content: (0, smithy_client_1.expectString)(output.Content), - CreatedDate: output.CreatedDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate))) - : undefined, - DisplayName: (0, smithy_client_1.expectString)(output.DisplayName), - DocumentFormat: (0, smithy_client_1.expectString)(output.DocumentFormat), - DocumentType: (0, smithy_client_1.expectString)(output.DocumentType), - DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), - Name: (0, smithy_client_1.expectString)(output.Name), - Requires: output.Requires != null ? deserializeAws_json1_1DocumentRequiresList(output.Requires, context) : undefined, - ReviewStatus: (0, smithy_client_1.expectString)(output.ReviewStatus), - Status: (0, smithy_client_1.expectString)(output.Status), - StatusInformation: (0, smithy_client_1.expectString)(output.StatusInformation), - VersionName: (0, smithy_client_1.expectString)(output.VersionName), - }; -}; -const deserializeAws_json1_1GetInventoryResult = (output, context) => { - return { - Entities: output.Entities != null ? deserializeAws_json1_1InventoryResultEntityList(output.Entities, context) : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1GetInventorySchemaResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - Schemas: output.Schemas != null ? deserializeAws_json1_1InventoryItemSchemaResultList(output.Schemas, context) : undefined, - }; -}; -const deserializeAws_json1_1GetMaintenanceWindowExecutionResult = (output, context) => { - return { - EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined, - StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined, - Status: (0, smithy_client_1.expectString)(output.Status), - StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), - TaskIds: output.TaskIds != null - ? deserializeAws_json1_1MaintenanceWindowExecutionTaskIdList(output.TaskIds, context) - : undefined, - WindowExecutionId: (0, smithy_client_1.expectString)(output.WindowExecutionId), - }; -}; -const deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationResult = (output, context) => { - return { - EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined, - ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId), - InvocationId: (0, smithy_client_1.expectString)(output.InvocationId), - OwnerInformation: (0, smithy_client_1.expectString)(output.OwnerInformation), - Parameters: (0, smithy_client_1.expectString)(output.Parameters), - StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined, - Status: (0, smithy_client_1.expectString)(output.Status), - StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), - TaskExecutionId: (0, smithy_client_1.expectString)(output.TaskExecutionId), - TaskType: (0, smithy_client_1.expectString)(output.TaskType), - WindowExecutionId: (0, smithy_client_1.expectString)(output.WindowExecutionId), - WindowTargetId: (0, smithy_client_1.expectString)(output.WindowTargetId), - }; -}; -const deserializeAws_json1_1GetMaintenanceWindowExecutionTaskResult = (output, context) => { - return { - EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined, - MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), - MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), - Priority: (0, smithy_client_1.expectInt32)(output.Priority), - ServiceRole: (0, smithy_client_1.expectString)(output.ServiceRole), - StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined, - Status: (0, smithy_client_1.expectString)(output.Status), - StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), - TaskArn: (0, smithy_client_1.expectString)(output.TaskArn), - TaskExecutionId: (0, smithy_client_1.expectString)(output.TaskExecutionId), - TaskParameters: output.TaskParameters != null - ? deserializeAws_json1_1MaintenanceWindowTaskParametersList(output.TaskParameters, context) - : undefined, - Type: (0, smithy_client_1.expectString)(output.Type), - WindowExecutionId: (0, smithy_client_1.expectString)(output.WindowExecutionId), - }; -}; -const deserializeAws_json1_1GetMaintenanceWindowResult = (output, context) => { - return { - AllowUnassociatedTargets: (0, smithy_client_1.expectBoolean)(output.AllowUnassociatedTargets), - CreatedDate: output.CreatedDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate))) - : undefined, - Cutoff: (0, smithy_client_1.expectInt32)(output.Cutoff), - Description: (0, smithy_client_1.expectString)(output.Description), - Duration: (0, smithy_client_1.expectInt32)(output.Duration), - Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled), - EndDate: (0, smithy_client_1.expectString)(output.EndDate), - ModifiedDate: output.ModifiedDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ModifiedDate))) - : undefined, - Name: (0, smithy_client_1.expectString)(output.Name), - NextExecutionTime: (0, smithy_client_1.expectString)(output.NextExecutionTime), - Schedule: (0, smithy_client_1.expectString)(output.Schedule), - ScheduleOffset: (0, smithy_client_1.expectInt32)(output.ScheduleOffset), - ScheduleTimezone: (0, smithy_client_1.expectString)(output.ScheduleTimezone), - StartDate: (0, smithy_client_1.expectString)(output.StartDate), - WindowId: (0, smithy_client_1.expectString)(output.WindowId), - }; -}; -const deserializeAws_json1_1GetMaintenanceWindowTaskResult = (output, context) => { - return { - CutoffBehavior: (0, smithy_client_1.expectString)(output.CutoffBehavior), - Description: (0, smithy_client_1.expectString)(output.Description), - LoggingInfo: output.LoggingInfo != null ? deserializeAws_json1_1LoggingInfo(output.LoggingInfo, context) : undefined, - MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), - MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), - Name: (0, smithy_client_1.expectString)(output.Name), - Priority: (0, smithy_client_1.expectInt32)(output.Priority), - ServiceRoleArn: (0, smithy_client_1.expectString)(output.ServiceRoleArn), - Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, - TaskArn: (0, smithy_client_1.expectString)(output.TaskArn), - TaskInvocationParameters: output.TaskInvocationParameters != null - ? deserializeAws_json1_1MaintenanceWindowTaskInvocationParameters(output.TaskInvocationParameters, context) - : undefined, - TaskParameters: output.TaskParameters != null - ? deserializeAws_json1_1MaintenanceWindowTaskParameters(output.TaskParameters, context) - : undefined, - TaskType: (0, smithy_client_1.expectString)(output.TaskType), - WindowId: (0, smithy_client_1.expectString)(output.WindowId), - WindowTaskId: (0, smithy_client_1.expectString)(output.WindowTaskId), - }; -}; -const deserializeAws_json1_1GetOpsItemResponse = (output, context) => { - return { - OpsItem: output.OpsItem != null ? deserializeAws_json1_1OpsItem(output.OpsItem, context) : undefined, - }; -}; -const deserializeAws_json1_1GetOpsMetadataResult = (output, context) => { - return { - Metadata: output.Metadata != null ? deserializeAws_json1_1MetadataMap(output.Metadata, context) : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - ResourceId: (0, smithy_client_1.expectString)(output.ResourceId), - }; -}; -const deserializeAws_json1_1GetOpsSummaryResult = (output, context) => { - return { - Entities: output.Entities != null ? deserializeAws_json1_1OpsEntityList(output.Entities, context) : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1GetParameterHistoryResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - Parameters: output.Parameters != null ? deserializeAws_json1_1ParameterHistoryList(output.Parameters, context) : undefined, - }; -}; -const deserializeAws_json1_1GetParameterResult = (output, context) => { - return { - Parameter: output.Parameter != null ? deserializeAws_json1_1Parameter(output.Parameter, context) : undefined, - }; -}; -const deserializeAws_json1_1GetParametersByPathResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - Parameters: output.Parameters != null ? deserializeAws_json1_1ParameterList(output.Parameters, context) : undefined, - }; -}; -const deserializeAws_json1_1GetParametersResult = (output, context) => { - return { - InvalidParameters: output.InvalidParameters != null - ? deserializeAws_json1_1ParameterNameList(output.InvalidParameters, context) - : undefined, - Parameters: output.Parameters != null ? deserializeAws_json1_1ParameterList(output.Parameters, context) : undefined, - }; -}; -const deserializeAws_json1_1GetPatchBaselineForPatchGroupResult = (output, context) => { - return { - BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), - OperatingSystem: (0, smithy_client_1.expectString)(output.OperatingSystem), - PatchGroup: (0, smithy_client_1.expectString)(output.PatchGroup), - }; -}; -const deserializeAws_json1_1GetPatchBaselineResult = (output, context) => { - return { - ApprovalRules: output.ApprovalRules != null ? deserializeAws_json1_1PatchRuleGroup(output.ApprovalRules, context) : undefined, - ApprovedPatches: output.ApprovedPatches != null ? deserializeAws_json1_1PatchIdList(output.ApprovedPatches, context) : undefined, - ApprovedPatchesComplianceLevel: (0, smithy_client_1.expectString)(output.ApprovedPatchesComplianceLevel), - ApprovedPatchesEnableNonSecurity: (0, smithy_client_1.expectBoolean)(output.ApprovedPatchesEnableNonSecurity), - BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), - CreatedDate: output.CreatedDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate))) - : undefined, - Description: (0, smithy_client_1.expectString)(output.Description), - GlobalFilters: output.GlobalFilters != null ? deserializeAws_json1_1PatchFilterGroup(output.GlobalFilters, context) : undefined, - ModifiedDate: output.ModifiedDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ModifiedDate))) - : undefined, - Name: (0, smithy_client_1.expectString)(output.Name), - OperatingSystem: (0, smithy_client_1.expectString)(output.OperatingSystem), - PatchGroups: output.PatchGroups != null ? deserializeAws_json1_1PatchGroupList(output.PatchGroups, context) : undefined, - RejectedPatches: output.RejectedPatches != null ? deserializeAws_json1_1PatchIdList(output.RejectedPatches, context) : undefined, - RejectedPatchesAction: (0, smithy_client_1.expectString)(output.RejectedPatchesAction), - Sources: output.Sources != null ? deserializeAws_json1_1PatchSourceList(output.Sources, context) : undefined, - }; -}; -const deserializeAws_json1_1GetServiceSettingResult = (output, context) => { - return { - ServiceSetting: output.ServiceSetting != null ? deserializeAws_json1_1ServiceSetting(output.ServiceSetting, context) : undefined, - }; -}; -const deserializeAws_json1_1HierarchyLevelLimitExceededException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1HierarchyTypeMismatchException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1IdempotentParameterMismatch = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1IncompatiblePolicyException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1InstanceAggregatedAssociationOverview = (output, context) => { - return { - DetailedStatus: (0, smithy_client_1.expectString)(output.DetailedStatus), - InstanceAssociationStatusAggregatedCount: output.InstanceAssociationStatusAggregatedCount != null - ? deserializeAws_json1_1InstanceAssociationStatusAggregatedCount(output.InstanceAssociationStatusAggregatedCount, context) - : undefined, - }; -}; -const deserializeAws_json1_1InstanceAssociation = (output, context) => { - return { - AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), - AssociationVersion: (0, smithy_client_1.expectString)(output.AssociationVersion), - Content: (0, smithy_client_1.expectString)(output.Content), - InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), - }; -}; -const deserializeAws_json1_1InstanceAssociationList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1InstanceAssociation(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1InstanceAssociationOutputLocation = (output, context) => { - return { - S3Location: output.S3Location != null ? deserializeAws_json1_1S3OutputLocation(output.S3Location, context) : undefined, - }; -}; -const deserializeAws_json1_1InstanceAssociationOutputUrl = (output, context) => { - return { - S3OutputUrl: output.S3OutputUrl != null ? deserializeAws_json1_1S3OutputUrl(output.S3OutputUrl, context) : undefined, - }; -}; -const deserializeAws_json1_1InstanceAssociationStatusAggregatedCount = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: (0, smithy_client_1.expectInt32)(value), - }; - }, {}); -}; -const deserializeAws_json1_1InstanceAssociationStatusInfo = (output, context) => { - return { - AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), - AssociationName: (0, smithy_client_1.expectString)(output.AssociationName), - AssociationVersion: (0, smithy_client_1.expectString)(output.AssociationVersion), - DetailedStatus: (0, smithy_client_1.expectString)(output.DetailedStatus), - DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), - ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode), - ExecutionDate: output.ExecutionDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExecutionDate))) - : undefined, - ExecutionSummary: (0, smithy_client_1.expectString)(output.ExecutionSummary), - InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), - Name: (0, smithy_client_1.expectString)(output.Name), - OutputUrl: output.OutputUrl != null - ? deserializeAws_json1_1InstanceAssociationOutputUrl(output.OutputUrl, context) - : undefined, - Status: (0, smithy_client_1.expectString)(output.Status), - }; -}; -const deserializeAws_json1_1InstanceAssociationStatusInfos = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1InstanceAssociationStatusInfo(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1InstanceIdList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1InstanceInformation = (output, context) => { - return { - ActivationId: (0, smithy_client_1.expectString)(output.ActivationId), - AgentVersion: (0, smithy_client_1.expectString)(output.AgentVersion), - AssociationOverview: output.AssociationOverview != null - ? deserializeAws_json1_1InstanceAggregatedAssociationOverview(output.AssociationOverview, context) - : undefined, - AssociationStatus: (0, smithy_client_1.expectString)(output.AssociationStatus), - ComputerName: (0, smithy_client_1.expectString)(output.ComputerName), - IPAddress: (0, smithy_client_1.expectString)(output.IPAddress), - IamRole: (0, smithy_client_1.expectString)(output.IamRole), - InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), - IsLatestVersion: (0, smithy_client_1.expectBoolean)(output.IsLatestVersion), - LastAssociationExecutionDate: output.LastAssociationExecutionDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAssociationExecutionDate))) - : undefined, - LastPingDateTime: output.LastPingDateTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastPingDateTime))) - : undefined, - LastSuccessfulAssociationExecutionDate: output.LastSuccessfulAssociationExecutionDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastSuccessfulAssociationExecutionDate))) - : undefined, - Name: (0, smithy_client_1.expectString)(output.Name), - PingStatus: (0, smithy_client_1.expectString)(output.PingStatus), - PlatformName: (0, smithy_client_1.expectString)(output.PlatformName), - PlatformType: (0, smithy_client_1.expectString)(output.PlatformType), - PlatformVersion: (0, smithy_client_1.expectString)(output.PlatformVersion), - RegistrationDate: output.RegistrationDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RegistrationDate))) - : undefined, - ResourceType: (0, smithy_client_1.expectString)(output.ResourceType), - SourceId: (0, smithy_client_1.expectString)(output.SourceId), - SourceType: (0, smithy_client_1.expectString)(output.SourceType), - }; -}; -const deserializeAws_json1_1InstanceInformationList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1InstanceInformation(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1InstancePatchState = (output, context) => { - return { - BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), - CriticalNonCompliantCount: (0, smithy_client_1.expectInt32)(output.CriticalNonCompliantCount), - FailedCount: (0, smithy_client_1.expectInt32)(output.FailedCount), - InstallOverrideList: (0, smithy_client_1.expectString)(output.InstallOverrideList), - InstalledCount: (0, smithy_client_1.expectInt32)(output.InstalledCount), - InstalledOtherCount: (0, smithy_client_1.expectInt32)(output.InstalledOtherCount), - InstalledPendingRebootCount: (0, smithy_client_1.expectInt32)(output.InstalledPendingRebootCount), - InstalledRejectedCount: (0, smithy_client_1.expectInt32)(output.InstalledRejectedCount), - InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), - LastNoRebootInstallOperationTime: output.LastNoRebootInstallOperationTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastNoRebootInstallOperationTime))) - : undefined, - MissingCount: (0, smithy_client_1.expectInt32)(output.MissingCount), - NotApplicableCount: (0, smithy_client_1.expectInt32)(output.NotApplicableCount), - Operation: (0, smithy_client_1.expectString)(output.Operation), - OperationEndTime: output.OperationEndTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OperationEndTime))) - : undefined, - OperationStartTime: output.OperationStartTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OperationStartTime))) - : undefined, - OtherNonCompliantCount: (0, smithy_client_1.expectInt32)(output.OtherNonCompliantCount), - OwnerInformation: (0, smithy_client_1.expectString)(output.OwnerInformation), - PatchGroup: (0, smithy_client_1.expectString)(output.PatchGroup), - RebootOption: (0, smithy_client_1.expectString)(output.RebootOption), - SecurityNonCompliantCount: (0, smithy_client_1.expectInt32)(output.SecurityNonCompliantCount), - SnapshotId: (0, smithy_client_1.expectString)(output.SnapshotId), - UnreportedNotApplicableCount: (0, smithy_client_1.expectInt32)(output.UnreportedNotApplicableCount), - }; -}; -const deserializeAws_json1_1InstancePatchStateList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1InstancePatchState(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1InstancePatchStatesList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1InstancePatchState(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1InternalServerError = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidActivation = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidActivationId = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidAggregatorException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidAllowedPatternException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1InvalidAssociation = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidAssociationVersion = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidAutomationExecutionParametersException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidAutomationSignalException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidAutomationStatusUpdateException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidCommandId = (output, context) => { - return {}; -}; -const deserializeAws_json1_1InvalidDeleteInventoryParametersException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidDeletionIdException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidDocument = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidDocumentContent = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidDocumentOperation = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidDocumentSchemaVersion = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidDocumentType = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidDocumentVersion = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidFilter = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidFilterKey = (output, context) => { - return {}; -}; -const deserializeAws_json1_1InvalidFilterOption = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1InvalidFilterValue = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidInstanceId = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidInstanceInformationFilterValue = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1InvalidInventoryGroupException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidInventoryItemContextException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidInventoryRequestException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidItemContentException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - TypeName: (0, smithy_client_1.expectString)(output.TypeName), - }; -}; -const deserializeAws_json1_1InvalidKeyId = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1InvalidNextToken = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidNotificationConfig = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidOptionException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidOutputFolder = (output, context) => { - return {}; -}; -const deserializeAws_json1_1InvalidOutputLocation = (output, context) => { - return {}; -}; -const deserializeAws_json1_1InvalidParameters = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidPermissionType = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidPluginName = (output, context) => { - return {}; -}; -const deserializeAws_json1_1InvalidPolicyAttributeException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1InvalidPolicyTypeException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1InvalidResourceId = (output, context) => { - return {}; -}; -const deserializeAws_json1_1InvalidResourceType = (output, context) => { - return {}; -}; -const deserializeAws_json1_1InvalidResultAttributeException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidRole = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidSchedule = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidTarget = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidTargetMaps = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidTypeNameException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InvalidUpdate = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1InventoryDeletionsList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1InventoryDeletionStatusItem(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1InventoryDeletionStatusItem = (output, context) => { - return { - DeletionId: (0, smithy_client_1.expectString)(output.DeletionId), - DeletionStartTime: output.DeletionStartTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeletionStartTime))) - : undefined, - DeletionSummary: output.DeletionSummary != null - ? deserializeAws_json1_1InventoryDeletionSummary(output.DeletionSummary, context) - : undefined, - LastStatus: (0, smithy_client_1.expectString)(output.LastStatus), - LastStatusMessage: (0, smithy_client_1.expectString)(output.LastStatusMessage), - LastStatusUpdateTime: output.LastStatusUpdateTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastStatusUpdateTime))) - : undefined, - TypeName: (0, smithy_client_1.expectString)(output.TypeName), - }; -}; -const deserializeAws_json1_1InventoryDeletionSummary = (output, context) => { - return { - RemainingCount: (0, smithy_client_1.expectInt32)(output.RemainingCount), - SummaryItems: output.SummaryItems != null - ? deserializeAws_json1_1InventoryDeletionSummaryItems(output.SummaryItems, context) - : undefined, - TotalCount: (0, smithy_client_1.expectInt32)(output.TotalCount), - }; -}; -const deserializeAws_json1_1InventoryDeletionSummaryItem = (output, context) => { - return { - Count: (0, smithy_client_1.expectInt32)(output.Count), - RemainingCount: (0, smithy_client_1.expectInt32)(output.RemainingCount), - Version: (0, smithy_client_1.expectString)(output.Version), - }; -}; -const deserializeAws_json1_1InventoryDeletionSummaryItems = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1InventoryDeletionSummaryItem(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1InventoryItemAttribute = (output, context) => { - return { - DataType: (0, smithy_client_1.expectString)(output.DataType), - Name: (0, smithy_client_1.expectString)(output.Name), - }; -}; -const deserializeAws_json1_1InventoryItemAttributeList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1InventoryItemAttribute(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1InventoryItemEntry = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: (0, smithy_client_1.expectString)(value), - }; - }, {}); -}; -const deserializeAws_json1_1InventoryItemEntryList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1InventoryItemEntry(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1InventoryItemSchema = (output, context) => { - return { - Attributes: output.Attributes != null - ? deserializeAws_json1_1InventoryItemAttributeList(output.Attributes, context) - : undefined, - DisplayName: (0, smithy_client_1.expectString)(output.DisplayName), - TypeName: (0, smithy_client_1.expectString)(output.TypeName), - Version: (0, smithy_client_1.expectString)(output.Version), - }; -}; -const deserializeAws_json1_1InventoryItemSchemaResultList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1InventoryItemSchema(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1InventoryResultEntity = (output, context) => { - return { - Data: output.Data != null ? deserializeAws_json1_1InventoryResultItemMap(output.Data, context) : undefined, - Id: (0, smithy_client_1.expectString)(output.Id), - }; -}; -const deserializeAws_json1_1InventoryResultEntityList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1InventoryResultEntity(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1InventoryResultItem = (output, context) => { - return { - CaptureTime: (0, smithy_client_1.expectString)(output.CaptureTime), - Content: output.Content != null ? deserializeAws_json1_1InventoryItemEntryList(output.Content, context) : undefined, - ContentHash: (0, smithy_client_1.expectString)(output.ContentHash), - SchemaVersion: (0, smithy_client_1.expectString)(output.SchemaVersion), - TypeName: (0, smithy_client_1.expectString)(output.TypeName), - }; -}; -const deserializeAws_json1_1InventoryResultItemMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_1InventoryResultItem(value, context), - }; - }, {}); -}; -const deserializeAws_json1_1InvocationDoesNotExist = (output, context) => { - return {}; -}; -const deserializeAws_json1_1ItemContentMismatchException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - TypeName: (0, smithy_client_1.expectString)(output.TypeName), - }; -}; -const deserializeAws_json1_1ItemSizeLimitExceededException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - TypeName: (0, smithy_client_1.expectString)(output.TypeName), - }; -}; -const deserializeAws_json1_1LabelParameterVersionResult = (output, context) => { - return { - InvalidLabels: output.InvalidLabels != null - ? deserializeAws_json1_1ParameterLabelList(output.InvalidLabels, context) - : undefined, - ParameterVersion: (0, smithy_client_1.expectLong)(output.ParameterVersion), - }; -}; -const deserializeAws_json1_1ListAssociationsResult = (output, context) => { - return { - Associations: output.Associations != null ? deserializeAws_json1_1AssociationList(output.Associations, context) : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1ListAssociationVersionsResult = (output, context) => { - return { - AssociationVersions: output.AssociationVersions != null - ? deserializeAws_json1_1AssociationVersionList(output.AssociationVersions, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1ListCommandInvocationsResult = (output, context) => { - return { - CommandInvocations: output.CommandInvocations != null - ? deserializeAws_json1_1CommandInvocationList(output.CommandInvocations, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1ListCommandsResult = (output, context) => { - return { - Commands: output.Commands != null ? deserializeAws_json1_1CommandList(output.Commands, context) : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1ListComplianceItemsResult = (output, context) => { - return { - ComplianceItems: output.ComplianceItems != null - ? deserializeAws_json1_1ComplianceItemList(output.ComplianceItems, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1ListComplianceSummariesResult = (output, context) => { - return { - ComplianceSummaryItems: output.ComplianceSummaryItems != null - ? deserializeAws_json1_1ComplianceSummaryItemList(output.ComplianceSummaryItems, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1ListDocumentMetadataHistoryResponse = (output, context) => { - return { - Author: (0, smithy_client_1.expectString)(output.Author), - DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), - Metadata: output.Metadata != null - ? deserializeAws_json1_1DocumentMetadataResponseInfo(output.Metadata, context) - : undefined, - Name: (0, smithy_client_1.expectString)(output.Name), - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1ListDocumentsResult = (output, context) => { - return { - DocumentIdentifiers: output.DocumentIdentifiers != null - ? deserializeAws_json1_1DocumentIdentifierList(output.DocumentIdentifiers, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1ListDocumentVersionsResult = (output, context) => { - return { - DocumentVersions: output.DocumentVersions != null - ? deserializeAws_json1_1DocumentVersionList(output.DocumentVersions, context) - : undefined, - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - }; -}; -const deserializeAws_json1_1ListInventoryEntriesResult = (output, context) => { - return { - CaptureTime: (0, smithy_client_1.expectString)(output.CaptureTime), - Entries: output.Entries != null ? deserializeAws_json1_1InventoryItemEntryList(output.Entries, context) : undefined, - InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - SchemaVersion: (0, smithy_client_1.expectString)(output.SchemaVersion), - TypeName: (0, smithy_client_1.expectString)(output.TypeName), - }; -}; -const deserializeAws_json1_1ListOpsItemEventsResponse = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - Summaries: output.Summaries != null ? deserializeAws_json1_1OpsItemEventSummaries(output.Summaries, context) : undefined, - }; -}; -const deserializeAws_json1_1ListOpsItemRelatedItemsResponse = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - Summaries: output.Summaries != null - ? deserializeAws_json1_1OpsItemRelatedItemSummaries(output.Summaries, context) - : undefined, - }; -}; -const deserializeAws_json1_1ListOpsMetadataResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - OpsMetadataList: output.OpsMetadataList != null - ? deserializeAws_json1_1OpsMetadataList(output.OpsMetadataList, context) - : undefined, - }; -}; -const deserializeAws_json1_1ListResourceComplianceSummariesResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - ResourceComplianceSummaryItems: output.ResourceComplianceSummaryItems != null - ? deserializeAws_json1_1ResourceComplianceSummaryItemList(output.ResourceComplianceSummaryItems, context) - : undefined, - }; -}; -const deserializeAws_json1_1ListResourceDataSyncResult = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - ResourceDataSyncItems: output.ResourceDataSyncItems != null - ? deserializeAws_json1_1ResourceDataSyncItemList(output.ResourceDataSyncItems, context) - : undefined, - }; -}; -const deserializeAws_json1_1ListTagsForResourceResult = (output, context) => { - return { - TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined, - }; -}; -const deserializeAws_json1_1LoggingInfo = (output, context) => { - return { - S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName), - S3KeyPrefix: (0, smithy_client_1.expectString)(output.S3KeyPrefix), - S3Region: (0, smithy_client_1.expectString)(output.S3Region), - }; -}; -const deserializeAws_json1_1MaintenanceWindowAutomationParameters = (output, context) => { - return { - DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), - Parameters: output.Parameters != null ? deserializeAws_json1_1AutomationParameterMap(output.Parameters, context) : undefined, - }; -}; -const deserializeAws_json1_1MaintenanceWindowExecution = (output, context) => { - return { - EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined, - StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined, - Status: (0, smithy_client_1.expectString)(output.Status), - StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), - WindowExecutionId: (0, smithy_client_1.expectString)(output.WindowExecutionId), - WindowId: (0, smithy_client_1.expectString)(output.WindowId), - }; -}; -const deserializeAws_json1_1MaintenanceWindowExecutionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1MaintenanceWindowExecution(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1MaintenanceWindowExecutionTaskIdentity = (output, context) => { - return { - EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined, - StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined, - Status: (0, smithy_client_1.expectString)(output.Status), - StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), - TaskArn: (0, smithy_client_1.expectString)(output.TaskArn), - TaskExecutionId: (0, smithy_client_1.expectString)(output.TaskExecutionId), - TaskType: (0, smithy_client_1.expectString)(output.TaskType), - WindowExecutionId: (0, smithy_client_1.expectString)(output.WindowExecutionId), - }; -}; -const deserializeAws_json1_1MaintenanceWindowExecutionTaskIdentityList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1MaintenanceWindowExecutionTaskIdentity(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1MaintenanceWindowExecutionTaskIdList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1MaintenanceWindowExecutionTaskInvocationIdentity = (output, context) => { - return { - EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined, - ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId), - InvocationId: (0, smithy_client_1.expectString)(output.InvocationId), - OwnerInformation: (0, smithy_client_1.expectString)(output.OwnerInformation), - Parameters: (0, smithy_client_1.expectString)(output.Parameters), - StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined, - Status: (0, smithy_client_1.expectString)(output.Status), - StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), - TaskExecutionId: (0, smithy_client_1.expectString)(output.TaskExecutionId), - TaskType: (0, smithy_client_1.expectString)(output.TaskType), - WindowExecutionId: (0, smithy_client_1.expectString)(output.WindowExecutionId), - WindowTargetId: (0, smithy_client_1.expectString)(output.WindowTargetId), - }; -}; -const deserializeAws_json1_1MaintenanceWindowExecutionTaskInvocationIdentityList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1MaintenanceWindowExecutionTaskInvocationIdentity(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1MaintenanceWindowIdentity = (output, context) => { - return { - Cutoff: (0, smithy_client_1.expectInt32)(output.Cutoff), - Description: (0, smithy_client_1.expectString)(output.Description), - Duration: (0, smithy_client_1.expectInt32)(output.Duration), - Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled), - EndDate: (0, smithy_client_1.expectString)(output.EndDate), - Name: (0, smithy_client_1.expectString)(output.Name), - NextExecutionTime: (0, smithy_client_1.expectString)(output.NextExecutionTime), - Schedule: (0, smithy_client_1.expectString)(output.Schedule), - ScheduleOffset: (0, smithy_client_1.expectInt32)(output.ScheduleOffset), - ScheduleTimezone: (0, smithy_client_1.expectString)(output.ScheduleTimezone), - StartDate: (0, smithy_client_1.expectString)(output.StartDate), - WindowId: (0, smithy_client_1.expectString)(output.WindowId), - }; -}; -const deserializeAws_json1_1MaintenanceWindowIdentityForTarget = (output, context) => { - return { - Name: (0, smithy_client_1.expectString)(output.Name), - WindowId: (0, smithy_client_1.expectString)(output.WindowId), - }; -}; -const deserializeAws_json1_1MaintenanceWindowIdentityList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1MaintenanceWindowIdentity(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1MaintenanceWindowLambdaParameters = (output, context) => { - return { - ClientContext: (0, smithy_client_1.expectString)(output.ClientContext), - Payload: output.Payload != null ? context.base64Decoder(output.Payload) : undefined, - Qualifier: (0, smithy_client_1.expectString)(output.Qualifier), - }; -}; -const deserializeAws_json1_1MaintenanceWindowRunCommandParameters = (output, context) => { - return { - CloudWatchOutputConfig: output.CloudWatchOutputConfig != null - ? deserializeAws_json1_1CloudWatchOutputConfig(output.CloudWatchOutputConfig, context) - : undefined, - Comment: (0, smithy_client_1.expectString)(output.Comment), - DocumentHash: (0, smithy_client_1.expectString)(output.DocumentHash), - DocumentHashType: (0, smithy_client_1.expectString)(output.DocumentHashType), - DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), - NotificationConfig: output.NotificationConfig != null - ? deserializeAws_json1_1NotificationConfig(output.NotificationConfig, context) - : undefined, - OutputS3BucketName: (0, smithy_client_1.expectString)(output.OutputS3BucketName), - OutputS3KeyPrefix: (0, smithy_client_1.expectString)(output.OutputS3KeyPrefix), - Parameters: output.Parameters != null ? deserializeAws_json1_1Parameters(output.Parameters, context) : undefined, - ServiceRoleArn: (0, smithy_client_1.expectString)(output.ServiceRoleArn), - TimeoutSeconds: (0, smithy_client_1.expectInt32)(output.TimeoutSeconds), - }; -}; -const deserializeAws_json1_1MaintenanceWindowsForTargetList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1MaintenanceWindowIdentityForTarget(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1MaintenanceWindowStepFunctionsParameters = (output, context) => { - return { - Input: (0, smithy_client_1.expectString)(output.Input), - Name: (0, smithy_client_1.expectString)(output.Name), - }; -}; -const deserializeAws_json1_1MaintenanceWindowTarget = (output, context) => { - return { - Description: (0, smithy_client_1.expectString)(output.Description), - Name: (0, smithy_client_1.expectString)(output.Name), - OwnerInformation: (0, smithy_client_1.expectString)(output.OwnerInformation), - ResourceType: (0, smithy_client_1.expectString)(output.ResourceType), - Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, - WindowId: (0, smithy_client_1.expectString)(output.WindowId), - WindowTargetId: (0, smithy_client_1.expectString)(output.WindowTargetId), - }; -}; -const deserializeAws_json1_1MaintenanceWindowTargetList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1MaintenanceWindowTarget(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1MaintenanceWindowTask = (output, context) => { - return { - CutoffBehavior: (0, smithy_client_1.expectString)(output.CutoffBehavior), - Description: (0, smithy_client_1.expectString)(output.Description), - LoggingInfo: output.LoggingInfo != null ? deserializeAws_json1_1LoggingInfo(output.LoggingInfo, context) : undefined, - MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), - MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), - Name: (0, smithy_client_1.expectString)(output.Name), - Priority: (0, smithy_client_1.expectInt32)(output.Priority), - ServiceRoleArn: (0, smithy_client_1.expectString)(output.ServiceRoleArn), - Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, - TaskArn: (0, smithy_client_1.expectString)(output.TaskArn), - TaskParameters: output.TaskParameters != null - ? deserializeAws_json1_1MaintenanceWindowTaskParameters(output.TaskParameters, context) - : undefined, - Type: (0, smithy_client_1.expectString)(output.Type), - WindowId: (0, smithy_client_1.expectString)(output.WindowId), - WindowTaskId: (0, smithy_client_1.expectString)(output.WindowTaskId), - }; -}; -const deserializeAws_json1_1MaintenanceWindowTaskInvocationParameters = (output, context) => { - return { - Automation: output.Automation != null - ? deserializeAws_json1_1MaintenanceWindowAutomationParameters(output.Automation, context) - : undefined, - Lambda: output.Lambda != null - ? deserializeAws_json1_1MaintenanceWindowLambdaParameters(output.Lambda, context) - : undefined, - RunCommand: output.RunCommand != null - ? deserializeAws_json1_1MaintenanceWindowRunCommandParameters(output.RunCommand, context) - : undefined, - StepFunctions: output.StepFunctions != null - ? deserializeAws_json1_1MaintenanceWindowStepFunctionsParameters(output.StepFunctions, context) - : undefined, - }; -}; -const deserializeAws_json1_1MaintenanceWindowTaskList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1MaintenanceWindowTask(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1MaintenanceWindowTaskParameters = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_1MaintenanceWindowTaskParameterValueExpression(value, context), - }; - }, {}); -}; -const deserializeAws_json1_1MaintenanceWindowTaskParametersList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1MaintenanceWindowTaskParameters(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1MaintenanceWindowTaskParameterValueExpression = (output, context) => { - return { - Values: output.Values != null - ? deserializeAws_json1_1MaintenanceWindowTaskParameterValueList(output.Values, context) - : undefined, - }; -}; -const deserializeAws_json1_1MaintenanceWindowTaskParameterValueList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1MaxDocumentSizeExceeded = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1MetadataMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_1MetadataValue(value, context), - }; - }, {}); -}; -const deserializeAws_json1_1MetadataValue = (output, context) => { - return { - Value: (0, smithy_client_1.expectString)(output.Value), - }; -}; -const deserializeAws_json1_1ModifyDocumentPermissionResponse = (output, context) => { - return {}; -}; -const deserializeAws_json1_1NonCompliantSummary = (output, context) => { - return { - NonCompliantCount: (0, smithy_client_1.expectInt32)(output.NonCompliantCount), - SeveritySummary: output.SeveritySummary != null - ? deserializeAws_json1_1SeveritySummary(output.SeveritySummary, context) - : undefined, - }; -}; -const deserializeAws_json1_1NormalStringMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: (0, smithy_client_1.expectString)(value), - }; - }, {}); -}; -const deserializeAws_json1_1NotificationConfig = (output, context) => { - return { - NotificationArn: (0, smithy_client_1.expectString)(output.NotificationArn), - NotificationEvents: output.NotificationEvents != null - ? deserializeAws_json1_1NotificationEventList(output.NotificationEvents, context) - : undefined, - NotificationType: (0, smithy_client_1.expectString)(output.NotificationType), - }; -}; -const deserializeAws_json1_1NotificationEventList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1OpsEntity = (output, context) => { - return { - Data: output.Data != null ? deserializeAws_json1_1OpsEntityItemMap(output.Data, context) : undefined, - Id: (0, smithy_client_1.expectString)(output.Id), - }; -}; -const deserializeAws_json1_1OpsEntityItem = (output, context) => { - return { - CaptureTime: (0, smithy_client_1.expectString)(output.CaptureTime), - Content: output.Content != null ? deserializeAws_json1_1OpsEntityItemEntryList(output.Content, context) : undefined, - }; -}; -const deserializeAws_json1_1OpsEntityItemEntry = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: (0, smithy_client_1.expectString)(value), - }; - }, {}); -}; -const deserializeAws_json1_1OpsEntityItemEntryList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1OpsEntityItemEntry(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1OpsEntityItemMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_1OpsEntityItem(value, context), - }; - }, {}); -}; -const deserializeAws_json1_1OpsEntityList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1OpsEntity(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1OpsItem = (output, context) => { - return { - ActualEndTime: output.ActualEndTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ActualEndTime))) - : undefined, - ActualStartTime: output.ActualStartTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ActualStartTime))) - : undefined, - Category: (0, smithy_client_1.expectString)(output.Category), - CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy), - CreatedTime: output.CreatedTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime))) - : undefined, - Description: (0, smithy_client_1.expectString)(output.Description), - LastModifiedBy: (0, smithy_client_1.expectString)(output.LastModifiedBy), - LastModifiedTime: output.LastModifiedTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime))) - : undefined, - Notifications: output.Notifications != null - ? deserializeAws_json1_1OpsItemNotifications(output.Notifications, context) - : undefined, - OperationalData: output.OperationalData != null - ? deserializeAws_json1_1OpsItemOperationalData(output.OperationalData, context) - : undefined, - OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), - OpsItemType: (0, smithy_client_1.expectString)(output.OpsItemType), - PlannedEndTime: output.PlannedEndTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.PlannedEndTime))) - : undefined, - PlannedStartTime: output.PlannedStartTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.PlannedStartTime))) - : undefined, - Priority: (0, smithy_client_1.expectInt32)(output.Priority), - RelatedOpsItems: output.RelatedOpsItems != null - ? deserializeAws_json1_1RelatedOpsItems(output.RelatedOpsItems, context) - : undefined, - Severity: (0, smithy_client_1.expectString)(output.Severity), - Source: (0, smithy_client_1.expectString)(output.Source), - Status: (0, smithy_client_1.expectString)(output.Status), - Title: (0, smithy_client_1.expectString)(output.Title), - Version: (0, smithy_client_1.expectString)(output.Version), - }; -}; -const deserializeAws_json1_1OpsItemAlreadyExistsException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), - }; -}; -const deserializeAws_json1_1OpsItemDataValue = (output, context) => { - return { - Type: (0, smithy_client_1.expectString)(output.Type), - Value: (0, smithy_client_1.expectString)(output.Value), - }; -}; -const deserializeAws_json1_1OpsItemEventSummaries = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1OpsItemEventSummary(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1OpsItemEventSummary = (output, context) => { - return { - CreatedBy: output.CreatedBy != null ? deserializeAws_json1_1OpsItemIdentity(output.CreatedBy, context) : undefined, - CreatedTime: output.CreatedTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime))) - : undefined, - Detail: (0, smithy_client_1.expectString)(output.Detail), - DetailType: (0, smithy_client_1.expectString)(output.DetailType), - EventId: (0, smithy_client_1.expectString)(output.EventId), - OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), - Source: (0, smithy_client_1.expectString)(output.Source), - }; -}; -const deserializeAws_json1_1OpsItemIdentity = (output, context) => { - return { - Arn: (0, smithy_client_1.expectString)(output.Arn), - }; -}; -const deserializeAws_json1_1OpsItemInvalidParameterException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - ParameterNames: output.ParameterNames != null - ? deserializeAws_json1_1OpsItemParameterNamesList(output.ParameterNames, context) - : undefined, - }; -}; -const deserializeAws_json1_1OpsItemLimitExceededException = (output, context) => { - return { - Limit: (0, smithy_client_1.expectInt32)(output.Limit), - LimitType: (0, smithy_client_1.expectString)(output.LimitType), - Message: (0, smithy_client_1.expectString)(output.Message), - ResourceTypes: output.ResourceTypes != null - ? deserializeAws_json1_1OpsItemParameterNamesList(output.ResourceTypes, context) - : undefined, - }; -}; -const deserializeAws_json1_1OpsItemNotFoundException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1OpsItemNotification = (output, context) => { - return { - Arn: (0, smithy_client_1.expectString)(output.Arn), - }; -}; -const deserializeAws_json1_1OpsItemNotifications = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1OpsItemNotification(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1OpsItemOperationalData = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_1OpsItemDataValue(value, context), - }; - }, {}); -}; -const deserializeAws_json1_1OpsItemParameterNamesList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1OpsItemRelatedItemAlreadyExistsException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), - ResourceUri: (0, smithy_client_1.expectString)(output.ResourceUri), - }; -}; -const deserializeAws_json1_1OpsItemRelatedItemAssociationNotFoundException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1OpsItemRelatedItemSummaries = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1OpsItemRelatedItemSummary(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1OpsItemRelatedItemSummary = (output, context) => { - return { - AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), - AssociationType: (0, smithy_client_1.expectString)(output.AssociationType), - CreatedBy: output.CreatedBy != null ? deserializeAws_json1_1OpsItemIdentity(output.CreatedBy, context) : undefined, - CreatedTime: output.CreatedTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime))) - : undefined, - LastModifiedBy: output.LastModifiedBy != null ? deserializeAws_json1_1OpsItemIdentity(output.LastModifiedBy, context) : undefined, - LastModifiedTime: output.LastModifiedTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime))) - : undefined, - OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), - ResourceType: (0, smithy_client_1.expectString)(output.ResourceType), - ResourceUri: (0, smithy_client_1.expectString)(output.ResourceUri), - }; -}; -const deserializeAws_json1_1OpsItemSummaries = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1OpsItemSummary(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1OpsItemSummary = (output, context) => { - return { - ActualEndTime: output.ActualEndTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ActualEndTime))) - : undefined, - ActualStartTime: output.ActualStartTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ActualStartTime))) - : undefined, - Category: (0, smithy_client_1.expectString)(output.Category), - CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy), - CreatedTime: output.CreatedTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime))) - : undefined, - LastModifiedBy: (0, smithy_client_1.expectString)(output.LastModifiedBy), - LastModifiedTime: output.LastModifiedTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime))) - : undefined, - OperationalData: output.OperationalData != null - ? deserializeAws_json1_1OpsItemOperationalData(output.OperationalData, context) - : undefined, - OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), - OpsItemType: (0, smithy_client_1.expectString)(output.OpsItemType), - PlannedEndTime: output.PlannedEndTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.PlannedEndTime))) - : undefined, - PlannedStartTime: output.PlannedStartTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.PlannedStartTime))) - : undefined, - Priority: (0, smithy_client_1.expectInt32)(output.Priority), - Severity: (0, smithy_client_1.expectString)(output.Severity), - Source: (0, smithy_client_1.expectString)(output.Source), - Status: (0, smithy_client_1.expectString)(output.Status), - Title: (0, smithy_client_1.expectString)(output.Title), - }; -}; -const deserializeAws_json1_1OpsMetadata = (output, context) => { - return { - CreationDate: output.CreationDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate))) - : undefined, - LastModifiedDate: output.LastModifiedDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate))) - : undefined, - LastModifiedUser: (0, smithy_client_1.expectString)(output.LastModifiedUser), - OpsMetadataArn: (0, smithy_client_1.expectString)(output.OpsMetadataArn), - ResourceId: (0, smithy_client_1.expectString)(output.ResourceId), - }; -}; -const deserializeAws_json1_1OpsMetadataAlreadyExistsException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1OpsMetadataInvalidArgumentException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1OpsMetadataKeyLimitExceededException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1OpsMetadataLimitExceededException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1OpsMetadataList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1OpsMetadata(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1OpsMetadataNotFoundException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1OpsMetadataTooManyUpdatesException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1OutputSource = (output, context) => { - return { - OutputSourceId: (0, smithy_client_1.expectString)(output.OutputSourceId), - OutputSourceType: (0, smithy_client_1.expectString)(output.OutputSourceType), - }; -}; -const deserializeAws_json1_1Parameter = (output, context) => { - return { - ARN: (0, smithy_client_1.expectString)(output.ARN), - DataType: (0, smithy_client_1.expectString)(output.DataType), - LastModifiedDate: output.LastModifiedDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate))) - : undefined, - Name: (0, smithy_client_1.expectString)(output.Name), - Selector: (0, smithy_client_1.expectString)(output.Selector), - SourceResult: (0, smithy_client_1.expectString)(output.SourceResult), - Type: (0, smithy_client_1.expectString)(output.Type), - Value: (0, smithy_client_1.expectString)(output.Value), - Version: (0, smithy_client_1.expectLong)(output.Version), - }; -}; -const deserializeAws_json1_1ParameterAlreadyExists = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1ParameterHistory = (output, context) => { - return { - AllowedPattern: (0, smithy_client_1.expectString)(output.AllowedPattern), - DataType: (0, smithy_client_1.expectString)(output.DataType), - Description: (0, smithy_client_1.expectString)(output.Description), - KeyId: (0, smithy_client_1.expectString)(output.KeyId), - Labels: output.Labels != null ? deserializeAws_json1_1ParameterLabelList(output.Labels, context) : undefined, - LastModifiedDate: output.LastModifiedDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate))) - : undefined, - LastModifiedUser: (0, smithy_client_1.expectString)(output.LastModifiedUser), - Name: (0, smithy_client_1.expectString)(output.Name), - Policies: output.Policies != null ? deserializeAws_json1_1ParameterPolicyList(output.Policies, context) : undefined, - Tier: (0, smithy_client_1.expectString)(output.Tier), - Type: (0, smithy_client_1.expectString)(output.Type), - Value: (0, smithy_client_1.expectString)(output.Value), - Version: (0, smithy_client_1.expectLong)(output.Version), - }; -}; -const deserializeAws_json1_1ParameterHistoryList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ParameterHistory(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1ParameterInlinePolicy = (output, context) => { - return { - PolicyStatus: (0, smithy_client_1.expectString)(output.PolicyStatus), - PolicyText: (0, smithy_client_1.expectString)(output.PolicyText), - PolicyType: (0, smithy_client_1.expectString)(output.PolicyType), - }; -}; -const deserializeAws_json1_1ParameterLabelList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1ParameterLimitExceeded = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1ParameterList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Parameter(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1ParameterMaxVersionLimitExceeded = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1ParameterMetadata = (output, context) => { - return { - AllowedPattern: (0, smithy_client_1.expectString)(output.AllowedPattern), - DataType: (0, smithy_client_1.expectString)(output.DataType), - Description: (0, smithy_client_1.expectString)(output.Description), - KeyId: (0, smithy_client_1.expectString)(output.KeyId), - LastModifiedDate: output.LastModifiedDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate))) - : undefined, - LastModifiedUser: (0, smithy_client_1.expectString)(output.LastModifiedUser), - Name: (0, smithy_client_1.expectString)(output.Name), - Policies: output.Policies != null ? deserializeAws_json1_1ParameterPolicyList(output.Policies, context) : undefined, - Tier: (0, smithy_client_1.expectString)(output.Tier), - Type: (0, smithy_client_1.expectString)(output.Type), - Version: (0, smithy_client_1.expectLong)(output.Version), - }; -}; -const deserializeAws_json1_1ParameterMetadataList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ParameterMetadata(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1ParameterNameList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1ParameterNotFound = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1ParameterPatternMismatchException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1ParameterPolicyList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ParameterInlinePolicy(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1Parameters = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_1ParameterValueList(value, context), - }; - }, {}); -}; -const deserializeAws_json1_1ParameterValueList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1ParameterVersionLabelLimitExceeded = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1ParameterVersionNotFound = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1Patch = (output, context) => { - return { - AdvisoryIds: output.AdvisoryIds != null ? deserializeAws_json1_1PatchAdvisoryIdList(output.AdvisoryIds, context) : undefined, - Arch: (0, smithy_client_1.expectString)(output.Arch), - BugzillaIds: output.BugzillaIds != null ? deserializeAws_json1_1PatchBugzillaIdList(output.BugzillaIds, context) : undefined, - CVEIds: output.CVEIds != null ? deserializeAws_json1_1PatchCVEIdList(output.CVEIds, context) : undefined, - Classification: (0, smithy_client_1.expectString)(output.Classification), - ContentUrl: (0, smithy_client_1.expectString)(output.ContentUrl), - Description: (0, smithy_client_1.expectString)(output.Description), - Epoch: (0, smithy_client_1.expectInt32)(output.Epoch), - Id: (0, smithy_client_1.expectString)(output.Id), - KbNumber: (0, smithy_client_1.expectString)(output.KbNumber), - Language: (0, smithy_client_1.expectString)(output.Language), - MsrcNumber: (0, smithy_client_1.expectString)(output.MsrcNumber), - MsrcSeverity: (0, smithy_client_1.expectString)(output.MsrcSeverity), - Name: (0, smithy_client_1.expectString)(output.Name), - Product: (0, smithy_client_1.expectString)(output.Product), - ProductFamily: (0, smithy_client_1.expectString)(output.ProductFamily), - Release: (0, smithy_client_1.expectString)(output.Release), - ReleaseDate: output.ReleaseDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReleaseDate))) - : undefined, - Repository: (0, smithy_client_1.expectString)(output.Repository), - Severity: (0, smithy_client_1.expectString)(output.Severity), - Title: (0, smithy_client_1.expectString)(output.Title), - Vendor: (0, smithy_client_1.expectString)(output.Vendor), - Version: (0, smithy_client_1.expectString)(output.Version), - }; -}; -const deserializeAws_json1_1PatchAdvisoryIdList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1PatchBaselineIdentity = (output, context) => { - return { - BaselineDescription: (0, smithy_client_1.expectString)(output.BaselineDescription), - BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), - BaselineName: (0, smithy_client_1.expectString)(output.BaselineName), - DefaultBaseline: (0, smithy_client_1.expectBoolean)(output.DefaultBaseline), - OperatingSystem: (0, smithy_client_1.expectString)(output.OperatingSystem), - }; -}; -const deserializeAws_json1_1PatchBaselineIdentityList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1PatchBaselineIdentity(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1PatchBugzillaIdList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1PatchComplianceData = (output, context) => { - return { - CVEIds: (0, smithy_client_1.expectString)(output.CVEIds), - Classification: (0, smithy_client_1.expectString)(output.Classification), - InstalledTime: output.InstalledTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.InstalledTime))) - : undefined, - KBId: (0, smithy_client_1.expectString)(output.KBId), - Severity: (0, smithy_client_1.expectString)(output.Severity), - State: (0, smithy_client_1.expectString)(output.State), - Title: (0, smithy_client_1.expectString)(output.Title), - }; -}; -const deserializeAws_json1_1PatchComplianceDataList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1PatchComplianceData(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1PatchCVEIdList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1PatchFilter = (output, context) => { - return { - Key: (0, smithy_client_1.expectString)(output.Key), - Values: output.Values != null ? deserializeAws_json1_1PatchFilterValueList(output.Values, context) : undefined, - }; -}; -const deserializeAws_json1_1PatchFilterGroup = (output, context) => { - return { - PatchFilters: output.PatchFilters != null ? deserializeAws_json1_1PatchFilterList(output.PatchFilters, context) : undefined, - }; -}; -const deserializeAws_json1_1PatchFilterList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1PatchFilter(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1PatchFilterValueList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1PatchGroupList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1PatchGroupPatchBaselineMapping = (output, context) => { - return { - BaselineIdentity: output.BaselineIdentity != null - ? deserializeAws_json1_1PatchBaselineIdentity(output.BaselineIdentity, context) - : undefined, - PatchGroup: (0, smithy_client_1.expectString)(output.PatchGroup), - }; -}; -const deserializeAws_json1_1PatchGroupPatchBaselineMappingList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1PatchGroupPatchBaselineMapping(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1PatchIdList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1PatchList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Patch(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1PatchPropertiesList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1PatchPropertyEntry(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1PatchPropertyEntry = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: (0, smithy_client_1.expectString)(value), - }; - }, {}); -}; -const deserializeAws_json1_1PatchRule = (output, context) => { - return { - ApproveAfterDays: (0, smithy_client_1.expectInt32)(output.ApproveAfterDays), - ApproveUntilDate: (0, smithy_client_1.expectString)(output.ApproveUntilDate), - ComplianceLevel: (0, smithy_client_1.expectString)(output.ComplianceLevel), - EnableNonSecurity: (0, smithy_client_1.expectBoolean)(output.EnableNonSecurity), - PatchFilterGroup: output.PatchFilterGroup != null - ? deserializeAws_json1_1PatchFilterGroup(output.PatchFilterGroup, context) - : undefined, - }; -}; -const deserializeAws_json1_1PatchRuleGroup = (output, context) => { - return { - PatchRules: output.PatchRules != null ? deserializeAws_json1_1PatchRuleList(output.PatchRules, context) : undefined, - }; -}; -const deserializeAws_json1_1PatchRuleList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1PatchRule(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1PatchSource = (output, context) => { - return { - Configuration: (0, smithy_client_1.expectString)(output.Configuration), - Name: (0, smithy_client_1.expectString)(output.Name), - Products: output.Products != null ? deserializeAws_json1_1PatchSourceProductList(output.Products, context) : undefined, - }; -}; -const deserializeAws_json1_1PatchSourceList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1PatchSource(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1PatchSourceProductList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1PatchStatus = (output, context) => { - return { - ApprovalDate: output.ApprovalDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ApprovalDate))) - : undefined, - ComplianceLevel: (0, smithy_client_1.expectString)(output.ComplianceLevel), - DeploymentStatus: (0, smithy_client_1.expectString)(output.DeploymentStatus), - }; -}; -const deserializeAws_json1_1PlatformTypeList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1PoliciesLimitExceededException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1ProgressCounters = (output, context) => { - return { - CancelledSteps: (0, smithy_client_1.expectInt32)(output.CancelledSteps), - FailedSteps: (0, smithy_client_1.expectInt32)(output.FailedSteps), - SuccessSteps: (0, smithy_client_1.expectInt32)(output.SuccessSteps), - TimedOutSteps: (0, smithy_client_1.expectInt32)(output.TimedOutSteps), - TotalSteps: (0, smithy_client_1.expectInt32)(output.TotalSteps), - }; -}; -const deserializeAws_json1_1PutComplianceItemsResult = (output, context) => { - return {}; -}; -const deserializeAws_json1_1PutInventoryResult = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1PutParameterResult = (output, context) => { - return { - Tier: (0, smithy_client_1.expectString)(output.Tier), - Version: (0, smithy_client_1.expectLong)(output.Version), - }; -}; -const deserializeAws_json1_1Regions = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1RegisterDefaultPatchBaselineResult = (output, context) => { - return { - BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), - }; -}; -const deserializeAws_json1_1RegisterPatchBaselineForPatchGroupResult = (output, context) => { - return { - BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), - PatchGroup: (0, smithy_client_1.expectString)(output.PatchGroup), - }; -}; -const deserializeAws_json1_1RegisterTargetWithMaintenanceWindowResult = (output, context) => { - return { - WindowTargetId: (0, smithy_client_1.expectString)(output.WindowTargetId), - }; -}; -const deserializeAws_json1_1RegisterTaskWithMaintenanceWindowResult = (output, context) => { - return { - WindowTaskId: (0, smithy_client_1.expectString)(output.WindowTaskId), - }; -}; -const deserializeAws_json1_1RelatedOpsItem = (output, context) => { - return { - OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), - }; -}; -const deserializeAws_json1_1RelatedOpsItems = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1RelatedOpsItem(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1RemoveTagsFromResourceResult = (output, context) => { - return {}; -}; -const deserializeAws_json1_1ResetServiceSettingResult = (output, context) => { - return { - ServiceSetting: output.ServiceSetting != null ? deserializeAws_json1_1ServiceSetting(output.ServiceSetting, context) : undefined, - }; -}; -const deserializeAws_json1_1ResolvedTargets = (output, context) => { - return { - ParameterValues: output.ParameterValues != null - ? deserializeAws_json1_1TargetParameterList(output.ParameterValues, context) - : undefined, - Truncated: (0, smithy_client_1.expectBoolean)(output.Truncated), - }; -}; -const deserializeAws_json1_1ResourceComplianceSummaryItem = (output, context) => { - return { - ComplianceType: (0, smithy_client_1.expectString)(output.ComplianceType), - CompliantSummary: output.CompliantSummary != null - ? deserializeAws_json1_1CompliantSummary(output.CompliantSummary, context) - : undefined, - ExecutionSummary: output.ExecutionSummary != null - ? deserializeAws_json1_1ComplianceExecutionSummary(output.ExecutionSummary, context) - : undefined, - NonCompliantSummary: output.NonCompliantSummary != null - ? deserializeAws_json1_1NonCompliantSummary(output.NonCompliantSummary, context) - : undefined, - OverallSeverity: (0, smithy_client_1.expectString)(output.OverallSeverity), - ResourceId: (0, smithy_client_1.expectString)(output.ResourceId), - ResourceType: (0, smithy_client_1.expectString)(output.ResourceType), - Status: (0, smithy_client_1.expectString)(output.Status), - }; -}; -const deserializeAws_json1_1ResourceComplianceSummaryItemList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ResourceComplianceSummaryItem(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1ResourceDataSyncAlreadyExistsException = (output, context) => { - return { - SyncName: (0, smithy_client_1.expectString)(output.SyncName), - }; -}; -const deserializeAws_json1_1ResourceDataSyncAwsOrganizationsSource = (output, context) => { - return { - OrganizationSourceType: (0, smithy_client_1.expectString)(output.OrganizationSourceType), - OrganizationalUnits: output.OrganizationalUnits != null - ? deserializeAws_json1_1ResourceDataSyncOrganizationalUnitList(output.OrganizationalUnits, context) - : undefined, - }; -}; -const deserializeAws_json1_1ResourceDataSyncConflictException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1ResourceDataSyncCountExceededException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1ResourceDataSyncDestinationDataSharing = (output, context) => { - return { - DestinationDataSharingType: (0, smithy_client_1.expectString)(output.DestinationDataSharingType), - }; -}; -const deserializeAws_json1_1ResourceDataSyncInvalidConfigurationException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1ResourceDataSyncItem = (output, context) => { - return { - LastStatus: (0, smithy_client_1.expectString)(output.LastStatus), - LastSuccessfulSyncTime: output.LastSuccessfulSyncTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastSuccessfulSyncTime))) - : undefined, - LastSyncStatusMessage: (0, smithy_client_1.expectString)(output.LastSyncStatusMessage), - LastSyncTime: output.LastSyncTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastSyncTime))) - : undefined, - S3Destination: output.S3Destination != null - ? deserializeAws_json1_1ResourceDataSyncS3Destination(output.S3Destination, context) - : undefined, - SyncCreatedTime: output.SyncCreatedTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SyncCreatedTime))) - : undefined, - SyncLastModifiedTime: output.SyncLastModifiedTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SyncLastModifiedTime))) - : undefined, - SyncName: (0, smithy_client_1.expectString)(output.SyncName), - SyncSource: output.SyncSource != null - ? deserializeAws_json1_1ResourceDataSyncSourceWithState(output.SyncSource, context) - : undefined, - SyncType: (0, smithy_client_1.expectString)(output.SyncType), - }; -}; -const deserializeAws_json1_1ResourceDataSyncItemList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ResourceDataSyncItem(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1ResourceDataSyncNotFoundException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - SyncName: (0, smithy_client_1.expectString)(output.SyncName), - SyncType: (0, smithy_client_1.expectString)(output.SyncType), - }; -}; -const deserializeAws_json1_1ResourceDataSyncOrganizationalUnit = (output, context) => { - return { - OrganizationalUnitId: (0, smithy_client_1.expectString)(output.OrganizationalUnitId), - }; -}; -const deserializeAws_json1_1ResourceDataSyncOrganizationalUnitList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ResourceDataSyncOrganizationalUnit(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1ResourceDataSyncS3Destination = (output, context) => { - return { - AWSKMSKeyARN: (0, smithy_client_1.expectString)(output.AWSKMSKeyARN), - BucketName: (0, smithy_client_1.expectString)(output.BucketName), - DestinationDataSharing: output.DestinationDataSharing != null - ? deserializeAws_json1_1ResourceDataSyncDestinationDataSharing(output.DestinationDataSharing, context) - : undefined, - Prefix: (0, smithy_client_1.expectString)(output.Prefix), - Region: (0, smithy_client_1.expectString)(output.Region), - SyncFormat: (0, smithy_client_1.expectString)(output.SyncFormat), - }; -}; -const deserializeAws_json1_1ResourceDataSyncSourceRegionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1ResourceDataSyncSourceWithState = (output, context) => { - return { - AwsOrganizationsSource: output.AwsOrganizationsSource != null - ? deserializeAws_json1_1ResourceDataSyncAwsOrganizationsSource(output.AwsOrganizationsSource, context) - : undefined, - EnableAllOpsDataSources: (0, smithy_client_1.expectBoolean)(output.EnableAllOpsDataSources), - IncludeFutureRegions: (0, smithy_client_1.expectBoolean)(output.IncludeFutureRegions), - SourceRegions: output.SourceRegions != null - ? deserializeAws_json1_1ResourceDataSyncSourceRegionList(output.SourceRegions, context) - : undefined, - SourceType: (0, smithy_client_1.expectString)(output.SourceType), - State: (0, smithy_client_1.expectString)(output.State), - }; -}; -const deserializeAws_json1_1ResourceInUseException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1ResourceLimitExceededException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1ResumeSessionResponse = (output, context) => { - return { - SessionId: (0, smithy_client_1.expectString)(output.SessionId), - StreamUrl: (0, smithy_client_1.expectString)(output.StreamUrl), - TokenValue: (0, smithy_client_1.expectString)(output.TokenValue), - }; -}; -const deserializeAws_json1_1ReviewInformation = (output, context) => { - return { - ReviewedTime: output.ReviewedTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReviewedTime))) - : undefined, - Reviewer: (0, smithy_client_1.expectString)(output.Reviewer), - Status: (0, smithy_client_1.expectString)(output.Status), - }; -}; -const deserializeAws_json1_1ReviewInformationList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ReviewInformation(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1Runbook = (output, context) => { - return { - DocumentName: (0, smithy_client_1.expectString)(output.DocumentName), - DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), - MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), - MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), - Parameters: output.Parameters != null ? deserializeAws_json1_1AutomationParameterMap(output.Parameters, context) : undefined, - TargetLocations: output.TargetLocations != null - ? deserializeAws_json1_1TargetLocations(output.TargetLocations, context) - : undefined, - TargetMaps: output.TargetMaps != null ? deserializeAws_json1_1TargetMaps(output.TargetMaps, context) : undefined, - TargetParameterName: (0, smithy_client_1.expectString)(output.TargetParameterName), - Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, - }; -}; -const deserializeAws_json1_1Runbooks = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Runbook(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1S3OutputLocation = (output, context) => { - return { - OutputS3BucketName: (0, smithy_client_1.expectString)(output.OutputS3BucketName), - OutputS3KeyPrefix: (0, smithy_client_1.expectString)(output.OutputS3KeyPrefix), - OutputS3Region: (0, smithy_client_1.expectString)(output.OutputS3Region), - }; -}; -const deserializeAws_json1_1S3OutputUrl = (output, context) => { - return { - OutputUrl: (0, smithy_client_1.expectString)(output.OutputUrl), - }; -}; -const deserializeAws_json1_1ScheduledWindowExecution = (output, context) => { - return { - ExecutionTime: (0, smithy_client_1.expectString)(output.ExecutionTime), - Name: (0, smithy_client_1.expectString)(output.Name), - WindowId: (0, smithy_client_1.expectString)(output.WindowId), - }; -}; -const deserializeAws_json1_1ScheduledWindowExecutionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1ScheduledWindowExecution(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1SendAutomationSignalResult = (output, context) => { - return {}; -}; -const deserializeAws_json1_1SendCommandResult = (output, context) => { - return { - Command: output.Command != null ? deserializeAws_json1_1Command(output.Command, context) : undefined, - }; -}; -const deserializeAws_json1_1ServiceSetting = (output, context) => { - return { - ARN: (0, smithy_client_1.expectString)(output.ARN), - LastModifiedDate: output.LastModifiedDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate))) - : undefined, - LastModifiedUser: (0, smithy_client_1.expectString)(output.LastModifiedUser), - SettingId: (0, smithy_client_1.expectString)(output.SettingId), - SettingValue: (0, smithy_client_1.expectString)(output.SettingValue), - Status: (0, smithy_client_1.expectString)(output.Status), - }; -}; -const deserializeAws_json1_1ServiceSettingNotFound = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1Session = (output, context) => { - return { - Details: (0, smithy_client_1.expectString)(output.Details), - DocumentName: (0, smithy_client_1.expectString)(output.DocumentName), - EndDate: output.EndDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndDate))) : undefined, - MaxSessionDuration: (0, smithy_client_1.expectString)(output.MaxSessionDuration), - OutputUrl: output.OutputUrl != null ? deserializeAws_json1_1SessionManagerOutputUrl(output.OutputUrl, context) : undefined, - Owner: (0, smithy_client_1.expectString)(output.Owner), - Reason: (0, smithy_client_1.expectString)(output.Reason), - SessionId: (0, smithy_client_1.expectString)(output.SessionId), - StartDate: output.StartDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartDate))) : undefined, - Status: (0, smithy_client_1.expectString)(output.Status), - Target: (0, smithy_client_1.expectString)(output.Target), - }; -}; -const deserializeAws_json1_1SessionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Session(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1SessionManagerOutputUrl = (output, context) => { - return { - CloudWatchOutputUrl: (0, smithy_client_1.expectString)(output.CloudWatchOutputUrl), - S3OutputUrl: (0, smithy_client_1.expectString)(output.S3OutputUrl), - }; -}; -const deserializeAws_json1_1SeveritySummary = (output, context) => { - return { - CriticalCount: (0, smithy_client_1.expectInt32)(output.CriticalCount), - HighCount: (0, smithy_client_1.expectInt32)(output.HighCount), - InformationalCount: (0, smithy_client_1.expectInt32)(output.InformationalCount), - LowCount: (0, smithy_client_1.expectInt32)(output.LowCount), - MediumCount: (0, smithy_client_1.expectInt32)(output.MediumCount), - UnspecifiedCount: (0, smithy_client_1.expectInt32)(output.UnspecifiedCount), - }; -}; -const deserializeAws_json1_1StartAssociationsOnceResult = (output, context) => { - return {}; -}; -const deserializeAws_json1_1StartAutomationExecutionResult = (output, context) => { - return { - AutomationExecutionId: (0, smithy_client_1.expectString)(output.AutomationExecutionId), - }; -}; -const deserializeAws_json1_1StartChangeRequestExecutionResult = (output, context) => { - return { - AutomationExecutionId: (0, smithy_client_1.expectString)(output.AutomationExecutionId), - }; -}; -const deserializeAws_json1_1StartSessionResponse = (output, context) => { - return { - SessionId: (0, smithy_client_1.expectString)(output.SessionId), - StreamUrl: (0, smithy_client_1.expectString)(output.StreamUrl), - TokenValue: (0, smithy_client_1.expectString)(output.TokenValue), - }; -}; -const deserializeAws_json1_1StatusUnchanged = (output, context) => { - return {}; -}; -const deserializeAws_json1_1StepExecution = (output, context) => { - return { - Action: (0, smithy_client_1.expectString)(output.Action), - ExecutionEndTime: output.ExecutionEndTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExecutionEndTime))) - : undefined, - ExecutionStartTime: output.ExecutionStartTime != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExecutionStartTime))) - : undefined, - FailureDetails: output.FailureDetails != null ? deserializeAws_json1_1FailureDetails(output.FailureDetails, context) : undefined, - FailureMessage: (0, smithy_client_1.expectString)(output.FailureMessage), - Inputs: output.Inputs != null ? deserializeAws_json1_1NormalStringMap(output.Inputs, context) : undefined, - IsCritical: (0, smithy_client_1.expectBoolean)(output.IsCritical), - IsEnd: (0, smithy_client_1.expectBoolean)(output.IsEnd), - MaxAttempts: (0, smithy_client_1.expectInt32)(output.MaxAttempts), - NextStep: (0, smithy_client_1.expectString)(output.NextStep), - OnFailure: (0, smithy_client_1.expectString)(output.OnFailure), - Outputs: output.Outputs != null ? deserializeAws_json1_1AutomationParameterMap(output.Outputs, context) : undefined, - OverriddenParameters: output.OverriddenParameters != null - ? deserializeAws_json1_1AutomationParameterMap(output.OverriddenParameters, context) - : undefined, - Response: (0, smithy_client_1.expectString)(output.Response), - ResponseCode: (0, smithy_client_1.expectString)(output.ResponseCode), - StepExecutionId: (0, smithy_client_1.expectString)(output.StepExecutionId), - StepName: (0, smithy_client_1.expectString)(output.StepName), - StepStatus: (0, smithy_client_1.expectString)(output.StepStatus), - TargetLocation: output.TargetLocation != null ? deserializeAws_json1_1TargetLocation(output.TargetLocation, context) : undefined, - Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, - TimeoutSeconds: (0, smithy_client_1.expectLong)(output.TimeoutSeconds), - ValidNextSteps: output.ValidNextSteps != null - ? deserializeAws_json1_1ValidNextStepList(output.ValidNextSteps, context) - : undefined, - }; -}; -const deserializeAws_json1_1StepExecutionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1StepExecution(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1StopAutomationExecutionResult = (output, context) => { - return {}; -}; -const deserializeAws_json1_1SubTypeCountLimitExceededException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1Tag = (output, context) => { - return { - Key: (0, smithy_client_1.expectString)(output.Key), - Value: (0, smithy_client_1.expectString)(output.Value), - }; -}; -const deserializeAws_json1_1TagList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Tag(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1Target = (output, context) => { - return { - Key: (0, smithy_client_1.expectString)(output.Key), - Values: output.Values != null ? deserializeAws_json1_1TargetValues(output.Values, context) : undefined, - }; -}; -const deserializeAws_json1_1TargetInUseException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1TargetLocation = (output, context) => { - return { - Accounts: output.Accounts != null ? deserializeAws_json1_1Accounts(output.Accounts, context) : undefined, - ExecutionRoleName: (0, smithy_client_1.expectString)(output.ExecutionRoleName), - Regions: output.Regions != null ? deserializeAws_json1_1Regions(output.Regions, context) : undefined, - TargetLocationMaxConcurrency: (0, smithy_client_1.expectString)(output.TargetLocationMaxConcurrency), - TargetLocationMaxErrors: (0, smithy_client_1.expectString)(output.TargetLocationMaxErrors), - }; -}; -const deserializeAws_json1_1TargetLocations = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1TargetLocation(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1TargetMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_1TargetMapValueList(value, context), - }; - }, {}); -}; -const deserializeAws_json1_1TargetMaps = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1TargetMap(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1TargetMapValueList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1TargetNotConnected = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1TargetParameterList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1Targets = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_1Target(entry, context); - }); - return retVal; -}; -const deserializeAws_json1_1TargetValues = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeAws_json1_1TerminateSessionResponse = (output, context) => { - return { - SessionId: (0, smithy_client_1.expectString)(output.SessionId), - }; -}; -const deserializeAws_json1_1TooManyTagsError = (output, context) => { - return {}; -}; -const deserializeAws_json1_1TooManyUpdates = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1TotalSizeLimitExceededException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1UnlabelParameterVersionResult = (output, context) => { - return { - InvalidLabels: output.InvalidLabels != null - ? deserializeAws_json1_1ParameterLabelList(output.InvalidLabels, context) - : undefined, - RemovedLabels: output.RemovedLabels != null - ? deserializeAws_json1_1ParameterLabelList(output.RemovedLabels, context) - : undefined, - }; -}; -const deserializeAws_json1_1UnsupportedCalendarException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1UnsupportedFeatureRequiredException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1UnsupportedInventoryItemContextException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - TypeName: (0, smithy_client_1.expectString)(output.TypeName), - }; -}; -const deserializeAws_json1_1UnsupportedInventorySchemaVersionException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1UnsupportedOperatingSystem = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1UnsupportedParameterType = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message), - }; -}; -const deserializeAws_json1_1UnsupportedPlatformType = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message), - }; -}; -const deserializeAws_json1_1UpdateAssociationResult = (output, context) => { - return { - AssociationDescription: output.AssociationDescription != null - ? deserializeAws_json1_1AssociationDescription(output.AssociationDescription, context) - : undefined, - }; -}; -const deserializeAws_json1_1UpdateAssociationStatusResult = (output, context) => { - return { - AssociationDescription: output.AssociationDescription != null - ? deserializeAws_json1_1AssociationDescription(output.AssociationDescription, context) - : undefined, - }; -}; -const deserializeAws_json1_1UpdateDocumentDefaultVersionResult = (output, context) => { - return { - Description: output.Description != null - ? deserializeAws_json1_1DocumentDefaultVersionDescription(output.Description, context) - : undefined, - }; -}; -const deserializeAws_json1_1UpdateDocumentMetadataResponse = (output, context) => { - return {}; -}; -const deserializeAws_json1_1UpdateDocumentResult = (output, context) => { - return { - DocumentDescription: output.DocumentDescription != null - ? deserializeAws_json1_1DocumentDescription(output.DocumentDescription, context) - : undefined, - }; -}; -const deserializeAws_json1_1UpdateMaintenanceWindowResult = (output, context) => { - return { - AllowUnassociatedTargets: (0, smithy_client_1.expectBoolean)(output.AllowUnassociatedTargets), - Cutoff: (0, smithy_client_1.expectInt32)(output.Cutoff), - Description: (0, smithy_client_1.expectString)(output.Description), - Duration: (0, smithy_client_1.expectInt32)(output.Duration), - Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled), - EndDate: (0, smithy_client_1.expectString)(output.EndDate), - Name: (0, smithy_client_1.expectString)(output.Name), - Schedule: (0, smithy_client_1.expectString)(output.Schedule), - ScheduleOffset: (0, smithy_client_1.expectInt32)(output.ScheduleOffset), - ScheduleTimezone: (0, smithy_client_1.expectString)(output.ScheduleTimezone), - StartDate: (0, smithy_client_1.expectString)(output.StartDate), - WindowId: (0, smithy_client_1.expectString)(output.WindowId), - }; -}; -const deserializeAws_json1_1UpdateMaintenanceWindowTargetResult = (output, context) => { - return { - Description: (0, smithy_client_1.expectString)(output.Description), - Name: (0, smithy_client_1.expectString)(output.Name), - OwnerInformation: (0, smithy_client_1.expectString)(output.OwnerInformation), - Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, - WindowId: (0, smithy_client_1.expectString)(output.WindowId), - WindowTargetId: (0, smithy_client_1.expectString)(output.WindowTargetId), - }; -}; -const deserializeAws_json1_1UpdateMaintenanceWindowTaskResult = (output, context) => { - return { - CutoffBehavior: (0, smithy_client_1.expectString)(output.CutoffBehavior), - Description: (0, smithy_client_1.expectString)(output.Description), - LoggingInfo: output.LoggingInfo != null ? deserializeAws_json1_1LoggingInfo(output.LoggingInfo, context) : undefined, - MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), - MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), - Name: (0, smithy_client_1.expectString)(output.Name), - Priority: (0, smithy_client_1.expectInt32)(output.Priority), - ServiceRoleArn: (0, smithy_client_1.expectString)(output.ServiceRoleArn), - Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, - TaskArn: (0, smithy_client_1.expectString)(output.TaskArn), - TaskInvocationParameters: output.TaskInvocationParameters != null - ? deserializeAws_json1_1MaintenanceWindowTaskInvocationParameters(output.TaskInvocationParameters, context) - : undefined, - TaskParameters: output.TaskParameters != null - ? deserializeAws_json1_1MaintenanceWindowTaskParameters(output.TaskParameters, context) - : undefined, - WindowId: (0, smithy_client_1.expectString)(output.WindowId), - WindowTaskId: (0, smithy_client_1.expectString)(output.WindowTaskId), - }; -}; -const deserializeAws_json1_1UpdateManagedInstanceRoleResult = (output, context) => { - return {}; -}; -const deserializeAws_json1_1UpdateOpsItemResponse = (output, context) => { - return {}; -}; -const deserializeAws_json1_1UpdateOpsMetadataResult = (output, context) => { - return { - OpsMetadataArn: (0, smithy_client_1.expectString)(output.OpsMetadataArn), - }; -}; -const deserializeAws_json1_1UpdatePatchBaselineResult = (output, context) => { - return { - ApprovalRules: output.ApprovalRules != null ? deserializeAws_json1_1PatchRuleGroup(output.ApprovalRules, context) : undefined, - ApprovedPatches: output.ApprovedPatches != null ? deserializeAws_json1_1PatchIdList(output.ApprovedPatches, context) : undefined, - ApprovedPatchesComplianceLevel: (0, smithy_client_1.expectString)(output.ApprovedPatchesComplianceLevel), - ApprovedPatchesEnableNonSecurity: (0, smithy_client_1.expectBoolean)(output.ApprovedPatchesEnableNonSecurity), - BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), - CreatedDate: output.CreatedDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate))) - : undefined, - Description: (0, smithy_client_1.expectString)(output.Description), - GlobalFilters: output.GlobalFilters != null ? deserializeAws_json1_1PatchFilterGroup(output.GlobalFilters, context) : undefined, - ModifiedDate: output.ModifiedDate != null - ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ModifiedDate))) - : undefined, - Name: (0, smithy_client_1.expectString)(output.Name), - OperatingSystem: (0, smithy_client_1.expectString)(output.OperatingSystem), - RejectedPatches: output.RejectedPatches != null ? deserializeAws_json1_1PatchIdList(output.RejectedPatches, context) : undefined, - RejectedPatchesAction: (0, smithy_client_1.expectString)(output.RejectedPatchesAction), - Sources: output.Sources != null ? deserializeAws_json1_1PatchSourceList(output.Sources, context) : undefined, - }; -}; -const deserializeAws_json1_1UpdateResourceDataSyncResult = (output, context) => { - return {}; -}; -const deserializeAws_json1_1UpdateServiceSettingResult = (output, context) => { - return {}; -}; -const deserializeAws_json1_1ValidNextStepList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; -}; -const deserializeMetadata = (output) => { - var _a; - return ({ - httpStatusCode: output.statusCode, - requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], - }); -}; -const collectBody = (streamBody = new Uint8Array(), context) => { - if (streamBody instanceof Uint8Array) { - return Promise.resolve(streamBody); - } - return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); -}; -const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); -const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const contents = { - protocol, - hostname, - port, - method: "POST", - path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, - headers, - }; - if (resolvedHostname !== undefined) { - contents.hostname = resolvedHostname; - } - if (body !== undefined) { - contents.body = body; - } - return new protocol_http_1.HttpRequest(contents); -}; -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; -}); -const loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (typeof cleanValue === "number") { - cleanValue = cleanValue.toString(); - } - if (cleanValue.indexOf(":") >= 0) { - cleanValue = cleanValue.split(":")[0]; - } - if (cleanValue.indexOf("#") >= 0) { - cleanValue = cleanValue.split("#")[1]; - } - return cleanValue; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== undefined) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== undefined) { - return sanitizeErrorCode(data.code); - } - if (data["__type"] !== undefined) { - return sanitizeErrorCode(data["__type"]); - } -}; - - -/***/ }), - -/***/ 78509: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; -const tslib_1 = __nccwpck_require__(4351); -const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(50466)); -const client_sts_1 = __nccwpck_require__(52209); -const config_resolver_1 = __nccwpck_require__(56153); -const credential_provider_node_1 = __nccwpck_require__(75531); -const hash_node_1 = __nccwpck_require__(97442); -const middleware_retry_1 = __nccwpck_require__(96064); -const node_config_provider_1 = __nccwpck_require__(87684); -const node_http_handler_1 = __nccwpck_require__(68805); -const util_base64_node_1 = __nccwpck_require__(18588); -const util_body_length_node_1 = __nccwpck_require__(74147); -const util_user_agent_node_1 = __nccwpck_require__(98095); -const util_utf8_node_1 = __nccwpck_require__(66278); -const runtimeConfig_shared_1 = __nccwpck_require__(52214); -const smithy_client_1 = __nccwpck_require__(4963); -const util_defaults_mode_node_1 = __nccwpck_require__(74243); -const smithy_client_2 = __nccwpck_require__(4963); -const getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; - (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); - const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, - bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, - credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), - defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), - retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({ - ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE, - }), - sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"), - streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, - useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, - utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8, - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 52214: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; -const url_parser_1 = __nccwpck_require__(2992); -const endpoints_1 = __nccwpck_require__(57499); -const getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e; - return ({ - apiVersion: "2014-11-06", - disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, - logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, - regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, - serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "SSM", - urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl, - }); -}; -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 88981: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(65697), exports); - - -/***/ }), - -/***/ 65697: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.waitUntilCommandExecuted = exports.waitForCommandExecuted = void 0; -const util_waiter_1 = __nccwpck_require__(21627); -const GetCommandInvocationCommand_1 = __nccwpck_require__(93305); -const checkState = async (client, input) => { - let reason; - try { - const result = await client.send(new GetCommandInvocationCommand_1.GetCommandInvocationCommand(input)); - reason = result; - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "Pending") { - return { state: util_waiter_1.WaiterState.RETRY, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "InProgress") { - return { state: util_waiter_1.WaiterState.RETRY, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "Delayed") { - return { state: util_waiter_1.WaiterState.RETRY, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "Success") { - return { state: util_waiter_1.WaiterState.SUCCESS, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "Cancelled") { - return { state: util_waiter_1.WaiterState.FAILURE, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "TimedOut") { - return { state: util_waiter_1.WaiterState.FAILURE, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "Failed") { - return { state: util_waiter_1.WaiterState.FAILURE, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "Cancelling") { - return { state: util_waiter_1.WaiterState.FAILURE, reason }; - } - } - catch (e) { } - } - catch (exception) { - reason = exception; - if (exception.name && exception.name == "InvocationDoesNotExist") { - return { state: util_waiter_1.WaiterState.RETRY, reason }; - } - } - return { state: util_waiter_1.WaiterState.RETRY, reason }; -}; -const waitForCommandExecuted = async (params, input) => { - const serviceDefaults = { minDelay: 5, maxDelay: 120 }; - return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); -}; -exports.waitForCommandExecuted = waitForCommandExecuted; -const waitUntilCommandExecuted = async (params, input) => { - const serviceDefaults = { minDelay: 5, maxDelay: 120 }; - const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - return (0, util_waiter_1.checkExceptions)(result); -}; -exports.waitUntilCommandExecuted = waitUntilCommandExecuted; - - -/***/ }), - -/***/ 69838: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SSO = void 0; -const GetRoleCredentialsCommand_1 = __nccwpck_require__(18972); -const ListAccountRolesCommand_1 = __nccwpck_require__(1513); -const ListAccountsCommand_1 = __nccwpck_require__(64296); -const LogoutCommand_1 = __nccwpck_require__(12586); -const SSOClient_1 = __nccwpck_require__(71057); -class SSO extends SSOClient_1.SSOClient { - getRoleCredentials(args, optionsOrCb, cb) { - const command = new GetRoleCredentialsCommand_1.GetRoleCredentialsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listAccountRoles(args, optionsOrCb, cb) { - const command = new ListAccountRolesCommand_1.ListAccountRolesCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - listAccounts(args, optionsOrCb, cb) { - const command = new ListAccountsCommand_1.ListAccountsCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - logout(args, optionsOrCb, cb) { - const command = new LogoutCommand_1.LogoutCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } -} -exports.SSO = SSO; - - -/***/ }), - -/***/ 71057: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SSOClient = void 0; -const config_resolver_1 = __nccwpck_require__(56153); -const middleware_content_length_1 = __nccwpck_require__(42245); -const middleware_host_header_1 = __nccwpck_require__(22545); -const middleware_logger_1 = __nccwpck_require__(20014); -const middleware_recursion_detection_1 = __nccwpck_require__(85525); -const middleware_retry_1 = __nccwpck_require__(96064); -const middleware_user_agent_1 = __nccwpck_require__(64688); -const smithy_client_1 = __nccwpck_require__(4963); -const runtimeConfig_1 = __nccwpck_require__(19756); -class SSOClient extends smithy_client_1.Client { - constructor(configuration) { - const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); - const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); - const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); - const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); - const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); - const _config_5 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_4); - super(_config_5); - this.config = _config_5; - this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); - this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); - } - destroy() { - super.destroy(); - } -} -exports.SSOClient = SSOClient; - - -/***/ }), - -/***/ 18972: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetRoleCredentialsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(66390); -const Aws_restJson1_1 = __nccwpck_require__(98507); -class GetRoleCredentialsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "GetRoleCredentialsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_restJson1_1.serializeAws_restJson1GetRoleCredentialsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_restJson1_1.deserializeAws_restJson1GetRoleCredentialsCommand)(output, context); - } -} -exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand; - - -/***/ }), - -/***/ 1513: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListAccountRolesCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(66390); -const Aws_restJson1_1 = __nccwpck_require__(98507); -class ListAccountRolesCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "ListAccountRolesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListAccountRolesResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_restJson1_1.serializeAws_restJson1ListAccountRolesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_restJson1_1.deserializeAws_restJson1ListAccountRolesCommand)(output, context); - } -} -exports.ListAccountRolesCommand = ListAccountRolesCommand; - - -/***/ }), - -/***/ 64296: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ListAccountsCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(66390); -const Aws_restJson1_1 = __nccwpck_require__(98507); -class ListAccountsCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "ListAccountsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListAccountsResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_restJson1_1.serializeAws_restJson1ListAccountsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_restJson1_1.deserializeAws_restJson1ListAccountsCommand)(output, context); - } -} -exports.ListAccountsCommand = ListAccountsCommand; - - -/***/ }), - -/***/ 12586: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LogoutCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(66390); -const Aws_restJson1_1 = __nccwpck_require__(98507); -class LogoutCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "LogoutCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog, - outputFilterSensitiveLog: (output) => output, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_restJson1_1.serializeAws_restJson1LogoutCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_restJson1_1.deserializeAws_restJson1LogoutCommand)(output, context); - } -} -exports.LogoutCommand = LogoutCommand; - - -/***/ }), - -/***/ 65706: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(18972), exports); -tslib_1.__exportStar(__nccwpck_require__(1513), exports); -tslib_1.__exportStar(__nccwpck_require__(64296), exports); -tslib_1.__exportStar(__nccwpck_require__(12586), exports); - - -/***/ }), - -/***/ 33546: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.defaultRegionInfoProvider = void 0; -const config_resolver_1 = __nccwpck_require__(56153); -const regionHash = { - "ap-east-1": { - variants: [ - { - hostname: "portal.sso.ap-east-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-east-1", - }, - "ap-northeast-1": { - variants: [ - { - hostname: "portal.sso.ap-northeast-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-northeast-1", - }, - "ap-northeast-2": { - variants: [ - { - hostname: "portal.sso.ap-northeast-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-northeast-2", - }, - "ap-northeast-3": { - variants: [ - { - hostname: "portal.sso.ap-northeast-3.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-northeast-3", - }, - "ap-south-1": { - variants: [ - { - hostname: "portal.sso.ap-south-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-south-1", - }, - "ap-southeast-1": { - variants: [ - { - hostname: "portal.sso.ap-southeast-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-southeast-1", - }, - "ap-southeast-2": { - variants: [ - { - hostname: "portal.sso.ap-southeast-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ap-southeast-2", - }, - "ca-central-1": { - variants: [ - { - hostname: "portal.sso.ca-central-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "ca-central-1", - }, - "eu-central-1": { - variants: [ - { - hostname: "portal.sso.eu-central-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-central-1", - }, - "eu-north-1": { - variants: [ - { - hostname: "portal.sso.eu-north-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-north-1", - }, - "eu-south-1": { - variants: [ - { - hostname: "portal.sso.eu-south-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-south-1", - }, - "eu-west-1": { - variants: [ - { - hostname: "portal.sso.eu-west-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-west-1", - }, - "eu-west-2": { - variants: [ - { - hostname: "portal.sso.eu-west-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-west-2", - }, - "eu-west-3": { - variants: [ - { - hostname: "portal.sso.eu-west-3.amazonaws.com", - tags: [], - }, - ], - signingRegion: "eu-west-3", - }, - "me-south-1": { - variants: [ - { - hostname: "portal.sso.me-south-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "me-south-1", - }, - "sa-east-1": { - variants: [ - { - hostname: "portal.sso.sa-east-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "sa-east-1", - }, - "us-east-1": { - variants: [ - { - hostname: "portal.sso.us-east-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-east-1", - }, - "us-east-2": { - variants: [ - { - hostname: "portal.sso.us-east-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-east-2", - }, - "us-gov-east-1": { - variants: [ - { - hostname: "portal.sso.us-gov-east-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-gov-east-1", - }, - "us-gov-west-1": { - variants: [ - { - hostname: "portal.sso.us-gov-west-1.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-gov-west-1", - }, - "us-west-2": { - variants: [ - { - hostname: "portal.sso.us-west-2.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-west-2", - }, -}; -const partitionHash = { - aws: { - regions: [ - "af-south-1", - "ap-east-1", - "ap-northeast-1", - "ap-northeast-2", - "ap-northeast-3", - "ap-south-1", - "ap-southeast-1", - "ap-southeast-2", - "ap-southeast-3", - "ca-central-1", - "eu-central-1", - "eu-north-1", - "eu-south-1", - "eu-west-1", - "eu-west-2", - "eu-west-3", - "me-south-1", - "sa-east-1", - "us-east-1", - "us-east-2", - "us-west-1", - "us-west-2", - ], - regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "portal.sso-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "portal.sso.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, - "aws-cn": { - regions: ["cn-north-1", "cn-northwest-1"], - regionRegex: "^cn\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.amazonaws.com.cn", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.amazonaws.com.cn", - tags: ["fips"], - }, - { - hostname: "portal.sso-fips.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack", "fips"], - }, - { - hostname: "portal.sso.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack"], - }, - ], - }, - "aws-iso": { - regions: ["us-iso-east-1", "us-iso-west-1"], - regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.c2s.ic.gov", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.c2s.ic.gov", - tags: ["fips"], - }, - ], - }, - "aws-iso-b": { - regions: ["us-isob-east-1"], - regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.sc2s.sgov.gov", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.sc2s.sgov.gov", - tags: ["fips"], - }, - ], - }, - "aws-us-gov": { - regions: ["us-gov-east-1", "us-gov-west-1"], - regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "portal.sso.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "portal.sso-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "portal.sso-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "portal.sso.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, -}; -const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { - ...options, - signingService: "awsssoportal", - regionHash, - partitionHash, -}); -exports.defaultRegionInfoProvider = defaultRegionInfoProvider; - - -/***/ }), - -/***/ 82666: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SSOServiceException = void 0; -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(69838), exports); -tslib_1.__exportStar(__nccwpck_require__(71057), exports); -tslib_1.__exportStar(__nccwpck_require__(65706), exports); -tslib_1.__exportStar(__nccwpck_require__(14952), exports); -tslib_1.__exportStar(__nccwpck_require__(36773), exports); -var SSOServiceException_1 = __nccwpck_require__(81517); -Object.defineProperty(exports, "SSOServiceException", ({ enumerable: true, get: function () { return SSOServiceException_1.SSOServiceException; } })); - - -/***/ }), - -/***/ 81517: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SSOServiceException = void 0; -const smithy_client_1 = __nccwpck_require__(4963); -class SSOServiceException extends smithy_client_1.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, SSOServiceException.prototype); - } -} -exports.SSOServiceException = SSOServiceException; - - -/***/ }), - -/***/ 14952: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(66390), exports); - - -/***/ }), - -/***/ 66390: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LogoutRequestFilterSensitiveLog = exports.ListAccountsResponseFilterSensitiveLog = exports.ListAccountsRequestFilterSensitiveLog = exports.ListAccountRolesResponseFilterSensitiveLog = exports.RoleInfoFilterSensitiveLog = exports.ListAccountRolesRequestFilterSensitiveLog = exports.GetRoleCredentialsResponseFilterSensitiveLog = exports.RoleCredentialsFilterSensitiveLog = exports.GetRoleCredentialsRequestFilterSensitiveLog = exports.AccountInfoFilterSensitiveLog = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = void 0; -const smithy_client_1 = __nccwpck_require__(4963); -const SSOServiceException_1 = __nccwpck_require__(81517); -class InvalidRequestException extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: "InvalidRequestException", - $fault: "client", - ...opts, - }); - this.name = "InvalidRequestException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidRequestException.prototype); - } -} -exports.InvalidRequestException = InvalidRequestException; -class ResourceNotFoundException extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: "ResourceNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "ResourceNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceNotFoundException.prototype); - } -} -exports.ResourceNotFoundException = ResourceNotFoundException; -class TooManyRequestsException extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: "TooManyRequestsException", - $fault: "client", - ...opts, - }); - this.name = "TooManyRequestsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyRequestsException.prototype); - } -} -exports.TooManyRequestsException = TooManyRequestsException; -class UnauthorizedException extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: "UnauthorizedException", - $fault: "client", - ...opts, - }); - this.name = "UnauthorizedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnauthorizedException.prototype); - } -} -exports.UnauthorizedException = UnauthorizedException; -const AccountInfoFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AccountInfoFilterSensitiveLog = AccountInfoFilterSensitiveLog; -const GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.GetRoleCredentialsRequestFilterSensitiveLog = GetRoleCredentialsRequestFilterSensitiveLog; -const RoleCredentialsFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.secretAccessKey && { secretAccessKey: smithy_client_1.SENSITIVE_STRING }), - ...(obj.sessionToken && { sessionToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.RoleCredentialsFilterSensitiveLog = RoleCredentialsFilterSensitiveLog; -const GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.roleCredentials && { roleCredentials: (0, exports.RoleCredentialsFilterSensitiveLog)(obj.roleCredentials) }), -}); -exports.GetRoleCredentialsResponseFilterSensitiveLog = GetRoleCredentialsResponseFilterSensitiveLog; -const ListAccountRolesRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.ListAccountRolesRequestFilterSensitiveLog = ListAccountRolesRequestFilterSensitiveLog; -const RoleInfoFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.RoleInfoFilterSensitiveLog = RoleInfoFilterSensitiveLog; -const ListAccountRolesResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListAccountRolesResponseFilterSensitiveLog = ListAccountRolesResponseFilterSensitiveLog; -const ListAccountsRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.ListAccountsRequestFilterSensitiveLog = ListAccountsRequestFilterSensitiveLog; -const ListAccountsResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.ListAccountsResponseFilterSensitiveLog = ListAccountsResponseFilterSensitiveLog; -const LogoutRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.LogoutRequestFilterSensitiveLog = LogoutRequestFilterSensitiveLog; - - -/***/ }), - -/***/ 80849: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 88460: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListAccountRoles = void 0; -const ListAccountRolesCommand_1 = __nccwpck_require__(1513); -const SSO_1 = __nccwpck_require__(69838); -const SSOClient_1 = __nccwpck_require__(71057); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAccountRolesCommand_1.ListAccountRolesCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.listAccountRoles(input, ...args); -}; -async function* paginateListAccountRoles(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof SSO_1.SSO) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSOClient_1.SSOClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSO | SSOClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListAccountRoles = paginateListAccountRoles; - - -/***/ }), - -/***/ 50938: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.paginateListAccounts = void 0; -const ListAccountsCommand_1 = __nccwpck_require__(64296); -const SSO_1 = __nccwpck_require__(69838); -const SSOClient_1 = __nccwpck_require__(71057); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAccountsCommand_1.ListAccountsCommand(input), ...args); -}; -const makePagedRequest = async (client, input, ...args) => { - return await client.listAccounts(input, ...args); -}; -async function* paginateListAccounts(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof SSO_1.SSO) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } - else if (config.client instanceof SSOClient_1.SSOClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSO | SSOClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListAccounts = paginateListAccounts; - - -/***/ }), - -/***/ 36773: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(80849), exports); -tslib_1.__exportStar(__nccwpck_require__(88460), exports); -tslib_1.__exportStar(__nccwpck_require__(50938), exports); - - -/***/ }), - -/***/ 98507: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.deserializeAws_restJson1LogoutCommand = exports.deserializeAws_restJson1ListAccountsCommand = exports.deserializeAws_restJson1ListAccountRolesCommand = exports.deserializeAws_restJson1GetRoleCredentialsCommand = exports.serializeAws_restJson1LogoutCommand = exports.serializeAws_restJson1ListAccountsCommand = exports.serializeAws_restJson1ListAccountRolesCommand = exports.serializeAws_restJson1GetRoleCredentialsCommand = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(66390); -const SSOServiceException_1 = __nccwpck_require__(81517); -const serializeAws_restJson1GetRoleCredentialsCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = map({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/federation/credentials"; - const query = map({ - role_name: [, input.roleName], - account_id: [, input.accountId], - }); - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); -}; -exports.serializeAws_restJson1GetRoleCredentialsCommand = serializeAws_restJson1GetRoleCredentialsCommand; -const serializeAws_restJson1ListAccountRolesCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = map({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assignment/roles"; - const query = map({ - next_token: [, input.nextToken], - max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()], - account_id: [, input.accountId], - }); - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); -}; -exports.serializeAws_restJson1ListAccountRolesCommand = serializeAws_restJson1ListAccountRolesCommand; -const serializeAws_restJson1ListAccountsCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = map({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assignment/accounts"; - const query = map({ - next_token: [, input.nextToken], - max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()], - }); - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); -}; -exports.serializeAws_restJson1ListAccountsCommand = serializeAws_restJson1ListAccountsCommand; -const serializeAws_restJson1LogoutCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = map({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/logout"; - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -exports.serializeAws_restJson1LogoutCommand = serializeAws_restJson1LogoutCommand; -const deserializeAws_restJson1GetRoleCredentialsCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return deserializeAws_restJson1GetRoleCredentialsCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); - if (data.roleCredentials != null) { - contents.roleCredentials = deserializeAws_restJson1RoleCredentials(data.roleCredentials, context); - } - return contents; -}; -exports.deserializeAws_restJson1GetRoleCredentialsCommand = deserializeAws_restJson1GetRoleCredentialsCommand; -const deserializeAws_restJson1GetRoleCredentialsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidRequestException": - case "com.amazonaws.sso#InvalidRequestException": - throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.sso#ResourceNotFoundException": - throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); - case "TooManyRequestsException": - case "com.amazonaws.sso#TooManyRequestsException": - throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); - case "UnauthorizedException": - case "com.amazonaws.sso#UnauthorizedException": - throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSOServiceException_1.SSOServiceException, - errorCode, - }); - } -}; -const deserializeAws_restJson1ListAccountRolesCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return deserializeAws_restJson1ListAccountRolesCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); - if (data.nextToken != null) { - contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken); - } - if (data.roleList != null) { - contents.roleList = deserializeAws_restJson1RoleListType(data.roleList, context); - } - return contents; -}; -exports.deserializeAws_restJson1ListAccountRolesCommand = deserializeAws_restJson1ListAccountRolesCommand; -const deserializeAws_restJson1ListAccountRolesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidRequestException": - case "com.amazonaws.sso#InvalidRequestException": - throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.sso#ResourceNotFoundException": - throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); - case "TooManyRequestsException": - case "com.amazonaws.sso#TooManyRequestsException": - throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); - case "UnauthorizedException": - case "com.amazonaws.sso#UnauthorizedException": - throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSOServiceException_1.SSOServiceException, - errorCode, - }); - } -}; -const deserializeAws_restJson1ListAccountsCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return deserializeAws_restJson1ListAccountsCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); - if (data.accountList != null) { - contents.accountList = deserializeAws_restJson1AccountListType(data.accountList, context); - } - if (data.nextToken != null) { - contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken); - } - return contents; -}; -exports.deserializeAws_restJson1ListAccountsCommand = deserializeAws_restJson1ListAccountsCommand; -const deserializeAws_restJson1ListAccountsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidRequestException": - case "com.amazonaws.sso#InvalidRequestException": - throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.sso#ResourceNotFoundException": - throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); - case "TooManyRequestsException": - case "com.amazonaws.sso#TooManyRequestsException": - throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); - case "UnauthorizedException": - case "com.amazonaws.sso#UnauthorizedException": - throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSOServiceException_1.SSOServiceException, - errorCode, - }); - } -}; -const deserializeAws_restJson1LogoutCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return deserializeAws_restJson1LogoutCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; -exports.deserializeAws_restJson1LogoutCommand = deserializeAws_restJson1LogoutCommand; -const deserializeAws_restJson1LogoutCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidRequestException": - case "com.amazonaws.sso#InvalidRequestException": - throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); - case "TooManyRequestsException": - case "com.amazonaws.sso#TooManyRequestsException": - throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); - case "UnauthorizedException": - case "com.amazonaws.sso#UnauthorizedException": - throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSOServiceException_1.SSOServiceException, - errorCode, - }); - } -}; -const map = smithy_client_1.map; -const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - if (data.message != null) { - contents.message = (0, smithy_client_1.expectString)(data.message); - } - const exception = new models_0_1.InvalidRequestException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); -}; -const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - if (data.message != null) { - contents.message = (0, smithy_client_1.expectString)(data.message); - } - const exception = new models_0_1.ResourceNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); -}; -const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - if (data.message != null) { - contents.message = (0, smithy_client_1.expectString)(data.message); - } - const exception = new models_0_1.TooManyRequestsException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); -}; -const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - if (data.message != null) { - contents.message = (0, smithy_client_1.expectString)(data.message); - } - const exception = new models_0_1.UnauthorizedException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); -}; -const deserializeAws_restJson1AccountInfo = (output, context) => { - return { - accountId: (0, smithy_client_1.expectString)(output.accountId), - accountName: (0, smithy_client_1.expectString)(output.accountName), - emailAddress: (0, smithy_client_1.expectString)(output.emailAddress), - }; -}; -const deserializeAws_restJson1AccountListType = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_restJson1AccountInfo(entry, context); - }); - return retVal; -}; -const deserializeAws_restJson1RoleCredentials = (output, context) => { - return { - accessKeyId: (0, smithy_client_1.expectString)(output.accessKeyId), - expiration: (0, smithy_client_1.expectLong)(output.expiration), - secretAccessKey: (0, smithy_client_1.expectString)(output.secretAccessKey), - sessionToken: (0, smithy_client_1.expectString)(output.sessionToken), - }; -}; -const deserializeAws_restJson1RoleInfo = (output, context) => { - return { - accountId: (0, smithy_client_1.expectString)(output.accountId), - roleName: (0, smithy_client_1.expectString)(output.roleName), - }; -}; -const deserializeAws_restJson1RoleListType = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_restJson1RoleInfo(entry, context); - }); - return retVal; -}; -const deserializeMetadata = (output) => { - var _a; - return ({ - httpStatusCode: output.statusCode, - requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], - }); -}; -const collectBody = (streamBody = new Uint8Array(), context) => { - if (streamBody instanceof Uint8Array) { - return Promise.resolve(streamBody); - } - return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); -}; -const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); -const isSerializableHeaderValue = (value) => value !== undefined && - value !== null && - value !== "" && - (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && - (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; -}); -const loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (typeof cleanValue === "number") { - cleanValue = cleanValue.toString(); - } - if (cleanValue.indexOf(":") >= 0) { - cleanValue = cleanValue.split(":")[0]; - } - if (cleanValue.indexOf("#") >= 0) { - cleanValue = cleanValue.split("#")[1]; - } - return cleanValue; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== undefined) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== undefined) { - return sanitizeErrorCode(data.code); - } - if (data["__type"] !== undefined) { - return sanitizeErrorCode(data["__type"]); - } -}; - - -/***/ }), - -/***/ 19756: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; -const tslib_1 = __nccwpck_require__(4351); -const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(91092)); -const config_resolver_1 = __nccwpck_require__(56153); -const hash_node_1 = __nccwpck_require__(97442); -const middleware_retry_1 = __nccwpck_require__(96064); -const node_config_provider_1 = __nccwpck_require__(87684); -const node_http_handler_1 = __nccwpck_require__(68805); -const util_base64_node_1 = __nccwpck_require__(18588); -const util_body_length_node_1 = __nccwpck_require__(74147); -const util_user_agent_node_1 = __nccwpck_require__(98095); -const util_utf8_node_1 = __nccwpck_require__(66278); -const runtimeConfig_shared_1 = __nccwpck_require__(44809); -const smithy_client_1 = __nccwpck_require__(4963); -const util_defaults_mode_node_1 = __nccwpck_require__(74243); -const smithy_client_2 = __nccwpck_require__(4963); -const getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; - (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); - const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, - bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, - defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), - retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)({ - ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE, - }), - sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : hash_node_1.Hash.bind(null, "sha256"), - streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : node_http_handler_1.streamCollector, - useDualstackEndpoint: (_l = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _l !== void 0 ? _l : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.fromUtf8, - utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.toUtf8, - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 44809: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; -const url_parser_1 = __nccwpck_require__(2992); -const endpoints_1 = __nccwpck_require__(33546); -const getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e; - return ({ - apiVersion: "2019-06-10", - disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, - logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, - regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, - serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "SSO", - urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl, - }); -}; -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 32605: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.STS = void 0; -const AssumeRoleCommand_1 = __nccwpck_require__(59802); -const AssumeRoleWithSAMLCommand_1 = __nccwpck_require__(72865); -const AssumeRoleWithWebIdentityCommand_1 = __nccwpck_require__(37451); -const DecodeAuthorizationMessageCommand_1 = __nccwpck_require__(74150); -const GetAccessKeyInfoCommand_1 = __nccwpck_require__(49804); -const GetCallerIdentityCommand_1 = __nccwpck_require__(24278); -const GetFederationTokenCommand_1 = __nccwpck_require__(57552); -const GetSessionTokenCommand_1 = __nccwpck_require__(43285); -const STSClient_1 = __nccwpck_require__(64195); -class STS extends STSClient_1.STSClient { - assumeRole(args, optionsOrCb, cb) { - const command = new AssumeRoleCommand_1.AssumeRoleCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - assumeRoleWithSAML(args, optionsOrCb, cb) { - const command = new AssumeRoleWithSAMLCommand_1.AssumeRoleWithSAMLCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - assumeRoleWithWebIdentity(args, optionsOrCb, cb) { - const command = new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - decodeAuthorizationMessage(args, optionsOrCb, cb) { - const command = new DecodeAuthorizationMessageCommand_1.DecodeAuthorizationMessageCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getAccessKeyInfo(args, optionsOrCb, cb) { - const command = new GetAccessKeyInfoCommand_1.GetAccessKeyInfoCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getCallerIdentity(args, optionsOrCb, cb) { - const command = new GetCallerIdentityCommand_1.GetCallerIdentityCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getFederationToken(args, optionsOrCb, cb) { - const command = new GetFederationTokenCommand_1.GetFederationTokenCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } - getSessionToken(args, optionsOrCb, cb) { - const command = new GetSessionTokenCommand_1.GetSessionTokenCommand(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expect http options but get ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - } -} -exports.STS = STS; - - -/***/ }), - -/***/ 64195: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.STSClient = void 0; -const config_resolver_1 = __nccwpck_require__(56153); -const middleware_content_length_1 = __nccwpck_require__(42245); -const middleware_host_header_1 = __nccwpck_require__(22545); -const middleware_logger_1 = __nccwpck_require__(20014); -const middleware_recursion_detection_1 = __nccwpck_require__(85525); -const middleware_retry_1 = __nccwpck_require__(96064); -const middleware_sdk_sts_1 = __nccwpck_require__(55959); -const middleware_user_agent_1 = __nccwpck_require__(64688); -const smithy_client_1 = __nccwpck_require__(4963); -const runtimeConfig_1 = __nccwpck_require__(83405); -class STSClient extends smithy_client_1.Client { - constructor(configuration) { - const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); - const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); - const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); - const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); - const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); - const _config_5 = (0, middleware_sdk_sts_1.resolveStsAuthConfig)(_config_4, { stsClientCtor: STSClient }); - const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); - super(_config_6); - this.config = _config_6; - this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); - this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); - } - destroy() { - super.destroy(); - } -} -exports.STSClient = STSClient; - - -/***/ }), - -/***/ 59802: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AssumeRoleCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const middleware_signing_1 = __nccwpck_require__(14935); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(21780); -const Aws_query_1 = __nccwpck_require__(10740); -class AssumeRoleCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryAssumeRoleCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryAssumeRoleCommand)(output, context); - } -} -exports.AssumeRoleCommand = AssumeRoleCommand; - - -/***/ }), - -/***/ 72865: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AssumeRoleWithSAMLCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(21780); -const Aws_query_1 = __nccwpck_require__(10740); -class AssumeRoleWithSAMLCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleWithSAMLCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryAssumeRoleWithSAMLCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryAssumeRoleWithSAMLCommand)(output, context); - } -} -exports.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand; - - -/***/ }), - -/***/ 37451: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AssumeRoleWithWebIdentityCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(21780); -const Aws_query_1 = __nccwpck_require__(10740); -class AssumeRoleWithWebIdentityCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleWithWebIdentityCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryAssumeRoleWithWebIdentityCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(output, context); - } -} -exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; - - -/***/ }), - -/***/ 74150: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DecodeAuthorizationMessageCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const middleware_signing_1 = __nccwpck_require__(14935); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(21780); -const Aws_query_1 = __nccwpck_require__(10740); -class DecodeAuthorizationMessageCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "DecodeAuthorizationMessageCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryDecodeAuthorizationMessageCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryDecodeAuthorizationMessageCommand)(output, context); - } -} -exports.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand; - - -/***/ }), - -/***/ 49804: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetAccessKeyInfoCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const middleware_signing_1 = __nccwpck_require__(14935); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(21780); -const Aws_query_1 = __nccwpck_require__(10740); -class GetAccessKeyInfoCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetAccessKeyInfoCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetAccessKeyInfoRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetAccessKeyInfoResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryGetAccessKeyInfoCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryGetAccessKeyInfoCommand)(output, context); - } -} -exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand; - - -/***/ }), - -/***/ 24278: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetCallerIdentityCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const middleware_signing_1 = __nccwpck_require__(14935); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(21780); -const Aws_query_1 = __nccwpck_require__(10740); -class GetCallerIdentityCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetCallerIdentityCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetCallerIdentityRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetCallerIdentityResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryGetCallerIdentityCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryGetCallerIdentityCommand)(output, context); - } -} -exports.GetCallerIdentityCommand = GetCallerIdentityCommand; - - -/***/ }), - -/***/ 57552: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetFederationTokenCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const middleware_signing_1 = __nccwpck_require__(14935); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(21780); -const Aws_query_1 = __nccwpck_require__(10740); -class GetFederationTokenCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetFederationTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetFederationTokenRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetFederationTokenResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryGetFederationTokenCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryGetFederationTokenCommand)(output, context); - } -} -exports.GetFederationTokenCommand = GetFederationTokenCommand; - - -/***/ }), - -/***/ 43285: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetSessionTokenCommand = void 0; -const middleware_serde_1 = __nccwpck_require__(93631); -const middleware_signing_1 = __nccwpck_require__(14935); -const smithy_client_1 = __nccwpck_require__(4963); -const models_0_1 = __nccwpck_require__(21780); -const Aws_query_1 = __nccwpck_require__(10740); -class GetSessionTokenCommand extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetSessionTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetSessionTokenRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetSessionTokenResponseFilterSensitiveLog, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryGetSessionTokenCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryGetSessionTokenCommand)(output, context); - } -} -exports.GetSessionTokenCommand = GetSessionTokenCommand; - - -/***/ }), - -/***/ 55716: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(59802), exports); -tslib_1.__exportStar(__nccwpck_require__(72865), exports); -tslib_1.__exportStar(__nccwpck_require__(37451), exports); -tslib_1.__exportStar(__nccwpck_require__(74150), exports); -tslib_1.__exportStar(__nccwpck_require__(49804), exports); -tslib_1.__exportStar(__nccwpck_require__(24278), exports); -tslib_1.__exportStar(__nccwpck_require__(57552), exports); -tslib_1.__exportStar(__nccwpck_require__(43285), exports); - - -/***/ }), - -/***/ 88028: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; -const defaultStsRoleAssumers_1 = __nccwpck_require__(90048); -const STSClient_1 = __nccwpck_require__(64195); -const getDefaultRoleAssumer = (stsOptions = {}) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumer)(stsOptions, STSClient_1.STSClient); -exports.getDefaultRoleAssumer = getDefaultRoleAssumer; -const getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumerWithWebIdentity)(stsOptions, STSClient_1.STSClient); -exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; -const decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: (0, exports.getDefaultRoleAssumer)(input), - roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input), - ...input, -}); -exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; - - -/***/ }), - -/***/ 90048: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; -const AssumeRoleCommand_1 = __nccwpck_require__(59802); -const AssumeRoleWithWebIdentityCommand_1 = __nccwpck_require__(37451); -const ASSUME_ROLE_DEFAULT_REGION = "us-east-1"; -const decorateDefaultRegion = (region) => { - if (typeof region !== "function") { - return region === undefined ? ASSUME_ROLE_DEFAULT_REGION : region; - } - return async () => { - try { - return await region(); - } - catch (e) { - return ASSUME_ROLE_DEFAULT_REGION; - } - }; -}; -const getDefaultRoleAssumer = (stsOptions, stsClientCtor) => { - let stsClient; - let closureSourceCreds; - return async (sourceCreds, params) => { - closureSourceCreds = sourceCreds; - if (!stsClient) { - const { logger, region, requestHandler } = stsOptions; - stsClient = new stsClientCtor({ - logger, - credentialDefaultProvider: () => async () => closureSourceCreds, - region: decorateDefaultRegion(region || stsOptions.region), - ...(requestHandler ? { requestHandler } : {}), - }); - } - const { Credentials } = await stsClient.send(new AssumeRoleCommand_1.AssumeRoleCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { - throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`); - } - return { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration, - }; - }; -}; -exports.getDefaultRoleAssumer = getDefaultRoleAssumer; -const getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => { - let stsClient; - return async (params) => { - if (!stsClient) { - const { logger, region, requestHandler } = stsOptions; - stsClient = new stsClientCtor({ - logger, - region: decorateDefaultRegion(region || stsOptions.region), - ...(requestHandler ? { requestHandler } : {}), - }); - } - const { Credentials } = await stsClient.send(new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { - throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`); - } - return { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration, - }; - }; -}; -exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; -const decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: (0, exports.getDefaultRoleAssumer)(input, input.stsClientCtor), - roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input, input.stsClientCtor), - ...input, -}); -exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; - - -/***/ }), - -/***/ 3571: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.defaultRegionInfoProvider = void 0; -const config_resolver_1 = __nccwpck_require__(56153); -const regionHash = { - "aws-global": { - variants: [ - { - hostname: "sts.amazonaws.com", - tags: [], - }, - ], - signingRegion: "us-east-1", - }, - "us-east-1": { - variants: [ - { - hostname: "sts-fips.us-east-1.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-east-2": { - variants: [ - { - hostname: "sts-fips.us-east-2.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-gov-east-1": { - variants: [ - { - hostname: "sts.us-gov-east-1.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-gov-west-1": { - variants: [ - { - hostname: "sts.us-gov-west-1.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-west-1": { - variants: [ - { - hostname: "sts-fips.us-west-1.amazonaws.com", - tags: ["fips"], - }, - ], - }, - "us-west-2": { - variants: [ - { - hostname: "sts-fips.us-west-2.amazonaws.com", - tags: ["fips"], - }, - ], - }, -}; -const partitionHash = { - aws: { - regions: [ - "af-south-1", - "ap-east-1", - "ap-northeast-1", - "ap-northeast-2", - "ap-northeast-3", - "ap-south-1", - "ap-southeast-1", - "ap-southeast-2", - "ap-southeast-3", - "aws-global", - "ca-central-1", - "eu-central-1", - "eu-north-1", - "eu-south-1", - "eu-west-1", - "eu-west-2", - "eu-west-3", - "me-south-1", - "sa-east-1", - "us-east-1", - "us-east-1-fips", - "us-east-2", - "us-east-2-fips", - "us-west-1", - "us-west-1-fips", - "us-west-2", - "us-west-2-fips", - ], - regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "sts.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "sts-fips.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "sts-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "sts.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, - "aws-cn": { - regions: ["cn-north-1", "cn-northwest-1"], - regionRegex: "^cn\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "sts.{region}.amazonaws.com.cn", - tags: [], - }, - { - hostname: "sts-fips.{region}.amazonaws.com.cn", - tags: ["fips"], - }, - { - hostname: "sts-fips.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack", "fips"], - }, - { - hostname: "sts.{region}.api.amazonwebservices.com.cn", - tags: ["dualstack"], - }, - ], - }, - "aws-iso": { - regions: ["us-iso-east-1", "us-iso-west-1"], - regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "sts.{region}.c2s.ic.gov", - tags: [], - }, - { - hostname: "sts-fips.{region}.c2s.ic.gov", - tags: ["fips"], - }, - ], - }, - "aws-iso-b": { - regions: ["us-isob-east-1"], - regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "sts.{region}.sc2s.sgov.gov", - tags: [], - }, - { - hostname: "sts-fips.{region}.sc2s.sgov.gov", - tags: ["fips"], - }, - ], - }, - "aws-us-gov": { - regions: ["us-gov-east-1", "us-gov-east-1-fips", "us-gov-west-1", "us-gov-west-1-fips"], - regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", - variants: [ - { - hostname: "sts.{region}.amazonaws.com", - tags: [], - }, - { - hostname: "sts.{region}.amazonaws.com", - tags: ["fips"], - }, - { - hostname: "sts-fips.{region}.api.aws", - tags: ["dualstack", "fips"], - }, - { - hostname: "sts.{region}.api.aws", - tags: ["dualstack"], - }, - ], - }, -}; -const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { - ...options, - signingService: "sts", - regionHash, - partitionHash, -}); -exports.defaultRegionInfoProvider = defaultRegionInfoProvider; - - -/***/ }), - -/***/ 52209: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.STSServiceException = void 0; -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(32605), exports); -tslib_1.__exportStar(__nccwpck_require__(64195), exports); -tslib_1.__exportStar(__nccwpck_require__(55716), exports); -tslib_1.__exportStar(__nccwpck_require__(88028), exports); -tslib_1.__exportStar(__nccwpck_require__(20106), exports); -var STSServiceException_1 = __nccwpck_require__(26450); -Object.defineProperty(exports, "STSServiceException", ({ enumerable: true, get: function () { return STSServiceException_1.STSServiceException; } })); - - -/***/ }), - -/***/ 26450: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.STSServiceException = void 0; -const smithy_client_1 = __nccwpck_require__(4963); -class STSServiceException extends smithy_client_1.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, STSServiceException.prototype); - } -} -exports.STSServiceException = STSServiceException; - - -/***/ }), - -/***/ 20106: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(21780), exports); - - -/***/ }), - -/***/ 21780: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.GetSessionTokenResponseFilterSensitiveLog = exports.GetSessionTokenRequestFilterSensitiveLog = exports.GetFederationTokenResponseFilterSensitiveLog = exports.FederatedUserFilterSensitiveLog = exports.GetFederationTokenRequestFilterSensitiveLog = exports.GetCallerIdentityResponseFilterSensitiveLog = exports.GetCallerIdentityRequestFilterSensitiveLog = exports.GetAccessKeyInfoResponseFilterSensitiveLog = exports.GetAccessKeyInfoRequestFilterSensitiveLog = exports.DecodeAuthorizationMessageResponseFilterSensitiveLog = exports.DecodeAuthorizationMessageRequestFilterSensitiveLog = exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = exports.AssumeRoleResponseFilterSensitiveLog = exports.CredentialsFilterSensitiveLog = exports.AssumeRoleRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.PolicyDescriptorTypeFilterSensitiveLog = exports.AssumedRoleUserFilterSensitiveLog = exports.InvalidAuthorizationMessageException = exports.IDPCommunicationErrorException = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = void 0; -const STSServiceException_1 = __nccwpck_require__(26450); -class ExpiredTokenException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "ExpiredTokenException", - $fault: "client", - ...opts, - }); - this.name = "ExpiredTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ExpiredTokenException.prototype); - } -} -exports.ExpiredTokenException = ExpiredTokenException; -class MalformedPolicyDocumentException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "MalformedPolicyDocumentException", - $fault: "client", - ...opts, - }); - this.name = "MalformedPolicyDocumentException"; - this.$fault = "client"; - Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); - } -} -exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException; -class PackedPolicyTooLargeException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "PackedPolicyTooLargeException", - $fault: "client", - ...opts, - }); - this.name = "PackedPolicyTooLargeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); - } -} -exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException; -class RegionDisabledException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "RegionDisabledException", - $fault: "client", - ...opts, - }); - this.name = "RegionDisabledException"; - this.$fault = "client"; - Object.setPrototypeOf(this, RegionDisabledException.prototype); - } -} -exports.RegionDisabledException = RegionDisabledException; -class IDPRejectedClaimException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "IDPRejectedClaimException", - $fault: "client", - ...opts, - }); - this.name = "IDPRejectedClaimException"; - this.$fault = "client"; - Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); - } -} -exports.IDPRejectedClaimException = IDPRejectedClaimException; -class InvalidIdentityTokenException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "InvalidIdentityTokenException", - $fault: "client", - ...opts, - }); - this.name = "InvalidIdentityTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); - } -} -exports.InvalidIdentityTokenException = InvalidIdentityTokenException; -class IDPCommunicationErrorException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "IDPCommunicationErrorException", - $fault: "client", - ...opts, - }); - this.name = "IDPCommunicationErrorException"; - this.$fault = "client"; - Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); - } -} -exports.IDPCommunicationErrorException = IDPCommunicationErrorException; -class InvalidAuthorizationMessageException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "InvalidAuthorizationMessageException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAuthorizationMessageException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype); - } -} -exports.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException; -const AssumedRoleUserFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AssumedRoleUserFilterSensitiveLog = AssumedRoleUserFilterSensitiveLog; -const PolicyDescriptorTypeFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.PolicyDescriptorTypeFilterSensitiveLog = PolicyDescriptorTypeFilterSensitiveLog; -const TagFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.TagFilterSensitiveLog = TagFilterSensitiveLog; -const AssumeRoleRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AssumeRoleRequestFilterSensitiveLog = AssumeRoleRequestFilterSensitiveLog; -const CredentialsFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog; -const AssumeRoleResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AssumeRoleResponseFilterSensitiveLog = AssumeRoleResponseFilterSensitiveLog; -const AssumeRoleWithSAMLRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = AssumeRoleWithSAMLRequestFilterSensitiveLog; -const AssumeRoleWithSAMLResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = AssumeRoleWithSAMLResponseFilterSensitiveLog; -const AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = AssumeRoleWithWebIdentityRequestFilterSensitiveLog; -const AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = AssumeRoleWithWebIdentityResponseFilterSensitiveLog; -const DecodeAuthorizationMessageRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DecodeAuthorizationMessageRequestFilterSensitiveLog = DecodeAuthorizationMessageRequestFilterSensitiveLog; -const DecodeAuthorizationMessageResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.DecodeAuthorizationMessageResponseFilterSensitiveLog = DecodeAuthorizationMessageResponseFilterSensitiveLog; -const GetAccessKeyInfoRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetAccessKeyInfoRequestFilterSensitiveLog = GetAccessKeyInfoRequestFilterSensitiveLog; -const GetAccessKeyInfoResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetAccessKeyInfoResponseFilterSensitiveLog = GetAccessKeyInfoResponseFilterSensitiveLog; -const GetCallerIdentityRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetCallerIdentityRequestFilterSensitiveLog = GetCallerIdentityRequestFilterSensitiveLog; -const GetCallerIdentityResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetCallerIdentityResponseFilterSensitiveLog = GetCallerIdentityResponseFilterSensitiveLog; -const GetFederationTokenRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetFederationTokenRequestFilterSensitiveLog = GetFederationTokenRequestFilterSensitiveLog; -const FederatedUserFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.FederatedUserFilterSensitiveLog = FederatedUserFilterSensitiveLog; -const GetFederationTokenResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetFederationTokenResponseFilterSensitiveLog = GetFederationTokenResponseFilterSensitiveLog; -const GetSessionTokenRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetSessionTokenRequestFilterSensitiveLog = GetSessionTokenRequestFilterSensitiveLog; -const GetSessionTokenResponseFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetSessionTokenResponseFilterSensitiveLog = GetSessionTokenResponseFilterSensitiveLog; - - -/***/ }), - -/***/ 10740: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.deserializeAws_queryGetSessionTokenCommand = exports.deserializeAws_queryGetFederationTokenCommand = exports.deserializeAws_queryGetCallerIdentityCommand = exports.deserializeAws_queryGetAccessKeyInfoCommand = exports.deserializeAws_queryDecodeAuthorizationMessageCommand = exports.deserializeAws_queryAssumeRoleWithWebIdentityCommand = exports.deserializeAws_queryAssumeRoleWithSAMLCommand = exports.deserializeAws_queryAssumeRoleCommand = exports.serializeAws_queryGetSessionTokenCommand = exports.serializeAws_queryGetFederationTokenCommand = exports.serializeAws_queryGetCallerIdentityCommand = exports.serializeAws_queryGetAccessKeyInfoCommand = exports.serializeAws_queryDecodeAuthorizationMessageCommand = exports.serializeAws_queryAssumeRoleWithWebIdentityCommand = exports.serializeAws_queryAssumeRoleWithSAMLCommand = exports.serializeAws_queryAssumeRoleCommand = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const smithy_client_1 = __nccwpck_require__(4963); -const entities_1 = __nccwpck_require__(3000); -const fast_xml_parser_1 = __nccwpck_require__(27448); -const models_0_1 = __nccwpck_require__(21780); -const STSServiceException_1 = __nccwpck_require__(26450); -const serializeAws_queryAssumeRoleCommand = async (input, context) => { - const headers = { - "content-type": "application/x-www-form-urlencoded", - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryAssumeRoleRequest(input, context), - Action: "AssumeRole", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_queryAssumeRoleCommand = serializeAws_queryAssumeRoleCommand; -const serializeAws_queryAssumeRoleWithSAMLCommand = async (input, context) => { - const headers = { - "content-type": "application/x-www-form-urlencoded", - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryAssumeRoleWithSAMLRequest(input, context), - Action: "AssumeRoleWithSAML", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_queryAssumeRoleWithSAMLCommand = serializeAws_queryAssumeRoleWithSAMLCommand; -const serializeAws_queryAssumeRoleWithWebIdentityCommand = async (input, context) => { - const headers = { - "content-type": "application/x-www-form-urlencoded", - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryAssumeRoleWithWebIdentityRequest(input, context), - Action: "AssumeRoleWithWebIdentity", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_queryAssumeRoleWithWebIdentityCommand = serializeAws_queryAssumeRoleWithWebIdentityCommand; -const serializeAws_queryDecodeAuthorizationMessageCommand = async (input, context) => { - const headers = { - "content-type": "application/x-www-form-urlencoded", - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryDecodeAuthorizationMessageRequest(input, context), - Action: "DecodeAuthorizationMessage", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_queryDecodeAuthorizationMessageCommand = serializeAws_queryDecodeAuthorizationMessageCommand; -const serializeAws_queryGetAccessKeyInfoCommand = async (input, context) => { - const headers = { - "content-type": "application/x-www-form-urlencoded", - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryGetAccessKeyInfoRequest(input, context), - Action: "GetAccessKeyInfo", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_queryGetAccessKeyInfoCommand = serializeAws_queryGetAccessKeyInfoCommand; -const serializeAws_queryGetCallerIdentityCommand = async (input, context) => { - const headers = { - "content-type": "application/x-www-form-urlencoded", - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryGetCallerIdentityRequest(input, context), - Action: "GetCallerIdentity", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_queryGetCallerIdentityCommand = serializeAws_queryGetCallerIdentityCommand; -const serializeAws_queryGetFederationTokenCommand = async (input, context) => { - const headers = { - "content-type": "application/x-www-form-urlencoded", - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryGetFederationTokenRequest(input, context), - Action: "GetFederationToken", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_queryGetFederationTokenCommand = serializeAws_queryGetFederationTokenCommand; -const serializeAws_queryGetSessionTokenCommand = async (input, context) => { - const headers = { - "content-type": "application/x-www-form-urlencoded", - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryGetSessionTokenRequest(input, context), - Action: "GetSessionToken", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.serializeAws_queryGetSessionTokenCommand = serializeAws_queryGetSessionTokenCommand; -const deserializeAws_queryAssumeRoleCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryAssumeRoleCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryAssumeRoleResponse(data.AssumeRoleResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_queryAssumeRoleCommand = deserializeAws_queryAssumeRoleCommand; -const deserializeAws_queryAssumeRoleCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ExpiredTokenException": - case "com.amazonaws.sts#ExpiredTokenException": - throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); - case "MalformedPolicyDocumentException": - case "com.amazonaws.sts#MalformedPolicyDocumentException": - throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); - case "PackedPolicyTooLargeException": - case "com.amazonaws.sts#PackedPolicyTooLargeException": - throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode, - }); - } -}; -const deserializeAws_queryAssumeRoleWithSAMLCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryAssumeRoleWithSAMLCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryAssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_queryAssumeRoleWithSAMLCommand = deserializeAws_queryAssumeRoleWithSAMLCommand; -const deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ExpiredTokenException": - case "com.amazonaws.sts#ExpiredTokenException": - throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); - case "IDPRejectedClaimException": - case "com.amazonaws.sts#IDPRejectedClaimException": - throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context); - case "InvalidIdentityTokenException": - case "com.amazonaws.sts#InvalidIdentityTokenException": - throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context); - case "MalformedPolicyDocumentException": - case "com.amazonaws.sts#MalformedPolicyDocumentException": - throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); - case "PackedPolicyTooLargeException": - case "com.amazonaws.sts#PackedPolicyTooLargeException": - throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode, - }); - } -}; -const deserializeAws_queryAssumeRoleWithWebIdentityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryAssumeRoleWithWebIdentityCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryAssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_queryAssumeRoleWithWebIdentityCommand = deserializeAws_queryAssumeRoleWithWebIdentityCommand; -const deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ExpiredTokenException": - case "com.amazonaws.sts#ExpiredTokenException": - throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); - case "IDPCommunicationErrorException": - case "com.amazonaws.sts#IDPCommunicationErrorException": - throw await deserializeAws_queryIDPCommunicationErrorExceptionResponse(parsedOutput, context); - case "IDPRejectedClaimException": - case "com.amazonaws.sts#IDPRejectedClaimException": - throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context); - case "InvalidIdentityTokenException": - case "com.amazonaws.sts#InvalidIdentityTokenException": - throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context); - case "MalformedPolicyDocumentException": - case "com.amazonaws.sts#MalformedPolicyDocumentException": - throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); - case "PackedPolicyTooLargeException": - case "com.amazonaws.sts#PackedPolicyTooLargeException": - throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode, - }); - } -}; -const deserializeAws_queryDecodeAuthorizationMessageCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryDecodeAuthorizationMessageCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryDecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_queryDecodeAuthorizationMessageCommand = deserializeAws_queryDecodeAuthorizationMessageCommand; -const deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidAuthorizationMessageException": - case "com.amazonaws.sts#InvalidAuthorizationMessageException": - throw await deserializeAws_queryInvalidAuthorizationMessageExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode, - }); - } -}; -const deserializeAws_queryGetAccessKeyInfoCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryGetAccessKeyInfoCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryGetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_queryGetAccessKeyInfoCommand = deserializeAws_queryGetAccessKeyInfoCommand; -const deserializeAws_queryGetAccessKeyInfoCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode, - }); -}; -const deserializeAws_queryGetCallerIdentityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryGetCallerIdentityCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryGetCallerIdentityResponse(data.GetCallerIdentityResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_queryGetCallerIdentityCommand = deserializeAws_queryGetCallerIdentityCommand; -const deserializeAws_queryGetCallerIdentityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode, - }); -}; -const deserializeAws_queryGetFederationTokenCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryGetFederationTokenCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryGetFederationTokenResponse(data.GetFederationTokenResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_queryGetFederationTokenCommand = deserializeAws_queryGetFederationTokenCommand; -const deserializeAws_queryGetFederationTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "MalformedPolicyDocumentException": - case "com.amazonaws.sts#MalformedPolicyDocumentException": - throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); - case "PackedPolicyTooLargeException": - case "com.amazonaws.sts#PackedPolicyTooLargeException": - throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode, - }); - } -}; -const deserializeAws_queryGetSessionTokenCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryGetSessionTokenCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryGetSessionTokenResponse(data.GetSessionTokenResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return Promise.resolve(response); -}; -exports.deserializeAws_queryGetSessionTokenCommand = deserializeAws_queryGetSessionTokenCommand; -const deserializeAws_queryGetSessionTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode, - }); - } -}; -const deserializeAws_queryExpiredTokenExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryExpiredTokenException(body.Error, context); - const exception = new models_0_1.ExpiredTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_queryIDPCommunicationErrorExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryIDPCommunicationErrorException(body.Error, context); - const exception = new models_0_1.IDPCommunicationErrorException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_queryIDPRejectedClaimExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryIDPRejectedClaimException(body.Error, context); - const exception = new models_0_1.IDPRejectedClaimException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_queryInvalidAuthorizationMessageExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryInvalidAuthorizationMessageException(body.Error, context); - const exception = new models_0_1.InvalidAuthorizationMessageException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_queryInvalidIdentityTokenExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryInvalidIdentityTokenException(body.Error, context); - const exception = new models_0_1.InvalidIdentityTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_queryMalformedPolicyDocumentExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryMalformedPolicyDocumentException(body.Error, context); - const exception = new models_0_1.MalformedPolicyDocumentException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_queryPackedPolicyTooLargeExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryPackedPolicyTooLargeException(body.Error, context); - const exception = new models_0_1.PackedPolicyTooLargeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const deserializeAws_queryRegionDisabledExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryRegionDisabledException(body.Error, context); - const exception = new models_0_1.RegionDisabledException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const serializeAws_queryAssumeRoleRequest = (input, context) => { - const entries = {}; - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; - } - if (input.RoleSessionName != null) { - entries["RoleSessionName"] = input.RoleSessionName; - } - if (input.PolicyArns != null) { - const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); - } - if (input.Policy != null) { - entries["Policy"] = input.Policy; - } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - if (input.Tags != null) { - const memberEntries = serializeAws_querytagListType(input.Tags, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Tags.${key}`; - entries[loc] = value; - }); - } - if (input.TransitiveTagKeys != null) { - const memberEntries = serializeAws_querytagKeyListType(input.TransitiveTagKeys, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `TransitiveTagKeys.${key}`; - entries[loc] = value; - }); - } - if (input.ExternalId != null) { - entries["ExternalId"] = input.ExternalId; - } - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; - } - if (input.TokenCode != null) { - entries["TokenCode"] = input.TokenCode; - } - if (input.SourceIdentity != null) { - entries["SourceIdentity"] = input.SourceIdentity; - } - return entries; -}; -const serializeAws_queryAssumeRoleWithSAMLRequest = (input, context) => { - const entries = {}; - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; - } - if (input.PrincipalArn != null) { - entries["PrincipalArn"] = input.PrincipalArn; - } - if (input.SAMLAssertion != null) { - entries["SAMLAssertion"] = input.SAMLAssertion; - } - if (input.PolicyArns != null) { - const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); - } - if (input.Policy != null) { - entries["Policy"] = input.Policy; - } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - return entries; -}; -const serializeAws_queryAssumeRoleWithWebIdentityRequest = (input, context) => { - const entries = {}; - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; - } - if (input.RoleSessionName != null) { - entries["RoleSessionName"] = input.RoleSessionName; - } - if (input.WebIdentityToken != null) { - entries["WebIdentityToken"] = input.WebIdentityToken; - } - if (input.ProviderId != null) { - entries["ProviderId"] = input.ProviderId; - } - if (input.PolicyArns != null) { - const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); - } - if (input.Policy != null) { - entries["Policy"] = input.Policy; - } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - return entries; -}; -const serializeAws_queryDecodeAuthorizationMessageRequest = (input, context) => { - const entries = {}; - if (input.EncodedMessage != null) { - entries["EncodedMessage"] = input.EncodedMessage; - } - return entries; -}; -const serializeAws_queryGetAccessKeyInfoRequest = (input, context) => { - const entries = {}; - if (input.AccessKeyId != null) { - entries["AccessKeyId"] = input.AccessKeyId; - } - return entries; -}; -const serializeAws_queryGetCallerIdentityRequest = (input, context) => { - const entries = {}; - return entries; -}; -const serializeAws_queryGetFederationTokenRequest = (input, context) => { - const entries = {}; - if (input.Name != null) { - entries["Name"] = input.Name; - } - if (input.Policy != null) { - entries["Policy"] = input.Policy; - } - if (input.PolicyArns != null) { - const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); - } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - if (input.Tags != null) { - const memberEntries = serializeAws_querytagListType(input.Tags, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Tags.${key}`; - entries[loc] = value; - }); - } - return entries; -}; -const serializeAws_queryGetSessionTokenRequest = (input, context) => { - const entries = {}; - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; - } - if (input.TokenCode != null) { - entries["TokenCode"] = input.TokenCode; - } - return entries; -}; -const serializeAws_querypolicyDescriptorListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = serializeAws_queryPolicyDescriptorType(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; - } - return entries; -}; -const serializeAws_queryPolicyDescriptorType = (input, context) => { - const entries = {}; - if (input.arn != null) { - entries["arn"] = input.arn; - } - return entries; -}; -const serializeAws_queryTag = (input, context) => { - const entries = {}; - if (input.Key != null) { - entries["Key"] = input.Key; - } - if (input.Value != null) { - entries["Value"] = input.Value; - } - return entries; -}; -const serializeAws_querytagKeyListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; - } - return entries; -}; -const serializeAws_querytagListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = serializeAws_queryTag(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; - } - return entries; -}; -const deserializeAws_queryAssumedRoleUser = (output, context) => { - const contents = { - AssumedRoleId: undefined, - Arn: undefined, - }; - if (output["AssumedRoleId"] !== undefined) { - contents.AssumedRoleId = (0, smithy_client_1.expectString)(output["AssumedRoleId"]); - } - if (output["Arn"] !== undefined) { - contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); - } - return contents; -}; -const deserializeAws_queryAssumeRoleResponse = (output, context) => { - const contents = { - Credentials: undefined, - AssumedRoleUser: undefined, - PackedPolicySize: undefined, - SourceIdentity: undefined, - }; - if (output["Credentials"] !== undefined) { - contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); - } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); - } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); - } - return contents; -}; -const deserializeAws_queryAssumeRoleWithSAMLResponse = (output, context) => { - const contents = { - Credentials: undefined, - AssumedRoleUser: undefined, - PackedPolicySize: undefined, - Subject: undefined, - SubjectType: undefined, - Issuer: undefined, - Audience: undefined, - NameQualifier: undefined, - SourceIdentity: undefined, - }; - if (output["Credentials"] !== undefined) { - contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); - } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); - } - if (output["Subject"] !== undefined) { - contents.Subject = (0, smithy_client_1.expectString)(output["Subject"]); - } - if (output["SubjectType"] !== undefined) { - contents.SubjectType = (0, smithy_client_1.expectString)(output["SubjectType"]); - } - if (output["Issuer"] !== undefined) { - contents.Issuer = (0, smithy_client_1.expectString)(output["Issuer"]); - } - if (output["Audience"] !== undefined) { - contents.Audience = (0, smithy_client_1.expectString)(output["Audience"]); - } - if (output["NameQualifier"] !== undefined) { - contents.NameQualifier = (0, smithy_client_1.expectString)(output["NameQualifier"]); - } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); - } - return contents; -}; -const deserializeAws_queryAssumeRoleWithWebIdentityResponse = (output, context) => { - const contents = { - Credentials: undefined, - SubjectFromWebIdentityToken: undefined, - AssumedRoleUser: undefined, - PackedPolicySize: undefined, - Provider: undefined, - Audience: undefined, - SourceIdentity: undefined, - }; - if (output["Credentials"] !== undefined) { - contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); - } - if (output["SubjectFromWebIdentityToken"] !== undefined) { - contents.SubjectFromWebIdentityToken = (0, smithy_client_1.expectString)(output["SubjectFromWebIdentityToken"]); - } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); - } - if (output["Provider"] !== undefined) { - contents.Provider = (0, smithy_client_1.expectString)(output["Provider"]); - } - if (output["Audience"] !== undefined) { - contents.Audience = (0, smithy_client_1.expectString)(output["Audience"]); - } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); - } - return contents; -}; -const deserializeAws_queryCredentials = (output, context) => { - const contents = { - AccessKeyId: undefined, - SecretAccessKey: undefined, - SessionToken: undefined, - Expiration: undefined, - }; - if (output["AccessKeyId"] !== undefined) { - contents.AccessKeyId = (0, smithy_client_1.expectString)(output["AccessKeyId"]); - } - if (output["SecretAccessKey"] !== undefined) { - contents.SecretAccessKey = (0, smithy_client_1.expectString)(output["SecretAccessKey"]); - } - if (output["SessionToken"] !== undefined) { - contents.SessionToken = (0, smithy_client_1.expectString)(output["SessionToken"]); - } - if (output["Expiration"] !== undefined) { - contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["Expiration"])); - } - return contents; -}; -const deserializeAws_queryDecodeAuthorizationMessageResponse = (output, context) => { - const contents = { - DecodedMessage: undefined, - }; - if (output["DecodedMessage"] !== undefined) { - contents.DecodedMessage = (0, smithy_client_1.expectString)(output["DecodedMessage"]); - } - return contents; -}; -const deserializeAws_queryExpiredTokenException = (output, context) => { - const contents = { - message: undefined, - }; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const deserializeAws_queryFederatedUser = (output, context) => { - const contents = { - FederatedUserId: undefined, - Arn: undefined, - }; - if (output["FederatedUserId"] !== undefined) { - contents.FederatedUserId = (0, smithy_client_1.expectString)(output["FederatedUserId"]); - } - if (output["Arn"] !== undefined) { - contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); - } - return contents; -}; -const deserializeAws_queryGetAccessKeyInfoResponse = (output, context) => { - const contents = { - Account: undefined, - }; - if (output["Account"] !== undefined) { - contents.Account = (0, smithy_client_1.expectString)(output["Account"]); - } - return contents; -}; -const deserializeAws_queryGetCallerIdentityResponse = (output, context) => { - const contents = { - UserId: undefined, - Account: undefined, - Arn: undefined, - }; - if (output["UserId"] !== undefined) { - contents.UserId = (0, smithy_client_1.expectString)(output["UserId"]); - } - if (output["Account"] !== undefined) { - contents.Account = (0, smithy_client_1.expectString)(output["Account"]); - } - if (output["Arn"] !== undefined) { - contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); - } - return contents; -}; -const deserializeAws_queryGetFederationTokenResponse = (output, context) => { - const contents = { - Credentials: undefined, - FederatedUser: undefined, - PackedPolicySize: undefined, - }; - if (output["Credentials"] !== undefined) { - contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); - } - if (output["FederatedUser"] !== undefined) { - contents.FederatedUser = deserializeAws_queryFederatedUser(output["FederatedUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); - } - return contents; -}; -const deserializeAws_queryGetSessionTokenResponse = (output, context) => { - const contents = { - Credentials: undefined, - }; - if (output["Credentials"] !== undefined) { - contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); - } - return contents; -}; -const deserializeAws_queryIDPCommunicationErrorException = (output, context) => { - const contents = { - message: undefined, - }; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const deserializeAws_queryIDPRejectedClaimException = (output, context) => { - const contents = { - message: undefined, - }; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const deserializeAws_queryInvalidAuthorizationMessageException = (output, context) => { - const contents = { - message: undefined, - }; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const deserializeAws_queryInvalidIdentityTokenException = (output, context) => { - const contents = { - message: undefined, - }; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const deserializeAws_queryMalformedPolicyDocumentException = (output, context) => { - const contents = { - message: undefined, - }; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const deserializeAws_queryPackedPolicyTooLargeException = (output, context) => { - const contents = { - message: undefined, - }; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const deserializeAws_queryRegionDisabledException = (output, context) => { - const contents = { - message: undefined, - }; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const deserializeMetadata = (output) => { - var _a; - return ({ - httpStatusCode: output.statusCode, - requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], - }); -}; -const collectBody = (streamBody = new Uint8Array(), context) => { - if (streamBody instanceof Uint8Array) { - return Promise.resolve(streamBody); - } - return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); -}; -const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); -const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const contents = { - protocol, - hostname, - port, - method: "POST", - path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, - headers, - }; - if (resolvedHostname !== undefined) { - contents.hostname = resolvedHostname; - } - if (body !== undefined) { - contents.body = body; - } - return new protocol_http_1.HttpRequest(contents); -}; -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - const parsedObj = (0, fast_xml_parser_1.parse)(encoded, { - attributeNamePrefix: "", - ignoreAttributes: false, - parseNodeValue: false, - trimValues: false, - tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : (0, entities_1.decodeHTML)(val)), - }); - const textNodeName = "#text"; - const key = Object.keys(parsedObj)[0]; - const parsedObjToReturn = parsedObj[key]; - if (parsedObjToReturn[textNodeName]) { - parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; - delete parsedObjToReturn[textNodeName]; - } - return (0, smithy_client_1.getValueFromTextNode)(parsedObjToReturn); - } - return {}; -}); -const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries) - .map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value)) - .join("&"); -const loadQueryErrorCode = (output, data) => { - if (data.Error.Code !== undefined) { - return data.Error.Code; - } - if (output.statusCode == 404) { - return "NotFound"; - } -}; - - -/***/ }), - -/***/ 83405: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; -const tslib_1 = __nccwpck_require__(4351); -const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(7947)); -const defaultStsRoleAssumers_1 = __nccwpck_require__(90048); -const config_resolver_1 = __nccwpck_require__(56153); -const credential_provider_node_1 = __nccwpck_require__(75531); -const hash_node_1 = __nccwpck_require__(97442); -const middleware_retry_1 = __nccwpck_require__(96064); -const node_config_provider_1 = __nccwpck_require__(87684); -const node_http_handler_1 = __nccwpck_require__(68805); -const util_base64_node_1 = __nccwpck_require__(18588); -const util_body_length_node_1 = __nccwpck_require__(74147); -const util_user_agent_node_1 = __nccwpck_require__(98095); -const util_utf8_node_1 = __nccwpck_require__(66278); -const runtimeConfig_shared_1 = __nccwpck_require__(52642); -const smithy_client_1 = __nccwpck_require__(4963); -const util_defaults_mode_node_1 = __nccwpck_require__(74243); -const smithy_client_2 = __nccwpck_require__(4963); -const getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; - (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); - const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, - bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, - credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, defaultStsRoleAssumers_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), - defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), - retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({ - ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE, - }), - sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"), - streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, - useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, - utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8, - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 52642: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRuntimeConfig = void 0; -const url_parser_1 = __nccwpck_require__(2992); -const endpoints_1 = __nccwpck_require__(3571); -const getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e; - return ({ - apiVersion: "2011-06-15", - disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, - logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, - regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, - serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "STS", - urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl, - }); -}; -exports.getRuntimeConfig = getRuntimeConfig; - - -/***/ }), - -/***/ 14723: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = exports.DEFAULT_USE_DUALSTACK_ENDPOINT = exports.CONFIG_USE_DUALSTACK_ENDPOINT = exports.ENV_USE_DUALSTACK_ENDPOINT = void 0; -const util_config_provider_1 = __nccwpck_require__(6168); -exports.ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT"; -exports.CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint"; -exports.DEFAULT_USE_DUALSTACK_ENDPOINT = false; -exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports.ENV_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.ENV), - configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports.CONFIG_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), - default: false, -}; - - -/***/ }), - -/***/ 42478: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = exports.DEFAULT_USE_FIPS_ENDPOINT = exports.CONFIG_USE_FIPS_ENDPOINT = exports.ENV_USE_FIPS_ENDPOINT = void 0; -const util_config_provider_1 = __nccwpck_require__(6168); -exports.ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT"; -exports.CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint"; -exports.DEFAULT_USE_FIPS_ENDPOINT = false; -exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports.ENV_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.ENV), - configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports.CONFIG_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), - default: false, -}; - - -/***/ }), - -/***/ 47392: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(14723), exports); -tslib_1.__exportStar(__nccwpck_require__(42478), exports); -tslib_1.__exportStar(__nccwpck_require__(92108), exports); -tslib_1.__exportStar(__nccwpck_require__(92327), exports); - - -/***/ }), - -/***/ 92108: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveCustomEndpointsConfig = void 0; -const util_middleware_1 = __nccwpck_require__(10236); -const resolveCustomEndpointsConfig = (input) => { - var _a; - const { endpoint, urlParser } = input; - return { - ...input, - tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, - endpoint: (0, util_middleware_1.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint), - isCustomEndpoint: true, - useDualstackEndpoint: (0, util_middleware_1.normalizeProvider)(input.useDualstackEndpoint), - }; -}; -exports.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig; - - -/***/ }), - -/***/ 92327: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveEndpointsConfig = void 0; -const util_middleware_1 = __nccwpck_require__(10236); -const getEndpointFromRegion_1 = __nccwpck_require__(94159); -const resolveEndpointsConfig = (input) => { - var _a; - const useDualstackEndpoint = (0, util_middleware_1.normalizeProvider)(input.useDualstackEndpoint); - const { endpoint, useFipsEndpoint, urlParser } = input; - return { - ...input, - tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, - endpoint: endpoint - ? (0, util_middleware_1.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) - : () => (0, getEndpointFromRegion_1.getEndpointFromRegion)({ ...input, useDualstackEndpoint, useFipsEndpoint }), - isCustomEndpoint: endpoint ? true : false, - useDualstackEndpoint, - }; -}; -exports.resolveEndpointsConfig = resolveEndpointsConfig; - - -/***/ }), - -/***/ 94159: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getEndpointFromRegion = void 0; -const getEndpointFromRegion = async (input) => { - var _a; - const { tls = true } = input; - const region = await input.region(); - const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); - if (!dnsHostRegex.test(region)) { - throw new Error("Invalid region in client config"); - } - const useDualstackEndpoint = await input.useDualstackEndpoint(); - const useFipsEndpoint = await input.useFipsEndpoint(); - const { hostname } = (_a = (await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint }))) !== null && _a !== void 0 ? _a : {}; - if (!hostname) { - throw new Error("Cannot resolve hostname from client config"); - } - return input.urlParser(`${tls ? "https:" : "http:"}//${hostname}`); -}; -exports.getEndpointFromRegion = getEndpointFromRegion; - - -/***/ }), - -/***/ 56153: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(47392), exports); -tslib_1.__exportStar(__nccwpck_require__(85441), exports); -tslib_1.__exportStar(__nccwpck_require__(86258), exports); - - -/***/ }), - -/***/ 70422: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NODE_REGION_CONFIG_FILE_OPTIONS = exports.NODE_REGION_CONFIG_OPTIONS = exports.REGION_INI_NAME = exports.REGION_ENV_NAME = void 0; -exports.REGION_ENV_NAME = "AWS_REGION"; -exports.REGION_INI_NAME = "region"; -exports.NODE_REGION_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.REGION_ENV_NAME], - configFileSelector: (profile) => profile[exports.REGION_INI_NAME], - default: () => { - throw new Error("Region is missing"); - }, -}; -exports.NODE_REGION_CONFIG_FILE_OPTIONS = { - preferredFile: "credentials", -}; - - -/***/ }), - -/***/ 52844: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRealRegion = void 0; -const isFipsRegion_1 = __nccwpck_require__(82440); -const getRealRegion = (region) => (0, isFipsRegion_1.isFipsRegion)(region) - ? ["fips-aws-global", "aws-fips"].includes(region) - ? "us-east-1" - : region.replace(/fips-(dkr-|prod-)?|-fips/, "") - : region; -exports.getRealRegion = getRealRegion; - - -/***/ }), - -/***/ 85441: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(70422), exports); -tslib_1.__exportStar(__nccwpck_require__(60174), exports); - - -/***/ }), - -/***/ 82440: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isFipsRegion = void 0; -const isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")); -exports.isFipsRegion = isFipsRegion; - - -/***/ }), - -/***/ 60174: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveRegionConfig = void 0; -const getRealRegion_1 = __nccwpck_require__(52844); -const isFipsRegion_1 = __nccwpck_require__(82440); -const resolveRegionConfig = (input) => { - const { region, useFipsEndpoint } = input; - if (!region) { - throw new Error("Region is missing"); - } - return { - ...input, - region: async () => { - if (typeof region === "string") { - return (0, getRealRegion_1.getRealRegion)(region); - } - const providedRegion = await region(); - return (0, getRealRegion_1.getRealRegion)(providedRegion); - }, - useFipsEndpoint: async () => { - const providedRegion = typeof region === "string" ? region : await region(); - if ((0, isFipsRegion_1.isFipsRegion)(providedRegion)) { - return true; - } - return typeof useFipsEndpoint === "boolean" ? Promise.resolve(useFipsEndpoint) : useFipsEndpoint(); - }, - }; -}; -exports.resolveRegionConfig = resolveRegionConfig; - - -/***/ }), - -/***/ 3566: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 56057: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 15280: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getHostnameFromVariants = void 0; -const getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { - var _a; - return (_a = variants.find(({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack"))) === null || _a === void 0 ? void 0 : _a.hostname; -}; -exports.getHostnameFromVariants = getHostnameFromVariants; - - -/***/ }), - -/***/ 26167: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRegionInfo = void 0; -const getHostnameFromVariants_1 = __nccwpck_require__(15280); -const getResolvedHostname_1 = __nccwpck_require__(63877); -const getResolvedPartition_1 = __nccwpck_require__(37642); -const getResolvedSigningRegion_1 = __nccwpck_require__(53517); -const getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash, }) => { - var _a, _b, _c, _d, _e, _f; - const partition = (0, getResolvedPartition_1.getResolvedPartition)(region, { partitionHash }); - const resolvedRegion = region in regionHash ? region : (_b = (_a = partitionHash[partition]) === null || _a === void 0 ? void 0 : _a.endpoint) !== null && _b !== void 0 ? _b : region; - const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint }; - const regionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_c = regionHash[resolvedRegion]) === null || _c === void 0 ? void 0 : _c.variants, hostnameOptions); - const partitionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_d = partitionHash[partition]) === null || _d === void 0 ? void 0 : _d.variants, hostnameOptions); - const hostname = (0, getResolvedHostname_1.getResolvedHostname)(resolvedRegion, { regionHostname, partitionHostname }); - if (hostname === undefined) { - throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`); - } - const signingRegion = (0, getResolvedSigningRegion_1.getResolvedSigningRegion)(hostname, { - signingRegion: (_e = regionHash[resolvedRegion]) === null || _e === void 0 ? void 0 : _e.signingRegion, - regionRegex: partitionHash[partition].regionRegex, - useFipsEndpoint, - }); - return { - partition, - signingService, - hostname, - ...(signingRegion && { signingRegion }), - ...(((_f = regionHash[resolvedRegion]) === null || _f === void 0 ? void 0 : _f.signingService) && { - signingService: regionHash[resolvedRegion].signingService, - }), - }; -}; -exports.getRegionInfo = getRegionInfo; - - -/***/ }), - -/***/ 63877: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getResolvedHostname = void 0; -const getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname - ? regionHostname - : partitionHostname - ? partitionHostname.replace("{region}", resolvedRegion) - : undefined; -exports.getResolvedHostname = getResolvedHostname; - - -/***/ }), - -/***/ 37642: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getResolvedPartition = void 0; -const getResolvedPartition = (region, { partitionHash }) => { var _a; return (_a = Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region))) !== null && _a !== void 0 ? _a : "aws"; }; -exports.getResolvedPartition = getResolvedPartition; - - -/***/ }), - -/***/ 53517: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getResolvedSigningRegion = void 0; -const getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFipsEndpoint }) => { - if (signingRegion) { - return signingRegion; - } - else if (useFipsEndpoint) { - const regionRegexJs = regionRegex.replace("\\\\", "\\").replace(/^\^/g, "\\.").replace(/\$$/g, "\\."); - const regionRegexmatchArray = hostname.match(regionRegexJs); - if (regionRegexmatchArray) { - return regionRegexmatchArray[0].slice(1, -1); - } - } -}; -exports.getResolvedSigningRegion = getResolvedSigningRegion; - - -/***/ }), - -/***/ 86258: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(3566), exports); -tslib_1.__exportStar(__nccwpck_require__(56057), exports); -tslib_1.__exportStar(__nccwpck_require__(26167), exports); - - -/***/ }), - -/***/ 80255: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromEnv = exports.ENV_EXPIRATION = exports.ENV_SESSION = exports.ENV_SECRET = exports.ENV_KEY = void 0; -const property_provider_1 = __nccwpck_require__(74462); -exports.ENV_KEY = "AWS_ACCESS_KEY_ID"; -exports.ENV_SECRET = "AWS_SECRET_ACCESS_KEY"; -exports.ENV_SESSION = "AWS_SESSION_TOKEN"; -exports.ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION"; -const fromEnv = () => async () => { - const accessKeyId = process.env[exports.ENV_KEY]; - const secretAccessKey = process.env[exports.ENV_SECRET]; - const sessionToken = process.env[exports.ENV_SESSION]; - const expiry = process.env[exports.ENV_EXPIRATION]; - if (accessKeyId && secretAccessKey) { - return { - accessKeyId, - secretAccessKey, - ...(sessionToken && { sessionToken }), - ...(expiry && { expiration: new Date(expiry) }), - }; - } - throw new property_provider_1.CredentialsProviderError("Unable to find environment variable credentials."); -}; -exports.fromEnv = fromEnv; - - -/***/ }), - -/***/ 15972: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(80255), exports); - - -/***/ }), - -/***/ 3736: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Endpoint = void 0; -var Endpoint; -(function (Endpoint) { - Endpoint["IPv4"] = "http://169.254.169.254"; - Endpoint["IPv6"] = "http://[fd00:ec2::254]"; -})(Endpoint = exports.Endpoint || (exports.Endpoint = {})); - - -/***/ }), - -/***/ 18438: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ENDPOINT_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_NAME = exports.ENV_ENDPOINT_NAME = void 0; -exports.ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; -exports.CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; -exports.ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_NAME], - configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_NAME], - default: undefined, -}; - - -/***/ }), - -/***/ 21695: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.EndpointMode = void 0; -var EndpointMode; -(function (EndpointMode) { - EndpointMode["IPv4"] = "IPv4"; - EndpointMode["IPv6"] = "IPv6"; -})(EndpointMode = exports.EndpointMode || (exports.EndpointMode = {})); - - -/***/ }), - -/***/ 97824: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ENDPOINT_MODE_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_MODE_NAME = exports.ENV_ENDPOINT_MODE_NAME = void 0; -const EndpointMode_1 = __nccwpck_require__(21695); -exports.ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; -exports.CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; -exports.ENDPOINT_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_MODE_NAME], - configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_MODE_NAME], - default: EndpointMode_1.EndpointMode.IPv4, -}; - - -/***/ }), - -/***/ 75232: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromContainerMetadata = exports.ENV_CMDS_AUTH_TOKEN = exports.ENV_CMDS_RELATIVE_URI = exports.ENV_CMDS_FULL_URI = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const url_1 = __nccwpck_require__(57310); -const httpRequest_1 = __nccwpck_require__(81303); -const ImdsCredentials_1 = __nccwpck_require__(91467); -const RemoteProviderInit_1 = __nccwpck_require__(72314); -const retry_1 = __nccwpck_require__(49912); -exports.ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; -exports.ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; -exports.ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; -const fromContainerMetadata = (init = {}) => { - const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); - return () => (0, retry_1.retry)(async () => { - const requestOptions = await getCmdsUri(); - const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions)); - if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { - throw new property_provider_1.CredentialsProviderError("Invalid response received from instance metadata service."); - } - return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); - }, maxRetries); -}; -exports.fromContainerMetadata = fromContainerMetadata; -const requestFromEcsImds = async (timeout, options) => { - if (process.env[exports.ENV_CMDS_AUTH_TOKEN]) { - options.headers = { - ...options.headers, - Authorization: process.env[exports.ENV_CMDS_AUTH_TOKEN], - }; - } - const buffer = await (0, httpRequest_1.httpRequest)({ - ...options, - timeout, - }); - return buffer.toString(); -}; -const CMDS_IP = "169.254.170.2"; -const GREENGRASS_HOSTS = { - localhost: true, - "127.0.0.1": true, -}; -const GREENGRASS_PROTOCOLS = { - "http:": true, - "https:": true, -}; -const getCmdsUri = async () => { - if (process.env[exports.ENV_CMDS_RELATIVE_URI]) { - return { - hostname: CMDS_IP, - path: process.env[exports.ENV_CMDS_RELATIVE_URI], - }; - } - if (process.env[exports.ENV_CMDS_FULL_URI]) { - const parsed = (0, url_1.parse)(process.env[exports.ENV_CMDS_FULL_URI]); - if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) { - throw new property_provider_1.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, false); - } - if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) { - throw new property_provider_1.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, false); - } - return { - ...parsed, - port: parsed.port ? parseInt(parsed.port, 10) : undefined, - }; - } - throw new property_provider_1.CredentialsProviderError("The container metadata credential provider cannot be used unless" + - ` the ${exports.ENV_CMDS_RELATIVE_URI} or ${exports.ENV_CMDS_FULL_URI} environment` + - " variable is set", false); -}; - - -/***/ }), - -/***/ 35813: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromInstanceMetadata = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const httpRequest_1 = __nccwpck_require__(81303); -const ImdsCredentials_1 = __nccwpck_require__(91467); -const RemoteProviderInit_1 = __nccwpck_require__(72314); -const retry_1 = __nccwpck_require__(49912); -const getInstanceMetadataEndpoint_1 = __nccwpck_require__(41206); -const staticStabilityProvider_1 = __nccwpck_require__(54620); -const IMDS_PATH = "/latest/meta-data/iam/security-credentials/"; -const IMDS_TOKEN_PATH = "/latest/api/token"; -const fromInstanceMetadata = (init = {}) => (0, staticStabilityProvider_1.staticStabilityProvider)(getInstanceImdsProvider(init), { logger: init.logger }); -exports.fromInstanceMetadata = fromInstanceMetadata; -const getInstanceImdsProvider = (init) => { - let disableFetchToken = false; - const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); - const getCredentials = async (maxRetries, options) => { - const profile = (await (0, retry_1.retry)(async () => { - let profile; - try { - profile = await getProfile(options); - } - catch (err) { - if (err.statusCode === 401) { - disableFetchToken = false; - } - throw err; - } - return profile; - }, maxRetries)).trim(); - return (0, retry_1.retry)(async () => { - let creds; - try { - creds = await getCredentialsFromProfile(profile, options); - } - catch (err) { - if (err.statusCode === 401) { - disableFetchToken = false; - } - throw err; - } - return creds; - }, maxRetries); - }; - return async () => { - const endpoint = await (0, getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint)(); - if (disableFetchToken) { - return getCredentials(maxRetries, { ...endpoint, timeout }); - } - else { - let token; - try { - token = (await getMetadataToken({ ...endpoint, timeout })).toString(); - } - catch (error) { - if ((error === null || error === void 0 ? void 0 : error.statusCode) === 400) { - throw Object.assign(error, { - message: "EC2 Metadata token request returned error", - }); - } - else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) { - disableFetchToken = true; - } - return getCredentials(maxRetries, { ...endpoint, timeout }); - } - return getCredentials(maxRetries, { - ...endpoint, - headers: { - "x-aws-ec2-metadata-token": token, - }, - timeout, - }); - } - }; -}; -const getMetadataToken = async (options) => (0, httpRequest_1.httpRequest)({ - ...options, - path: IMDS_TOKEN_PATH, - method: "PUT", - headers: { - "x-aws-ec2-metadata-token-ttl-seconds": "21600", - }, -}); -const getProfile = async (options) => (await (0, httpRequest_1.httpRequest)({ ...options, path: IMDS_PATH })).toString(); -const getCredentialsFromProfile = async (profile, options) => { - const credsResponse = JSON.parse((await (0, httpRequest_1.httpRequest)({ - ...options, - path: IMDS_PATH + profile, - })).toString()); - if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { - throw new property_provider_1.CredentialsProviderError("Invalid response received from instance metadata service."); - } - return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); -}; - - -/***/ }), - -/***/ 25898: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getInstanceMetadataEndpoint = exports.httpRequest = void 0; -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(75232), exports); -tslib_1.__exportStar(__nccwpck_require__(35813), exports); -tslib_1.__exportStar(__nccwpck_require__(72314), exports); -tslib_1.__exportStar(__nccwpck_require__(91178), exports); -var httpRequest_1 = __nccwpck_require__(81303); -Object.defineProperty(exports, "httpRequest", ({ enumerable: true, get: function () { return httpRequest_1.httpRequest; } })); -var getInstanceMetadataEndpoint_1 = __nccwpck_require__(41206); -Object.defineProperty(exports, "getInstanceMetadataEndpoint", ({ enumerable: true, get: function () { return getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint; } })); - - -/***/ }), - -/***/ 91467: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromImdsCredentials = exports.isImdsCredentials = void 0; -const isImdsCredentials = (arg) => Boolean(arg) && - typeof arg === "object" && - typeof arg.AccessKeyId === "string" && - typeof arg.SecretAccessKey === "string" && - typeof arg.Token === "string" && - typeof arg.Expiration === "string"; -exports.isImdsCredentials = isImdsCredentials; -const fromImdsCredentials = (creds) => ({ - accessKeyId: creds.AccessKeyId, - secretAccessKey: creds.SecretAccessKey, - sessionToken: creds.Token, - expiration: new Date(creds.Expiration), -}); -exports.fromImdsCredentials = fromImdsCredentials; - - -/***/ }), - -/***/ 72314: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.providerConfigFromInit = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_TIMEOUT = void 0; -exports.DEFAULT_TIMEOUT = 1000; -exports.DEFAULT_MAX_RETRIES = 0; -const providerConfigFromInit = ({ maxRetries = exports.DEFAULT_MAX_RETRIES, timeout = exports.DEFAULT_TIMEOUT, }) => ({ maxRetries, timeout }); -exports.providerConfigFromInit = providerConfigFromInit; - - -/***/ }), - -/***/ 81303: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.httpRequest = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const buffer_1 = __nccwpck_require__(14300); -const http_1 = __nccwpck_require__(13685); -function httpRequest(options) { - return new Promise((resolve, reject) => { - var _a; - const req = (0, http_1.request)({ - method: "GET", - ...options, - hostname: (_a = options.hostname) === null || _a === void 0 ? void 0 : _a.replace(/^\[(.+)\]$/, "$1"), - }); - req.on("error", (err) => { - reject(Object.assign(new property_provider_1.ProviderError("Unable to connect to instance metadata service"), err)); - req.destroy(); - }); - req.on("timeout", () => { - reject(new property_provider_1.ProviderError("TimeoutError from instance metadata service")); - req.destroy(); - }); - req.on("response", (res) => { - const { statusCode = 400 } = res; - if (statusCode < 200 || 300 <= statusCode) { - reject(Object.assign(new property_provider_1.ProviderError("Error response received from instance metadata service"), { statusCode })); - req.destroy(); - } - const chunks = []; - res.on("data", (chunk) => { - chunks.push(chunk); - }); - res.on("end", () => { - resolve(buffer_1.Buffer.concat(chunks)); - req.destroy(); - }); - }); - req.end(); - }); -} -exports.httpRequest = httpRequest; - - -/***/ }), - -/***/ 49912: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.retry = void 0; -const retry = (toRetry, maxRetries) => { - let promise = toRetry(); - for (let i = 0; i < maxRetries; i++) { - promise = promise.catch(toRetry); - } - return promise; -}; -exports.retry = retry; - - -/***/ }), - -/***/ 91178: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 8473: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getExtendedInstanceMetadataCredentials = void 0; -const STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60; -const STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60; -const STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html"; -const getExtendedInstanceMetadataCredentials = (credentials, logger) => { - var _a; - const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + - Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS); - const newExpiration = new Date(Date.now() + refreshInterval * 1000); - logger.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these " + - "credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: " + - STATIC_STABILITY_DOC_URL); - const originalExpiration = (_a = credentials.originalExpiration) !== null && _a !== void 0 ? _a : credentials.expiration; - return { - ...credentials, - ...(originalExpiration ? { originalExpiration } : {}), - expiration: newExpiration, - }; -}; -exports.getExtendedInstanceMetadataCredentials = getExtendedInstanceMetadataCredentials; - - -/***/ }), - -/***/ 41206: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getInstanceMetadataEndpoint = void 0; -const node_config_provider_1 = __nccwpck_require__(87684); -const url_parser_1 = __nccwpck_require__(2992); -const Endpoint_1 = __nccwpck_require__(3736); -const EndpointConfigOptions_1 = __nccwpck_require__(18438); -const EndpointMode_1 = __nccwpck_require__(21695); -const EndpointModeConfigOptions_1 = __nccwpck_require__(97824); -const getInstanceMetadataEndpoint = async () => (0, url_parser_1.parseUrl)((await getFromEndpointConfig()) || (await getFromEndpointModeConfig())); -exports.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint; -const getFromEndpointConfig = async () => (0, node_config_provider_1.loadConfig)(EndpointConfigOptions_1.ENDPOINT_CONFIG_OPTIONS)(); -const getFromEndpointModeConfig = async () => { - const endpointMode = await (0, node_config_provider_1.loadConfig)(EndpointModeConfigOptions_1.ENDPOINT_MODE_CONFIG_OPTIONS)(); - switch (endpointMode) { - case EndpointMode_1.EndpointMode.IPv4: - return Endpoint_1.Endpoint.IPv4; - case EndpointMode_1.EndpointMode.IPv6: - return Endpoint_1.Endpoint.IPv6; - default: - throw new Error(`Unsupported endpoint mode: ${endpointMode}.` + ` Select from ${Object.values(EndpointMode_1.EndpointMode)}`); - } -}; - - -/***/ }), - -/***/ 54620: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.staticStabilityProvider = void 0; -const getExtendedInstanceMetadataCredentials_1 = __nccwpck_require__(8473); -const staticStabilityProvider = (provider, options = {}) => { - const logger = (options === null || options === void 0 ? void 0 : options.logger) || console; - let pastCredentials; - return async () => { - let credentials; - try { - credentials = await provider(); - if (credentials.expiration && credentials.expiration.getTime() < Date.now()) { - credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(credentials, logger); - } - } - catch (e) { - if (pastCredentials) { - logger.warn("Credential renew failed: ", e); - credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(pastCredentials, logger); - } - else { - throw e; - } - } - pastCredentials = credentials; - return credentials; - }; -}; -exports.staticStabilityProvider = staticStabilityProvider; - - -/***/ }), - -/***/ 7077: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromIni = void 0; -const shared_ini_file_loader_1 = __nccwpck_require__(67387); -const resolveProfileData_1 = __nccwpck_require__(95653); -const fromIni = (init = {}) => async () => { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - return (0, resolveProfileData_1.resolveProfileData)((0, shared_ini_file_loader_1.getProfileName)(init), profiles, init); -}; -exports.fromIni = fromIni; - - -/***/ }), - -/***/ 74203: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(7077), exports); - - -/***/ }), - -/***/ 60853: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveAssumeRoleCredentials = exports.isAssumeRoleProfile = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const shared_ini_file_loader_1 = __nccwpck_require__(67387); -const resolveCredentialSource_1 = __nccwpck_require__(82458); -const resolveProfileData_1 = __nccwpck_require__(95653); -const isAssumeRoleProfile = (arg) => Boolean(arg) && - typeof arg === "object" && - typeof arg.role_arn === "string" && - ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && - ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && - ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && - (isAssumeRoleWithSourceProfile(arg) || isAssumeRoleWithProviderProfile(arg)); -exports.isAssumeRoleProfile = isAssumeRoleProfile; -const isAssumeRoleWithSourceProfile = (arg) => typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined"; -const isAssumeRoleWithProviderProfile = (arg) => typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined"; -const resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => { - const data = profiles[profileName]; - if (!options.roleAssumer) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires a role to be assumed, but no role assumption callback was provided.`, false); - } - const { source_profile } = data; - if (source_profile && source_profile in visitedProfiles) { - throw new property_provider_1.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile` + - ` ${(0, shared_ini_file_loader_1.getProfileName)(options)}. Profiles visited: ` + - Object.keys(visitedProfiles).join(", "), false); - } - const sourceCredsProvider = source_profile - ? (0, resolveProfileData_1.resolveProfileData)(source_profile, profiles, options, { - ...visitedProfiles, - [source_profile]: true, - }) - : (0, resolveCredentialSource_1.resolveCredentialSource)(data.credential_source, profileName)(); - const params = { - RoleArn: data.role_arn, - RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`, - ExternalId: data.external_id, - }; - const { mfa_serial } = data; - if (mfa_serial) { - if (!options.mfaCodeProvider) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, false); - } - params.SerialNumber = mfa_serial; - params.TokenCode = await options.mfaCodeProvider(mfa_serial); - } - const sourceCreds = await sourceCredsProvider; - return options.roleAssumer(sourceCreds, params); -}; -exports.resolveAssumeRoleCredentials = resolveAssumeRoleCredentials; - - -/***/ }), - -/***/ 82458: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveCredentialSource = void 0; -const credential_provider_env_1 = __nccwpck_require__(15972); -const credential_provider_imds_1 = __nccwpck_require__(25898); -const property_provider_1 = __nccwpck_require__(74462); -const resolveCredentialSource = (credentialSource, profileName) => { - const sourceProvidersMap = { - EcsContainer: credential_provider_imds_1.fromContainerMetadata, - Ec2InstanceMetadata: credential_provider_imds_1.fromInstanceMetadata, - Environment: credential_provider_env_1.fromEnv, - }; - if (credentialSource in sourceProvidersMap) { - return sourceProvidersMap[credentialSource](); - } - else { - throw new property_provider_1.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, ` + - `expected EcsContainer or Ec2InstanceMetadata or Environment.`); - } -}; -exports.resolveCredentialSource = resolveCredentialSource; - - -/***/ }), - -/***/ 95653: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveProfileData = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const resolveAssumeRoleCredentials_1 = __nccwpck_require__(60853); -const resolveSsoCredentials_1 = __nccwpck_require__(59867); -const resolveStaticCredentials_1 = __nccwpck_require__(33071); -const resolveWebIdentityCredentials_1 = __nccwpck_require__(58342); -const resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}) => { - const data = profiles[profileName]; - if (Object.keys(visitedProfiles).length > 0 && (0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { - return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); - } - if ((0, resolveAssumeRoleCredentials_1.isAssumeRoleProfile)(data)) { - return (0, resolveAssumeRoleCredentials_1.resolveAssumeRoleCredentials)(profileName, profiles, options, visitedProfiles); - } - if ((0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { - return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); - } - if ((0, resolveWebIdentityCredentials_1.isWebIdentityProfile)(data)) { - return (0, resolveWebIdentityCredentials_1.resolveWebIdentityCredentials)(data, options); - } - if ((0, resolveSsoCredentials_1.isSsoProfile)(data)) { - return (0, resolveSsoCredentials_1.resolveSsoCredentials)(data); - } - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared credentials file.`); -}; -exports.resolveProfileData = resolveProfileData; - - -/***/ }), - -/***/ 59867: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveSsoCredentials = exports.isSsoProfile = void 0; -const credential_provider_sso_1 = __nccwpck_require__(26414); -var credential_provider_sso_2 = __nccwpck_require__(26414); -Object.defineProperty(exports, "isSsoProfile", ({ enumerable: true, get: function () { return credential_provider_sso_2.isSsoProfile; } })); -const resolveSsoCredentials = (data) => { - const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, credential_provider_sso_1.validateSsoProfile)(data); - return (0, credential_provider_sso_1.fromSSO)({ - ssoStartUrl: sso_start_url, - ssoAccountId: sso_account_id, - ssoRegion: sso_region, - ssoRoleName: sso_role_name, - })(); -}; -exports.resolveSsoCredentials = resolveSsoCredentials; - - -/***/ }), - -/***/ 33071: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveStaticCredentials = exports.isStaticCredsProfile = void 0; -const isStaticCredsProfile = (arg) => Boolean(arg) && - typeof arg === "object" && - typeof arg.aws_access_key_id === "string" && - typeof arg.aws_secret_access_key === "string" && - ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1; -exports.isStaticCredsProfile = isStaticCredsProfile; -const resolveStaticCredentials = (profile) => Promise.resolve({ - accessKeyId: profile.aws_access_key_id, - secretAccessKey: profile.aws_secret_access_key, - sessionToken: profile.aws_session_token, -}); -exports.resolveStaticCredentials = resolveStaticCredentials; - - -/***/ }), - -/***/ 58342: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveWebIdentityCredentials = exports.isWebIdentityProfile = void 0; -const credential_provider_web_identity_1 = __nccwpck_require__(15646); -const isWebIdentityProfile = (arg) => Boolean(arg) && - typeof arg === "object" && - typeof arg.web_identity_token_file === "string" && - typeof arg.role_arn === "string" && - ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1; -exports.isWebIdentityProfile = isWebIdentityProfile; -const resolveWebIdentityCredentials = async (profile, options) => (0, credential_provider_web_identity_1.fromTokenFile)({ - webIdentityTokenFile: profile.web_identity_token_file, - roleArn: profile.role_arn, - roleSessionName: profile.role_session_name, - roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity, -})(); -exports.resolveWebIdentityCredentials = resolveWebIdentityCredentials; - - -/***/ }), - -/***/ 15560: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.defaultProvider = void 0; -const credential_provider_env_1 = __nccwpck_require__(15972); -const credential_provider_ini_1 = __nccwpck_require__(74203); -const credential_provider_process_1 = __nccwpck_require__(89969); -const credential_provider_sso_1 = __nccwpck_require__(26414); -const credential_provider_web_identity_1 = __nccwpck_require__(15646); -const property_provider_1 = __nccwpck_require__(74462); -const shared_ini_file_loader_1 = __nccwpck_require__(67387); -const remoteProvider_1 = __nccwpck_require__(30604); -const defaultProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)(...(init.profile || process.env[shared_ini_file_loader_1.ENV_PROFILE] ? [] : [(0, credential_provider_env_1.fromEnv)()]), (0, credential_provider_sso_1.fromSSO)(init), (0, credential_provider_ini_1.fromIni)(init), (0, credential_provider_process_1.fromProcess)(init), (0, credential_provider_web_identity_1.fromTokenFile)(init), (0, remoteProvider_1.remoteProvider)(init), async () => { - throw new property_provider_1.CredentialsProviderError("Could not load credentials from any providers", false); -}), (credentials) => credentials.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000, (credentials) => credentials.expiration !== undefined); -exports.defaultProvider = defaultProvider; - - -/***/ }), - -/***/ 75531: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(15560), exports); - - -/***/ }), - -/***/ 30604: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.remoteProvider = exports.ENV_IMDS_DISABLED = void 0; -const credential_provider_imds_1 = __nccwpck_require__(25898); -const property_provider_1 = __nccwpck_require__(74462); -exports.ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; -const remoteProvider = (init) => { - if (process.env[credential_provider_imds_1.ENV_CMDS_RELATIVE_URI] || process.env[credential_provider_imds_1.ENV_CMDS_FULL_URI]) { - return (0, credential_provider_imds_1.fromContainerMetadata)(init); - } - if (process.env[exports.ENV_IMDS_DISABLED]) { - return async () => { - throw new property_provider_1.CredentialsProviderError("EC2 Instance Metadata Service access disabled"); - }; - } - return (0, credential_provider_imds_1.fromInstanceMetadata)(init); -}; -exports.remoteProvider = remoteProvider; - - -/***/ }), - -/***/ 72650: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromProcess = void 0; -const shared_ini_file_loader_1 = __nccwpck_require__(67387); -const resolveProcessCredentials_1 = __nccwpck_require__(74926); -const fromProcess = (init = {}) => async () => { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - return (0, resolveProcessCredentials_1.resolveProcessCredentials)((0, shared_ini_file_loader_1.getProfileName)(init), profiles); -}; -exports.fromProcess = fromProcess; - - -/***/ }), - -/***/ 41104: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getValidatedProcessCredentials = void 0; -const getValidatedProcessCredentials = (profileName, data) => { - if (data.Version !== 1) { - throw Error(`Profile ${profileName} credential_process did not return Version 1.`); - } - if (data.AccessKeyId === undefined || data.SecretAccessKey === undefined) { - throw Error(`Profile ${profileName} credential_process returned invalid credentials.`); - } - if (data.Expiration) { - const currentTime = new Date(); - const expireTime = new Date(data.Expiration); - if (expireTime < currentTime) { - throw Error(`Profile ${profileName} credential_process returned expired credentials.`); - } - } - return { - accessKeyId: data.AccessKeyId, - secretAccessKey: data.SecretAccessKey, - ...(data.SessionToken && { sessionToken: data.SessionToken }), - ...(data.Expiration && { expiration: new Date(data.Expiration) }), - }; -}; -exports.getValidatedProcessCredentials = getValidatedProcessCredentials; - - -/***/ }), - -/***/ 89969: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(72650), exports); - - -/***/ }), - -/***/ 74926: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveProcessCredentials = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const child_process_1 = __nccwpck_require__(32081); -const util_1 = __nccwpck_require__(73837); -const getValidatedProcessCredentials_1 = __nccwpck_require__(41104); -const resolveProcessCredentials = async (profileName, profiles) => { - const profile = profiles[profileName]; - if (profiles[profileName]) { - const credentialProcess = profile["credential_process"]; - if (credentialProcess !== undefined) { - const execPromise = (0, util_1.promisify)(child_process_1.exec); - try { - const { stdout } = await execPromise(credentialProcess); - let data; - try { - data = JSON.parse(stdout.trim()); - } - catch (_a) { - throw Error(`Profile ${profileName} credential_process returned invalid JSON.`); - } - return (0, getValidatedProcessCredentials_1.getValidatedProcessCredentials)(profileName, data); - } - catch (error) { - throw new property_provider_1.CredentialsProviderError(error.message); - } - } - else { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`); - } - } - else { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`); - } -}; -exports.resolveProcessCredentials = resolveProcessCredentials; - - -/***/ }), - -/***/ 35959: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromSSO = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const shared_ini_file_loader_1 = __nccwpck_require__(67387); -const isSsoProfile_1 = __nccwpck_require__(32572); -const resolveSSOCredentials_1 = __nccwpck_require__(94729); -const validateSsoProfile_1 = __nccwpck_require__(48098); -const fromSSO = (init = {}) => async () => { - const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient } = init; - if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName) { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - const profileName = (0, shared_ini_file_loader_1.getProfileName)(init); - const profile = profiles[profileName]; - if (!(0, isSsoProfile_1.isSsoProfile)(profile)) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`); - } - const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, validateSsoProfile_1.validateSsoProfile)(profile); - return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ - ssoStartUrl: sso_start_url, - ssoAccountId: sso_account_id, - ssoRegion: sso_region, - ssoRoleName: sso_role_name, - ssoClient: ssoClient, - }); - } - else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) { - throw new property_provider_1.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl",' + - ' "ssoAccountId", "ssoRegion", "ssoRoleName"'); - } - else { - return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient }); - } -}; -exports.fromSSO = fromSSO; - - -/***/ }), - -/***/ 26414: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(35959), exports); -tslib_1.__exportStar(__nccwpck_require__(32572), exports); -tslib_1.__exportStar(__nccwpck_require__(86623), exports); -tslib_1.__exportStar(__nccwpck_require__(48098), exports); - - -/***/ }), - -/***/ 32572: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isSsoProfile = void 0; -const isSsoProfile = (arg) => arg && - (typeof arg.sso_start_url === "string" || - typeof arg.sso_account_id === "string" || - typeof arg.sso_region === "string" || - typeof arg.sso_role_name === "string"); -exports.isSsoProfile = isSsoProfile; - - -/***/ }), - -/***/ 94729: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveSSOCredentials = void 0; -const client_sso_1 = __nccwpck_require__(82666); -const property_provider_1 = __nccwpck_require__(74462); -const shared_ini_file_loader_1 = __nccwpck_require__(67387); -const EXPIRE_WINDOW_MS = 15 * 60 * 1000; -const SHOULD_FAIL_CREDENTIAL_CHAIN = false; -const resolveSSOCredentials = async ({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, }) => { - let token; - const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`; - try { - token = await (0, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoStartUrl); - } - catch (e) { - throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - if (new Date(token.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) { - throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - const { accessToken } = token; - const sso = ssoClient || new client_sso_1.SSOClient({ region: ssoRegion }); - let ssoResp; - try { - ssoResp = await sso.send(new client_sso_1.GetRoleCredentialsCommand({ - accountId: ssoAccountId, - roleName: ssoRoleName, - accessToken, - })); - } - catch (e) { - throw property_provider_1.CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp; - if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) { - throw new property_provider_1.CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN); - } - return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) }; -}; -exports.resolveSSOCredentials = resolveSSOCredentials; - - -/***/ }), - -/***/ 86623: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 48098: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.validateSsoProfile = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const validateSsoProfile = (profile) => { - const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile; - if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) { - throw new property_provider_1.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", ` + - `"sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, false); - } - return profile; -}; -exports.validateSsoProfile = validateSsoProfile; - - -/***/ }), - -/***/ 35614: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromTokenFile = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const fs_1 = __nccwpck_require__(57147); -const fromWebToken_1 = __nccwpck_require__(47905); -const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE"; -const ENV_ROLE_ARN = "AWS_ROLE_ARN"; -const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME"; -const fromTokenFile = (init = {}) => async () => { - return resolveTokenFile(init); -}; -exports.fromTokenFile = fromTokenFile; -const resolveTokenFile = (init) => { - var _a, _b, _c; - const webIdentityTokenFile = (_a = init === null || init === void 0 ? void 0 : init.webIdentityTokenFile) !== null && _a !== void 0 ? _a : process.env[ENV_TOKEN_FILE]; - const roleArn = (_b = init === null || init === void 0 ? void 0 : init.roleArn) !== null && _b !== void 0 ? _b : process.env[ENV_ROLE_ARN]; - const roleSessionName = (_c = init === null || init === void 0 ? void 0 : init.roleSessionName) !== null && _c !== void 0 ? _c : process.env[ENV_ROLE_SESSION_NAME]; - if (!webIdentityTokenFile || !roleArn) { - throw new property_provider_1.CredentialsProviderError("Web identity configuration not specified"); - } - return (0, fromWebToken_1.fromWebToken)({ - ...init, - webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }), - roleArn, - roleSessionName, - })(); -}; - - -/***/ }), - -/***/ 47905: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromWebToken = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const fromWebToken = (init) => () => { - const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds, roleAssumerWithWebIdentity, } = init; - if (!roleAssumerWithWebIdentity) { - throw new property_provider_1.CredentialsProviderError(`Role Arn '${roleArn}' needs to be assumed with web identity,` + - ` but no role assumption callback was provided.`, false); - } - return roleAssumerWithWebIdentity({ - RoleArn: roleArn, - RoleSessionName: roleSessionName !== null && roleSessionName !== void 0 ? roleSessionName : `aws-sdk-js-session-${Date.now()}`, - WebIdentityToken: webIdentityToken, - ProviderId: providerId, - PolicyArns: policyArns, - Policy: policy, - DurationSeconds: durationSeconds, - }); -}; -exports.fromWebToken = fromWebToken; - - -/***/ }), - -/***/ 15646: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(35614), exports); -tslib_1.__exportStar(__nccwpck_require__(47905), exports); - - -/***/ }), - -/***/ 97442: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Hash = void 0; -const util_buffer_from_1 = __nccwpck_require__(36010); -const buffer_1 = __nccwpck_require__(14300); -const crypto_1 = __nccwpck_require__(6113); -class Hash { - constructor(algorithmIdentifier, secret) { - this.hash = secret ? (0, crypto_1.createHmac)(algorithmIdentifier, castSourceData(secret)) : (0, crypto_1.createHash)(algorithmIdentifier); - } - update(toHash, encoding) { - this.hash.update(castSourceData(toHash, encoding)); - } - digest() { - return Promise.resolve(this.hash.digest()); - } -} -exports.Hash = Hash; -function castSourceData(toCast, encoding) { - if (buffer_1.Buffer.isBuffer(toCast)) { - return toCast; - } - if (typeof toCast === "string") { - return (0, util_buffer_from_1.fromString)(toCast, encoding); - } - if (ArrayBuffer.isView(toCast)) { - return (0, util_buffer_from_1.fromArrayBuffer)(toCast.buffer, toCast.byteOffset, toCast.byteLength); - } - return (0, util_buffer_from_1.fromArrayBuffer)(toCast); -} - - -/***/ }), - -/***/ 69126: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isArrayBuffer = void 0; -const isArrayBuffer = (arg) => (typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer) || - Object.prototype.toString.call(arg) === "[object ArrayBuffer]"; -exports.isArrayBuffer = isArrayBuffer; - - -/***/ }), - -/***/ 42245: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getContentLengthPlugin = exports.contentLengthMiddlewareOptions = exports.contentLengthMiddleware = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const CONTENT_LENGTH_HEADER = "content-length"; -function contentLengthMiddleware(bodyLengthChecker) { - return (next) => async (args) => { - const request = args.request; - if (protocol_http_1.HttpRequest.isInstance(request)) { - const { body, headers } = request; - if (body && - Object.keys(headers) - .map((str) => str.toLowerCase()) - .indexOf(CONTENT_LENGTH_HEADER) === -1) { - try { - const length = bodyLengthChecker(body); - request.headers = { - ...request.headers, - [CONTENT_LENGTH_HEADER]: String(length), - }; - } - catch (error) { - } - } - } - return next({ - ...args, - request, - }); - }; -} -exports.contentLengthMiddleware = contentLengthMiddleware; -exports.contentLengthMiddlewareOptions = { - step: "build", - tags: ["SET_CONTENT_LENGTH", "CONTENT_LENGTH"], - name: "contentLengthMiddleware", - override: true, -}; -const getContentLengthPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), exports.contentLengthMiddlewareOptions); - }, -}); -exports.getContentLengthPlugin = getContentLengthPlugin; - - -/***/ }), - -/***/ 22545: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getHostHeaderPlugin = exports.hostHeaderMiddlewareOptions = exports.hostHeaderMiddleware = exports.resolveHostHeaderConfig = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -function resolveHostHeaderConfig(input) { - return input; -} -exports.resolveHostHeaderConfig = resolveHostHeaderConfig; -const hostHeaderMiddleware = (options) => (next) => async (args) => { - if (!protocol_http_1.HttpRequest.isInstance(args.request)) - return next(args); - const { request } = args; - const { handlerProtocol = "" } = options.requestHandler.metadata || {}; - if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) { - delete request.headers["host"]; - request.headers[":authority"] = ""; - } - else if (!request.headers["host"]) { - request.headers["host"] = request.hostname; - } - return next(args); -}; -exports.hostHeaderMiddleware = hostHeaderMiddleware; -exports.hostHeaderMiddlewareOptions = { - name: "hostHeaderMiddleware", - step: "build", - priority: "low", - tags: ["HOST"], - override: true, -}; -const getHostHeaderPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports.hostHeaderMiddleware)(options), exports.hostHeaderMiddlewareOptions); - }, -}); -exports.getHostHeaderPlugin = getHostHeaderPlugin; - - -/***/ }), - -/***/ 20014: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(9754), exports); - - -/***/ }), - -/***/ 9754: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getLoggerPlugin = exports.loggerMiddlewareOptions = exports.loggerMiddleware = void 0; -const loggerMiddleware = () => (next, context) => async (args) => { - const { clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog } = context; - const response = await next(args); - if (!logger) { - return response; - } - if (typeof logger.info === "function") { - const { $metadata, ...outputWithoutMetadata } = response.output; - logger.info({ - clientName, - commandName, - input: inputFilterSensitiveLog(args.input), - output: outputFilterSensitiveLog(outputWithoutMetadata), - metadata: $metadata, - }); - } - return response; -}; -exports.loggerMiddleware = loggerMiddleware; -exports.loggerMiddlewareOptions = { - name: "loggerMiddleware", - tags: ["LOGGER"], - step: "initialize", - override: true, -}; -const getLoggerPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports.loggerMiddleware)(), exports.loggerMiddlewareOptions); - }, -}); -exports.getLoggerPlugin = getLoggerPlugin; - - -/***/ }), - -/***/ 85525: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRecursionDetectionPlugin = exports.addRecursionDetectionMiddlewareOptions = exports.recursionDetectionMiddleware = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id"; -const ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; -const ENV_TRACE_ID = "_X_AMZN_TRACE_ID"; -const recursionDetectionMiddleware = (options) => (next) => async (args) => { - const { request } = args; - if (!protocol_http_1.HttpRequest.isInstance(request) || - options.runtime !== "node" || - request.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { - return next(args); - } - const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; - const traceId = process.env[ENV_TRACE_ID]; - const nonEmptyString = (str) => typeof str === "string" && str.length > 0; - if (nonEmptyString(functionName) && nonEmptyString(traceId)) { - request.headers[TRACE_ID_HEADER_NAME] = traceId; - } - return next({ - ...args, - request, - }); -}; -exports.recursionDetectionMiddleware = recursionDetectionMiddleware; -exports.addRecursionDetectionMiddlewareOptions = { - step: "build", - tags: ["RECURSION_DETECTION"], - name: "recursionDetectionMiddleware", - override: true, - priority: "low", -}; -const getRecursionDetectionPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports.recursionDetectionMiddleware)(options), exports.addRecursionDetectionMiddlewareOptions); - }, -}); -exports.getRecursionDetectionPlugin = getRecursionDetectionPlugin; - - -/***/ }), - -/***/ 47328: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.AdaptiveRetryStrategy = void 0; -const config_1 = __nccwpck_require__(55192); -const DefaultRateLimiter_1 = __nccwpck_require__(6402); -const StandardRetryStrategy_1 = __nccwpck_require__(533); -class AdaptiveRetryStrategy extends StandardRetryStrategy_1.StandardRetryStrategy { - constructor(maxAttemptsProvider, options) { - const { rateLimiter, ...superOptions } = options !== null && options !== void 0 ? options : {}; - super(maxAttemptsProvider, superOptions); - this.rateLimiter = rateLimiter !== null && rateLimiter !== void 0 ? rateLimiter : new DefaultRateLimiter_1.DefaultRateLimiter(); - this.mode = config_1.RETRY_MODES.ADAPTIVE; - } - async retry(next, args) { - return super.retry(next, args, { - beforeRequest: async () => { - return this.rateLimiter.getSendToken(); - }, - afterRequest: (response) => { - this.rateLimiter.updateClientSendingRate(response); - }, - }); - } -} -exports.AdaptiveRetryStrategy = AdaptiveRetryStrategy; - - -/***/ }), - -/***/ 6402: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DefaultRateLimiter = void 0; -const service_error_classification_1 = __nccwpck_require__(61921); -class DefaultRateLimiter { - constructor(options) { - var _a, _b, _c, _d, _e; - this.currentCapacity = 0; - this.enabled = false; - this.lastMaxRate = 0; - this.measuredTxRate = 0; - this.requestCount = 0; - this.lastTimestamp = 0; - this.timeWindow = 0; - this.beta = (_a = options === null || options === void 0 ? void 0 : options.beta) !== null && _a !== void 0 ? _a : 0.7; - this.minCapacity = (_b = options === null || options === void 0 ? void 0 : options.minCapacity) !== null && _b !== void 0 ? _b : 1; - this.minFillRate = (_c = options === null || options === void 0 ? void 0 : options.minFillRate) !== null && _c !== void 0 ? _c : 0.5; - this.scaleConstant = (_d = options === null || options === void 0 ? void 0 : options.scaleConstant) !== null && _d !== void 0 ? _d : 0.4; - this.smooth = (_e = options === null || options === void 0 ? void 0 : options.smooth) !== null && _e !== void 0 ? _e : 0.8; - const currentTimeInSeconds = this.getCurrentTimeInSeconds(); - this.lastThrottleTime = currentTimeInSeconds; - this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); - this.fillRate = this.minFillRate; - this.maxCapacity = this.minCapacity; - } - getCurrentTimeInSeconds() { - return Date.now() / 1000; - } - async getSendToken() { - return this.acquireTokenBucket(1); - } - async acquireTokenBucket(amount) { - if (!this.enabled) { - return; - } - this.refillTokenBucket(); - if (amount > this.currentCapacity) { - const delay = ((amount - this.currentCapacity) / this.fillRate) * 1000; - await new Promise((resolve) => setTimeout(resolve, delay)); - } - this.currentCapacity = this.currentCapacity - amount; - } - refillTokenBucket() { - const timestamp = this.getCurrentTimeInSeconds(); - if (!this.lastTimestamp) { - this.lastTimestamp = timestamp; - return; - } - const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate; - this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount); - this.lastTimestamp = timestamp; - } - updateClientSendingRate(response) { - let calculatedRate; - this.updateMeasuredRate(); - if ((0, service_error_classification_1.isThrottlingError)(response)) { - const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate); - this.lastMaxRate = rateToUse; - this.calculateTimeWindow(); - this.lastThrottleTime = this.getCurrentTimeInSeconds(); - calculatedRate = this.cubicThrottle(rateToUse); - this.enableTokenBucket(); - } - else { - this.calculateTimeWindow(); - calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds()); - } - const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); - this.updateTokenBucketRate(newRate); - } - calculateTimeWindow() { - this.timeWindow = this.getPrecise(Math.pow((this.lastMaxRate * (1 - this.beta)) / this.scaleConstant, 1 / 3)); - } - cubicThrottle(rateToUse) { - return this.getPrecise(rateToUse * this.beta); - } - cubicSuccess(timestamp) { - return this.getPrecise(this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate); - } - enableTokenBucket() { - this.enabled = true; - } - updateTokenBucketRate(newRate) { - this.refillTokenBucket(); - this.fillRate = Math.max(newRate, this.minFillRate); - this.maxCapacity = Math.max(newRate, this.minCapacity); - this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); - } - updateMeasuredRate() { - const t = this.getCurrentTimeInSeconds(); - const timeBucket = Math.floor(t * 2) / 2; - this.requestCount++; - if (timeBucket > this.lastTxRateBucket) { - const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); - this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); - this.requestCount = 0; - this.lastTxRateBucket = timeBucket; - } - } - getPrecise(num) { - return parseFloat(num.toFixed(8)); - } -} -exports.DefaultRateLimiter = DefaultRateLimiter; - - -/***/ }), - -/***/ 533: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.StandardRetryStrategy = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const service_error_classification_1 = __nccwpck_require__(61921); -const uuid_1 = __nccwpck_require__(75840); -const config_1 = __nccwpck_require__(55192); -const constants_1 = __nccwpck_require__(30041); -const defaultRetryQuota_1 = __nccwpck_require__(12568); -const delayDecider_1 = __nccwpck_require__(55940); -const retryDecider_1 = __nccwpck_require__(19572); -class StandardRetryStrategy { - constructor(maxAttemptsProvider, options) { - var _a, _b, _c; - this.maxAttemptsProvider = maxAttemptsProvider; - this.mode = config_1.RETRY_MODES.STANDARD; - this.retryDecider = (_a = options === null || options === void 0 ? void 0 : options.retryDecider) !== null && _a !== void 0 ? _a : retryDecider_1.defaultRetryDecider; - this.delayDecider = (_b = options === null || options === void 0 ? void 0 : options.delayDecider) !== null && _b !== void 0 ? _b : delayDecider_1.defaultDelayDecider; - this.retryQuota = (_c = options === null || options === void 0 ? void 0 : options.retryQuota) !== null && _c !== void 0 ? _c : (0, defaultRetryQuota_1.getDefaultRetryQuota)(constants_1.INITIAL_RETRY_TOKENS); - } - shouldRetry(error, attempts, maxAttempts) { - return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error); - } - async getMaxAttempts() { - let maxAttempts; - try { - maxAttempts = await this.maxAttemptsProvider(); - } - catch (error) { - maxAttempts = config_1.DEFAULT_MAX_ATTEMPTS; - } - return maxAttempts; - } - async retry(next, args, options) { - let retryTokenAmount; - let attempts = 0; - let totalDelay = 0; - const maxAttempts = await this.getMaxAttempts(); - const { request } = args; - if (protocol_http_1.HttpRequest.isInstance(request)) { - request.headers[constants_1.INVOCATION_ID_HEADER] = (0, uuid_1.v4)(); - } - while (true) { - try { - if (protocol_http_1.HttpRequest.isInstance(request)) { - request.headers[constants_1.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; - } - if (options === null || options === void 0 ? void 0 : options.beforeRequest) { - await options.beforeRequest(); - } - const { response, output } = await next(args); - if (options === null || options === void 0 ? void 0 : options.afterRequest) { - options.afterRequest(response); - } - this.retryQuota.releaseRetryTokens(retryTokenAmount); - output.$metadata.attempts = attempts + 1; - output.$metadata.totalRetryDelay = totalDelay; - return { response, output }; - } - catch (e) { - const err = asSdkError(e); - attempts++; - if (this.shouldRetry(err, attempts, maxAttempts)) { - retryTokenAmount = this.retryQuota.retrieveRetryTokens(err); - const delay = this.delayDecider((0, service_error_classification_1.isThrottlingError)(err) ? constants_1.THROTTLING_RETRY_DELAY_BASE : constants_1.DEFAULT_RETRY_DELAY_BASE, attempts); - totalDelay += delay; - await new Promise((resolve) => setTimeout(resolve, delay)); - continue; - } - if (!err.$metadata) { - err.$metadata = {}; - } - err.$metadata.attempts = attempts; - err.$metadata.totalRetryDelay = totalDelay; - throw err; - } - } - } -} -exports.StandardRetryStrategy = StandardRetryStrategy; -const asSdkError = (error) => { - if (error instanceof Error) - return error; - if (error instanceof Object) - return Object.assign(new Error(), error); - if (typeof error === "string") - return new Error(error); - return new Error(`AWS SDK error wrapper for ${error}`); -}; - - -/***/ }), - -/***/ 55192: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.DEFAULT_RETRY_MODE = exports.DEFAULT_MAX_ATTEMPTS = exports.RETRY_MODES = void 0; -var RETRY_MODES; -(function (RETRY_MODES) { - RETRY_MODES["STANDARD"] = "standard"; - RETRY_MODES["ADAPTIVE"] = "adaptive"; -})(RETRY_MODES = exports.RETRY_MODES || (exports.RETRY_MODES = {})); -exports.DEFAULT_MAX_ATTEMPTS = 3; -exports.DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; - - -/***/ }), - -/***/ 76160: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NODE_RETRY_MODE_CONFIG_OPTIONS = exports.CONFIG_RETRY_MODE = exports.ENV_RETRY_MODE = exports.resolveRetryConfig = exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = exports.CONFIG_MAX_ATTEMPTS = exports.ENV_MAX_ATTEMPTS = void 0; -const util_middleware_1 = __nccwpck_require__(10236); -const AdaptiveRetryStrategy_1 = __nccwpck_require__(47328); -const config_1 = __nccwpck_require__(55192); -const StandardRetryStrategy_1 = __nccwpck_require__(533); -exports.ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; -exports.CONFIG_MAX_ATTEMPTS = "max_attempts"; -exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => { - const value = env[exports.ENV_MAX_ATTEMPTS]; - if (!value) - return undefined; - const maxAttempt = parseInt(value); - if (Number.isNaN(maxAttempt)) { - throw new Error(`Environment variable ${exports.ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`); - } - return maxAttempt; - }, - configFileSelector: (profile) => { - const value = profile[exports.CONFIG_MAX_ATTEMPTS]; - if (!value) - return undefined; - const maxAttempt = parseInt(value); - if (Number.isNaN(maxAttempt)) { - throw new Error(`Shared config file entry ${exports.CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`); - } - return maxAttempt; - }, - default: config_1.DEFAULT_MAX_ATTEMPTS, -}; -const resolveRetryConfig = (input) => { - var _a; - const maxAttempts = (0, util_middleware_1.normalizeProvider)((_a = input.maxAttempts) !== null && _a !== void 0 ? _a : config_1.DEFAULT_MAX_ATTEMPTS); - return { - ...input, - maxAttempts, - retryStrategy: async () => { - if (input.retryStrategy) { - return input.retryStrategy; - } - const retryMode = await (0, util_middleware_1.normalizeProvider)(input.retryMode)(); - if (retryMode === config_1.RETRY_MODES.ADAPTIVE) { - return new AdaptiveRetryStrategy_1.AdaptiveRetryStrategy(maxAttempts); - } - return new StandardRetryStrategy_1.StandardRetryStrategy(maxAttempts); - }, - }; -}; -exports.resolveRetryConfig = resolveRetryConfig; -exports.ENV_RETRY_MODE = "AWS_RETRY_MODE"; -exports.CONFIG_RETRY_MODE = "retry_mode"; -exports.NODE_RETRY_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_RETRY_MODE], - configFileSelector: (profile) => profile[exports.CONFIG_RETRY_MODE], - default: config_1.DEFAULT_RETRY_MODE, -}; - - -/***/ }), - -/***/ 30041: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.REQUEST_HEADER = exports.INVOCATION_ID_HEADER = exports.NO_RETRY_INCREMENT = exports.TIMEOUT_RETRY_COST = exports.RETRY_COST = exports.INITIAL_RETRY_TOKENS = exports.THROTTLING_RETRY_DELAY_BASE = exports.MAXIMUM_RETRY_DELAY = exports.DEFAULT_RETRY_DELAY_BASE = void 0; -exports.DEFAULT_RETRY_DELAY_BASE = 100; -exports.MAXIMUM_RETRY_DELAY = 20 * 1000; -exports.THROTTLING_RETRY_DELAY_BASE = 500; -exports.INITIAL_RETRY_TOKENS = 500; -exports.RETRY_COST = 5; -exports.TIMEOUT_RETRY_COST = 10; -exports.NO_RETRY_INCREMENT = 1; -exports.INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; -exports.REQUEST_HEADER = "amz-sdk-request"; - - -/***/ }), - -/***/ 12568: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getDefaultRetryQuota = void 0; -const constants_1 = __nccwpck_require__(30041); -const getDefaultRetryQuota = (initialRetryTokens, options) => { - var _a, _b, _c; - const MAX_CAPACITY = initialRetryTokens; - const noRetryIncrement = (_a = options === null || options === void 0 ? void 0 : options.noRetryIncrement) !== null && _a !== void 0 ? _a : constants_1.NO_RETRY_INCREMENT; - const retryCost = (_b = options === null || options === void 0 ? void 0 : options.retryCost) !== null && _b !== void 0 ? _b : constants_1.RETRY_COST; - const timeoutRetryCost = (_c = options === null || options === void 0 ? void 0 : options.timeoutRetryCost) !== null && _c !== void 0 ? _c : constants_1.TIMEOUT_RETRY_COST; - let availableCapacity = initialRetryTokens; - const getCapacityAmount = (error) => (error.name === "TimeoutError" ? timeoutRetryCost : retryCost); - const hasRetryTokens = (error) => getCapacityAmount(error) <= availableCapacity; - const retrieveRetryTokens = (error) => { - if (!hasRetryTokens(error)) { - throw new Error("No retry token available"); - } - const capacityAmount = getCapacityAmount(error); - availableCapacity -= capacityAmount; - return capacityAmount; - }; - const releaseRetryTokens = (capacityReleaseAmount) => { - availableCapacity += capacityReleaseAmount !== null && capacityReleaseAmount !== void 0 ? capacityReleaseAmount : noRetryIncrement; - availableCapacity = Math.min(availableCapacity, MAX_CAPACITY); - }; - return Object.freeze({ - hasRetryTokens, - retrieveRetryTokens, - releaseRetryTokens, - }); -}; -exports.getDefaultRetryQuota = getDefaultRetryQuota; - - -/***/ }), - -/***/ 55940: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.defaultDelayDecider = void 0; -const constants_1 = __nccwpck_require__(30041); -const defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(constants_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); -exports.defaultDelayDecider = defaultDelayDecider; - - -/***/ }), - -/***/ 96064: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(47328), exports); -tslib_1.__exportStar(__nccwpck_require__(6402), exports); -tslib_1.__exportStar(__nccwpck_require__(533), exports); -tslib_1.__exportStar(__nccwpck_require__(55192), exports); -tslib_1.__exportStar(__nccwpck_require__(76160), exports); -tslib_1.__exportStar(__nccwpck_require__(55940), exports); -tslib_1.__exportStar(__nccwpck_require__(43521), exports); -tslib_1.__exportStar(__nccwpck_require__(19572), exports); -tslib_1.__exportStar(__nccwpck_require__(11806), exports); -tslib_1.__exportStar(__nccwpck_require__(48580), exports); - - -/***/ }), - -/***/ 43521: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getOmitRetryHeadersPlugin = exports.omitRetryHeadersMiddlewareOptions = exports.omitRetryHeadersMiddleware = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const constants_1 = __nccwpck_require__(30041); -const omitRetryHeadersMiddleware = () => (next) => async (args) => { - const { request } = args; - if (protocol_http_1.HttpRequest.isInstance(request)) { - delete request.headers[constants_1.INVOCATION_ID_HEADER]; - delete request.headers[constants_1.REQUEST_HEADER]; - } - return next(args); -}; -exports.omitRetryHeadersMiddleware = omitRetryHeadersMiddleware; -exports.omitRetryHeadersMiddlewareOptions = { - name: "omitRetryHeadersMiddleware", - tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"], - relation: "before", - toMiddleware: "awsAuthMiddleware", - override: true, -}; -const getOmitRetryHeadersPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo((0, exports.omitRetryHeadersMiddleware)(), exports.omitRetryHeadersMiddlewareOptions); - }, -}); -exports.getOmitRetryHeadersPlugin = getOmitRetryHeadersPlugin; - - -/***/ }), - -/***/ 19572: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.defaultRetryDecider = void 0; -const service_error_classification_1 = __nccwpck_require__(61921); -const defaultRetryDecider = (error) => { - if (!error) { - return false; - } - return (0, service_error_classification_1.isRetryableByTrait)(error) || (0, service_error_classification_1.isClockSkewError)(error) || (0, service_error_classification_1.isThrottlingError)(error) || (0, service_error_classification_1.isTransientError)(error); -}; -exports.defaultRetryDecider = defaultRetryDecider; - - -/***/ }), - -/***/ 11806: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getRetryPlugin = exports.retryMiddlewareOptions = exports.retryMiddleware = void 0; -const retryMiddleware = (options) => (next, context) => async (args) => { - const retryStrategy = await options.retryStrategy(); - if (retryStrategy === null || retryStrategy === void 0 ? void 0 : retryStrategy.mode) - context.userAgent = [...(context.userAgent || []), ["cfg/retry-mode", retryStrategy.mode]]; - return retryStrategy.retry(next, args); -}; -exports.retryMiddleware = retryMiddleware; -exports.retryMiddlewareOptions = { - name: "retryMiddleware", - tags: ["RETRY"], - step: "finalizeRequest", - priority: "high", - override: true, -}; -const getRetryPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports.retryMiddleware)(options), exports.retryMiddlewareOptions); - }, -}); -exports.getRetryPlugin = getRetryPlugin; - - -/***/ }), - -/***/ 48580: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 55959: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveStsAuthConfig = void 0; -const middleware_signing_1 = __nccwpck_require__(14935); -const resolveStsAuthConfig = (input, { stsClientCtor }) => (0, middleware_signing_1.resolveAwsAuthConfig)({ - ...input, - stsClientCtor, -}); -exports.resolveStsAuthConfig = resolveStsAuthConfig; - - -/***/ }), - -/***/ 65648: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.deserializerMiddleware = void 0; -const deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => { - const { response } = await next(args); - try { - const parsed = await deserializer(response, options); - return { - response, - output: parsed, - }; - } - catch (error) { - Object.defineProperty(error, "$response", { - value: response, - }); - throw error; - } -}; -exports.deserializerMiddleware = deserializerMiddleware; - - -/***/ }), - -/***/ 93631: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(65648), exports); -tslib_1.__exportStar(__nccwpck_require__(99328), exports); -tslib_1.__exportStar(__nccwpck_require__(19511), exports); - - -/***/ }), - -/***/ 99328: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getSerdePlugin = exports.serializerMiddlewareOption = exports.deserializerMiddlewareOption = void 0; -const deserializerMiddleware_1 = __nccwpck_require__(65648); -const serializerMiddleware_1 = __nccwpck_require__(19511); -exports.deserializerMiddlewareOption = { - name: "deserializerMiddleware", - step: "deserialize", - tags: ["DESERIALIZER"], - override: true, -}; -exports.serializerMiddlewareOption = { - name: "serializerMiddleware", - step: "serialize", - tags: ["SERIALIZER"], - override: true, -}; -function getSerdePlugin(config, serializer, deserializer) { - return { - applyToStack: (commandStack) => { - commandStack.add((0, deserializerMiddleware_1.deserializerMiddleware)(config, deserializer), exports.deserializerMiddlewareOption); - commandStack.add((0, serializerMiddleware_1.serializerMiddleware)(config, serializer), exports.serializerMiddlewareOption); - }, - }; -} -exports.getSerdePlugin = getSerdePlugin; - - -/***/ }), - -/***/ 19511: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.serializerMiddleware = void 0; -const serializerMiddleware = (options, serializer) => (next, context) => async (args) => { - const request = await serializer(args.input, options); - return next({ - ...args, - request, - }); -}; -exports.serializerMiddleware = serializerMiddleware; - - -/***/ }), - -/***/ 63061: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveSigV4AuthConfig = exports.resolveAwsAuthConfig = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const signature_v4_1 = __nccwpck_require__(37776); -const CREDENTIAL_EXPIRE_WINDOW = 300000; -const resolveAwsAuthConfig = (input) => { - const normalizedCreds = input.credentials - ? normalizeCredentialProvider(input.credentials) - : input.credentialDefaultProvider(input); - const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; - let signer; - if (input.signer) { - signer = normalizeProvider(input.signer); - } - else { - signer = () => normalizeProvider(input.region)() - .then(async (region) => [ - (await input.regionInfoProvider(region, { - useFipsEndpoint: await input.useFipsEndpoint(), - useDualstackEndpoint: await input.useDualstackEndpoint(), - })) || {}, - region, - ]) - .then(([regionInfo, region]) => { - const { signingRegion, signingService } = regionInfo; - input.signingRegion = input.signingRegion || signingRegion || region; - input.signingName = input.signingName || signingService || input.serviceId; - const params = { - ...input, - credentials: normalizedCreds, - region: input.signingRegion, - service: input.signingName, - sha256, - uriEscapePath: signingEscapePath, - }; - const signerConstructor = input.signerConstructor || signature_v4_1.SignatureV4; - return new signerConstructor(params); - }); - } - return { - ...input, - systemClockOffset, - signingEscapePath, - credentials: normalizedCreds, - signer, - }; -}; -exports.resolveAwsAuthConfig = resolveAwsAuthConfig; -const resolveSigV4AuthConfig = (input) => { - const normalizedCreds = input.credentials - ? normalizeCredentialProvider(input.credentials) - : input.credentialDefaultProvider(input); - const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; - let signer; - if (input.signer) { - signer = normalizeProvider(input.signer); - } - else { - signer = normalizeProvider(new signature_v4_1.SignatureV4({ - credentials: normalizedCreds, - region: input.region, - service: input.signingName, - sha256, - uriEscapePath: signingEscapePath, - })); - } - return { - ...input, - systemClockOffset, - signingEscapePath, - credentials: normalizedCreds, - signer, - }; -}; -exports.resolveSigV4AuthConfig = resolveSigV4AuthConfig; -const normalizeProvider = (input) => { - if (typeof input === "object") { - const promisified = Promise.resolve(input); - return () => promisified; - } - return input; -}; -const normalizeCredentialProvider = (credentials) => { - if (typeof credentials === "function") { - return (0, property_provider_1.memoize)(credentials, (credentials) => credentials.expiration !== undefined && - credentials.expiration.getTime() - Date.now() < CREDENTIAL_EXPIRE_WINDOW, (credentials) => credentials.expiration !== undefined); - } - return normalizeProvider(credentials); -}; - - -/***/ }), - -/***/ 14935: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(63061), exports); -tslib_1.__exportStar(__nccwpck_require__(42509), exports); - - -/***/ }), - -/***/ 42509: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin = exports.awsAuthMiddlewareOptions = exports.awsAuthMiddleware = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const getSkewCorrectedDate_1 = __nccwpck_require__(68253); -const getUpdatedSystemClockOffset_1 = __nccwpck_require__(35863); -const awsAuthMiddleware = (options) => (next, context) => async function (args) { - if (!protocol_http_1.HttpRequest.isInstance(args.request)) - return next(args); - const signer = await options.signer(); - const output = await next({ - ...args, - request: await signer.sign(args.request, { - signingDate: (0, getSkewCorrectedDate_1.getSkewCorrectedDate)(options.systemClockOffset), - signingRegion: context["signing_region"], - signingService: context["signing_service"], - }), - }).catch((error) => { - var _a; - const serverTime = (_a = error.ServerTime) !== null && _a !== void 0 ? _a : getDateHeader(error.$response); - if (serverTime) { - options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(serverTime, options.systemClockOffset); - } - throw error; - }); - const dateHeader = getDateHeader(output.response); - if (dateHeader) { - options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(dateHeader, options.systemClockOffset); - } - return output; -}; -exports.awsAuthMiddleware = awsAuthMiddleware; -const getDateHeader = (response) => { var _a, _b, _c; return protocol_http_1.HttpResponse.isInstance(response) ? (_b = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.date) !== null && _b !== void 0 ? _b : (_c = response.headers) === null || _c === void 0 ? void 0 : _c.Date : undefined; }; -exports.awsAuthMiddlewareOptions = { - name: "awsAuthMiddleware", - tags: ["SIGNATURE", "AWSAUTH"], - relation: "after", - toMiddleware: "retryMiddleware", - override: true, -}; -const getAwsAuthPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo((0, exports.awsAuthMiddleware)(options), exports.awsAuthMiddlewareOptions); - }, -}); -exports.getAwsAuthPlugin = getAwsAuthPlugin; -exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin; - - -/***/ }), - -/***/ 68253: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getSkewCorrectedDate = void 0; -const getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset); -exports.getSkewCorrectedDate = getSkewCorrectedDate; - - -/***/ }), - -/***/ 35863: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getUpdatedSystemClockOffset = void 0; -const isClockSkewed_1 = __nccwpck_require__(85301); -const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => { - const clockTimeInMs = Date.parse(clockTime); - if ((0, isClockSkewed_1.isClockSkewed)(clockTimeInMs, currentSystemClockOffset)) { - return clockTimeInMs - Date.now(); - } - return currentSystemClockOffset; -}; -exports.getUpdatedSystemClockOffset = getUpdatedSystemClockOffset; - - -/***/ }), - -/***/ 85301: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isClockSkewed = void 0; -const getSkewCorrectedDate_1 = __nccwpck_require__(68253); -const isClockSkewed = (clockTime, systemClockOffset) => Math.abs((0, getSkewCorrectedDate_1.getSkewCorrectedDate)(systemClockOffset).getTime() - clockTime) >= 300000; -exports.isClockSkewed = isClockSkewed; - - -/***/ }), - -/***/ 38399: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.constructStack = void 0; -const constructStack = () => { - let absoluteEntries = []; - let relativeEntries = []; - const entriesNameSet = new Set(); - const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] || - priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"]); - const removeByName = (toRemove) => { - let isRemoved = false; - const filterCb = (entry) => { - if (entry.name && entry.name === toRemove) { - isRemoved = true; - entriesNameSet.delete(toRemove); - return false; - } - return true; - }; - absoluteEntries = absoluteEntries.filter(filterCb); - relativeEntries = relativeEntries.filter(filterCb); - return isRemoved; - }; - const removeByReference = (toRemove) => { - let isRemoved = false; - const filterCb = (entry) => { - if (entry.middleware === toRemove) { - isRemoved = true; - if (entry.name) - entriesNameSet.delete(entry.name); - return false; - } - return true; - }; - absoluteEntries = absoluteEntries.filter(filterCb); - relativeEntries = relativeEntries.filter(filterCb); - return isRemoved; - }; - const cloneTo = (toStack) => { - absoluteEntries.forEach((entry) => { - toStack.add(entry.middleware, { ...entry }); - }); - relativeEntries.forEach((entry) => { - toStack.addRelativeTo(entry.middleware, { ...entry }); - }); - return toStack; - }; - const expandRelativeMiddlewareList = (from) => { - const expandedMiddlewareList = []; - from.before.forEach((entry) => { - if (entry.before.length === 0 && entry.after.length === 0) { - expandedMiddlewareList.push(entry); - } - else { - expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); - } - }); - expandedMiddlewareList.push(from); - from.after.reverse().forEach((entry) => { - if (entry.before.length === 0 && entry.after.length === 0) { - expandedMiddlewareList.push(entry); - } - else { - expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); - } - }); - return expandedMiddlewareList; - }; - const getMiddlewareList = () => { - const normalizedAbsoluteEntries = []; - const normalizedRelativeEntries = []; - const normalizedEntriesNameMap = {}; - absoluteEntries.forEach((entry) => { - const normalizedEntry = { - ...entry, - before: [], - after: [], - }; - if (normalizedEntry.name) - normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; - normalizedAbsoluteEntries.push(normalizedEntry); - }); - relativeEntries.forEach((entry) => { - const normalizedEntry = { - ...entry, - before: [], - after: [], - }; - if (normalizedEntry.name) - normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; - normalizedRelativeEntries.push(normalizedEntry); - }); - normalizedRelativeEntries.forEach((entry) => { - if (entry.toMiddleware) { - const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware]; - if (toMiddleware === undefined) { - throw new Error(`${entry.toMiddleware} is not found when adding ${entry.name || "anonymous"} middleware ${entry.relation} ${entry.toMiddleware}`); - } - if (entry.relation === "after") { - toMiddleware.after.push(entry); - } - if (entry.relation === "before") { - toMiddleware.before.push(entry); - } - } - }); - const mainChain = sort(normalizedAbsoluteEntries) - .map(expandRelativeMiddlewareList) - .reduce((wholeList, expendedMiddlewareList) => { - wholeList.push(...expendedMiddlewareList); - return wholeList; - }, []); - return mainChain.map((entry) => entry.middleware); - }; - const stack = { - add: (middleware, options = {}) => { - const { name, override } = options; - const entry = { - step: "initialize", - priority: "normal", - middleware, - ...options, - }; - if (name) { - if (entriesNameSet.has(name)) { - if (!override) - throw new Error(`Duplicate middleware name '${name}'`); - const toOverrideIndex = absoluteEntries.findIndex((entry) => entry.name === name); - const toOverride = absoluteEntries[toOverrideIndex]; - if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) { - throw new Error(`"${name}" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be ` + - `overridden by same-name middleware with ${entry.priority} priority in ${entry.step} step.`); - } - absoluteEntries.splice(toOverrideIndex, 1); - } - entriesNameSet.add(name); - } - absoluteEntries.push(entry); - }, - addRelativeTo: (middleware, options) => { - const { name, override } = options; - const entry = { - middleware, - ...options, - }; - if (name) { - if (entriesNameSet.has(name)) { - if (!override) - throw new Error(`Duplicate middleware name '${name}'`); - const toOverrideIndex = relativeEntries.findIndex((entry) => entry.name === name); - const toOverride = relativeEntries[toOverrideIndex]; - if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) { - throw new Error(`"${name}" middleware ${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden ` + - `by same-name middleware ${entry.relation} "${entry.toMiddleware}" middleware.`); - } - relativeEntries.splice(toOverrideIndex, 1); - } - entriesNameSet.add(name); - } - relativeEntries.push(entry); - }, - clone: () => cloneTo((0, exports.constructStack)()), - use: (plugin) => { - plugin.applyToStack(stack); - }, - remove: (toRemove) => { - if (typeof toRemove === "string") - return removeByName(toRemove); - else - return removeByReference(toRemove); - }, - removeByTag: (toRemove) => { - let isRemoved = false; - const filterCb = (entry) => { - const { tags, name } = entry; - if (tags && tags.includes(toRemove)) { - if (name) - entriesNameSet.delete(name); - isRemoved = true; - return false; - } - return true; - }; - absoluteEntries = absoluteEntries.filter(filterCb); - relativeEntries = relativeEntries.filter(filterCb); - return isRemoved; - }, - concat: (from) => { - const cloned = cloneTo((0, exports.constructStack)()); - cloned.use(from); - return cloned; - }, - applyToStack: cloneTo, - resolve: (handler, context) => { - for (const middleware of getMiddlewareList().reverse()) { - handler = middleware(handler, context); - } - return handler; - }, - }; - return stack; -}; -exports.constructStack = constructStack; -const stepWeights = { - initialize: 5, - serialize: 4, - build: 3, - finalizeRequest: 2, - deserialize: 1, -}; -const priorityWeights = { - high: 3, - normal: 2, - low: 1, -}; - - -/***/ }), - -/***/ 11461: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(38399), exports); - - -/***/ }), - -/***/ 36546: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveUserAgentConfig = void 0; -function resolveUserAgentConfig(input) { - return { - ...input, - customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent, - }; -} -exports.resolveUserAgentConfig = resolveUserAgentConfig; - - -/***/ }), - -/***/ 28025: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.UA_ESCAPE_REGEX = exports.SPACE = exports.X_AMZ_USER_AGENT = exports.USER_AGENT = void 0; -exports.USER_AGENT = "user-agent"; -exports.X_AMZ_USER_AGENT = "x-amz-user-agent"; -exports.SPACE = " "; -exports.UA_ESCAPE_REGEX = /[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g; - - -/***/ }), - -/***/ 64688: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(36546), exports); -tslib_1.__exportStar(__nccwpck_require__(76236), exports); - - -/***/ }), - -/***/ 76236: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getUserAgentPlugin = exports.getUserAgentMiddlewareOptions = exports.userAgentMiddleware = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const constants_1 = __nccwpck_require__(28025); -const userAgentMiddleware = (options) => (next, context) => async (args) => { - var _a, _b; - const { request } = args; - if (!protocol_http_1.HttpRequest.isInstance(request)) - return next(args); - const { headers } = request; - const userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || []; - const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); - const customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || []; - const sdkUserAgentValue = [...defaultUserAgent, ...userAgent, ...customUserAgent].join(constants_1.SPACE); - const normalUAValue = [ - ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), - ...customUserAgent, - ].join(constants_1.SPACE); - if (options.runtime !== "browser") { - if (normalUAValue) { - headers[constants_1.X_AMZ_USER_AGENT] = headers[constants_1.X_AMZ_USER_AGENT] - ? `${headers[constants_1.USER_AGENT]} ${normalUAValue}` - : normalUAValue; - } - headers[constants_1.USER_AGENT] = sdkUserAgentValue; - } - else { - headers[constants_1.X_AMZ_USER_AGENT] = sdkUserAgentValue; - } - return next({ - ...args, - request, - }); -}; -exports.userAgentMiddleware = userAgentMiddleware; -const escapeUserAgent = ([name, version]) => { - const prefixSeparatorIndex = name.indexOf("/"); - const prefix = name.substring(0, prefixSeparatorIndex); - let uaName = name.substring(prefixSeparatorIndex + 1); - if (prefix === "api") { - uaName = uaName.toLowerCase(); - } - return [prefix, uaName, version] - .filter((item) => item && item.length > 0) - .map((item) => item === null || item === void 0 ? void 0 : item.replace(constants_1.UA_ESCAPE_REGEX, "_")) - .join("/"); -}; -exports.getUserAgentMiddlewareOptions = { - name: "getUserAgentMiddleware", - step: "build", - priority: "low", - tags: ["SET_USER_AGENT", "USER_AGENT"], - override: true, -}; -const getUserAgentPlugin = (config) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports.userAgentMiddleware)(config), exports.getUserAgentMiddlewareOptions); - }, -}); -exports.getUserAgentPlugin = getUserAgentPlugin; - - -/***/ }), - -/***/ 52175: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.loadConfig = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const fromEnv_1 = __nccwpck_require__(46161); -const fromSharedConfigFiles_1 = __nccwpck_require__(63905); -const fromStatic_1 = __nccwpck_require__(5881); -const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromEnv_1.fromEnv)(environmentVariableSelector), (0, fromSharedConfigFiles_1.fromSharedConfigFiles)(configFileSelector, configuration), (0, fromStatic_1.fromStatic)(defaultValue))); -exports.loadConfig = loadConfig; - - -/***/ }), - -/***/ 46161: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromEnv = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const fromEnv = (envVarSelector) => async () => { - try { - const config = envVarSelector(process.env); - if (config === undefined) { - throw new Error(); - } - return config; - } - catch (e) { - throw new property_provider_1.CredentialsProviderError(e.message || `Cannot load config from environment variables with getter: ${envVarSelector}`); - } -}; -exports.fromEnv = fromEnv; - - -/***/ }), - -/***/ 63905: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromSharedConfigFiles = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const shared_ini_file_loader_1 = __nccwpck_require__(67387); -const fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => { - const profile = (0, shared_ini_file_loader_1.getProfileName)(init); - const { configFile, credentialsFile } = await (0, shared_ini_file_loader_1.loadSharedConfigFiles)(init); - const profileFromCredentials = credentialsFile[profile] || {}; - const profileFromConfig = configFile[profile] || {}; - const mergedProfile = preferredFile === "config" - ? { ...profileFromCredentials, ...profileFromConfig } - : { ...profileFromConfig, ...profileFromCredentials }; - try { - const configValue = configSelector(mergedProfile); - if (configValue === undefined) { - throw new Error(); - } - return configValue; - } - catch (e) { - throw new property_provider_1.CredentialsProviderError(e.message || - `Cannot load config for profile ${profile} in SDK configuration files with getter: ${configSelector}`); - } -}; -exports.fromSharedConfigFiles = fromSharedConfigFiles; - - -/***/ }), - -/***/ 5881: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromStatic = void 0; -const property_provider_1 = __nccwpck_require__(74462); -const isFunction = (func) => typeof func === "function"; -const fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, property_provider_1.fromStatic)(defaultValue); -exports.fromStatic = fromStatic; - - -/***/ }), - -/***/ 87684: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(52175), exports); - - -/***/ }), - -/***/ 33647: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NODEJS_TIMEOUT_ERROR_CODES = void 0; -exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; - - -/***/ }), - -/***/ 96225: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getTransformedHeaders = void 0; -const getTransformedHeaders = (headers) => { - const transformedHeaders = {}; - for (const name of Object.keys(headers)) { - const headerValues = headers[name]; - transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues; - } - return transformedHeaders; -}; -exports.getTransformedHeaders = getTransformedHeaders; - - -/***/ }), - -/***/ 68805: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(2298), exports); -tslib_1.__exportStar(__nccwpck_require__(92533), exports); -tslib_1.__exportStar(__nccwpck_require__(72198), exports); - - -/***/ }), - -/***/ 2298: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NodeHttpHandler = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const querystring_builder_1 = __nccwpck_require__(43402); -const http_1 = __nccwpck_require__(13685); -const https_1 = __nccwpck_require__(95687); -const constants_1 = __nccwpck_require__(33647); -const get_transformed_headers_1 = __nccwpck_require__(96225); -const set_connection_timeout_1 = __nccwpck_require__(63598); -const set_socket_timeout_1 = __nccwpck_require__(44751); -const write_request_body_1 = __nccwpck_require__(5248); -class NodeHttpHandler { - constructor(options) { - this.metadata = { handlerProtocol: "http/1.1" }; - this.configProvider = new Promise((resolve, reject) => { - if (typeof options === "function") { - options() - .then((_options) => { - resolve(this.resolveDefaultConfig(_options)); - }) - .catch(reject); - } - else { - resolve(this.resolveDefaultConfig(options)); - } - }); - } - resolveDefaultConfig(options) { - const { connectionTimeout, socketTimeout, httpAgent, httpsAgent } = options || {}; - const keepAlive = true; - const maxSockets = 50; - return { - connectionTimeout, - socketTimeout, - httpAgent: httpAgent || new http_1.Agent({ keepAlive, maxSockets }), - httpsAgent: httpsAgent || new https_1.Agent({ keepAlive, maxSockets }), - }; - } - destroy() { - var _a, _b, _c, _d; - (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.httpAgent) === null || _b === void 0 ? void 0 : _b.destroy(); - (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.httpsAgent) === null || _d === void 0 ? void 0 : _d.destroy(); - } - async handle(request, { abortSignal } = {}) { - if (!this.config) { - this.config = await this.configProvider; - } - return new Promise((resolve, reject) => { - if (!this.config) { - throw new Error("Node HTTP request handler config is not resolved"); - } - if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - reject(abortError); - return; - } - const isSSL = request.protocol === "https:"; - const queryString = (0, querystring_builder_1.buildQueryString)(request.query || {}); - const nodeHttpsOptions = { - headers: request.headers, - host: request.hostname, - method: request.method, - path: queryString ? `${request.path}?${queryString}` : request.path, - port: request.port, - agent: isSSL ? this.config.httpsAgent : this.config.httpAgent, - }; - const requestFunc = isSSL ? https_1.request : http_1.request; - const req = requestFunc(nodeHttpsOptions, (res) => { - const httpResponse = new protocol_http_1.HttpResponse({ - statusCode: res.statusCode || -1, - headers: (0, get_transformed_headers_1.getTransformedHeaders)(res.headers), - body: res, - }); - resolve({ response: httpResponse }); - }); - req.on("error", (err) => { - if (constants_1.NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) { - reject(Object.assign(err, { name: "TimeoutError" })); - } - else { - reject(err); - } - }); - (0, set_connection_timeout_1.setConnectionTimeout)(req, reject, this.config.connectionTimeout); - (0, set_socket_timeout_1.setSocketTimeout)(req, reject, this.config.socketTimeout); - if (abortSignal) { - abortSignal.onabort = () => { - req.abort(); - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - reject(abortError); - }; - } - (0, write_request_body_1.writeRequestBody)(req, request); - }); - } -} -exports.NodeHttpHandler = NodeHttpHandler; - - -/***/ }), - -/***/ 92533: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NodeHttp2Handler = void 0; -const protocol_http_1 = __nccwpck_require__(70223); -const querystring_builder_1 = __nccwpck_require__(43402); -const http2_1 = __nccwpck_require__(85158); -const get_transformed_headers_1 = __nccwpck_require__(96225); -const write_request_body_1 = __nccwpck_require__(5248); -class NodeHttp2Handler { - constructor(options) { - this.metadata = { handlerProtocol: "h2" }; - this.configProvider = new Promise((resolve, reject) => { - if (typeof options === "function") { - options() - .then((opts) => { - resolve(opts || {}); - }) - .catch(reject); - } - else { - resolve(options || {}); - } - }); - this.sessionCache = new Map(); - } - destroy() { - for (const sessions of this.sessionCache.values()) { - sessions.forEach((session) => this.destroySession(session)); - } - this.sessionCache.clear(); - } - async handle(request, { abortSignal } = {}) { - if (!this.config) { - this.config = await this.configProvider; - } - const { requestTimeout, disableConcurrentStreams } = this.config; - return new Promise((resolve, rejectOriginal) => { - let fulfilled = false; - if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { - fulfilled = true; - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - rejectOriginal(abortError); - return; - } - const { hostname, method, port, protocol, path, query } = request; - const authority = `${protocol}//${hostname}${port ? `:${port}` : ""}`; - const session = this.getSession(authority, disableConcurrentStreams || false); - const reject = (err) => { - if (disableConcurrentStreams) { - this.destroySession(session); - } - fulfilled = true; - rejectOriginal(err); - }; - const queryString = (0, querystring_builder_1.buildQueryString)(query || {}); - const req = session.request({ - ...request.headers, - [http2_1.constants.HTTP2_HEADER_PATH]: queryString ? `${path}?${queryString}` : path, - [http2_1.constants.HTTP2_HEADER_METHOD]: method, - }); - session.ref(); - req.on("response", (headers) => { - const httpResponse = new protocol_http_1.HttpResponse({ - statusCode: headers[":status"] || -1, - headers: (0, get_transformed_headers_1.getTransformedHeaders)(headers), - body: req, - }); - fulfilled = true; - resolve({ response: httpResponse }); - if (disableConcurrentStreams) { - session.close(); - this.deleteSessionFromCache(authority, session); - } - }); - if (requestTimeout) { - req.setTimeout(requestTimeout, () => { - req.close(); - const timeoutError = new Error(`Stream timed out because of no activity for ${requestTimeout} ms`); - timeoutError.name = "TimeoutError"; - reject(timeoutError); - }); - } - if (abortSignal) { - abortSignal.onabort = () => { - req.close(); - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - reject(abortError); - }; - } - req.on("frameError", (type, code, id) => { - reject(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`)); - }); - req.on("error", reject); - req.on("aborted", () => { - reject(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`)); - }); - req.on("close", () => { - session.unref(); - if (disableConcurrentStreams) { - session.destroy(); - } - if (!fulfilled) { - reject(new Error("Unexpected error: http2 request did not get a response")); - } - }); - (0, write_request_body_1.writeRequestBody)(req, request); - }); - } - getSession(authority, disableConcurrentStreams) { - var _a; - const sessionCache = this.sessionCache; - const existingSessions = sessionCache.get(authority) || []; - if (existingSessions.length > 0 && !disableConcurrentStreams) - return existingSessions[0]; - const newSession = (0, http2_1.connect)(authority); - newSession.unref(); - const destroySessionCb = () => { - this.destroySession(newSession); - this.deleteSessionFromCache(authority, newSession); - }; - newSession.on("goaway", destroySessionCb); - newSession.on("error", destroySessionCb); - newSession.on("frameError", destroySessionCb); - newSession.on("close", () => this.deleteSessionFromCache(authority, newSession)); - if ((_a = this.config) === null || _a === void 0 ? void 0 : _a.sessionTimeout) { - newSession.setTimeout(this.config.sessionTimeout, destroySessionCb); - } - existingSessions.push(newSession); - sessionCache.set(authority, existingSessions); - return newSession; - } - destroySession(session) { - if (!session.destroyed) { - session.destroy(); - } - } - deleteSessionFromCache(authority, session) { - const existingSessions = this.sessionCache.get(authority) || []; - if (!existingSessions.includes(session)) { - return; - } - this.sessionCache.set(authority, existingSessions.filter((s) => s !== session)); - } -} -exports.NodeHttp2Handler = NodeHttp2Handler; - - -/***/ }), - -/***/ 63598: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.setConnectionTimeout = void 0; -const setConnectionTimeout = (request, reject, timeoutInMs = 0) => { - if (!timeoutInMs) { - return; - } - request.on("socket", (socket) => { - if (socket.connecting) { - const timeoutId = setTimeout(() => { - request.destroy(); - reject(Object.assign(new Error(`Socket timed out without establishing a connection within ${timeoutInMs} ms`), { - name: "TimeoutError", - })); - }, timeoutInMs); - socket.on("connect", () => { - clearTimeout(timeoutId); - }); - } - }); -}; -exports.setConnectionTimeout = setConnectionTimeout; - - -/***/ }), - -/***/ 44751: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.setSocketTimeout = void 0; -const setSocketTimeout = (request, reject, timeoutInMs = 0) => { - request.setTimeout(timeoutInMs, () => { - request.destroy(); - reject(Object.assign(new Error(`Connection timed out after ${timeoutInMs} ms`), { name: "TimeoutError" })); - }); -}; -exports.setSocketTimeout = setSocketTimeout; - - -/***/ }), - -/***/ 84362: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Collector = void 0; -const stream_1 = __nccwpck_require__(12781); -class Collector extends stream_1.Writable { - constructor() { - super(...arguments); - this.bufferedBytes = []; - } - _write(chunk, encoding, callback) { - this.bufferedBytes.push(chunk); - callback(); - } -} -exports.Collector = Collector; - - -/***/ }), - -/***/ 72198: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.streamCollector = void 0; -const collector_1 = __nccwpck_require__(84362); -const streamCollector = (stream) => new Promise((resolve, reject) => { - const collector = new collector_1.Collector(); - stream.pipe(collector); - stream.on("error", (err) => { - collector.end(); - reject(err); - }); - collector.on("error", reject); - collector.on("finish", function () { - const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes)); - resolve(bytes); - }); -}); -exports.streamCollector = streamCollector; - - -/***/ }), - -/***/ 5248: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.writeRequestBody = void 0; -const stream_1 = __nccwpck_require__(12781); -function writeRequestBody(httpRequest, request) { - const expect = request.headers["Expect"] || request.headers["expect"]; - if (expect === "100-continue") { - httpRequest.on("continue", () => { - writeBody(httpRequest, request.body); - }); - } - else { - writeBody(httpRequest, request.body); - } -} -exports.writeRequestBody = writeRequestBody; -function writeBody(httpRequest, body) { - if (body instanceof stream_1.Readable) { - body.pipe(httpRequest); - } - else if (body) { - httpRequest.end(Buffer.from(body)); - } - else { - httpRequest.end(); - } -} - - -/***/ }), - -/***/ 96875: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.CredentialsProviderError = void 0; -const ProviderError_1 = __nccwpck_require__(81786); -class CredentialsProviderError extends ProviderError_1.ProviderError { - constructor(message, tryNextLink = true) { - super(message, tryNextLink); - this.tryNextLink = tryNextLink; - this.name = "CredentialsProviderError"; - Object.setPrototypeOf(this, CredentialsProviderError.prototype); - } -} -exports.CredentialsProviderError = CredentialsProviderError; - - -/***/ }), - -/***/ 81786: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.ProviderError = void 0; -class ProviderError extends Error { - constructor(message, tryNextLink = true) { - super(message); - this.tryNextLink = tryNextLink; - this.name = "ProviderError"; - Object.setPrototypeOf(this, ProviderError.prototype); - } - static from(error, tryNextLink = true) { - return Object.assign(new this(error.message, tryNextLink), error); - } -} -exports.ProviderError = ProviderError; - - -/***/ }), - -/***/ 51444: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.chain = void 0; -const ProviderError_1 = __nccwpck_require__(81786); -function chain(...providers) { - return () => { - let promise = Promise.reject(new ProviderError_1.ProviderError("No providers in chain")); - for (const provider of providers) { - promise = promise.catch((err) => { - if (err === null || err === void 0 ? void 0 : err.tryNextLink) { - return provider(); - } - throw err; - }); - } - return promise; - }; -} -exports.chain = chain; - - -/***/ }), - -/***/ 10529: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromStatic = void 0; -const fromStatic = (staticValue) => () => Promise.resolve(staticValue); -exports.fromStatic = fromStatic; - - -/***/ }), - -/***/ 74462: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(96875), exports); -tslib_1.__exportStar(__nccwpck_require__(81786), exports); -tslib_1.__exportStar(__nccwpck_require__(51444), exports); -tslib_1.__exportStar(__nccwpck_require__(10529), exports); -tslib_1.__exportStar(__nccwpck_require__(714), exports); - - -/***/ }), - -/***/ 714: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.memoize = void 0; -const memoize = (provider, isExpired, requiresRefresh) => { - let resolved; - let pending; - let hasResult; - let isConstant = false; - const coalesceProvider = async () => { - if (!pending) { - pending = provider(); - } - try { - resolved = await pending; - hasResult = true; - isConstant = false; - } - finally { - pending = undefined; - } - return resolved; - }; - if (isExpired === undefined) { - return async (options) => { - if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { - resolved = await coalesceProvider(); - } - return resolved; - }; - } - return async (options) => { - if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { - resolved = await coalesceProvider(); - } - if (isConstant) { - return resolved; - } - if (requiresRefresh && !requiresRefresh(resolved)) { - isConstant = true; - return resolved; - } - if (isExpired(resolved)) { - await coalesceProvider(); - return resolved; - } - return resolved; - }; -}; -exports.memoize = memoize; - - -/***/ }), - -/***/ 56779: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 52872: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.HttpRequest = void 0; -class HttpRequest { - constructor(options) { - this.method = options.method || "GET"; - this.hostname = options.hostname || "localhost"; - this.port = options.port; - this.query = options.query || {}; - this.headers = options.headers || {}; - this.body = options.body; - this.protocol = options.protocol - ? options.protocol.slice(-1) !== ":" - ? `${options.protocol}:` - : options.protocol - : "https:"; - this.path = options.path ? (options.path.charAt(0) !== "/" ? `/${options.path}` : options.path) : "/"; - } - static isInstance(request) { - if (!request) - return false; - const req = request; - return ("method" in req && - "protocol" in req && - "hostname" in req && - "path" in req && - typeof req["query"] === "object" && - typeof req["headers"] === "object"); - } - clone() { - const cloned = new HttpRequest({ - ...this, - headers: { ...this.headers }, - }); - if (cloned.query) - cloned.query = cloneQuery(cloned.query); - return cloned; - } -} -exports.HttpRequest = HttpRequest; -function cloneQuery(query) { - return Object.keys(query).reduce((carry, paramName) => { - const param = query[paramName]; - return { - ...carry, - [paramName]: Array.isArray(param) ? [...param] : param, - }; - }, {}); -} - - -/***/ }), - -/***/ 92348: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.HttpResponse = void 0; -class HttpResponse { - constructor(options) { - this.statusCode = options.statusCode; - this.headers = options.headers || {}; - this.body = options.body; - } - static isInstance(response) { - if (!response) - return false; - const resp = response; - return typeof resp.statusCode === "number" && typeof resp.headers === "object"; - } -} -exports.HttpResponse = HttpResponse; - - -/***/ }), - -/***/ 70223: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(56779), exports); -tslib_1.__exportStar(__nccwpck_require__(52872), exports); -tslib_1.__exportStar(__nccwpck_require__(92348), exports); -tslib_1.__exportStar(__nccwpck_require__(85694), exports); - - -/***/ }), - -/***/ 85694: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isValidHostname = void 0; -function isValidHostname(hostname) { - const hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/; - return hostPattern.test(hostname); -} -exports.isValidHostname = isValidHostname; - - -/***/ }), - -/***/ 43402: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.buildQueryString = void 0; -const util_uri_escape_1 = __nccwpck_require__(57952); -function buildQueryString(query) { - const parts = []; - for (let key of Object.keys(query).sort()) { - const value = query[key]; - key = (0, util_uri_escape_1.escapeUri)(key); - if (Array.isArray(value)) { - for (let i = 0, iLen = value.length; i < iLen; i++) { - parts.push(`${key}=${(0, util_uri_escape_1.escapeUri)(value[i])}`); - } - } - else { - let qsEntry = key; - if (value || typeof value === "string") { - qsEntry += `=${(0, util_uri_escape_1.escapeUri)(value)}`; - } - parts.push(qsEntry); - } - } - return parts.join("&"); -} -exports.buildQueryString = buildQueryString; - - -/***/ }), - -/***/ 47424: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.parseQueryString = void 0; -function parseQueryString(querystring) { - const query = {}; - querystring = querystring.replace(/^\?/, ""); - if (querystring) { - for (const pair of querystring.split("&")) { - let [key, value = null] = pair.split("="); - key = decodeURIComponent(key); - if (value) { - value = decodeURIComponent(value); - } - if (!(key in query)) { - query[key] = value; - } - else if (Array.isArray(query[key])) { - query[key].push(value); - } - else { - query[key] = [query[key], value]; - } - } - } - return query; -} -exports.parseQueryString = parseQueryString; - - -/***/ }), - -/***/ 7352: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.TRANSIENT_ERROR_STATUS_CODES = exports.TRANSIENT_ERROR_CODES = exports.THROTTLING_ERROR_CODES = exports.CLOCK_SKEW_ERROR_CODES = void 0; -exports.CLOCK_SKEW_ERROR_CODES = [ - "AuthFailure", - "InvalidSignatureException", - "RequestExpired", - "RequestInTheFuture", - "RequestTimeTooSkewed", - "SignatureDoesNotMatch", -]; -exports.THROTTLING_ERROR_CODES = [ - "BandwidthLimitExceeded", - "EC2ThrottledException", - "LimitExceededException", - "PriorRequestNotComplete", - "ProvisionedThroughputExceededException", - "RequestLimitExceeded", - "RequestThrottled", - "RequestThrottledException", - "SlowDown", - "ThrottledException", - "Throttling", - "ThrottlingException", - "TooManyRequestsException", - "TransactionInProgressException", -]; -exports.TRANSIENT_ERROR_CODES = ["AbortError", "TimeoutError", "RequestTimeout", "RequestTimeoutException"]; -exports.TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; - - -/***/ }), - -/***/ 61921: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isTransientError = exports.isThrottlingError = exports.isClockSkewError = exports.isRetryableByTrait = void 0; -const constants_1 = __nccwpck_require__(7352); -const isRetryableByTrait = (error) => error.$retryable !== undefined; -exports.isRetryableByTrait = isRetryableByTrait; -const isClockSkewError = (error) => constants_1.CLOCK_SKEW_ERROR_CODES.includes(error.name); -exports.isClockSkewError = isClockSkewError; -const isThrottlingError = (error) => { - var _a, _b; - return ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 429 || - constants_1.THROTTLING_ERROR_CODES.includes(error.name) || - ((_b = error.$retryable) === null || _b === void 0 ? void 0 : _b.throttling) == true; -}; -exports.isThrottlingError = isThrottlingError; -const isTransientError = (error) => { - var _a; - return constants_1.TRANSIENT_ERROR_CODES.includes(error.name) || - constants_1.TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) || 0); -}; -exports.isTransientError = isTransientError; - - -/***/ }), - -/***/ 75216: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getConfigFilepath = exports.ENV_CONFIG_PATH = void 0; -const path_1 = __nccwpck_require__(71017); -const getHomeDir_1 = __nccwpck_require__(97363); -exports.ENV_CONFIG_PATH = "AWS_CONFIG_FILE"; -const getConfigFilepath = () => process.env[exports.ENV_CONFIG_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "config"); -exports.getConfigFilepath = getConfigFilepath; - - -/***/ }), - -/***/ 91569: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getCredentialsFilepath = exports.ENV_CREDENTIALS_PATH = void 0; -const path_1 = __nccwpck_require__(71017); -const getHomeDir_1 = __nccwpck_require__(97363); -exports.ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE"; -const getCredentialsFilepath = () => process.env[exports.ENV_CREDENTIALS_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "credentials"); -exports.getCredentialsFilepath = getCredentialsFilepath; - - -/***/ }), - -/***/ 97363: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getHomeDir = void 0; -const os_1 = __nccwpck_require__(22037); -const path_1 = __nccwpck_require__(71017); -const getHomeDir = () => { - const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${path_1.sep}` } = process.env; - if (HOME) - return HOME; - if (USERPROFILE) - return USERPROFILE; - if (HOMEPATH) - return `${HOMEDRIVE}${HOMEPATH}`; - return (0, os_1.homedir)(); -}; -exports.getHomeDir = getHomeDir; - - -/***/ }), - -/***/ 53592: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getProfileData = void 0; -const profileKeyRegex = /^profile\s(["'])?([^\1]+)\1$/; -const getProfileData = (data) => Object.entries(data) - .filter(([key]) => profileKeyRegex.test(key)) - .reduce((acc, [key, value]) => ({ ...acc, [profileKeyRegex.exec(key)[2]]: value }), { - ...(data.default && { default: data.default }), -}); -exports.getProfileData = getProfileData; - - -/***/ }), - -/***/ 36776: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getProfileName = exports.DEFAULT_PROFILE = exports.ENV_PROFILE = void 0; -exports.ENV_PROFILE = "AWS_PROFILE"; -exports.DEFAULT_PROFILE = "default"; -const getProfileName = (init) => init.profile || process.env[exports.ENV_PROFILE] || exports.DEFAULT_PROFILE; -exports.getProfileName = getProfileName; - - -/***/ }), - -/***/ 42992: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getSSOTokenFilepath = void 0; -const crypto_1 = __nccwpck_require__(6113); -const path_1 = __nccwpck_require__(71017); -const getHomeDir_1 = __nccwpck_require__(97363); -const getSSOTokenFilepath = (ssoStartUrl) => { - const hasher = (0, crypto_1.createHash)("sha1"); - const cacheName = hasher.update(ssoStartUrl).digest("hex"); - return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "sso", "cache", `${cacheName}.json`); -}; -exports.getSSOTokenFilepath = getSSOTokenFilepath; - - -/***/ }), - -/***/ 18553: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getSSOTokenFromFile = void 0; -const fs_1 = __nccwpck_require__(57147); -const getSSOTokenFilepath_1 = __nccwpck_require__(42992); -const { readFile } = fs_1.promises; -const getSSOTokenFromFile = async (ssoStartUrl) => { - const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(ssoStartUrl); - const ssoTokenText = await readFile(ssoTokenFilepath, "utf8"); - return JSON.parse(ssoTokenText); -}; -exports.getSSOTokenFromFile = getSSOTokenFromFile; - - -/***/ }), - -/***/ 67387: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(97363), exports); -tslib_1.__exportStar(__nccwpck_require__(36776), exports); -tslib_1.__exportStar(__nccwpck_require__(42992), exports); -tslib_1.__exportStar(__nccwpck_require__(18553), exports); -tslib_1.__exportStar(__nccwpck_require__(57871), exports); -tslib_1.__exportStar(__nccwpck_require__(26533), exports); -tslib_1.__exportStar(__nccwpck_require__(84105), exports); - - -/***/ }), - -/***/ 57871: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.loadSharedConfigFiles = void 0; -const getConfigFilepath_1 = __nccwpck_require__(75216); -const getCredentialsFilepath_1 = __nccwpck_require__(91569); -const getProfileData_1 = __nccwpck_require__(53592); -const parseIni_1 = __nccwpck_require__(82806); -const slurpFile_1 = __nccwpck_require__(79242); -const swallowError = () => ({}); -const loadSharedConfigFiles = async (init = {}) => { - const { filepath = (0, getCredentialsFilepath_1.getCredentialsFilepath)(), configFilepath = (0, getConfigFilepath_1.getConfigFilepath)() } = init; - const parsedFiles = await Promise.all([ - (0, slurpFile_1.slurpFile)(configFilepath).then(parseIni_1.parseIni).then(getProfileData_1.getProfileData).catch(swallowError), - (0, slurpFile_1.slurpFile)(filepath).then(parseIni_1.parseIni).catch(swallowError), - ]); - return { - configFile: parsedFiles[0], - credentialsFile: parsedFiles[1], - }; -}; -exports.loadSharedConfigFiles = loadSharedConfigFiles; - - -/***/ }), - -/***/ 82806: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.parseIni = void 0; -const profileNameBlockList = ["__proto__", "profile __proto__"]; -const parseIni = (iniData) => { - const map = {}; - let currentSection; - for (let line of iniData.split(/\r?\n/)) { - line = line.split(/(^|\s)[;#]/)[0].trim(); - const isSection = line[0] === "[" && line[line.length - 1] === "]"; - if (isSection) { - currentSection = line.substring(1, line.length - 1); - if (profileNameBlockList.includes(currentSection)) { - throw new Error(`Found invalid profile name "${currentSection}"`); - } - } - else if (currentSection) { - const indexOfEqualsSign = line.indexOf("="); - const start = 0; - const end = line.length - 1; - const isAssignment = indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end; - if (isAssignment) { - const [name, value] = [ - line.substring(0, indexOfEqualsSign).trim(), - line.substring(indexOfEqualsSign + 1).trim(), - ]; - map[currentSection] = map[currentSection] || {}; - map[currentSection][name] = value; - } - } - } - return map; -}; -exports.parseIni = parseIni; - - -/***/ }), - -/***/ 26533: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.parseKnownFiles = void 0; -const loadSharedConfigFiles_1 = __nccwpck_require__(57871); -const parseKnownFiles = async (init) => { - const parsedFiles = await (0, loadSharedConfigFiles_1.loadSharedConfigFiles)(init); - return { - ...parsedFiles.configFile, - ...parsedFiles.credentialsFile, - }; -}; -exports.parseKnownFiles = parseKnownFiles; - - -/***/ }), - -/***/ 79242: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.slurpFile = void 0; -const fs_1 = __nccwpck_require__(57147); -const { readFile } = fs_1.promises; -const filePromisesHash = {}; -const slurpFile = (path) => { - if (!filePromisesHash[path]) { - filePromisesHash[path] = readFile(path, "utf8"); - } - return filePromisesHash[path]; -}; -exports.slurpFile = slurpFile; - - -/***/ }), - -/***/ 84105: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); - - -/***/ }), - -/***/ 75086: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SignatureV4 = void 0; -const util_hex_encoding_1 = __nccwpck_require__(1968); -const util_middleware_1 = __nccwpck_require__(10236); -const constants_1 = __nccwpck_require__(30342); -const credentialDerivation_1 = __nccwpck_require__(11424); -const getCanonicalHeaders_1 = __nccwpck_require__(93590); -const getCanonicalQuery_1 = __nccwpck_require__(92019); -const getPayloadHash_1 = __nccwpck_require__(47080); -const headerUtil_1 = __nccwpck_require__(34120); -const moveHeadersToQuery_1 = __nccwpck_require__(98201); -const prepareRequest_1 = __nccwpck_require__(75772); -const utilDate_1 = __nccwpck_require__(94799); -class SignatureV4 { - constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true, }) { - this.service = service; - this.sha256 = sha256; - this.uriEscapePath = uriEscapePath; - this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true; - this.regionProvider = (0, util_middleware_1.normalizeProvider)(region); - this.credentialProvider = (0, util_middleware_1.normalizeProvider)(credentials); - } - async presign(originalRequest, options = {}) { - const { signingDate = new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, signingRegion, signingService, } = options; - const credentials = await this.credentialProvider(); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); - const { longDate, shortDate } = formatDate(signingDate); - if (expiresIn > constants_1.MAX_PRESIGNED_TTL) { - return Promise.reject("Signature version 4 presigned URLs" + " must have an expiration date less than one week in" + " the future"); - } - const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - const request = (0, moveHeadersToQuery_1.moveHeadersToQuery)((0, prepareRequest_1.prepareRequest)(originalRequest), { unhoistableHeaders }); - if (credentials.sessionToken) { - request.query[constants_1.TOKEN_QUERY_PARAM] = credentials.sessionToken; - } - request.query[constants_1.ALGORITHM_QUERY_PARAM] = constants_1.ALGORITHM_IDENTIFIER; - request.query[constants_1.CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`; - request.query[constants_1.AMZ_DATE_QUERY_PARAM] = longDate; - request.query[constants_1.EXPIRES_QUERY_PARAM] = expiresIn.toString(10); - const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); - request.query[constants_1.SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders); - request.query[constants_1.SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, await (0, getPayloadHash_1.getPayloadHash)(originalRequest, this.sha256))); - return request; - } - async sign(toSign, options) { - if (typeof toSign === "string") { - return this.signString(toSign, options); - } - else if (toSign.headers && toSign.payload) { - return this.signEvent(toSign, options); - } - else { - return this.signRequest(toSign, options); - } - } - async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService }) { - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); - const { shortDate, longDate } = formatDate(signingDate); - const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - const hashedPayload = await (0, getPayloadHash_1.getPayloadHash)({ headers: {}, body: payload }, this.sha256); - const hash = new this.sha256(); - hash.update(headers); - const hashedHeaders = (0, util_hex_encoding_1.toHex)(await hash.digest()); - const stringToSign = [ - constants_1.EVENT_ALGORITHM_IDENTIFIER, - longDate, - scope, - priorSignature, - hashedHeaders, - hashedPayload, - ].join("\n"); - return this.signString(stringToSign, { signingDate, signingRegion: region, signingService }); - } - async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService } = {}) { - const credentials = await this.credentialProvider(); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); - const { shortDate } = formatDate(signingDate); - const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService)); - hash.update(stringToSign); - return (0, util_hex_encoding_1.toHex)(await hash.digest()); - } - async signRequest(requestToSign, { signingDate = new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService, } = {}) { - const credentials = await this.credentialProvider(); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); - const request = (0, prepareRequest_1.prepareRequest)(requestToSign); - const { longDate, shortDate } = formatDate(signingDate); - const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - request.headers[constants_1.AMZ_DATE_HEADER] = longDate; - if (credentials.sessionToken) { - request.headers[constants_1.TOKEN_HEADER] = credentials.sessionToken; - } - const payloadHash = await (0, getPayloadHash_1.getPayloadHash)(request, this.sha256); - if (!(0, headerUtil_1.hasHeader)(constants_1.SHA256_HEADER, request.headers) && this.applyChecksum) { - request.headers[constants_1.SHA256_HEADER] = payloadHash; - } - const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); - const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, payloadHash)); - request.headers[constants_1.AUTH_HEADER] = - `${constants_1.ALGORITHM_IDENTIFIER} ` + - `Credential=${credentials.accessKeyId}/${scope}, ` + - `SignedHeaders=${getCanonicalHeaderList(canonicalHeaders)}, ` + - `Signature=${signature}`; - return request; - } - createCanonicalRequest(request, canonicalHeaders, payloadHash) { - const sortedHeaders = Object.keys(canonicalHeaders).sort(); - return `${request.method} -${this.getCanonicalPath(request)} -${(0, getCanonicalQuery_1.getCanonicalQuery)(request)} -${sortedHeaders.map((name) => `${name}:${canonicalHeaders[name]}`).join("\n")} - -${sortedHeaders.join(";")} -${payloadHash}`; - } - async createStringToSign(longDate, credentialScope, canonicalRequest) { - const hash = new this.sha256(); - hash.update(canonicalRequest); - const hashedRequest = await hash.digest(); - return `${constants_1.ALGORITHM_IDENTIFIER} -${longDate} -${credentialScope} -${(0, util_hex_encoding_1.toHex)(hashedRequest)}`; - } - getCanonicalPath({ path }) { - if (this.uriEscapePath) { - const normalizedPathSegments = []; - for (const pathSegment of path.split("/")) { - if ((pathSegment === null || pathSegment === void 0 ? void 0 : pathSegment.length) === 0) - continue; - if (pathSegment === ".") - continue; - if (pathSegment === "..") { - normalizedPathSegments.pop(); - } - else { - normalizedPathSegments.push(pathSegment); - } - } - const normalizedPath = `${(path === null || path === void 0 ? void 0 : path.startsWith("/")) ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && (path === null || path === void 0 ? void 0 : path.endsWith("/")) ? "/" : ""}`; - const doubleEncoded = encodeURIComponent(normalizedPath); - return doubleEncoded.replace(/%2F/g, "/"); - } - return path; - } - async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) { - const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest); - const hash = new this.sha256(await keyPromise); - hash.update(stringToSign); - return (0, util_hex_encoding_1.toHex)(await hash.digest()); - } - getSigningKey(credentials, region, shortDate, service) { - return (0, credentialDerivation_1.getSigningKey)(this.sha256, credentials, shortDate, region, service || this.service); - } -} -exports.SignatureV4 = SignatureV4; -const formatDate = (now) => { - const longDate = (0, utilDate_1.iso8601)(now).replace(/[\-:]/g, ""); - return { - longDate, - shortDate: longDate.slice(0, 8), - }; -}; -const getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(";"); - - -/***/ }), - -/***/ 53141: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.cloneQuery = exports.cloneRequest = void 0; -const cloneRequest = ({ headers, query, ...rest }) => ({ - ...rest, - headers: { ...headers }, - query: query ? (0, exports.cloneQuery)(query) : undefined, -}); -exports.cloneRequest = cloneRequest; -const cloneQuery = (query) => Object.keys(query).reduce((carry, paramName) => { - const param = query[paramName]; - return { - ...carry, - [paramName]: Array.isArray(param) ? [...param] : param, - }; -}, {}); -exports.cloneQuery = cloneQuery; - - -/***/ }), - -/***/ 30342: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.MAX_PRESIGNED_TTL = exports.KEY_TYPE_IDENTIFIER = exports.MAX_CACHE_SIZE = exports.UNSIGNED_PAYLOAD = exports.EVENT_ALGORITHM_IDENTIFIER = exports.ALGORITHM_IDENTIFIER_V4A = exports.ALGORITHM_IDENTIFIER = exports.UNSIGNABLE_PATTERNS = exports.SEC_HEADER_PATTERN = exports.PROXY_HEADER_PATTERN = exports.ALWAYS_UNSIGNABLE_HEADERS = exports.HOST_HEADER = exports.TOKEN_HEADER = exports.SHA256_HEADER = exports.SIGNATURE_HEADER = exports.GENERATED_HEADERS = exports.DATE_HEADER = exports.AMZ_DATE_HEADER = exports.AUTH_HEADER = exports.REGION_SET_PARAM = exports.TOKEN_QUERY_PARAM = exports.SIGNATURE_QUERY_PARAM = exports.EXPIRES_QUERY_PARAM = exports.SIGNED_HEADERS_QUERY_PARAM = exports.AMZ_DATE_QUERY_PARAM = exports.CREDENTIAL_QUERY_PARAM = exports.ALGORITHM_QUERY_PARAM = void 0; -exports.ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; -exports.CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; -exports.AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; -exports.SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; -exports.EXPIRES_QUERY_PARAM = "X-Amz-Expires"; -exports.SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; -exports.TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; -exports.REGION_SET_PARAM = "X-Amz-Region-Set"; -exports.AUTH_HEADER = "authorization"; -exports.AMZ_DATE_HEADER = exports.AMZ_DATE_QUERY_PARAM.toLowerCase(); -exports.DATE_HEADER = "date"; -exports.GENERATED_HEADERS = [exports.AUTH_HEADER, exports.AMZ_DATE_HEADER, exports.DATE_HEADER]; -exports.SIGNATURE_HEADER = exports.SIGNATURE_QUERY_PARAM.toLowerCase(); -exports.SHA256_HEADER = "x-amz-content-sha256"; -exports.TOKEN_HEADER = exports.TOKEN_QUERY_PARAM.toLowerCase(); -exports.HOST_HEADER = "host"; -exports.ALWAYS_UNSIGNABLE_HEADERS = { - authorization: true, - "cache-control": true, - connection: true, - expect: true, - from: true, - "keep-alive": true, - "max-forwards": true, - pragma: true, - referer: true, - te: true, - trailer: true, - "transfer-encoding": true, - upgrade: true, - "user-agent": true, - "x-amzn-trace-id": true, -}; -exports.PROXY_HEADER_PATTERN = /^proxy-/; -exports.SEC_HEADER_PATTERN = /^sec-/; -exports.UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; -exports.ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; -exports.ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; -exports.EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; -exports.UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; -exports.MAX_CACHE_SIZE = 50; -exports.KEY_TYPE_IDENTIFIER = "aws4_request"; -exports.MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; - - -/***/ }), - -/***/ 11424: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.clearCredentialCache = exports.getSigningKey = exports.createScope = void 0; -const util_hex_encoding_1 = __nccwpck_require__(1968); -const constants_1 = __nccwpck_require__(30342); -const signingKeyCache = {}; -const cacheQueue = []; -const createScope = (shortDate, region, service) => `${shortDate}/${region}/${service}/${constants_1.KEY_TYPE_IDENTIFIER}`; -exports.createScope = createScope; -const getSigningKey = async (sha256Constructor, credentials, shortDate, region, service) => { - const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId); - const cacheKey = `${shortDate}:${region}:${service}:${(0, util_hex_encoding_1.toHex)(credsHash)}:${credentials.sessionToken}`; - if (cacheKey in signingKeyCache) { - return signingKeyCache[cacheKey]; - } - cacheQueue.push(cacheKey); - while (cacheQueue.length > constants_1.MAX_CACHE_SIZE) { - delete signingKeyCache[cacheQueue.shift()]; - } - let key = `AWS4${credentials.secretAccessKey}`; - for (const signable of [shortDate, region, service, constants_1.KEY_TYPE_IDENTIFIER]) { - key = await hmac(sha256Constructor, key, signable); - } - return (signingKeyCache[cacheKey] = key); -}; -exports.getSigningKey = getSigningKey; -const clearCredentialCache = () => { - cacheQueue.length = 0; - Object.keys(signingKeyCache).forEach((cacheKey) => { - delete signingKeyCache[cacheKey]; - }); -}; -exports.clearCredentialCache = clearCredentialCache; -const hmac = (ctor, secret, data) => { - const hash = new ctor(secret); - hash.update(data); - return hash.digest(); -}; - - -/***/ }), - -/***/ 93590: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getCanonicalHeaders = void 0; -const constants_1 = __nccwpck_require__(30342); -const getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => { - const canonical = {}; - for (const headerName of Object.keys(headers).sort()) { - if (headers[headerName] == undefined) { - continue; - } - const canonicalHeaderName = headerName.toLowerCase(); - if (canonicalHeaderName in constants_1.ALWAYS_UNSIGNABLE_HEADERS || - (unsignableHeaders === null || unsignableHeaders === void 0 ? void 0 : unsignableHeaders.has(canonicalHeaderName)) || - constants_1.PROXY_HEADER_PATTERN.test(canonicalHeaderName) || - constants_1.SEC_HEADER_PATTERN.test(canonicalHeaderName)) { - if (!signableHeaders || (signableHeaders && !signableHeaders.has(canonicalHeaderName))) { - continue; - } - } - canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " "); - } - return canonical; -}; -exports.getCanonicalHeaders = getCanonicalHeaders; - - -/***/ }), - -/***/ 92019: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getCanonicalQuery = void 0; -const util_uri_escape_1 = __nccwpck_require__(57952); -const constants_1 = __nccwpck_require__(30342); -const getCanonicalQuery = ({ query = {} }) => { - const keys = []; - const serialized = {}; - for (const key of Object.keys(query).sort()) { - if (key.toLowerCase() === constants_1.SIGNATURE_HEADER) { - continue; - } - keys.push(key); - const value = query[key]; - if (typeof value === "string") { - serialized[key] = `${(0, util_uri_escape_1.escapeUri)(key)}=${(0, util_uri_escape_1.escapeUri)(value)}`; - } - else if (Array.isArray(value)) { - serialized[key] = value - .slice(0) - .sort() - .reduce((encoded, value) => encoded.concat([`${(0, util_uri_escape_1.escapeUri)(key)}=${(0, util_uri_escape_1.escapeUri)(value)}`]), []) - .join("&"); - } - } - return keys - .map((key) => serialized[key]) - .filter((serialized) => serialized) - .join("&"); -}; -exports.getCanonicalQuery = getCanonicalQuery; - - -/***/ }), - -/***/ 47080: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getPayloadHash = void 0; -const is_array_buffer_1 = __nccwpck_require__(69126); -const util_hex_encoding_1 = __nccwpck_require__(1968); -const constants_1 = __nccwpck_require__(30342); -const getPayloadHash = async ({ headers, body }, hashConstructor) => { - for (const headerName of Object.keys(headers)) { - if (headerName.toLowerCase() === constants_1.SHA256_HEADER) { - return headers[headerName]; - } - } - if (body == undefined) { - return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; - } - else if (typeof body === "string" || ArrayBuffer.isView(body) || (0, is_array_buffer_1.isArrayBuffer)(body)) { - const hashCtor = new hashConstructor(); - hashCtor.update(body); - return (0, util_hex_encoding_1.toHex)(await hashCtor.digest()); - } - return constants_1.UNSIGNED_PAYLOAD; -}; -exports.getPayloadHash = getPayloadHash; - - -/***/ }), - -/***/ 34120: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.deleteHeader = exports.getHeaderValue = exports.hasHeader = void 0; -const hasHeader = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - return true; - } - } - return false; -}; -exports.hasHeader = hasHeader; -const getHeaderValue = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - return headers[headerName]; - } - } - return undefined; -}; -exports.getHeaderValue = getHeaderValue; -const deleteHeader = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - delete headers[headerName]; - } - } -}; -exports.deleteHeader = deleteHeader; - - -/***/ }), - -/***/ 37776: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.prepareRequest = exports.moveHeadersToQuery = exports.getPayloadHash = exports.getCanonicalQuery = exports.getCanonicalHeaders = void 0; -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(75086), exports); -var getCanonicalHeaders_1 = __nccwpck_require__(93590); -Object.defineProperty(exports, "getCanonicalHeaders", ({ enumerable: true, get: function () { return getCanonicalHeaders_1.getCanonicalHeaders; } })); -var getCanonicalQuery_1 = __nccwpck_require__(92019); -Object.defineProperty(exports, "getCanonicalQuery", ({ enumerable: true, get: function () { return getCanonicalQuery_1.getCanonicalQuery; } })); -var getPayloadHash_1 = __nccwpck_require__(47080); -Object.defineProperty(exports, "getPayloadHash", ({ enumerable: true, get: function () { return getPayloadHash_1.getPayloadHash; } })); -var moveHeadersToQuery_1 = __nccwpck_require__(98201); -Object.defineProperty(exports, "moveHeadersToQuery", ({ enumerable: true, get: function () { return moveHeadersToQuery_1.moveHeadersToQuery; } })); -var prepareRequest_1 = __nccwpck_require__(75772); -Object.defineProperty(exports, "prepareRequest", ({ enumerable: true, get: function () { return prepareRequest_1.prepareRequest; } })); -tslib_1.__exportStar(__nccwpck_require__(11424), exports); - - -/***/ }), - -/***/ 98201: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.moveHeadersToQuery = void 0; -const cloneRequest_1 = __nccwpck_require__(53141); -const moveHeadersToQuery = (request, options = {}) => { - var _a; - const { headers, query = {} } = typeof request.clone === "function" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); - for (const name of Object.keys(headers)) { - const lname = name.toLowerCase(); - if (lname.slice(0, 6) === "x-amz-" && !((_a = options.unhoistableHeaders) === null || _a === void 0 ? void 0 : _a.has(lname))) { - query[name] = headers[name]; - delete headers[name]; - } - } - return { - ...request, - headers, - query, - }; -}; -exports.moveHeadersToQuery = moveHeadersToQuery; - - -/***/ }), - -/***/ 75772: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.prepareRequest = void 0; -const cloneRequest_1 = __nccwpck_require__(53141); -const constants_1 = __nccwpck_require__(30342); -const prepareRequest = (request) => { - request = typeof request.clone === "function" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); - for (const headerName of Object.keys(request.headers)) { - if (constants_1.GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { - delete request.headers[headerName]; - } - } - return request; -}; -exports.prepareRequest = prepareRequest; - - -/***/ }), - -/***/ 94799: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.toDate = exports.iso8601 = void 0; -const iso8601 = (time) => (0, exports.toDate)(time) - .toISOString() - .replace(/\.\d{3}Z$/, "Z"); -exports.iso8601 = iso8601; -const toDate = (time) => { - if (typeof time === "number") { - return new Date(time * 1000); - } - if (typeof time === "string") { - if (Number(time)) { - return new Date(Number(time) * 1000); - } - return new Date(time); - } - return time; -}; -exports.toDate = toDate; - - -/***/ }), - -/***/ 36034: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Client = void 0; -const middleware_stack_1 = __nccwpck_require__(11461); -class Client { - constructor(config) { - this.middlewareStack = (0, middleware_stack_1.constructStack)(); - this.config = config; - } - send(command, optionsOrCb, cb) { - const options = typeof optionsOrCb !== "function" ? optionsOrCb : undefined; - const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb; - const handler = command.resolveMiddleware(this.middlewareStack, this.config, options); - if (callback) { - handler(command) - .then((result) => callback(null, result.output), (err) => callback(err)) - .catch(() => { }); - } - else { - return handler(command).then((result) => result.output); - } - } - destroy() { - if (this.config.requestHandler.destroy) - this.config.requestHandler.destroy(); - } -} -exports.Client = Client; - - -/***/ }), - -/***/ 4014: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Command = void 0; -const middleware_stack_1 = __nccwpck_require__(11461); -class Command { - constructor() { - this.middlewareStack = (0, middleware_stack_1.constructStack)(); - } -} -exports.Command = Command; - - -/***/ }), - -/***/ 78392: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.SENSITIVE_STRING = void 0; -exports.SENSITIVE_STRING = "***SensitiveInformation***"; - - -/***/ }), - -/***/ 24695: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.parseEpochTimestamp = exports.parseRfc7231DateTime = exports.parseRfc3339DateTime = exports.dateToUtcString = void 0; -const parse_utils_1 = __nccwpck_require__(34014); -const DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; -const MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; -function dateToUtcString(date) { - const year = date.getUTCFullYear(); - const month = date.getUTCMonth(); - const dayOfWeek = date.getUTCDay(); - const dayOfMonthInt = date.getUTCDate(); - const hoursInt = date.getUTCHours(); - const minutesInt = date.getUTCMinutes(); - const secondsInt = date.getUTCSeconds(); - const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`; - const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`; - const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`; - const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`; - return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`; -} -exports.dateToUtcString = dateToUtcString; -const RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/); -const parseRfc3339DateTime = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value !== "string") { - throw new TypeError("RFC-3339 date-times must be expressed as strings"); - } - const match = RFC3339.exec(value); - if (!match) { - throw new TypeError("Invalid RFC-3339 date-time value"); - } - const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; - const year = (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)); - const month = parseDateValue(monthStr, "month", 1, 12); - const day = parseDateValue(dayStr, "day", 1, 31); - return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); -}; -exports.parseRfc3339DateTime = parseRfc3339DateTime; -const IMF_FIXDATE = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/); -const RFC_850_DATE = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/); -const ASC_TIME = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/); -const parseRfc7231DateTime = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value !== "string") { - throw new TypeError("RFC-7231 date-times must be expressed as strings"); - } - let match = IMF_FIXDATE.exec(value); - if (match) { - const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; - return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); - } - match = RFC_850_DATE.exec(value); - if (match) { - const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; - return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { - hours, - minutes, - seconds, - fractionalMilliseconds, - })); - } - match = ASC_TIME.exec(value); - if (match) { - const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; - return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); - } - throw new TypeError("Invalid RFC-7231 date-time value"); -}; -exports.parseRfc7231DateTime = parseRfc7231DateTime; -const parseEpochTimestamp = (value) => { - if (value === null || value === undefined) { - return undefined; - } - let valueAsDouble; - if (typeof value === "number") { - valueAsDouble = value; - } - else if (typeof value === "string") { - valueAsDouble = (0, parse_utils_1.strictParseDouble)(value); - } - else { - throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation"); - } - if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) { - throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics"); - } - return new Date(Math.round(valueAsDouble * 1000)); -}; -exports.parseEpochTimestamp = parseEpochTimestamp; -const buildDate = (year, month, day, time) => { - const adjustedMonth = month - 1; - validateDayOfMonth(year, adjustedMonth, day); - return new Date(Date.UTC(year, adjustedMonth, day, parseDateValue(time.hours, "hour", 0, 23), parseDateValue(time.minutes, "minute", 0, 59), parseDateValue(time.seconds, "seconds", 0, 60), parseMilliseconds(time.fractionalMilliseconds))); -}; -const parseTwoDigitYear = (value) => { - const thisYear = new Date().getUTCFullYear(); - const valueInThisCentury = Math.floor(thisYear / 100) * 100 + (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(value)); - if (valueInThisCentury < thisYear) { - return valueInThisCentury + 100; - } - return valueInThisCentury; -}; -const FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1000; -const adjustRfc850Year = (input) => { - if (input.getTime() - new Date().getTime() > FIFTY_YEARS_IN_MILLIS) { - return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds())); - } - return input; -}; -const parseMonthByShortName = (value) => { - const monthIdx = MONTHS.indexOf(value); - if (monthIdx < 0) { - throw new TypeError(`Invalid month: ${value}`); - } - return monthIdx + 1; -}; -const DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; -const validateDayOfMonth = (year, month, day) => { - let maxDays = DAYS_IN_MONTH[month]; - if (month === 1 && isLeapYear(year)) { - maxDays = 29; - } - if (day > maxDays) { - throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`); - } -}; -const isLeapYear = (year) => { - return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); -}; -const parseDateValue = (value, type, lower, upper) => { - const dateVal = (0, parse_utils_1.strictParseByte)(stripLeadingZeroes(value)); - if (dateVal < lower || dateVal > upper) { - throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`); - } - return dateVal; -}; -const parseMilliseconds = (value) => { - if (value === null || value === undefined) { - return 0; - } - return (0, parse_utils_1.strictParseFloat32)("0." + value) * 1000; -}; -const stripLeadingZeroes = (value) => { - let idx = 0; - while (idx < value.length - 1 && value.charAt(idx) === "0") { - idx++; - } - if (idx === 0) { - return value; - } - return value.slice(idx); -}; - - -/***/ }), - -/***/ 47222: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.throwDefaultError = void 0; -const exceptions_1 = __nccwpck_require__(57778); -const throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => { - const $metadata = deserializeMetadata(output); - const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; - const response = new exceptionCtor({ - name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", - $fault: "client", - $metadata, - }); - throw (0, exceptions_1.decorateServiceException)(response, parsedBody); -}; -exports.throwDefaultError = throwDefaultError; -const deserializeMetadata = (output) => { - var _a; - return ({ - httpStatusCode: output.statusCode, - requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], - }); -}; - - -/***/ }), - -/***/ 33088: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.loadConfigsForDefaultMode = void 0; -const loadConfigsForDefaultMode = (mode) => { - switch (mode) { - case "standard": - return { - retryMode: "standard", - connectionTimeout: 3100, - }; - case "in-region": - return { - retryMode: "standard", - connectionTimeout: 1100, - }; - case "cross-region": - return { - retryMode: "standard", - connectionTimeout: 3100, - }; - case "mobile": - return { - retryMode: "standard", - connectionTimeout: 30000, - }; - default: - return {}; - } -}; -exports.loadConfigsForDefaultMode = loadConfigsForDefaultMode; - - -/***/ }), - -/***/ 12363: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.emitWarningIfUnsupportedVersion = void 0; -let warningEmitted = false; -const emitWarningIfUnsupportedVersion = (version) => { - if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 14) { - warningEmitted = true; - process.emitWarning(`The AWS SDK for JavaScript (v3) will\n` + - `no longer support Node.js ${version} on November 1, 2022.\n\n` + - `To continue receiving updates to AWS services, bug fixes, and security\n` + - `updates please upgrade to Node.js 14.x or later.\n\n` + - `For details, please refer our blog post: https://a.co/48dbdYz`, `NodeDeprecationWarning`); - } -}; -exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion; - - -/***/ }), - -/***/ 57778: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.decorateServiceException = exports.ServiceException = void 0; -class ServiceException extends Error { - constructor(options) { - super(options.message); - Object.setPrototypeOf(this, ServiceException.prototype); - this.name = options.name; - this.$fault = options.$fault; - this.$metadata = options.$metadata; - } -} -exports.ServiceException = ServiceException; -const decorateServiceException = (exception, additions = {}) => { - Object.entries(additions) - .filter(([, v]) => v !== undefined) - .forEach(([k, v]) => { - if (exception[k] == undefined || exception[k] === "") { - exception[k] = v; - } - }); - const message = exception.message || exception.Message || "UnknownError"; - exception.message = message; - delete exception.Message; - return exception; -}; -exports.decorateServiceException = decorateServiceException; - - -/***/ }), - -/***/ 91927: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.extendedEncodeURIComponent = void 0; -function extendedEncodeURIComponent(str) { - return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { - return "%" + c.charCodeAt(0).toString(16).toUpperCase(); - }); -} -exports.extendedEncodeURIComponent = extendedEncodeURIComponent; - - -/***/ }), - -/***/ 86457: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getArrayIfSingleItem = void 0; -const getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray]; -exports.getArrayIfSingleItem = getArrayIfSingleItem; - - -/***/ }), - -/***/ 95830: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getValueFromTextNode = void 0; -const getValueFromTextNode = (obj) => { - const textNodeName = "#text"; - for (const key in obj) { - if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== undefined) { - obj[key] = obj[key][textNodeName]; - } - else if (typeof obj[key] === "object" && obj[key] !== null) { - obj[key] = (0, exports.getValueFromTextNode)(obj[key]); - } - } - return obj; -}; -exports.getValueFromTextNode = getValueFromTextNode; - - -/***/ }), - -/***/ 4963: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(36034), exports); -tslib_1.__exportStar(__nccwpck_require__(4014), exports); -tslib_1.__exportStar(__nccwpck_require__(78392), exports); -tslib_1.__exportStar(__nccwpck_require__(24695), exports); -tslib_1.__exportStar(__nccwpck_require__(47222), exports); -tslib_1.__exportStar(__nccwpck_require__(33088), exports); -tslib_1.__exportStar(__nccwpck_require__(12363), exports); -tslib_1.__exportStar(__nccwpck_require__(57778), exports); -tslib_1.__exportStar(__nccwpck_require__(91927), exports); -tslib_1.__exportStar(__nccwpck_require__(86457), exports); -tslib_1.__exportStar(__nccwpck_require__(95830), exports); -tslib_1.__exportStar(__nccwpck_require__(93613), exports); -tslib_1.__exportStar(__nccwpck_require__(21599), exports); -tslib_1.__exportStar(__nccwpck_require__(34014), exports); -tslib_1.__exportStar(__nccwpck_require__(80308), exports); -tslib_1.__exportStar(__nccwpck_require__(38000), exports); -tslib_1.__exportStar(__nccwpck_require__(48730), exports); - - -/***/ }), - -/***/ 93613: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.LazyJsonString = exports.StringWrapper = void 0; -const StringWrapper = function () { - const Class = Object.getPrototypeOf(this).constructor; - const Constructor = Function.bind.apply(String, [null, ...arguments]); - const instance = new Constructor(); - Object.setPrototypeOf(instance, Class.prototype); - return instance; -}; -exports.StringWrapper = StringWrapper; -exports.StringWrapper.prototype = Object.create(String.prototype, { - constructor: { - value: exports.StringWrapper, - enumerable: false, - writable: true, - configurable: true, - }, -}); -Object.setPrototypeOf(exports.StringWrapper, String); -class LazyJsonString extends exports.StringWrapper { - deserializeJSON() { - return JSON.parse(super.toString()); - } - toJSON() { - return super.toString(); - } - static fromObject(object) { - if (object instanceof LazyJsonString) { - return object; - } - else if (object instanceof String || typeof object === "string") { - return new LazyJsonString(object); - } - return new LazyJsonString(JSON.stringify(object)); - } -} -exports.LazyJsonString = LazyJsonString; - - -/***/ }), - -/***/ 21599: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.convertMap = exports.map = void 0; -function map(arg0, arg1, arg2) { - let target; - let filter; - let instructions; - if (typeof arg1 === "undefined" && typeof arg2 === "undefined") { - target = {}; - instructions = arg0; - } - else { - target = arg0; - if (typeof arg1 === "function") { - filter = arg1; - instructions = arg2; - return mapWithFilter(target, filter, instructions); - } - else { - instructions = arg1; - } - } - for (const key of Object.keys(instructions)) { - if (!Array.isArray(instructions[key])) { - target[key] = instructions[key]; - continue; - } - let [filter, value] = instructions[key]; - if (typeof value === "function") { - let _value; - const defaultFilterPassed = filter === undefined && (_value = value()) != null; - const customFilterPassed = (typeof filter === "function" && !!filter(void 0)) || (typeof filter !== "function" && !!filter); - if (defaultFilterPassed) { - target[key] = _value; - } - else if (customFilterPassed) { - target[key] = value(); - } - } - else { - const defaultFilterPassed = filter === undefined && value != null; - const customFilterPassed = (typeof filter === "function" && !!filter(value)) || (typeof filter !== "function" && !!filter); - if (defaultFilterPassed || customFilterPassed) { - target[key] = value; - } - } - } - return target; -} -exports.map = map; -const convertMap = (target) => { - const output = {}; - for (const [k, v] of Object.entries(target || {})) { - output[k] = [, v]; - } - return output; -}; -exports.convertMap = convertMap; -const mapWithFilter = (target, filter, instructions) => { - return map(target, Object.entries(instructions).reduce((_instructions, [key, value]) => { - if (Array.isArray(value)) { - _instructions[key] = value; - } - else { - if (typeof value === "function") { - _instructions[key] = [filter, value()]; - } - else { - _instructions[key] = [filter, value]; - } - } - return _instructions; - }, {})); -}; - - -/***/ }), - -/***/ 34014: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.strictParseByte = exports.strictParseShort = exports.strictParseInt32 = exports.strictParseInt = exports.strictParseLong = exports.limitedParseFloat32 = exports.limitedParseFloat = exports.handleFloat = exports.limitedParseDouble = exports.strictParseFloat32 = exports.strictParseFloat = exports.strictParseDouble = exports.expectUnion = exports.expectString = exports.expectObject = exports.expectNonNull = exports.expectByte = exports.expectShort = exports.expectInt32 = exports.expectInt = exports.expectLong = exports.expectFloat32 = exports.expectNumber = exports.expectBoolean = exports.parseBoolean = void 0; -const parseBoolean = (value) => { - switch (value) { - case "true": - return true; - case "false": - return false; - default: - throw new Error(`Unable to parse boolean value "${value}"`); - } -}; -exports.parseBoolean = parseBoolean; -const expectBoolean = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value === "boolean") { - return value; - } - throw new TypeError(`Expected boolean, got ${typeof value}`); -}; -exports.expectBoolean = expectBoolean; -const expectNumber = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value === "number") { - return value; - } - throw new TypeError(`Expected number, got ${typeof value}`); -}; -exports.expectNumber = expectNumber; -const MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); -const expectFloat32 = (value) => { - const expected = (0, exports.expectNumber)(value); - if (expected !== undefined && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { - if (Math.abs(expected) > MAX_FLOAT) { - throw new TypeError(`Expected 32-bit float, got ${value}`); - } - } - return expected; -}; -exports.expectFloat32 = expectFloat32; -const expectLong = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (Number.isInteger(value) && !Number.isNaN(value)) { - return value; - } - throw new TypeError(`Expected integer, got ${typeof value}`); -}; -exports.expectLong = expectLong; -exports.expectInt = exports.expectLong; -const expectInt32 = (value) => expectSizedInt(value, 32); -exports.expectInt32 = expectInt32; -const expectShort = (value) => expectSizedInt(value, 16); -exports.expectShort = expectShort; -const expectByte = (value) => expectSizedInt(value, 8); -exports.expectByte = expectByte; -const expectSizedInt = (value, size) => { - const expected = (0, exports.expectLong)(value); - if (expected !== undefined && castInt(expected, size) !== expected) { - throw new TypeError(`Expected ${size}-bit integer, got ${value}`); - } - return expected; -}; -const castInt = (value, size) => { - switch (size) { - case 32: - return Int32Array.of(value)[0]; - case 16: - return Int16Array.of(value)[0]; - case 8: - return Int8Array.of(value)[0]; - } -}; -const expectNonNull = (value, location) => { - if (value === null || value === undefined) { - if (location) { - throw new TypeError(`Expected a non-null value for ${location}`); - } - throw new TypeError("Expected a non-null value"); - } - return value; -}; -exports.expectNonNull = expectNonNull; -const expectObject = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value === "object" && !Array.isArray(value)) { - return value; - } - throw new TypeError(`Expected object, got ${typeof value}`); -}; -exports.expectObject = expectObject; -const expectString = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value === "string") { - return value; - } - throw new TypeError(`Expected string, got ${typeof value}`); -}; -exports.expectString = expectString; -const expectUnion = (value) => { - if (value === null || value === undefined) { - return undefined; - } - const asObject = (0, exports.expectObject)(value); - const setKeys = Object.entries(asObject) - .filter(([_, v]) => v !== null && v !== undefined) - .map(([k, _]) => k); - if (setKeys.length === 0) { - throw new TypeError(`Unions must have exactly one non-null member`); - } - if (setKeys.length > 1) { - throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`); - } - return asObject; -}; -exports.expectUnion = expectUnion; -const strictParseDouble = (value) => { - if (typeof value == "string") { - return (0, exports.expectNumber)(parseNumber(value)); - } - return (0, exports.expectNumber)(value); -}; -exports.strictParseDouble = strictParseDouble; -exports.strictParseFloat = exports.strictParseDouble; -const strictParseFloat32 = (value) => { - if (typeof value == "string") { - return (0, exports.expectFloat32)(parseNumber(value)); - } - return (0, exports.expectFloat32)(value); -}; -exports.strictParseFloat32 = strictParseFloat32; -const NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g; -const parseNumber = (value) => { - const matches = value.match(NUMBER_REGEX); - if (matches === null || matches[0].length !== value.length) { - throw new TypeError(`Expected real number, got implicit NaN`); - } - return parseFloat(value); -}; -const limitedParseDouble = (value) => { - if (typeof value == "string") { - return parseFloatString(value); - } - return (0, exports.expectNumber)(value); -}; -exports.limitedParseDouble = limitedParseDouble; -exports.handleFloat = exports.limitedParseDouble; -exports.limitedParseFloat = exports.limitedParseDouble; -const limitedParseFloat32 = (value) => { - if (typeof value == "string") { - return parseFloatString(value); - } - return (0, exports.expectFloat32)(value); -}; -exports.limitedParseFloat32 = limitedParseFloat32; -const parseFloatString = (value) => { - switch (value) { - case "NaN": - return NaN; - case "Infinity": - return Infinity; - case "-Infinity": - return -Infinity; - default: - throw new Error(`Unable to parse float value: ${value}`); - } -}; -const strictParseLong = (value) => { - if (typeof value === "string") { - return (0, exports.expectLong)(parseNumber(value)); - } - return (0, exports.expectLong)(value); -}; -exports.strictParseLong = strictParseLong; -exports.strictParseInt = exports.strictParseLong; -const strictParseInt32 = (value) => { - if (typeof value === "string") { - return (0, exports.expectInt32)(parseNumber(value)); - } - return (0, exports.expectInt32)(value); -}; -exports.strictParseInt32 = strictParseInt32; -const strictParseShort = (value) => { - if (typeof value === "string") { - return (0, exports.expectShort)(parseNumber(value)); - } - return (0, exports.expectShort)(value); -}; -exports.strictParseShort = strictParseShort; -const strictParseByte = (value) => { - if (typeof value === "string") { - return (0, exports.expectByte)(parseNumber(value)); - } - return (0, exports.expectByte)(value); -}; -exports.strictParseByte = strictParseByte; - - -/***/ }), - -/***/ 80308: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolvedPath = void 0; -const extended_encode_uri_component_1 = __nccwpck_require__(91927); -const resolvedPath = (resolvedPath, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { - if (input != null && input[memberName] !== undefined) { - const labelValue = labelValueProvider(); - if (labelValue.length <= 0) { - throw new Error("Empty value provided for input HTTP label: " + memberName + "."); - } - resolvedPath = resolvedPath.replace(uriLabel, isGreedyLabel - ? labelValue - .split("/") - .map((segment) => (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(segment)) - .join("/") - : (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(labelValue)); - } - else { - throw new Error("No value provided for input HTTP label: " + memberName + "."); - } - return resolvedPath; -}; -exports.resolvedPath = resolvedPath; - - -/***/ }), - -/***/ 38000: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.serializeFloat = void 0; -const serializeFloat = (value) => { - if (value !== value) { - return "NaN"; - } - switch (value) { - case Infinity: - return "Infinity"; - case -Infinity: - return "-Infinity"; - default: - return value; - } -}; -exports.serializeFloat = serializeFloat; - - -/***/ }), - -/***/ 48730: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.splitEvery = void 0; -function splitEvery(value, delimiter, numDelimiters) { - if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { - throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery."); - } - const segments = value.split(delimiter); - if (numDelimiters === 1) { - return segments; - } - const compoundSegments = []; - let currentSegment = ""; - for (let i = 0; i < segments.length; i++) { - if (currentSegment === "") { - currentSegment = segments[i]; - } - else { - currentSegment += delimiter + segments[i]; - } - if ((i + 1) % numDelimiters === 0) { - compoundSegments.push(currentSegment); - currentSegment = ""; - } - } - if (currentSegment !== "") { - compoundSegments.push(currentSegment); - } - return compoundSegments; -} -exports.splitEvery = splitEvery; - - -/***/ }), - -/***/ 2992: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.parseUrl = void 0; -const querystring_parser_1 = __nccwpck_require__(47424); -const parseUrl = (url) => { - const { hostname, pathname, port, protocol, search } = new URL(url); - let query; - if (search) { - query = (0, querystring_parser_1.parseQueryString)(search); - } - return { - hostname, - port: port ? parseInt(port) : undefined, - protocol, - path: pathname, - query, - }; -}; -exports.parseUrl = parseUrl; - - -/***/ }), - -/***/ 18588: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.toBase64 = exports.fromBase64 = void 0; -const util_buffer_from_1 = __nccwpck_require__(36010); -const BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/; -function fromBase64(input) { - if ((input.length * 3) % 4 !== 0) { - throw new TypeError(`Incorrect padding on base64 string.`); - } - if (!BASE64_REGEX.exec(input)) { - throw new TypeError(`Invalid base64 string.`); - } - const buffer = (0, util_buffer_from_1.fromString)(input, "base64"); - return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); -} -exports.fromBase64 = fromBase64; -function toBase64(input) { - return (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("base64"); -} -exports.toBase64 = toBase64; - - -/***/ }), - -/***/ 89190: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.calculateBodyLength = void 0; -const fs_1 = __nccwpck_require__(57147); -const calculateBodyLength = (body) => { - if (!body) { - return 0; - } - if (typeof body === "string") { - return Buffer.from(body).length; - } - else if (typeof body.byteLength === "number") { - return body.byteLength; - } - else if (typeof body.size === "number") { - return body.size; - } - else if (typeof body.path === "string" || Buffer.isBuffer(body.path)) { - return (0, fs_1.lstatSync)(body.path).size; - } - else if (typeof body.fd === "number") { - return (0, fs_1.fstatSync)(body.fd).size; - } - throw new Error(`Body Length computation failed for ${body}`); -}; -exports.calculateBodyLength = calculateBodyLength; - - -/***/ }), - -/***/ 74147: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(89190), exports); - - -/***/ }), - -/***/ 36010: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.fromString = exports.fromArrayBuffer = void 0; -const is_array_buffer_1 = __nccwpck_require__(69126); -const buffer_1 = __nccwpck_require__(14300); -const fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => { - if (!(0, is_array_buffer_1.isArrayBuffer)(input)) { - throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`); - } - return buffer_1.Buffer.from(input, offset, length); -}; -exports.fromArrayBuffer = fromArrayBuffer; -const fromString = (input, encoding) => { - if (typeof input !== "string") { - throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`); - } - return encoding ? buffer_1.Buffer.from(input, encoding) : buffer_1.Buffer.from(input); -}; -exports.fromString = fromString; - - -/***/ }), - -/***/ 79509: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.booleanSelector = exports.SelectorType = void 0; -var SelectorType; -(function (SelectorType) { - SelectorType["ENV"] = "env"; - SelectorType["CONFIG"] = "shared config entry"; -})(SelectorType = exports.SelectorType || (exports.SelectorType = {})); -const booleanSelector = (obj, key, type) => { - if (!(key in obj)) - return undefined; - if (obj[key] === "true") - return true; - if (obj[key] === "false") - return false; - throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`); -}; -exports.booleanSelector = booleanSelector; - - -/***/ }), - -/***/ 6168: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(79509), exports); - - -/***/ }), - -/***/ 16488: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.IMDS_REGION_PATH = exports.DEFAULTS_MODE_OPTIONS = exports.ENV_IMDS_DISABLED = exports.AWS_DEFAULT_REGION_ENV = exports.AWS_REGION_ENV = exports.AWS_EXECUTION_ENV = void 0; -exports.AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV"; -exports.AWS_REGION_ENV = "AWS_REGION"; -exports.AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION"; -exports.ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; -exports.DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"]; -exports.IMDS_REGION_PATH = "/latest/meta-data/placement/region"; - - -/***/ }), - -/***/ 28450: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = void 0; -const AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE"; -const AWS_DEFAULTS_MODE_CONFIG = "defaults_mode"; -exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => { - return env[AWS_DEFAULTS_MODE_ENV]; - }, - configFileSelector: (profile) => { - return profile[AWS_DEFAULTS_MODE_CONFIG]; - }, - default: "legacy", -}; - - -/***/ }), - -/***/ 74243: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(18238), exports); - - -/***/ }), - -/***/ 18238: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.resolveDefaultsModeConfig = void 0; -const config_resolver_1 = __nccwpck_require__(56153); -const credential_provider_imds_1 = __nccwpck_require__(25898); -const node_config_provider_1 = __nccwpck_require__(87684); -const property_provider_1 = __nccwpck_require__(74462); -const constants_1 = __nccwpck_require__(16488); -const defaultsModeConfig_1 = __nccwpck_require__(28450); -const resolveDefaultsModeConfig = ({ region = (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS), defaultsMode = (0, node_config_provider_1.loadConfig)(defaultsModeConfig_1.NODE_DEFAULTS_MODE_CONFIG_OPTIONS), } = {}) => (0, property_provider_1.memoize)(async () => { - const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode; - switch (mode === null || mode === void 0 ? void 0 : mode.toLowerCase()) { - case "auto": - return resolveNodeDefaultsModeAuto(region); - case "in-region": - case "cross-region": - case "mobile": - case "standard": - case "legacy": - return Promise.resolve(mode === null || mode === void 0 ? void 0 : mode.toLocaleLowerCase()); - case undefined: - return Promise.resolve("legacy"); - default: - throw new Error(`Invalid parameter for "defaultsMode", expect ${constants_1.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${mode}`); - } -}); -exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig; -const resolveNodeDefaultsModeAuto = async (clientRegion) => { - if (clientRegion) { - const resolvedRegion = typeof clientRegion === "function" ? await clientRegion() : clientRegion; - const inferredRegion = await inferPhysicalRegion(); - if (!inferredRegion) { - return "standard"; - } - if (resolvedRegion === inferredRegion) { - return "in-region"; - } - else { - return "cross-region"; - } - } - return "standard"; -}; -const inferPhysicalRegion = async () => { - var _a; - if (process.env[constants_1.AWS_EXECUTION_ENV] && (process.env[constants_1.AWS_REGION_ENV] || process.env[constants_1.AWS_DEFAULT_REGION_ENV])) { - return (_a = process.env[constants_1.AWS_REGION_ENV]) !== null && _a !== void 0 ? _a : process.env[constants_1.AWS_DEFAULT_REGION_ENV]; - } - if (!process.env[constants_1.ENV_IMDS_DISABLED]) { - try { - const endpoint = await (0, credential_provider_imds_1.getInstanceMetadataEndpoint)(); - return (await (0, credential_provider_imds_1.httpRequest)({ ...endpoint, path: constants_1.IMDS_REGION_PATH })).toString(); - } - catch (e) { - } - } -}; - - -/***/ }), - -/***/ 1968: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.toHex = exports.fromHex = void 0; -const SHORT_TO_HEX = {}; -const HEX_TO_SHORT = {}; -for (let i = 0; i < 256; i++) { - let encodedByte = i.toString(16).toLowerCase(); - if (encodedByte.length === 1) { - encodedByte = `0${encodedByte}`; - } - SHORT_TO_HEX[i] = encodedByte; - HEX_TO_SHORT[encodedByte] = i; -} -function fromHex(encoded) { - if (encoded.length % 2 !== 0) { - throw new Error("Hex encoded strings must have an even number length"); - } - const out = new Uint8Array(encoded.length / 2); - for (let i = 0; i < encoded.length; i += 2) { - const encodedByte = encoded.slice(i, i + 2).toLowerCase(); - if (encodedByte in HEX_TO_SHORT) { - out[i / 2] = HEX_TO_SHORT[encodedByte]; - } - else { - throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`); - } - } - return out; -} -exports.fromHex = fromHex; -function toHex(bytes) { - let out = ""; - for (let i = 0; i < bytes.byteLength; i++) { - out += SHORT_TO_HEX[bytes[i]]; - } - return out; -} -exports.toHex = toHex; - - -/***/ }), - -/***/ 10236: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(77776), exports); - - -/***/ }), - -/***/ 77776: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.normalizeProvider = void 0; -const normalizeProvider = (input) => { - if (typeof input === "function") - return input; - const promisified = Promise.resolve(input); - return () => promisified; -}; -exports.normalizeProvider = normalizeProvider; - - -/***/ }), - -/***/ 15774: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.escapeUriPath = void 0; -const escape_uri_1 = __nccwpck_require__(24652); -const escapeUriPath = (uri) => uri.split("/").map(escape_uri_1.escapeUri).join("/"); -exports.escapeUriPath = escapeUriPath; - - -/***/ }), - -/***/ 24652: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.escapeUri = void 0; -const escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); -exports.escapeUri = escapeUri; -const hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`; - - -/***/ }), - -/***/ 57952: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(24652), exports); -tslib_1.__exportStar(__nccwpck_require__(15774), exports); - - -/***/ }), - -/***/ 98095: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.defaultUserAgent = exports.UA_APP_ID_INI_NAME = exports.UA_APP_ID_ENV_NAME = void 0; -const node_config_provider_1 = __nccwpck_require__(87684); -const os_1 = __nccwpck_require__(22037); -const process_1 = __nccwpck_require__(77282); -const is_crt_available_1 = __nccwpck_require__(68390); -exports.UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID"; -exports.UA_APP_ID_INI_NAME = "sdk-ua-app-id"; -const defaultUserAgent = ({ serviceId, clientVersion }) => { - const sections = [ - ["aws-sdk-js", clientVersion], - [`os/${(0, os_1.platform)()}`, (0, os_1.release)()], - ["lang/js"], - ["md/nodejs", `${process_1.versions.node}`], - ]; - const crtAvailable = (0, is_crt_available_1.isCrtAvailable)(); - if (crtAvailable) { - sections.push(crtAvailable); - } - if (serviceId) { - sections.push([`api/${serviceId}`, clientVersion]); - } - if (process_1.env.AWS_EXECUTION_ENV) { - sections.push([`exec-env/${process_1.env.AWS_EXECUTION_ENV}`]); - } - const appIdPromise = (0, node_config_provider_1.loadConfig)({ - environmentVariableSelector: (env) => env[exports.UA_APP_ID_ENV_NAME], - configFileSelector: (profile) => profile[exports.UA_APP_ID_INI_NAME], - default: undefined, - })(); - let resolvedUserAgent = undefined; - return async () => { - if (!resolvedUserAgent) { - const appId = await appIdPromise; - resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections]; - } - return resolvedUserAgent; - }; -}; -exports.defaultUserAgent = defaultUserAgent; - - -/***/ }), - -/***/ 68390: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.isCrtAvailable = void 0; -const isCrtAvailable = () => { - try { - if ( true && __nccwpck_require__(87578)) { - return ["md/crt-avail"]; - } - return null; - } - catch (e) { - return null; - } -}; -exports.isCrtAvailable = isCrtAvailable; - - -/***/ }), - -/***/ 66278: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.toUtf8 = exports.fromUtf8 = void 0; -const util_buffer_from_1 = __nccwpck_require__(36010); -const fromUtf8 = (input) => { - const buf = (0, util_buffer_from_1.fromString)(input, "utf8"); - return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); -}; -exports.fromUtf8 = fromUtf8; -const toUtf8 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8"); -exports.toUtf8 = toUtf8; - - -/***/ }), - -/***/ 38880: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.createWaiter = void 0; -const poller_1 = __nccwpck_require__(92105); -const utils_1 = __nccwpck_require__(36001); -const waiter_1 = __nccwpck_require__(4996); -const abortTimeout = async (abortSignal) => { - return new Promise((resolve) => { - abortSignal.onabort = () => resolve({ state: waiter_1.WaiterState.ABORTED }); - }); -}; -const createWaiter = async (options, input, acceptorChecks) => { - const params = { - ...waiter_1.waiterServiceDefaults, - ...options, - }; - (0, utils_1.validateWaiterOptions)(params); - const exitConditions = [(0, poller_1.runPolling)(params, input, acceptorChecks)]; - if (options.abortController) { - exitConditions.push(abortTimeout(options.abortController.signal)); - } - if (options.abortSignal) { - exitConditions.push(abortTimeout(options.abortSignal)); - } - return Promise.race(exitConditions); -}; -exports.createWaiter = createWaiter; - - -/***/ }), - -/***/ 21627: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(38880), exports); -tslib_1.__exportStar(__nccwpck_require__(4996), exports); - - -/***/ }), - -/***/ 92105: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.runPolling = void 0; -const sleep_1 = __nccwpck_require__(17397); -const waiter_1 = __nccwpck_require__(4996); -const exponentialBackoffWithJitter = (minDelay, maxDelay, attemptCeiling, attempt) => { - if (attempt > attemptCeiling) - return maxDelay; - const delay = minDelay * 2 ** (attempt - 1); - return randomInRange(minDelay, delay); -}; -const randomInRange = (min, max) => min + Math.random() * (max - min); -const runPolling = async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => { - var _a; - const { state } = await acceptorChecks(client, input); - if (state !== waiter_1.WaiterState.RETRY) { - return { state }; - } - let currentAttempt = 1; - const waitUntil = Date.now() + maxWaitTime * 1000; - const attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1; - while (true) { - if (((_a = abortController === null || abortController === void 0 ? void 0 : abortController.signal) === null || _a === void 0 ? void 0 : _a.aborted) || (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted)) { - return { state: waiter_1.WaiterState.ABORTED }; - } - const delay = exponentialBackoffWithJitter(minDelay, maxDelay, attemptCeiling, currentAttempt); - if (Date.now() + delay * 1000 > waitUntil) { - return { state: waiter_1.WaiterState.TIMEOUT }; - } - await (0, sleep_1.sleep)(delay); - const { state } = await acceptorChecks(client, input); - if (state !== waiter_1.WaiterState.RETRY) { - return { state }; - } - currentAttempt += 1; - } -}; -exports.runPolling = runPolling; - - -/***/ }), - -/***/ 36001: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -const tslib_1 = __nccwpck_require__(4351); -tslib_1.__exportStar(__nccwpck_require__(17397), exports); -tslib_1.__exportStar(__nccwpck_require__(23931), exports); - - -/***/ }), - -/***/ 17397: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.sleep = void 0; -const sleep = (seconds) => { - return new Promise((resolve) => setTimeout(resolve, seconds * 1000)); -}; -exports.sleep = sleep; - - -/***/ }), - -/***/ 23931: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.validateWaiterOptions = void 0; -const validateWaiterOptions = (options) => { - if (options.maxWaitTime < 1) { - throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`); - } - else if (options.minDelay < 1) { - throw new Error(`WaiterConfiguration.minDelay must be greater than 0`); - } - else if (options.maxDelay < 1) { - throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`); - } - else if (options.maxWaitTime <= options.minDelay) { - throw new Error(`WaiterConfiguration.maxWaitTime [${options.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`); - } - else if (options.maxDelay < options.minDelay) { - throw new Error(`WaiterConfiguration.maxDelay [${options.maxDelay}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`); - } -}; -exports.validateWaiterOptions = validateWaiterOptions; - - -/***/ }), - -/***/ 4996: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.checkExceptions = exports.WaiterState = exports.waiterServiceDefaults = void 0; -exports.waiterServiceDefaults = { - minDelay: 2, - maxDelay: 120, -}; -var WaiterState; -(function (WaiterState) { - WaiterState["ABORTED"] = "ABORTED"; - WaiterState["FAILURE"] = "FAILURE"; - WaiterState["SUCCESS"] = "SUCCESS"; - WaiterState["RETRY"] = "RETRY"; - WaiterState["TIMEOUT"] = "TIMEOUT"; -})(WaiterState = exports.WaiterState || (exports.WaiterState = {})); -const checkExceptions = (result) => { - if (result.state === WaiterState.ABORTED) { - const abortError = new Error(`${JSON.stringify({ - ...result, - reason: "Request was aborted", - })}`); - abortError.name = "AbortError"; - throw abortError; - } - else if (result.state === WaiterState.TIMEOUT) { - const timeoutError = new Error(`${JSON.stringify({ - ...result, - reason: "Waiter has timed out", - })}`); - timeoutError.name = "TimeoutError"; - throw timeoutError; - } - else if (result.state !== WaiterState.SUCCESS) { - throw new Error(`${JSON.stringify({ result })}`); - } - return result; -}; -exports.checkExceptions = checkExceptions; - - -/***/ }), - -/***/ 85107: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.decodeHTML = exports.decodeHTMLStrict = exports.decodeXML = void 0; -var entities_json_1 = __importDefault(__nccwpck_require__(59323)); -var legacy_json_1 = __importDefault(__nccwpck_require__(29591)); -var xml_json_1 = __importDefault(__nccwpck_require__(2586)); -var decode_codepoint_1 = __importDefault(__nccwpck_require__(31227)); -var strictEntityRe = /&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g; -exports.decodeXML = getStrictDecoder(xml_json_1.default); -exports.decodeHTMLStrict = getStrictDecoder(entities_json_1.default); -function getStrictDecoder(map) { - var replace = getReplacer(map); - return function (str) { return String(str).replace(strictEntityRe, replace); }; -} -var sorter = function (a, b) { return (a < b ? 1 : -1); }; -exports.decodeHTML = (function () { - var legacy = Object.keys(legacy_json_1.default).sort(sorter); - var keys = Object.keys(entities_json_1.default).sort(sorter); - for (var i = 0, j = 0; i < keys.length; i++) { - if (legacy[j] === keys[i]) { - keys[i] += ";?"; - j++; - } - else { - keys[i] += ";"; - } - } - var re = new RegExp("&(?:" + keys.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g"); - var replace = getReplacer(entities_json_1.default); - function replacer(str) { - if (str.substr(-1) !== ";") - str += ";"; - return replace(str); - } - // TODO consider creating a merged map - return function (str) { return String(str).replace(re, replacer); }; -})(); -function getReplacer(map) { - return function replace(str) { - if (str.charAt(1) === "#") { - var secondChar = str.charAt(2); - if (secondChar === "X" || secondChar === "x") { - return decode_codepoint_1.default(parseInt(str.substr(3), 16)); - } - return decode_codepoint_1.default(parseInt(str.substr(2), 10)); - } - // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing - return map[str.slice(1, -1)] || str; - }; -} - - -/***/ }), - -/***/ 31227: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -var decode_json_1 = __importDefault(__nccwpck_require__(33600)); -// Adapted from https://github.com/mathiasbynens/he/blob/master/src/he.js#L94-L119 -var fromCodePoint = -// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -String.fromCodePoint || - function (codePoint) { - var output = ""; - if (codePoint > 0xffff) { - codePoint -= 0x10000; - output += String.fromCharCode(((codePoint >>> 10) & 0x3ff) | 0xd800); - codePoint = 0xdc00 | (codePoint & 0x3ff); - } - output += String.fromCharCode(codePoint); - return output; - }; -function decodeCodePoint(codePoint) { - if ((codePoint >= 0xd800 && codePoint <= 0xdfff) || codePoint > 0x10ffff) { - return "\uFFFD"; - } - if (codePoint in decode_json_1.default) { - codePoint = decode_json_1.default[codePoint]; - } - return fromCodePoint(codePoint); -} -exports["default"] = decodeCodePoint; - - -/***/ }), - -/***/ 2006: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { - -"use strict"; - -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = void 0; -var xml_json_1 = __importDefault(__nccwpck_require__(2586)); -var inverseXML = getInverseObj(xml_json_1.default); -var xmlReplacer = getInverseReplacer(inverseXML); -/** - * Encodes all non-ASCII characters, as well as characters not valid in XML - * documents using XML entities. - * - * If a character has no equivalent entity, a - * numeric hexadecimal reference (eg. `ü`) will be used. - */ -exports.encodeXML = getASCIIEncoder(inverseXML); -var entities_json_1 = __importDefault(__nccwpck_require__(59323)); -var inverseHTML = getInverseObj(entities_json_1.default); -var htmlReplacer = getInverseReplacer(inverseHTML); -/** - * Encodes all entities and non-ASCII characters in the input. - * - * This includes characters that are valid ASCII characters in HTML documents. - * For example `#` will be encoded as `#`. To get a more compact output, - * consider using the `encodeNonAsciiHTML` function. - * - * If a character has no equivalent entity, a - * numeric hexadecimal reference (eg. `ü`) will be used. - */ -exports.encodeHTML = getInverse(inverseHTML, htmlReplacer); -/** - * Encodes all non-ASCII characters, as well as characters not valid in HTML - * documents using HTML entities. - * - * If a character has no equivalent entity, a - * numeric hexadecimal reference (eg. `ü`) will be used. - */ -exports.encodeNonAsciiHTML = getASCIIEncoder(inverseHTML); -function getInverseObj(obj) { - return Object.keys(obj) - .sort() - .reduce(function (inverse, name) { - inverse[obj[name]] = "&" + name + ";"; - return inverse; - }, {}); -} -function getInverseReplacer(inverse) { - var single = []; - var multiple = []; - for (var _i = 0, _a = Object.keys(inverse); _i < _a.length; _i++) { - var k = _a[_i]; - if (k.length === 1) { - // Add value to single array - single.push("\\" + k); - } - else { - // Add value to multiple array - multiple.push(k); - } - } - // Add ranges to single characters. - single.sort(); - for (var start = 0; start < single.length - 1; start++) { - // Find the end of a run of characters - var end = start; - while (end < single.length - 1 && - single[end].charCodeAt(1) + 1 === single[end + 1].charCodeAt(1)) { - end += 1; - } - var count = 1 + end - start; - // We want to replace at least three characters - if (count < 3) - continue; - single.splice(start, count, single[start] + "-" + single[end]); - } - multiple.unshift("[" + single.join("") + "]"); - return new RegExp(multiple.join("|"), "g"); -} -// /[^\0-\x7F]/gu -var reNonASCII = /(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g; -var getCodePoint = -// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -String.prototype.codePointAt != null - ? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - function (str) { return str.codePointAt(0); } - : // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - function (c) { - return (c.charCodeAt(0) - 0xd800) * 0x400 + - c.charCodeAt(1) - - 0xdc00 + - 0x10000; - }; -function singleCharReplacer(c) { - return "&#x" + (c.length > 1 ? getCodePoint(c) : c.charCodeAt(0)) - .toString(16) - .toUpperCase() + ";"; -} -function getInverse(inverse, re) { - return function (data) { - return data - .replace(re, function (name) { return inverse[name]; }) - .replace(reNonASCII, singleCharReplacer); - }; -} -var reEscapeChars = new RegExp(xmlReplacer.source + "|" + reNonASCII.source, "g"); -/** - * Encodes all non-ASCII characters, as well as characters not valid in XML - * documents using numeric hexadecimal reference (eg. `ü`). - * - * Have a look at `escapeUTF8` if you want a more concise output at the expense - * of reduced transportability. - * - * @param data String to escape. - */ -function escape(data) { - return data.replace(reEscapeChars, singleCharReplacer); -} -exports.escape = escape; -/** - * Encodes all characters not valid in XML documents using numeric hexadecimal - * reference (eg. `ü`). - * - * Note that the output will be character-set dependent. - * - * @param data String to escape. - */ -function escapeUTF8(data) { - return data.replace(xmlReplacer, singleCharReplacer); -} -exports.escapeUTF8 = escapeUTF8; -function getASCIIEncoder(obj) { - return function (data) { - return data.replace(reEscapeChars, function (c) { return obj[c] || singleCharReplacer(c); }); - }; -} - - -/***/ }), - -/***/ 3000: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.encodeHTML5 = exports.encodeHTML4 = exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = exports.encode = exports.decodeStrict = exports.decode = void 0; -var decode_1 = __nccwpck_require__(85107); -var encode_1 = __nccwpck_require__(2006); -/** - * Decodes a string with entities. - * - * @param data String to decode. - * @param level Optional level to decode at. 0 = XML, 1 = HTML. Default is 0. - * @deprecated Use `decodeXML` or `decodeHTML` directly. - */ -function decode(data, level) { - return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTML)(data); -} -exports.decode = decode; -/** - * Decodes a string with entities. Does not allow missing trailing semicolons for entities. - * - * @param data String to decode. - * @param level Optional level to decode at. 0 = XML, 1 = HTML. Default is 0. - * @deprecated Use `decodeHTMLStrict` or `decodeXML` directly. - */ -function decodeStrict(data, level) { - return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTMLStrict)(data); -} -exports.decodeStrict = decodeStrict; -/** - * Encodes a string with entities. - * - * @param data String to encode. - * @param level Optional level to encode at. 0 = XML, 1 = HTML. Default is 0. - * @deprecated Use `encodeHTML`, `encodeXML` or `encodeNonAsciiHTML` directly. - */ -function encode(data, level) { - return (!level || level <= 0 ? encode_1.encodeXML : encode_1.encodeHTML)(data); -} -exports.encode = encode; -var encode_2 = __nccwpck_require__(2006); -Object.defineProperty(exports, "encodeXML", ({ enumerable: true, get: function () { return encode_2.encodeXML; } })); -Object.defineProperty(exports, "encodeHTML", ({ enumerable: true, get: function () { return encode_2.encodeHTML; } })); -Object.defineProperty(exports, "encodeNonAsciiHTML", ({ enumerable: true, get: function () { return encode_2.encodeNonAsciiHTML; } })); -Object.defineProperty(exports, "escape", ({ enumerable: true, get: function () { return encode_2.escape; } })); -Object.defineProperty(exports, "escapeUTF8", ({ enumerable: true, get: function () { return encode_2.escapeUTF8; } })); -// Legacy aliases (deprecated) -Object.defineProperty(exports, "encodeHTML4", ({ enumerable: true, get: function () { return encode_2.encodeHTML; } })); -Object.defineProperty(exports, "encodeHTML5", ({ enumerable: true, get: function () { return encode_2.encodeHTML; } })); -var decode_2 = __nccwpck_require__(85107); -Object.defineProperty(exports, "decodeXML", ({ enumerable: true, get: function () { return decode_2.decodeXML; } })); -Object.defineProperty(exports, "decodeHTML", ({ enumerable: true, get: function () { return decode_2.decodeHTML; } })); -Object.defineProperty(exports, "decodeHTMLStrict", ({ enumerable: true, get: function () { return decode_2.decodeHTMLStrict; } })); -// Legacy aliases (deprecated) -Object.defineProperty(exports, "decodeHTML4", ({ enumerable: true, get: function () { return decode_2.decodeHTML; } })); -Object.defineProperty(exports, "decodeHTML5", ({ enumerable: true, get: function () { return decode_2.decodeHTML; } })); -Object.defineProperty(exports, "decodeHTML4Strict", ({ enumerable: true, get: function () { return decode_2.decodeHTMLStrict; } })); -Object.defineProperty(exports, "decodeHTML5Strict", ({ enumerable: true, get: function () { return decode_2.decodeHTMLStrict; } })); -Object.defineProperty(exports, "decodeXMLStrict", ({ enumerable: true, get: function () { return decode_2.decodeXML; } })); - - -/***/ }), - -/***/ 35152: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - -//parse Empty Node as self closing node -const buildOptions = (__nccwpck_require__(38280).buildOptions); - -const defaultOptions = { - attributeNamePrefix: '@_', - attrNodeName: false, - textNodeName: '#text', - ignoreAttributes: true, - cdataTagName: false, - cdataPositionChar: '\\c', - format: false, - indentBy: ' ', - supressEmptyNode: false, - tagValueProcessor: function(a) { - return a; - }, - attrValueProcessor: function(a) { - return a; - }, -}; - -const props = [ - 'attributeNamePrefix', - 'attrNodeName', - 'textNodeName', - 'ignoreAttributes', - 'cdataTagName', - 'cdataPositionChar', - 'format', - 'indentBy', - 'supressEmptyNode', - 'tagValueProcessor', - 'attrValueProcessor', -]; - -function Parser(options) { - this.options = buildOptions(options, defaultOptions, props); - if (this.options.ignoreAttributes || this.options.attrNodeName) { - this.isAttribute = function(/*a*/) { - return false; - }; - } else { - this.attrPrefixLen = this.options.attributeNamePrefix.length; - this.isAttribute = isAttribute; - } - if (this.options.cdataTagName) { - this.isCDATA = isCDATA; - } else { - this.isCDATA = function(/*a*/) { - return false; - }; - } - this.replaceCDATAstr = replaceCDATAstr; - this.replaceCDATAarr = replaceCDATAarr; - - if (this.options.format) { - this.indentate = indentate; - this.tagEndChar = '>\n'; - this.newLine = '\n'; - } else { - this.indentate = function() { - return ''; - }; - this.tagEndChar = '>'; - this.newLine = ''; - } - - if (this.options.supressEmptyNode) { - this.buildTextNode = buildEmptyTextNode; - this.buildObjNode = buildEmptyObjNode; - } else { - this.buildTextNode = buildTextValNode; - this.buildObjNode = buildObjectNode; - } - - this.buildTextValNode = buildTextValNode; - this.buildObjectNode = buildObjectNode; -} - -Parser.prototype.parse = function(jObj) { - return this.j2x(jObj, 0).val; -}; - -Parser.prototype.j2x = function(jObj, level) { - let attrStr = ''; - let val = ''; - const keys = Object.keys(jObj); - const len = keys.length; - for (let i = 0; i < len; i++) { - const key = keys[i]; - if (typeof jObj[key] === 'undefined') { - // supress undefined node - } else if (jObj[key] === null) { - val += this.indentate(level) + '<' + key + '/' + this.tagEndChar; - } else if (jObj[key] instanceof Date) { - val += this.buildTextNode(jObj[key], key, '', level); - } else if (typeof jObj[key] !== 'object') { - //premitive type - const attr = this.isAttribute(key); - if (attr) { - attrStr += ' ' + attr + '="' + this.options.attrValueProcessor('' + jObj[key]) + '"'; - } else if (this.isCDATA(key)) { - if (jObj[this.options.textNodeName]) { - val += this.replaceCDATAstr(jObj[this.options.textNodeName], jObj[key]); - } else { - val += this.replaceCDATAstr('', jObj[key]); - } - } else { - //tag value - if (key === this.options.textNodeName) { - if (jObj[this.options.cdataTagName]) { - //value will added while processing cdata - } else { - val += this.options.tagValueProcessor('' + jObj[key]); - } - } else { - val += this.buildTextNode(jObj[key], key, '', level); - } - } - } else if (Array.isArray(jObj[key])) { - //repeated nodes - if (this.isCDATA(key)) { - val += this.indentate(level); - if (jObj[this.options.textNodeName]) { - val += this.replaceCDATAarr(jObj[this.options.textNodeName], jObj[key]); - } else { - val += this.replaceCDATAarr('', jObj[key]); - } - } else { - //nested nodes - const arrLen = jObj[key].length; - for (let j = 0; j < arrLen; j++) { - const item = jObj[key][j]; - if (typeof item === 'undefined') { - // supress undefined node - } else if (item === null) { - val += this.indentate(level) + '<' + key + '/' + this.tagEndChar; - } else if (typeof item === 'object') { - const result = this.j2x(item, level + 1); - val += this.buildObjNode(result.val, key, result.attrStr, level); - } else { - val += this.buildTextNode(item, key, '', level); - } - } - } - } else { - //nested node - if (this.options.attrNodeName && key === this.options.attrNodeName) { - const Ks = Object.keys(jObj[key]); - const L = Ks.length; - for (let j = 0; j < L; j++) { - attrStr += ' ' + Ks[j] + '="' + this.options.attrValueProcessor('' + jObj[key][Ks[j]]) + '"'; - } - } else { - const result = this.j2x(jObj[key], level + 1); - val += this.buildObjNode(result.val, key, result.attrStr, level); - } - } - } - return {attrStr: attrStr, val: val}; -}; - -function replaceCDATAstr(str, cdata) { - str = this.options.tagValueProcessor('' + str); - if (this.options.cdataPositionChar === '' || str === '') { - return str + ''); - } - return str + this.newLine; - } -} - -function buildObjectNode(val, key, attrStr, level) { - if (attrStr && !val.includes('<')) { - return ( - this.indentate(level) + - '<' + - key + - attrStr + - '>' + - val + - //+ this.newLine - // + this.indentate(level) - '' + - this.options.tagValueProcessor(val) + - ' { - -"use strict"; - -const char = function(a) { - return String.fromCharCode(a); -}; - -const chars = { - nilChar: char(176), - missingChar: char(201), - nilPremitive: char(175), - missingPremitive: char(200), - - emptyChar: char(178), - emptyValue: char(177), //empty Premitive - - boundryChar: char(179), - - objStart: char(198), - arrStart: char(204), - arrayEnd: char(185), -}; - -const charsArr = [ - chars.nilChar, - chars.nilPremitive, - chars.missingChar, - chars.missingPremitive, - chars.boundryChar, - chars.emptyChar, - chars.emptyValue, - chars.arrayEnd, - chars.objStart, - chars.arrStart, -]; - -const _e = function(node, e_schema, options) { - if (typeof e_schema === 'string') { - //premitive - if (node && node[0] && node[0].val !== undefined) { - return getValue(node[0].val, e_schema); - } else { - return getValue(node, e_schema); - } - } else { - const hasValidData = hasData(node); - if (hasValidData === true) { - let str = ''; - if (Array.isArray(e_schema)) { - //attributes can't be repeated. hence check in children tags only - str += chars.arrStart; - const itemSchema = e_schema[0]; - //var itemSchemaType = itemSchema; - const arr_len = node.length; - - if (typeof itemSchema === 'string') { - for (let arr_i = 0; arr_i < arr_len; arr_i++) { - const r = getValue(node[arr_i].val, itemSchema); - str = processValue(str, r); - } - } else { - for (let arr_i = 0; arr_i < arr_len; arr_i++) { - const r = _e(node[arr_i], itemSchema, options); - str = processValue(str, r); - } - } - str += chars.arrayEnd; //indicates that next item is not array item - } else { - //object - str += chars.objStart; - const keys = Object.keys(e_schema); - if (Array.isArray(node)) { - node = node[0]; - } - for (let i in keys) { - const key = keys[i]; - //a property defined in schema can be present either in attrsMap or children tags - //options.textNodeName will not present in both maps, take it's value from val - //options.attrNodeName will be present in attrsMap - let r; - if (!options.ignoreAttributes && node.attrsMap && node.attrsMap[key]) { - r = _e(node.attrsMap[key], e_schema[key], options); - } else if (key === options.textNodeName) { - r = _e(node.val, e_schema[key], options); - } else { - r = _e(node.child[key], e_schema[key], options); - } - str = processValue(str, r); - } - } - return str; - } else { - return hasValidData; - } - } -}; - -const getValue = function(a /*, type*/) { - switch (a) { - case undefined: - return chars.missingPremitive; - case null: - return chars.nilPremitive; - case '': - return chars.emptyValue; - default: - return a; - } -}; - -const processValue = function(str, r) { - if (!isAppChar(r[0]) && !isAppChar(str[str.length - 1])) { - str += chars.boundryChar; - } - return str + r; -}; - -const isAppChar = function(ch) { - return charsArr.indexOf(ch) !== -1; -}; - -function hasData(jObj) { - if (jObj === undefined) { - return chars.missingChar; - } else if (jObj === null) { - return chars.nilChar; - } else if ( - jObj.child && - Object.keys(jObj.child).length === 0 && - (!jObj.attrsMap || Object.keys(jObj.attrsMap).length === 0) - ) { - return chars.emptyChar; - } else { - return true; - } -} - -const x2j = __nccwpck_require__(6712); -const buildOptions = (__nccwpck_require__(38280).buildOptions); - -const convert2nimn = function(node, e_schema, options) { - options = buildOptions(options, x2j.defaultOptions, x2j.props); - return _e(node, e_schema, options); -}; - -exports.convert2nimn = convert2nimn; - - -/***/ }), - -/***/ 88270: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -const util = __nccwpck_require__(38280); - -const convertToJson = function(node, options, parentTagName) { - const jObj = {}; - - // when no child node or attr is present - if ((!node.child || util.isEmptyObject(node.child)) && (!node.attrsMap || util.isEmptyObject(node.attrsMap))) { - return util.isExist(node.val) ? node.val : ''; - } - - // otherwise create a textnode if node has some text - if (util.isExist(node.val) && !(typeof node.val === 'string' && (node.val === '' || node.val === options.cdataPositionChar))) { - const asArray = util.isTagNameInArrayMode(node.tagname, options.arrayMode, parentTagName) - jObj[options.textNodeName] = asArray ? [node.val] : node.val; - } - - util.merge(jObj, node.attrsMap, options.arrayMode); - - const keys = Object.keys(node.child); - for (let index = 0; index < keys.length; index++) { - const tagName = keys[index]; - if (node.child[tagName] && node.child[tagName].length > 1) { - jObj[tagName] = []; - for (let tag in node.child[tagName]) { - if (node.child[tagName].hasOwnProperty(tag)) { - jObj[tagName].push(convertToJson(node.child[tagName][tag], options, tagName)); - } - } - } else { - const result = convertToJson(node.child[tagName][0], options, tagName); - const asArray = (options.arrayMode === true && typeof result === 'object') || util.isTagNameInArrayMode(tagName, options.arrayMode, parentTagName); - jObj[tagName] = asArray ? [result] : result; - } - } - - //add value - return jObj; -}; - -exports.convertToJson = convertToJson; - - -/***/ }), - -/***/ 16014: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -const util = __nccwpck_require__(38280); -const buildOptions = (__nccwpck_require__(38280).buildOptions); -const x2j = __nccwpck_require__(6712); - -//TODO: do it later -const convertToJsonString = function(node, options) { - options = buildOptions(options, x2j.defaultOptions, x2j.props); - - options.indentBy = options.indentBy || ''; - return _cToJsonStr(node, options, 0); -}; - -const _cToJsonStr = function(node, options, level) { - let jObj = '{'; - - //traver through all the children - const keys = Object.keys(node.child); - - for (let index = 0; index < keys.length; index++) { - var tagname = keys[index]; - if (node.child[tagname] && node.child[tagname].length > 1) { - jObj += '"' + tagname + '" : [ '; - for (var tag in node.child[tagname]) { - jObj += _cToJsonStr(node.child[tagname][tag], options) + ' , '; - } - jObj = jObj.substr(0, jObj.length - 1) + ' ] '; //remove extra comma in last - } else { - jObj += '"' + tagname + '" : ' + _cToJsonStr(node.child[tagname][0], options) + ' ,'; - } - } - util.merge(jObj, node.attrsMap); - //add attrsMap as new children - if (util.isEmptyObject(jObj)) { - return util.isExist(node.val) ? node.val : ''; - } else { - if (util.isExist(node.val)) { - if (!(typeof node.val === 'string' && (node.val === '' || node.val === options.cdataPositionChar))) { - jObj += '"' + options.textNodeName + '" : ' + stringval(node.val); - } - } - } - //add value - if (jObj[jObj.length - 1] === ',') { - jObj = jObj.substr(0, jObj.length - 2); - } - return jObj + '}'; -}; - -function stringval(v) { - if (v === true || v === false || !isNaN(v)) { - return v; - } else { - return '"' + v + '"'; - } -} - -function indentate(options, level) { - return options.indentBy.repeat(level); -} - -exports.convertToJsonString = convertToJsonString; - - -/***/ }), - -/***/ 27448: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -const nodeToJson = __nccwpck_require__(88270); -const xmlToNodeobj = __nccwpck_require__(6712); -const x2xmlnode = __nccwpck_require__(6712); -const buildOptions = (__nccwpck_require__(38280).buildOptions); -const validator = __nccwpck_require__(61739); - -exports.parse = function(xmlData, options, validationOption) { - if( validationOption){ - if(validationOption === true) validationOption = {} - - const result = validator.validate(xmlData, validationOption); - if (result !== true) { - throw Error( result.err.msg) - } - } - options = buildOptions(options, x2xmlnode.defaultOptions, x2xmlnode.props); - const traversableObj = xmlToNodeobj.getTraversalObj(xmlData, options) - //print(traversableObj, " "); - return nodeToJson.convertToJson(traversableObj, options); -}; -exports.convertTonimn = __nccwpck_require__(41901).convert2nimn; -exports.getTraversalObj = xmlToNodeobj.getTraversalObj; -exports.convertToJson = nodeToJson.convertToJson; -exports.convertToJsonString = __nccwpck_require__(16014).convertToJsonString; -exports.validate = validator.validate; -exports.j2xParser = __nccwpck_require__(35152); -exports.parseToNimn = function(xmlData, schema, options) { - return exports.convertTonimn(exports.getTraversalObj(xmlData, options), schema, options); -}; - - -function print(xmlNode, indentation){ - if(xmlNode){ - console.log(indentation + "{") - console.log(indentation + " \"tagName\": \"" + xmlNode.tagname + "\", "); - if(xmlNode.parent){ - console.log(indentation + " \"parent\": \"" + xmlNode.parent.tagname + "\", "); - } - console.log(indentation + " \"val\": \"" + xmlNode.val + "\", "); - console.log(indentation + " \"attrs\": " + JSON.stringify(xmlNode.attrsMap,null,4) + ", "); - - if(xmlNode.child){ - console.log(indentation + "\"child\": {") - const indentation2 = indentation + indentation; - Object.keys(xmlNode.child).forEach( function(key) { - const node = xmlNode.child[key]; - - if(Array.isArray(node)){ - console.log(indentation + "\""+key+"\" :[") - node.forEach( function(item,index) { - //console.log(indentation + " \""+index+"\" : [") - print(item, indentation2); - }) - console.log(indentation + "],") - }else{ - console.log(indentation + " \""+key+"\" : {") - print(node, indentation2); - console.log(indentation + "},") - } - }); - console.log(indentation + "},") - } - console.log(indentation + "},") - } -} - - -/***/ }), - -/***/ 38280: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - - -const nameStartChar = ':A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD'; -const nameChar = nameStartChar + '\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040'; -const nameRegexp = '[' + nameStartChar + '][' + nameChar + ']*' -const regexName = new RegExp('^' + nameRegexp + '$'); - -const getAllMatches = function(string, regex) { - const matches = []; - let match = regex.exec(string); - while (match) { - const allmatches = []; - const len = match.length; - for (let index = 0; index < len; index++) { - allmatches.push(match[index]); - } - matches.push(allmatches); - match = regex.exec(string); - } - return matches; -}; - -const isName = function(string) { - const match = regexName.exec(string); - return !(match === null || typeof match === 'undefined'); -}; - -exports.isExist = function(v) { - return typeof v !== 'undefined'; -}; - -exports.isEmptyObject = function(obj) { - return Object.keys(obj).length === 0; -}; - -/** - * Copy all the properties of a into b. - * @param {*} target - * @param {*} a - */ -exports.merge = function(target, a, arrayMode) { - if (a) { - const keys = Object.keys(a); // will return an array of own properties - const len = keys.length; //don't make it inline - for (let i = 0; i < len; i++) { - if (arrayMode === 'strict') { - target[keys[i]] = [ a[keys[i]] ]; - } else { - target[keys[i]] = a[keys[i]]; - } - } - } -}; -/* exports.merge =function (b,a){ - return Object.assign(b,a); -} */ - -exports.getValue = function(v) { - if (exports.isExist(v)) { - return v; - } else { - return ''; - } -}; - -// const fakeCall = function(a) {return a;}; -// const fakeCallNoReturn = function() {}; - -exports.buildOptions = function(options, defaultOptions, props) { - var newOptions = {}; - if (!options) { - return defaultOptions; //if there are not options - } - - for (let i = 0; i < props.length; i++) { - if (options[props[i]] !== undefined) { - newOptions[props[i]] = options[props[i]]; - } else { - newOptions[props[i]] = defaultOptions[props[i]]; - } - } - return newOptions; -}; - -/** - * Check if a tag name should be treated as array - * - * @param tagName the node tagname - * @param arrayMode the array mode option - * @param parentTagName the parent tag name - * @returns {boolean} true if node should be parsed as array - */ -exports.isTagNameInArrayMode = function (tagName, arrayMode, parentTagName) { - if (arrayMode === false) { - return false; - } else if (arrayMode instanceof RegExp) { - return arrayMode.test(tagName); - } else if (typeof arrayMode === 'function') { - return !!arrayMode(tagName, parentTagName); - } - - return arrayMode === "strict"; -} - -exports.isName = isName; -exports.getAllMatches = getAllMatches; -exports.nameRegexp = nameRegexp; - - -/***/ }), - -/***/ 61739: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -const util = __nccwpck_require__(38280); - -const defaultOptions = { - allowBooleanAttributes: false, //A tag can have attributes without any value -}; - -const props = ['allowBooleanAttributes']; - -//const tagsPattern = new RegExp("<\\/?([\\w:\\-_\.]+)\\s*\/?>","g"); -exports.validate = function (xmlData, options) { - options = util.buildOptions(options, defaultOptions, props); - - //xmlData = xmlData.replace(/(\r\n|\n|\r)/gm,"");//make it single line - //xmlData = xmlData.replace(/(^\s*<\?xml.*?\?>)/g,"");//Remove XML starting tag - //xmlData = xmlData.replace(/()/g,"");//Remove DOCTYPE - const tags = []; - let tagFound = false; - - //indicates that the root tag has been closed (aka. depth 0 has been reached) - let reachedRoot = false; - - if (xmlData[0] === '\ufeff') { - // check for byte order mark (BOM) - xmlData = xmlData.substr(1); - } - - for (let i = 0; i < xmlData.length; i++) { - - if (xmlData[i] === '<' && xmlData[i+1] === '?') { - i+=2; - i = readPI(xmlData,i); - if (i.err) return i; - }else if (xmlData[i] === '<') { - //starting of tag - //read until you reach to '>' avoiding any '>' in attribute value - - i++; - - if (xmlData[i] === '!') { - i = readCommentAndCDATA(xmlData, i); - continue; - } else { - let closingTag = false; - if (xmlData[i] === '/') { - //closing tag - closingTag = true; - i++; - } - //read tagname - let tagName = ''; - for (; i < xmlData.length && - xmlData[i] !== '>' && - xmlData[i] !== ' ' && - xmlData[i] !== '\t' && - xmlData[i] !== '\n' && - xmlData[i] !== '\r'; i++ - ) { - tagName += xmlData[i]; - } - tagName = tagName.trim(); - //console.log(tagName); - - if (tagName[tagName.length - 1] === '/') { - //self closing tag without attributes - tagName = tagName.substring(0, tagName.length - 1); - //continue; - i--; - } - if (!validateTagName(tagName)) { - let msg; - if (tagName.trim().length === 0) { - msg = "There is an unnecessary space between tag name and backward slash ' 0) { - return getErrorObject('InvalidTag', "Closing tag '"+tagName+"' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData, i)); - } else { - const otg = tags.pop(); - if (tagName !== otg) { - return getErrorObject('InvalidTag', "Closing tag '"+otg+"' is expected inplace of '"+tagName+"'.", getLineNumberForPosition(xmlData, i)); - } - - //when there are no more tags, we reached the root level. - if (tags.length == 0) { - reachedRoot = true; - } - } - } else { - const isValid = validateAttributeString(attrStr, options); - if (isValid !== true) { - //the result from the nested function returns the position of the error within the attribute - //in order to get the 'true' error line, we need to calculate the position where the attribute begins (i - attrStr.length) and then add the position within the attribute - //this gives us the absolute index in the entire xml, which we can use to find the line at last - return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line)); - } - - //if the root level has been reached before ... - if (reachedRoot === true) { - return getErrorObject('InvalidXml', 'Multiple possible root nodes found.', getLineNumberForPosition(xmlData, i)); - } else { - tags.push(tagName); - } - tagFound = true; - } - - //skip tag text value - //It may include comments and CDATA value - for (i++; i < xmlData.length; i++) { - if (xmlData[i] === '<') { - if (xmlData[i + 1] === '!') { - //comment or CADATA - i++; - i = readCommentAndCDATA(xmlData, i); - continue; - } else if (xmlData[i+1] === '?') { - i = readPI(xmlData, ++i); - if (i.err) return i; - } else{ - break; - } - } else if (xmlData[i] === '&') { - const afterAmp = validateAmpersand(xmlData, i); - if (afterAmp == -1) - return getErrorObject('InvalidChar', "char '&' is not expected.", getLineNumberForPosition(xmlData, i)); - i = afterAmp; - } - } //end of reading tag text value - if (xmlData[i] === '<') { - i--; - } - } - } else { - if (xmlData[i] === ' ' || xmlData[i] === '\t' || xmlData[i] === '\n' || xmlData[i] === '\r') { - continue; - } - return getErrorObject('InvalidChar', "char '"+xmlData[i]+"' is not expected.", getLineNumberForPosition(xmlData, i)); - } - } - - if (!tagFound) { - return getErrorObject('InvalidXml', 'Start tag expected.', 1); - } else if (tags.length > 0) { - return getErrorObject('InvalidXml', "Invalid '"+JSON.stringify(tags, null, 4).replace(/\r?\n/g, '')+"' found.", 1); - } - - return true; -}; - -/** - * Read Processing insstructions and skip - * @param {*} xmlData - * @param {*} i - */ -function readPI(xmlData, i) { - var start = i; - for (; i < xmlData.length; i++) { - if (xmlData[i] == '?' || xmlData[i] == ' ') { - //tagname - var tagname = xmlData.substr(start, i - start); - if (i > 5 && tagname === 'xml') { - return getErrorObject('InvalidXml', 'XML declaration allowed only at the start of the document.', getLineNumberForPosition(xmlData, i)); - } else if (xmlData[i] == '?' && xmlData[i + 1] == '>') { - //check if valid attribut string - i++; - break; - } else { - continue; - } - } - } - return i; -} - -function readCommentAndCDATA(xmlData, i) { - if (xmlData.length > i + 5 && xmlData[i + 1] === '-' && xmlData[i + 2] === '-') { - //comment - for (i += 3; i < xmlData.length; i++) { - if (xmlData[i] === '-' && xmlData[i + 1] === '-' && xmlData[i + 2] === '>') { - i += 2; - break; - } - } - } else if ( - xmlData.length > i + 8 && - xmlData[i + 1] === 'D' && - xmlData[i + 2] === 'O' && - xmlData[i + 3] === 'C' && - xmlData[i + 4] === 'T' && - xmlData[i + 5] === 'Y' && - xmlData[i + 6] === 'P' && - xmlData[i + 7] === 'E' - ) { - let angleBracketsCount = 1; - for (i += 8; i < xmlData.length; i++) { - if (xmlData[i] === '<') { - angleBracketsCount++; - } else if (xmlData[i] === '>') { - angleBracketsCount--; - if (angleBracketsCount === 0) { - break; - } - } - } - } else if ( - xmlData.length > i + 9 && - xmlData[i + 1] === '[' && - xmlData[i + 2] === 'C' && - xmlData[i + 3] === 'D' && - xmlData[i + 4] === 'A' && - xmlData[i + 5] === 'T' && - xmlData[i + 6] === 'A' && - xmlData[i + 7] === '[' - ) { - for (i += 8; i < xmlData.length; i++) { - if (xmlData[i] === ']' && xmlData[i + 1] === ']' && xmlData[i + 2] === '>') { - i += 2; - break; - } - } - } - - return i; -} - -var doubleQuote = '"'; -var singleQuote = "'"; - -/** - * Keep reading xmlData until '<' is found outside the attribute value. - * @param {string} xmlData - * @param {number} i - */ -function readAttributeStr(xmlData, i) { - let attrStr = ''; - let startChar = ''; - let tagClosed = false; - for (; i < xmlData.length; i++) { - if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) { - if (startChar === '') { - startChar = xmlData[i]; - } else if (startChar !== xmlData[i]) { - //if vaue is enclosed with double quote then single quotes are allowed inside the value and vice versa - continue; - } else { - startChar = ''; - } - } else if (xmlData[i] === '>') { - if (startChar === '') { - tagClosed = true; - break; - } - } - attrStr += xmlData[i]; - } - if (startChar !== '') { - return false; - } - - return { - value: attrStr, - index: i, - tagClosed: tagClosed - }; -} - -/** - * Select all the attributes whether valid or invalid. - */ -const validAttrStrRegxp = new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?', 'g'); - -//attr, ="sd", a="amit's", a="sd"b="saf", ab cd="" - -function validateAttributeString(attrStr, options) { - //console.log("start:"+attrStr+":end"); - - //if(attrStr.trim().length === 0) return true; //empty string - - const matches = util.getAllMatches(attrStr, validAttrStrRegxp); - const attrNames = {}; - - for (let i = 0; i < matches.length; i++) { - if (matches[i][1].length === 0) { - //nospace before attribute name: a="sd"b="saf" - return getErrorObject('InvalidAttr', "Attribute '"+matches[i][2]+"' has no space in starting.", getPositionFromMatch(attrStr, matches[i][0])) - } else if (matches[i][3] === undefined && !options.allowBooleanAttributes) { - //independent attribute: ab - return getErrorObject('InvalidAttr', "boolean attribute '"+matches[i][2]+"' is not allowed.", getPositionFromMatch(attrStr, matches[i][0])); - } - /* else if(matches[i][6] === undefined){//attribute without value: ab= - return { err: { code:"InvalidAttr",msg:"attribute " + matches[i][2] + " has no value assigned."}}; - } */ - const attrName = matches[i][2]; - if (!validateAttrName(attrName)) { - return getErrorObject('InvalidAttr', "Attribute '"+attrName+"' is an invalid name.", getPositionFromMatch(attrStr, matches[i][0])); - } - if (!attrNames.hasOwnProperty(attrName)) { - //check for duplicate attribute. - attrNames[attrName] = 1; - } else { - return getErrorObject('InvalidAttr', "Attribute '"+attrName+"' is repeated.", getPositionFromMatch(attrStr, matches[i][0])); - } - } - - return true; -} - -function validateNumberAmpersand(xmlData, i) { - let re = /\d/; - if (xmlData[i] === 'x') { - i++; - re = /[\da-fA-F]/; - } - for (; i < xmlData.length; i++) { - if (xmlData[i] === ';') - return i; - if (!xmlData[i].match(re)) - break; - } - return -1; -} - -function validateAmpersand(xmlData, i) { - // https://www.w3.org/TR/xml/#dt-charref - i++; - if (xmlData[i] === ';') - return -1; - if (xmlData[i] === '#') { - i++; - return validateNumberAmpersand(xmlData, i); - } - let count = 0; - for (; i < xmlData.length; i++, count++) { - if (xmlData[i].match(/\w/) && count < 20) - continue; - if (xmlData[i] === ';') - break; - return -1; - } - return i; -} - -function getErrorObject(code, message, lineNumber) { - return { - err: { - code: code, - msg: message, - line: lineNumber, - }, - }; -} - -function validateAttrName(attrName) { - return util.isName(attrName); -} - -// const startsWithXML = /^xml/i; - -function validateTagName(tagname) { - return util.isName(tagname) /* && !tagname.match(startsWithXML) */; -} - -//this function returns the line number for the character at the given index -function getLineNumberForPosition(xmlData, index) { - var lines = xmlData.substring(0, index).split(/\r?\n/); - return lines.length; -} - -//this function returns the position of the last character of match within attrStr -function getPositionFromMatch(attrStr, match) { - return attrStr.indexOf(match) + match.length; -} - - -/***/ }), - -/***/ 49539: -/***/ ((module) => { - -"use strict"; - - -module.exports = function(tagname, parent, val) { - this.tagname = tagname; - this.parent = parent; - this.child = {}; //child tags - this.attrsMap = {}; //attributes map - this.val = val; //text only - this.addChild = function(child) { - if (Array.isArray(this.child[child.tagname])) { - //already presents - this.child[child.tagname].push(child); - } else { - this.child[child.tagname] = [child]; - } - }; -}; - - -/***/ }), - -/***/ 6712: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -const util = __nccwpck_require__(38280); -const buildOptions = (__nccwpck_require__(38280).buildOptions); -const xmlNode = __nccwpck_require__(49539); -const regx = - '<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)' - .replace(/NAME/g, util.nameRegexp); - -//const tagsRegx = new RegExp("<(\\/?[\\w:\\-\._]+)([^>]*)>(\\s*"+cdataRegx+")*([^<]+)?","g"); -//const tagsRegx = new RegExp("<(\\/?)((\\w*:)?([\\w:\\-\._]+))([^>]*)>([^<]*)("+cdataRegx+"([^<]*))*([^<]+)?","g"); - -//polyfill -if (!Number.parseInt && window.parseInt) { - Number.parseInt = window.parseInt; -} -if (!Number.parseFloat && window.parseFloat) { - Number.parseFloat = window.parseFloat; -} - -const defaultOptions = { - attributeNamePrefix: '@_', - attrNodeName: false, - textNodeName: '#text', - ignoreAttributes: true, - ignoreNameSpace: false, - allowBooleanAttributes: false, //a tag can have attributes without any value - //ignoreRootElement : false, - parseNodeValue: true, - parseAttributeValue: false, - arrayMode: false, - trimValues: true, //Trim string values of tag and attributes - cdataTagName: false, - cdataPositionChar: '\\c', - tagValueProcessor: function(a, tagName) { - return a; - }, - attrValueProcessor: function(a, attrName) { - return a; - }, - stopNodes: [] - //decodeStrict: false, -}; - -exports.defaultOptions = defaultOptions; - -const props = [ - 'attributeNamePrefix', - 'attrNodeName', - 'textNodeName', - 'ignoreAttributes', - 'ignoreNameSpace', - 'allowBooleanAttributes', - 'parseNodeValue', - 'parseAttributeValue', - 'arrayMode', - 'trimValues', - 'cdataTagName', - 'cdataPositionChar', - 'tagValueProcessor', - 'attrValueProcessor', - 'parseTrueNumberOnly', - 'stopNodes' -]; -exports.props = props; - -/** - * Trim -> valueProcessor -> parse value - * @param {string} tagName - * @param {string} val - * @param {object} options - */ -function processTagValue(tagName, val, options) { - if (val) { - if (options.trimValues) { - val = val.trim(); - } - val = options.tagValueProcessor(val, tagName); - val = parseValue(val, options.parseNodeValue, options.parseTrueNumberOnly); - } - - return val; -} - -function resolveNameSpace(tagname, options) { - if (options.ignoreNameSpace) { - const tags = tagname.split(':'); - const prefix = tagname.charAt(0) === '/' ? '/' : ''; - if (tags[0] === 'xmlns') { - return ''; - } - if (tags.length === 2) { - tagname = prefix + tags[1]; - } - } - return tagname; -} - -function parseValue(val, shouldParse, parseTrueNumberOnly) { - if (shouldParse && typeof val === 'string') { - let parsed; - if (val.trim() === '' || isNaN(val)) { - parsed = val === 'true' ? true : val === 'false' ? false : val; - } else { - if (val.indexOf('0x') !== -1) { - //support hexa decimal - parsed = Number.parseInt(val, 16); - } else if (val.indexOf('.') !== -1) { - parsed = Number.parseFloat(val); - val = val.replace(/\.?0+$/, ""); - } else { - parsed = Number.parseInt(val, 10); - } - if (parseTrueNumberOnly) { - parsed = String(parsed) === val ? parsed : val; - } - } - return parsed; - } else { - if (util.isExist(val)) { - return val; - } else { - return ''; - } - } -} - -//TODO: change regex to capture NS -//const attrsRegx = new RegExp("([\\w\\-\\.\\:]+)\\s*=\\s*(['\"])((.|\n)*?)\\2","gm"); -const attrsRegx = new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])(.*?)\\3)?', 'g'); - -function buildAttributesMap(attrStr, options) { - if (!options.ignoreAttributes && typeof attrStr === 'string') { - attrStr = attrStr.replace(/\r?\n/g, ' '); - //attrStr = attrStr || attrStr.trim(); - - const matches = util.getAllMatches(attrStr, attrsRegx); - const len = matches.length; //don't make it inline - const attrs = {}; - for (let i = 0; i < len; i++) { - const attrName = resolveNameSpace(matches[i][1], options); - if (attrName.length) { - if (matches[i][4] !== undefined) { - if (options.trimValues) { - matches[i][4] = matches[i][4].trim(); - } - matches[i][4] = options.attrValueProcessor(matches[i][4], attrName); - attrs[options.attributeNamePrefix + attrName] = parseValue( - matches[i][4], - options.parseAttributeValue, - options.parseTrueNumberOnly - ); - } else if (options.allowBooleanAttributes) { - attrs[options.attributeNamePrefix + attrName] = true; - } - } - } - if (!Object.keys(attrs).length) { - return; - } - if (options.attrNodeName) { - const attrCollection = {}; - attrCollection[options.attrNodeName] = attrs; - return attrCollection; - } - return attrs; - } -} - -const getTraversalObj = function(xmlData, options) { - xmlData = xmlData.replace(/\r\n?/g, "\n"); - options = buildOptions(options, defaultOptions, props); - const xmlObj = new xmlNode('!xml'); - let currentNode = xmlObj; - let textData = ""; - -//function match(xmlData){ - for(let i=0; i< xmlData.length; i++){ - const ch = xmlData[i]; - if(ch === '<'){ - if( xmlData[i+1] === '/') {//Closing Tag - const closeIndex = findClosingIndex(xmlData, ">", i, "Closing Tag is not closed.") - let tagName = xmlData.substring(i+2,closeIndex).trim(); - - if(options.ignoreNameSpace){ - const colonIndex = tagName.indexOf(":"); - if(colonIndex !== -1){ - tagName = tagName.substr(colonIndex+1); - } - } - - /* if (currentNode.parent) { - currentNode.parent.val = util.getValue(currentNode.parent.val) + '' + processTagValue2(tagName, textData , options); - } */ - if(currentNode){ - if(currentNode.val){ - currentNode.val = util.getValue(currentNode.val) + '' + processTagValue(tagName, textData , options); - }else{ - currentNode.val = processTagValue(tagName, textData , options); - } - } - - if (options.stopNodes.length && options.stopNodes.includes(currentNode.tagname)) { - currentNode.child = [] - if (currentNode.attrsMap == undefined) { currentNode.attrsMap = {}} - currentNode.val = xmlData.substr(currentNode.startIndex + 1, i - currentNode.startIndex - 1) - } - currentNode = currentNode.parent; - textData = ""; - i = closeIndex; - } else if( xmlData[i+1] === '?') { - i = findClosingIndex(xmlData, "?>", i, "Pi Tag is not closed.") - } else if(xmlData.substr(i + 1, 3) === '!--') { - i = findClosingIndex(xmlData, "-->", i, "Comment is not closed.") - } else if( xmlData.substr(i + 1, 2) === '!D') { - const closeIndex = findClosingIndex(xmlData, ">", i, "DOCTYPE is not closed.") - const tagExp = xmlData.substring(i, closeIndex); - if(tagExp.indexOf("[") >= 0){ - i = xmlData.indexOf("]>", i) + 1; - }else{ - i = closeIndex; - } - }else if(xmlData.substr(i + 1, 2) === '![') { - const closeIndex = findClosingIndex(xmlData, "]]>", i, "CDATA is not closed.") - 2 - const tagExp = xmlData.substring(i + 9,closeIndex); - - //considerations - //1. CDATA will always have parent node - //2. A tag with CDATA is not a leaf node so it's value would be string type. - if(textData){ - currentNode.val = util.getValue(currentNode.val) + '' + processTagValue(currentNode.tagname, textData , options); - textData = ""; - } - - if (options.cdataTagName) { - //add cdata node - const childNode = new xmlNode(options.cdataTagName, currentNode, tagExp); - currentNode.addChild(childNode); - //for backtracking - currentNode.val = util.getValue(currentNode.val) + options.cdataPositionChar; - //add rest value to parent node - if (tagExp) { - childNode.val = tagExp; - } - } else { - currentNode.val = (currentNode.val || '') + (tagExp || ''); - } - - i = closeIndex + 2; - }else {//Opening tag - const result = closingIndexForOpeningTag(xmlData, i+1) - let tagExp = result.data; - const closeIndex = result.index; - const separatorIndex = tagExp.indexOf(" "); - let tagName = tagExp; - let shouldBuildAttributesMap = true; - if(separatorIndex !== -1){ - tagName = tagExp.substr(0, separatorIndex).replace(/\s\s*$/, ''); - tagExp = tagExp.substr(separatorIndex + 1); - } - - if(options.ignoreNameSpace){ - const colonIndex = tagName.indexOf(":"); - if(colonIndex !== -1){ - tagName = tagName.substr(colonIndex+1); - shouldBuildAttributesMap = tagName !== result.data.substr(colonIndex + 1); - } - } - - //save text to parent node - if (currentNode && textData) { - if(currentNode.tagname !== '!xml'){ - currentNode.val = util.getValue(currentNode.val) + '' + processTagValue( currentNode.tagname, textData, options); - } - } - - if(tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1){//selfClosing tag - - if(tagName[tagName.length - 1] === "/"){ //remove trailing '/' - tagName = tagName.substr(0, tagName.length - 1); - tagExp = tagName; - }else{ - tagExp = tagExp.substr(0, tagExp.length - 1); - } - - const childNode = new xmlNode(tagName, currentNode, ''); - if(tagName !== tagExp){ - childNode.attrsMap = buildAttributesMap(tagExp, options); - } - currentNode.addChild(childNode); - }else{//opening tag - - const childNode = new xmlNode( tagName, currentNode ); - if (options.stopNodes.length && options.stopNodes.includes(childNode.tagname)) { - childNode.startIndex=closeIndex; - } - if(tagName !== tagExp && shouldBuildAttributesMap){ - childNode.attrsMap = buildAttributesMap(tagExp, options); - } - currentNode.addChild(childNode); - currentNode = childNode; - } - textData = ""; - i = closeIndex; - } - }else{ - textData += xmlData[i]; - } - } - return xmlObj; -} - -function closingIndexForOpeningTag(data, i){ - let attrBoundary; - let tagExp = ""; - for (let index = i; index < data.length; index++) { - let ch = data[index]; - if (attrBoundary) { - if (ch === attrBoundary) attrBoundary = "";//reset - } else if (ch === '"' || ch === "'") { - attrBoundary = ch; - } else if (ch === '>') { - return { - data: tagExp, - index: index - } - } else if (ch === '\t') { - ch = " " - } - tagExp += ch; - } -} - -function findClosingIndex(xmlData, str, i, errMsg){ - const closingIndex = xmlData.indexOf(str, i); - if(closingIndex === -1){ - throw new Error(errMsg) - }else{ - return closingIndex + str.length - 1; - } -} - -exports.getTraversalObj = getTraversalObj; - - -/***/ }), - -/***/ 4351: -/***/ ((module) => { - -/****************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global global, define, System, Reflect, Promise */ -var __extends; -var __assign; -var __rest; -var __decorate; -var __param; -var __metadata; -var __awaiter; -var __generator; -var __exportStar; -var __values; -var __read; -var __spread; -var __spreadArrays; -var __spreadArray; -var __await; -var __asyncGenerator; -var __asyncDelegator; -var __asyncValues; -var __makeTemplateObject; -var __importStar; -var __importDefault; -var __classPrivateFieldGet; -var __classPrivateFieldSet; -var __classPrivateFieldIn; -var __createBinding; -(function (factory) { - var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; - if (typeof define === "function" && define.amd) { - define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); - } - else if ( true && typeof module.exports === "object") { - factory(createExporter(root, createExporter(module.exports))); - } - else { - factory(createExporter(root)); - } - function createExporter(exports, previous) { - if (exports !== root) { - if (typeof Object.create === "function") { - Object.defineProperty(exports, "__esModule", { value: true }); - } - else { - exports.__esModule = true; - } - } - return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; - } -}) -(function (exporter) { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - - __extends = function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - - __assign = Object.assign || function (t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - - __rest = function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - }; - - __decorate = function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - - __param = function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - - __metadata = function (metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); - }; - - __awaiter = function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - - __generator = function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - }; - - __exportStar = function(m, o) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); - }; - - __createBinding = Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); - }) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }); - - __values = function (o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - }; - - __read = function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - }; - - /** @deprecated */ - __spread = function () { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; - }; - - /** @deprecated */ - __spreadArrays = function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; - }; - - __spreadArray = function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); - }; - - __await = function (v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - }; - - __asyncGenerator = function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - }; - - __asyncDelegator = function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } - }; - - __asyncValues = function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - }; - - __makeTemplateObject = function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - }; - - var __setModuleDefault = Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - }) : function(o, v) { - o["default"] = v; - }; - - __importStar = function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; - }; - - __importDefault = function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - }; - - __classPrivateFieldGet = function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); - }; - - __classPrivateFieldSet = function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; - }; - - __classPrivateFieldIn = function (state, receiver) { - if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); - return typeof state === "function" ? receiver === state : state.has(receiver); - }; - - exporter("__extends", __extends); - exporter("__assign", __assign); - exporter("__rest", __rest); - exporter("__decorate", __decorate); - exporter("__param", __param); - exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter); - exporter("__generator", __generator); - exporter("__exportStar", __exportStar); - exporter("__createBinding", __createBinding); - exporter("__values", __values); - exporter("__read", __read); - exporter("__spread", __spread); - exporter("__spreadArrays", __spreadArrays); - exporter("__spreadArray", __spreadArray); - exporter("__await", __await); - exporter("__asyncGenerator", __asyncGenerator); - exporter("__asyncDelegator", __asyncDelegator); - exporter("__asyncValues", __asyncValues); - exporter("__makeTemplateObject", __makeTemplateObject); - exporter("__importStar", __importStar); - exporter("__importDefault", __importDefault); - exporter("__classPrivateFieldGet", __classPrivateFieldGet); - exporter("__classPrivateFieldSet", __classPrivateFieldSet); - exporter("__classPrivateFieldIn", __classPrivateFieldIn); -}); - - -/***/ }), - -/***/ 74294: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -module.exports = __nccwpck_require__(54219); - - -/***/ }), - -/***/ 54219: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -var net = __nccwpck_require__(41808); -var tls = __nccwpck_require__(24404); -var http = __nccwpck_require__(13685); -var https = __nccwpck_require__(95687); -var events = __nccwpck_require__(82361); -var assert = __nccwpck_require__(39491); -var util = __nccwpck_require__(73837); - - -exports.httpOverHttp = httpOverHttp; -exports.httpsOverHttp = httpsOverHttp; -exports.httpOverHttps = httpOverHttps; -exports.httpsOverHttps = httpsOverHttps; - - -function httpOverHttp(options) { - var agent = new TunnelingAgent(options); - agent.request = http.request; - return agent; -} - -function httpsOverHttp(options) { - var agent = new TunnelingAgent(options); - agent.request = http.request; - agent.createSocket = createSecureSocket; - agent.defaultPort = 443; - return agent; -} - -function httpOverHttps(options) { - var agent = new TunnelingAgent(options); - agent.request = https.request; - return agent; -} - -function httpsOverHttps(options) { - var agent = new TunnelingAgent(options); - agent.request = https.request; - agent.createSocket = createSecureSocket; - agent.defaultPort = 443; - return agent; -} - - -function TunnelingAgent(options) { - var self = this; - self.options = options || {}; - self.proxyOptions = self.options.proxy || {}; - self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets; - self.requests = []; - self.sockets = []; - - self.on('free', function onFree(socket, host, port, localAddress) { - var options = toOptions(host, port, localAddress); - for (var i = 0, len = self.requests.length; i < len; ++i) { - var pending = self.requests[i]; - if (pending.host === options.host && pending.port === options.port) { - // Detect the request to connect same origin server, - // reuse the connection. - self.requests.splice(i, 1); - pending.request.onSocket(socket); - return; - } - } - socket.destroy(); - self.removeSocket(socket); - }); -} -util.inherits(TunnelingAgent, events.EventEmitter); - -TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) { - var self = this; - var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress)); - - if (self.sockets.length >= this.maxSockets) { - // We are over limit so we'll add it to the queue. - self.requests.push(options); - return; - } - - // If we are under maxSockets create a new one. - self.createSocket(options, function(socket) { - socket.on('free', onFree); - socket.on('close', onCloseOrRemove); - socket.on('agentRemove', onCloseOrRemove); - req.onSocket(socket); - - function onFree() { - self.emit('free', socket, options); - } - - function onCloseOrRemove(err) { - self.removeSocket(socket); - socket.removeListener('free', onFree); - socket.removeListener('close', onCloseOrRemove); - socket.removeListener('agentRemove', onCloseOrRemove); - } - }); -}; - -TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { - var self = this; - var placeholder = {}; - self.sockets.push(placeholder); - - var connectOptions = mergeOptions({}, self.proxyOptions, { - method: 'CONNECT', - path: options.host + ':' + options.port, - agent: false, - headers: { - host: options.host + ':' + options.port - } - }); - if (options.localAddress) { - connectOptions.localAddress = options.localAddress; - } - if (connectOptions.proxyAuth) { - connectOptions.headers = connectOptions.headers || {}; - connectOptions.headers['Proxy-Authorization'] = 'Basic ' + - new Buffer(connectOptions.proxyAuth).toString('base64'); - } - - debug('making CONNECT request'); - var connectReq = self.request(connectOptions); - connectReq.useChunkedEncodingByDefault = false; // for v0.6 - connectReq.once('response', onResponse); // for v0.6 - connectReq.once('upgrade', onUpgrade); // for v0.6 - connectReq.once('connect', onConnect); // for v0.7 or later - connectReq.once('error', onError); - connectReq.end(); - - function onResponse(res) { - // Very hacky. This is necessary to avoid http-parser leaks. - res.upgrade = true; - } - - function onUpgrade(res, socket, head) { - // Hacky. - process.nextTick(function() { - onConnect(res, socket, head); - }); - } - - function onConnect(res, socket, head) { - connectReq.removeAllListeners(); - socket.removeAllListeners(); - - if (res.statusCode !== 200) { - debug('tunneling socket could not be established, statusCode=%d', - res.statusCode); - socket.destroy(); - var error = new Error('tunneling socket could not be established, ' + - 'statusCode=' + res.statusCode); - error.code = 'ECONNRESET'; - options.request.emit('error', error); - self.removeSocket(placeholder); - return; - } - if (head.length > 0) { - debug('got illegal response body from proxy'); - socket.destroy(); - var error = new Error('got illegal response body from proxy'); - error.code = 'ECONNRESET'; - options.request.emit('error', error); - self.removeSocket(placeholder); - return; - } - debug('tunneling connection has established'); - self.sockets[self.sockets.indexOf(placeholder)] = socket; - return cb(socket); - } - - function onError(cause) { - connectReq.removeAllListeners(); - - debug('tunneling socket could not be established, cause=%s\n', - cause.message, cause.stack); - var error = new Error('tunneling socket could not be established, ' + - 'cause=' + cause.message); - error.code = 'ECONNRESET'; - options.request.emit('error', error); - self.removeSocket(placeholder); - } -}; - -TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { - var pos = this.sockets.indexOf(socket) - if (pos === -1) { - return; - } - this.sockets.splice(pos, 1); - - var pending = this.requests.shift(); - if (pending) { - // If we have pending requests and a socket gets closed a new one - // needs to be created to take over in the pool for the one that closed. - this.createSocket(pending, function(socket) { - pending.request.onSocket(socket); - }); - } -}; - -function createSecureSocket(options, cb) { - var self = this; - TunnelingAgent.prototype.createSocket.call(self, options, function(socket) { - var hostHeader = options.request.getHeader('host'); - var tlsOptions = mergeOptions({}, self.options, { - socket: socket, - servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host - }); - - // 0 is dummy port for v0.6 - var secureSocket = tls.connect(0, tlsOptions); - self.sockets[self.sockets.indexOf(socket)] = secureSocket; - cb(secureSocket); - }); -} - - -function toOptions(host, port, localAddress) { - if (typeof host === 'string') { // since v0.10 - return { - host: host, - port: port, - localAddress: localAddress - }; - } - return host; // for v0.11 or later -} - -function mergeOptions(target) { - for (var i = 1, len = arguments.length; i < len; ++i) { - var overrides = arguments[i]; - if (typeof overrides === 'object') { - var keys = Object.keys(overrides); - for (var j = 0, keyLen = keys.length; j < keyLen; ++j) { - var k = keys[j]; - if (overrides[k] !== undefined) { - target[k] = overrides[k]; - } - } - } - } - return target; -} - - -var debug; -if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { - debug = function() { - var args = Array.prototype.slice.call(arguments); - if (typeof args[0] === 'string') { - args[0] = 'TUNNEL: ' + args[0]; - } else { - args.unshift('TUNNEL:'); - } - console.error.apply(console, args); - } -} else { - debug = function() {}; -} -exports.debug = debug; // for test - - -/***/ }), - -/***/ 75840: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "v1", ({ - enumerable: true, - get: function () { - return _v.default; - } -})); -Object.defineProperty(exports, "v3", ({ - enumerable: true, - get: function () { - return _v2.default; - } -})); -Object.defineProperty(exports, "v4", ({ - enumerable: true, - get: function () { - return _v3.default; - } -})); -Object.defineProperty(exports, "v5", ({ - enumerable: true, - get: function () { - return _v4.default; - } -})); -Object.defineProperty(exports, "NIL", ({ - enumerable: true, - get: function () { - return _nil.default; - } -})); -Object.defineProperty(exports, "version", ({ - enumerable: true, - get: function () { - return _version.default; - } -})); -Object.defineProperty(exports, "validate", ({ - enumerable: true, - get: function () { - return _validate.default; - } -})); -Object.defineProperty(exports, "stringify", ({ - enumerable: true, - get: function () { - return _stringify.default; - } -})); -Object.defineProperty(exports, "parse", ({ - enumerable: true, - get: function () { - return _parse.default; - } -})); - -var _v = _interopRequireDefault(__nccwpck_require__(78628)); - -var _v2 = _interopRequireDefault(__nccwpck_require__(86409)); - -var _v3 = _interopRequireDefault(__nccwpck_require__(85122)); - -var _v4 = _interopRequireDefault(__nccwpck_require__(79120)); - -var _nil = _interopRequireDefault(__nccwpck_require__(25332)); - -var _version = _interopRequireDefault(__nccwpck_require__(81595)); - -var _validate = _interopRequireDefault(__nccwpck_require__(66900)); - -var _stringify = _interopRequireDefault(__nccwpck_require__(18950)); - -var _parse = _interopRequireDefault(__nccwpck_require__(62746)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/***/ }), - -/***/ 4569: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - - return _crypto.default.createHash('md5').update(bytes).digest(); -} - -var _default = md5; -exports["default"] = _default; - -/***/ }), - -/***/ 25332: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _default = '00000000-0000-0000-0000-000000000000'; -exports["default"] = _default; - -/***/ }), - -/***/ 62746: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _validate = _interopRequireDefault(__nccwpck_require__(66900)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function parse(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - - let v; - const arr = new Uint8Array(16); // Parse ########-....-....-....-............ - - arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; - arr[1] = v >>> 16 & 0xff; - arr[2] = v >>> 8 & 0xff; - arr[3] = v & 0xff; // Parse ........-####-....-....-............ - - arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr[5] = v & 0xff; // Parse ........-....-####-....-............ - - arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v & 0xff; // Parse ........-....-....-####-............ - - arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; - arr[9] = v & 0xff; // Parse ........-....-....-....-############ - // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) - - arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; - arr[11] = v / 0x100000000 & 0xff; - arr[12] = v >>> 24 & 0xff; - arr[13] = v >>> 16 & 0xff; - arr[14] = v >>> 8 & 0xff; - arr[15] = v & 0xff; - return arr; -} - -var _default = parse; -exports["default"] = _default; - -/***/ }), - -/***/ 40814: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; -exports["default"] = _default; - -/***/ }), - -/***/ 50807: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = rng; - -var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate - -let poolPtr = rnds8Pool.length; - -function rng() { - if (poolPtr > rnds8Pool.length - 16) { - _crypto.default.randomFillSync(rnds8Pool); - - poolPtr = 0; - } - - return rnds8Pool.slice(poolPtr, poolPtr += 16); -} - -/***/ }), - -/***/ 85274: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - - return _crypto.default.createHash('sha1').update(bytes).digest(); -} - -var _default = sha1; -exports["default"] = _default; - -/***/ }), - -/***/ 18950: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _validate = _interopRequireDefault(__nccwpck_require__(66900)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - */ -const byteToHex = []; - -for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).substr(1)); -} - -function stringify(arr, offset = 0) { - // Note: Be careful editing this code! It's been tuned for performance - // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 - const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one - // of the following: - // - One or more input array values don't map to a hex octet (leading to - // "undefined" in the uuid) - // - Invalid input values for the RFC `version` or `variant` fields - - if (!(0, _validate.default)(uuid)) { - throw TypeError('Stringified UUID is invalid'); - } - - return uuid; -} - -var _default = stringify; -exports["default"] = _default; - -/***/ }), - -/***/ 78628: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _rng = _interopRequireDefault(__nccwpck_require__(50807)); - -var _stringify = _interopRequireDefault(__nccwpck_require__(18950)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -// **`v1()` - Generate time-based UUID** -// -// Inspired by https://github.com/LiosK/UUID.js -// and http://docs.python.org/library/uuid.html -let _nodeId; - -let _clockseq; // Previous uuid creation time - - -let _lastMSecs = 0; -let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details - -function v1(options, buf, offset) { - let i = buf && offset || 0; - const b = buf || new Array(16); - options = options || {}; - let node = options.node || _nodeId; - let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not - // specified. We do this lazily to minimize issues related to insufficient - // system entropy. See #189 - - if (node == null || clockseq == null) { - const seedBytes = options.random || (options.rng || _rng.default)(); - - if (node == null) { - // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) - node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; - } - - if (clockseq == null) { - // Per 4.2.2, randomize (14 bit) clockseq - clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; - } - } // UUID timestamps are 100 nano-second units since the Gregorian epoch, - // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so - // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' - // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. - - - let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock - // cycle to simulate higher resolution clock - - let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) - - const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression - - if (dt < 0 && options.clockseq === undefined) { - clockseq = clockseq + 1 & 0x3fff; - } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new - // time interval - - - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { - nsecs = 0; - } // Per 4.2.1.2 Throw error if too many uuids are requested - - - if (nsecs >= 10000) { - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - } - - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch - - msecs += 12219292800000; // `time_low` - - const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - b[i++] = tl >>> 24 & 0xff; - b[i++] = tl >>> 16 & 0xff; - b[i++] = tl >>> 8 & 0xff; - b[i++] = tl & 0xff; // `time_mid` - - const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; - b[i++] = tmh >>> 8 & 0xff; - b[i++] = tmh & 0xff; // `time_high_and_version` - - b[i++] = tmh >>> 24 & 0xf | 0x10; // include version - - b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) - - b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` - - b[i++] = clockseq & 0xff; // `node` - - for (let n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } - - return buf || (0, _stringify.default)(b); -} - -var _default = v1; -exports["default"] = _default; - -/***/ }), - -/***/ 86409: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _v = _interopRequireDefault(__nccwpck_require__(65998)); - -var _md = _interopRequireDefault(__nccwpck_require__(4569)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -const v3 = (0, _v.default)('v3', 0x30, _md.default); -var _default = v3; -exports["default"] = _default; - -/***/ }), - -/***/ 65998: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = _default; -exports.URL = exports.DNS = void 0; - -var _stringify = _interopRequireDefault(__nccwpck_require__(18950)); - -var _parse = _interopRequireDefault(__nccwpck_require__(62746)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); // UTF8 escape - - const bytes = []; - - for (let i = 0; i < str.length; ++i) { - bytes.push(str.charCodeAt(i)); - } - - return bytes; -} - -const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -exports.DNS = DNS; -const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -exports.URL = URL; - -function _default(name, version, hashfunc) { - function generateUUID(value, namespace, buf, offset) { - if (typeof value === 'string') { - value = stringToBytes(value); - } - - if (typeof namespace === 'string') { - namespace = (0, _parse.default)(namespace); - } - - if (namespace.length !== 16) { - throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); - } // Compute hash of namespace and value, Per 4.3 - // Future: Use spread syntax when supported on all platforms, e.g. `bytes = - // hashfunc([...namespace, ... value])` - - - let bytes = new Uint8Array(16 + value.length); - bytes.set(namespace); - bytes.set(value, namespace.length); - bytes = hashfunc(bytes); - bytes[6] = bytes[6] & 0x0f | version; - bytes[8] = bytes[8] & 0x3f | 0x80; - - if (buf) { - offset = offset || 0; - - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - - return buf; - } - - return (0, _stringify.default)(bytes); - } // Function#name is not settable on some platforms (#270) - - - try { - generateUUID.name = name; // eslint-disable-next-line no-empty - } catch (err) {} // For CommonJS default export support - - - generateUUID.DNS = DNS; - generateUUID.URL = URL; - return generateUUID; -} - -/***/ }), - -/***/ 85122: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _rng = _interopRequireDefault(__nccwpck_require__(50807)); - -var _stringify = _interopRequireDefault(__nccwpck_require__(18950)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function v4(options, buf, offset) { - options = options || {}; - - const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` - - - rnds[6] = rnds[6] & 0x0f | 0x40; - rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided - - if (buf) { - offset = offset || 0; - - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - - return buf; - } - - return (0, _stringify.default)(rnds); -} - -var _default = v4; -exports["default"] = _default; - -/***/ }), - -/***/ 79120: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _v = _interopRequireDefault(__nccwpck_require__(65998)); - -var _sha = _interopRequireDefault(__nccwpck_require__(85274)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -const v5 = (0, _v.default)('v5', 0x50, _sha.default); -var _default = v5; -exports["default"] = _default; - -/***/ }), - -/***/ 66900: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _regex = _interopRequireDefault(__nccwpck_require__(40814)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function validate(uuid) { - return typeof uuid === 'string' && _regex.default.test(uuid); -} - -var _default = validate; -exports["default"] = _default; - -/***/ }), - -/***/ 81595: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -var _validate = _interopRequireDefault(__nccwpck_require__(66900)); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function version(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - - return parseInt(uuid.substr(14, 1), 16); -} - -var _default = version; -exports["default"] = _default; - -/***/ }), - -/***/ 87578: -/***/ ((module) => { - -module.exports = eval("require")("aws-crt"); - - -/***/ }), - -/***/ 39491: -/***/ ((module) => { - -"use strict"; -module.exports = require("assert"); - -/***/ }), - -/***/ 14300: -/***/ ((module) => { - -"use strict"; -module.exports = require("buffer"); - -/***/ }), - -/***/ 32081: -/***/ ((module) => { - -"use strict"; -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -"use strict"; -module.exports = require("crypto"); - -/***/ }), - -/***/ 82361: -/***/ ((module) => { - -"use strict"; -module.exports = require("events"); - -/***/ }), - -/***/ 57147: -/***/ ((module) => { - -"use strict"; -module.exports = require("fs"); - -/***/ }), - -/***/ 13685: -/***/ ((module) => { - -"use strict"; -module.exports = require("http"); - -/***/ }), - -/***/ 85158: -/***/ ((module) => { - -"use strict"; -module.exports = require("http2"); - -/***/ }), - -/***/ 95687: -/***/ ((module) => { - -"use strict"; -module.exports = require("https"); - -/***/ }), - -/***/ 41808: -/***/ ((module) => { - -"use strict"; -module.exports = require("net"); - -/***/ }), - -/***/ 22037: -/***/ ((module) => { - -"use strict"; -module.exports = require("os"); - -/***/ }), - -/***/ 71017: -/***/ ((module) => { - -"use strict"; -module.exports = require("path"); - -/***/ }), - -/***/ 77282: -/***/ ((module) => { - -"use strict"; -module.exports = require("process"); - -/***/ }), - -/***/ 12781: -/***/ ((module) => { - -"use strict"; -module.exports = require("stream"); - -/***/ }), - -/***/ 24404: -/***/ ((module) => { - -"use strict"; -module.exports = require("tls"); - -/***/ }), - -/***/ 57310: -/***/ ((module) => { - -"use strict"; -module.exports = require("url"); - -/***/ }), - -/***/ 73837: -/***/ ((module) => { - -"use strict"; -module.exports = require("util"); - -/***/ }), - -/***/ 50466: -/***/ ((module) => { - -"use strict"; -module.exports = JSON.parse('{"name":"@aws-sdk/client-ssm","description":"AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native","version":"3.154.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.154.0","@aws-sdk/config-resolver":"3.130.0","@aws-sdk/credential-provider-node":"3.154.0","@aws-sdk/fetch-http-handler":"3.131.0","@aws-sdk/hash-node":"3.127.0","@aws-sdk/invalid-dependency":"3.127.0","@aws-sdk/middleware-content-length":"3.127.0","@aws-sdk/middleware-host-header":"3.127.0","@aws-sdk/middleware-logger":"3.127.0","@aws-sdk/middleware-recursion-detection":"3.127.0","@aws-sdk/middleware-retry":"3.127.0","@aws-sdk/middleware-serde":"3.127.0","@aws-sdk/middleware-signing":"3.130.0","@aws-sdk/middleware-stack":"3.127.0","@aws-sdk/middleware-user-agent":"3.127.0","@aws-sdk/node-config-provider":"3.127.0","@aws-sdk/node-http-handler":"3.127.0","@aws-sdk/protocol-http":"3.127.0","@aws-sdk/smithy-client":"3.142.0","@aws-sdk/types":"3.127.0","@aws-sdk/url-parser":"3.127.0","@aws-sdk/util-base64-browser":"3.109.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.154.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.142.0","@aws-sdk/util-defaults-mode-node":"3.142.0","@aws-sdk/util-user-agent-browser":"3.127.0","@aws-sdk/util-user-agent-node":"3.127.0","@aws-sdk/util-utf8-browser":"3.109.0","@aws-sdk/util-utf8-node":"3.109.0","@aws-sdk/util-waiter":"3.127.0","tslib":"^2.3.1","uuid":"^8.3.2"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","@types/uuid":"^8.3.0","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.6.2"},"overrides":{"typedoc":{"typescript":"~4.6.2"}},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ssm","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ssm"}}'); - -/***/ }), - -/***/ 91092: -/***/ ((module) => { - -"use strict"; -module.exports = JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.154.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.130.0","@aws-sdk/fetch-http-handler":"3.131.0","@aws-sdk/hash-node":"3.127.0","@aws-sdk/invalid-dependency":"3.127.0","@aws-sdk/middleware-content-length":"3.127.0","@aws-sdk/middleware-host-header":"3.127.0","@aws-sdk/middleware-logger":"3.127.0","@aws-sdk/middleware-recursion-detection":"3.127.0","@aws-sdk/middleware-retry":"3.127.0","@aws-sdk/middleware-serde":"3.127.0","@aws-sdk/middleware-stack":"3.127.0","@aws-sdk/middleware-user-agent":"3.127.0","@aws-sdk/node-config-provider":"3.127.0","@aws-sdk/node-http-handler":"3.127.0","@aws-sdk/protocol-http":"3.127.0","@aws-sdk/smithy-client":"3.142.0","@aws-sdk/types":"3.127.0","@aws-sdk/url-parser":"3.127.0","@aws-sdk/util-base64-browser":"3.109.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.154.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.142.0","@aws-sdk/util-defaults-mode-node":"3.142.0","@aws-sdk/util-user-agent-browser":"3.127.0","@aws-sdk/util-user-agent-node":"3.127.0","@aws-sdk/util-utf8-browser":"3.109.0","@aws-sdk/util-utf8-node":"3.109.0","tslib":"^2.3.1"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.6.2"},"overrides":{"typedoc":{"typescript":"~4.6.2"}},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}'); - -/***/ }), - -/***/ 7947: -/***/ ((module) => { - -"use strict"; -module.exports = JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.154.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.130.0","@aws-sdk/credential-provider-node":"3.154.0","@aws-sdk/fetch-http-handler":"3.131.0","@aws-sdk/hash-node":"3.127.0","@aws-sdk/invalid-dependency":"3.127.0","@aws-sdk/middleware-content-length":"3.127.0","@aws-sdk/middleware-host-header":"3.127.0","@aws-sdk/middleware-logger":"3.127.0","@aws-sdk/middleware-recursion-detection":"3.127.0","@aws-sdk/middleware-retry":"3.127.0","@aws-sdk/middleware-sdk-sts":"3.130.0","@aws-sdk/middleware-serde":"3.127.0","@aws-sdk/middleware-signing":"3.130.0","@aws-sdk/middleware-stack":"3.127.0","@aws-sdk/middleware-user-agent":"3.127.0","@aws-sdk/node-config-provider":"3.127.0","@aws-sdk/node-http-handler":"3.127.0","@aws-sdk/protocol-http":"3.127.0","@aws-sdk/smithy-client":"3.142.0","@aws-sdk/types":"3.127.0","@aws-sdk/url-parser":"3.127.0","@aws-sdk/util-base64-browser":"3.109.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.154.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.142.0","@aws-sdk/util-defaults-mode-node":"3.142.0","@aws-sdk/util-user-agent-browser":"3.127.0","@aws-sdk/util-user-agent-node":"3.127.0","@aws-sdk/util-utf8-browser":"3.109.0","@aws-sdk/util-utf8-node":"3.109.0","entities":"2.2.0","fast-xml-parser":"3.19.0","tslib":"^2.3.1"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.6.2"},"overrides":{"typedoc":{"typescript":"~4.6.2"}},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}'); - -/***/ }), - -/***/ 33600: -/***/ ((module) => { - -"use strict"; -module.exports = JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}'); - -/***/ }), - -/***/ 59323: -/***/ ((module) => { - -"use strict"; -module.exports = JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}'); - -/***/ }), - -/***/ 29591: -/***/ ((module) => { - -"use strict"; -module.exports = JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}'); - -/***/ }), - -/***/ 2586: -/***/ ((module) => { - -"use strict"; -module.exports = JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}'); - -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ (() => { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __nccwpck_require__.n = (module) => { -/******/ var getter = module && module.__esModule ? -/******/ () => (module['default']) : -/******/ () => (module); -/******/ __nccwpck_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __nccwpck_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __nccwpck_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be in strict mode. -(() => { -"use strict"; -__nccwpck_require__.r(__webpack_exports__); -/* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(42186); -/* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(_actions_core__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _aws_sdk_client_ssm__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(20341); -/* harmony import */ var _aws_sdk_client_ssm__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nccwpck_require__.n(_aws_sdk_client_ssm__WEBPACK_IMPORTED_MODULE_1__); -var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __generator = (undefined && undefined.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; - - -function get_document_name(os) { - var documentName; - if (os === 'linux') { - documentName = "AWS-RunShellScript"; - } - else if (os === 'windows') { - documentName = "AWS-RunPowerShellScript"; - } - else { - throw Error("".concat(os, " is not supported. Only linux or windows OS is supported.")); - } - return documentName; -} -function get_parameters(commands, working_directory) { - var parameters = { commands: commands }; - if (working_directory) { - parameters['workingDirectory'] = [working_directory]; - } - return parameters; -} -function run_ssm_send_command() { - var _a; - return __awaiter(this, void 0, void 0, function () { - var AWS_REGION, INSTANCE_IDS, COMMANDS, OS, WORKING_DIRECTORY, COMMENT, client, DOCUMENT_NAME, PARAMETERS, command, response, error_1; - return __generator(this, function (_b) { - switch (_b.label) { - case 0: - AWS_REGION = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput('aws-region'); - INSTANCE_IDS = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getMultilineInput('instance-ids'); - COMMANDS = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getMultilineInput('commands'); - OS = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput('os'); - WORKING_DIRECTORY = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput('working-directory'); - COMMENT = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput('comment'); - client = new _aws_sdk_client_ssm__WEBPACK_IMPORTED_MODULE_1__.SSMClient({ - region: AWS_REGION, - }); - DOCUMENT_NAME = get_document_name(OS); - PARAMETERS = get_parameters(COMMANDS, WORKING_DIRECTORY); - console.log("Document: ".concat(DOCUMENT_NAME)); - console.log("Parameters: ".concat(JSON.stringify(PARAMETERS))); - command = new _aws_sdk_client_ssm__WEBPACK_IMPORTED_MODULE_1__.SendCommandCommand({ - InstanceIds: INSTANCE_IDS, - DocumentName: DOCUMENT_NAME, - Comment: COMMENT, - Parameters: PARAMETERS, - }); - _b.label = 1; - case 1: - _b.trys.push([1, 3, , 4]); - return [4 /*yield*/, client.send(command)]; - case 2: - response = _b.sent(); - _actions_core__WEBPACK_IMPORTED_MODULE_0__.setOutput("command-id", (_a = response.Command) === null || _a === void 0 ? void 0 : _a.CommandId); - return [3 /*break*/, 4]; - case 3: - error_1 = _b.sent(); - console.log(error_1); - _actions_core__WEBPACK_IMPORTED_MODULE_0__.error(String(error_1)); - return [3 /*break*/, 4]; - case 4: return [2 /*return*/]; - } - }); - }); -} -run_ssm_send_command(); - -})(); - -module.exports = __webpack_exports__; -/******/ })() -; \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 7c83d34..afdc443 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,27 +1,27 @@ { "name": "action-aws-ssm-run-command", - "version": "0.1.0", + "version": "1.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "action-aws-ssm-run-command", - "version": "0.1.0", + "version": "1.0.1", "license": "Apache-2.0", "dependencies": { - "@actions/core": "^1.9.1", + "@actions/core": "^1.10.1", "@aws-sdk/client-ssm": "^3.154.0" }, "devDependencies": { - "@types/node": "^18.7.11", + "@types/node": "^20.12.2", "@vercel/ncc": "^0.34.0", "typescript": "^4.7.4" } }, "node_modules/@actions/core": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.9.1.tgz", - "integrity": "sha512-5ad+U2YGrmmiw6du20AQW5XuWo7UKN2052FjSV7MX+Wfjf8sCqcsZe62NfgHys4QI4/Y+vQvLKYL8jWtA1ZBTA==", + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.1.tgz", + "integrity": "sha512-3lBR9EDAY+iYIpTnTIXmWcNbX3T2kCkAEQGIQx4NVQ0575nk2k3GRZDTPQG+vVtS2izSLmINlxXf0uLtnrTP+g==", "dependencies": { "@actions/http-client": "^2.0.1", "uuid": "^8.3.2" @@ -903,10 +903,13 @@ } }, "node_modules/@types/node": { - "version": "18.7.11", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.11.tgz", - "integrity": "sha512-KZhFpSLlmK/sdocfSAjqPETTMd0ug6HIMIAwkwUpU79olnZdQtMxpQP+G1wDzCH7na+FltSIhbaZuKdwZ8RDrw==", - "dev": true + "version": "20.12.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.7.tgz", + "integrity": "sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/@vercel/ncc": { "version": "0.34.0", @@ -968,6 +971,12 @@ "node": ">=4.2.0" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "node_modules/uuid": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", @@ -979,9 +988,9 @@ }, "dependencies": { "@actions/core": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.9.1.tgz", - "integrity": "sha512-5ad+U2YGrmmiw6du20AQW5XuWo7UKN2052FjSV7MX+Wfjf8sCqcsZe62NfgHys4QI4/Y+vQvLKYL8jWtA1ZBTA==", + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.1.tgz", + "integrity": "sha512-3lBR9EDAY+iYIpTnTIXmWcNbX3T2kCkAEQGIQx4NVQ0575nk2k3GRZDTPQG+vVtS2izSLmINlxXf0uLtnrTP+g==", "requires": { "@actions/http-client": "^2.0.1", "uuid": "^8.3.2" @@ -1721,10 +1730,13 @@ } }, "@types/node": { - "version": "18.7.11", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.7.11.tgz", - "integrity": "sha512-KZhFpSLlmK/sdocfSAjqPETTMd0ug6HIMIAwkwUpU79olnZdQtMxpQP+G1wDzCH7na+FltSIhbaZuKdwZ8RDrw==", - "dev": true + "version": "20.12.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.7.tgz", + "integrity": "sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==", + "dev": true, + "requires": { + "undici-types": "~5.26.4" + } }, "@vercel/ncc": { "version": "0.34.0", @@ -1763,6 +1775,12 @@ "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", "dev": true }, + "undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "uuid": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", From a2e49852afa3e9c83e0be76f3fa4c65966f7b6b4 Mon Sep 17 00:00:00 2001 From: Noel Ferreria Date: Thu, 25 Apr 2024 02:49:45 -0700 Subject: [PATCH 06/14] more updates --- dist/index.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 dist/index.js diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..e69de29 From 59b5ae1fabbbe61c798d78d245df9feff972d84f Mon Sep 17 00:00:00 2001 From: Noel Ferreria Date: Thu, 25 Apr 2024 02:51:44 -0700 Subject: [PATCH 07/14] updates --- dist/index.js | 45324 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45324 insertions(+) diff --git a/dist/index.js b/dist/index.js index e69de29..cec80e7 100644 --- a/dist/index.js +++ b/dist/index.js @@ -0,0 +1,45324 @@ +/******/ (() => { // webpackBootstrap +/******/ var __webpack_modules__ = ({ + +/***/ 87351: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.issue = exports.issueCommand = void 0; +const os = __importStar(__nccwpck_require__(22037)); +const utils_1 = __nccwpck_require__(5278); +/** + * Commands + * + * Command Format: + * ::name key=value,key=value::message + * + * Examples: + * ::warning::This is the message + * ::set-env name=MY_VAR::some value + */ +function issueCommand(command, properties, message) { + const cmd = new Command(command, properties, message); + process.stdout.write(cmd.toString() + os.EOL); +} +exports.issueCommand = issueCommand; +function issue(name, message = '') { + issueCommand(name, {}, message); +} +exports.issue = issue; +const CMD_STRING = '::'; +class Command { + constructor(command, properties, message) { + if (!command) { + command = 'missing.command'; + } + this.command = command; + this.properties = properties; + this.message = message; + } + toString() { + let cmdStr = CMD_STRING + this.command; + if (this.properties && Object.keys(this.properties).length > 0) { + cmdStr += ' '; + let first = true; + for (const key in this.properties) { + if (this.properties.hasOwnProperty(key)) { + const val = this.properties[key]; + if (val) { + if (first) { + first = false; + } + else { + cmdStr += ','; + } + cmdStr += `${key}=${escapeProperty(val)}`; + } + } + } + } + cmdStr += `${CMD_STRING}${escapeData(this.message)}`; + return cmdStr; + } +} +function escapeData(s) { + return utils_1.toCommandValue(s) + .replace(/%/g, '%25') + .replace(/\r/g, '%0D') + .replace(/\n/g, '%0A'); +} +function escapeProperty(s) { + return utils_1.toCommandValue(s) + .replace(/%/g, '%25') + .replace(/\r/g, '%0D') + .replace(/\n/g, '%0A') + .replace(/:/g, '%3A') + .replace(/,/g, '%2C'); +} +//# sourceMappingURL=command.js.map + +/***/ }), + +/***/ 42186: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; +const command_1 = __nccwpck_require__(87351); +const file_command_1 = __nccwpck_require__(717); +const utils_1 = __nccwpck_require__(5278); +const os = __importStar(__nccwpck_require__(22037)); +const path = __importStar(__nccwpck_require__(71017)); +const oidc_utils_1 = __nccwpck_require__(98041); +/** + * The code to exit an action + */ +var ExitCode; +(function (ExitCode) { + /** + * A code indicating that the action was successful + */ + ExitCode[ExitCode["Success"] = 0] = "Success"; + /** + * A code indicating that the action was a failure + */ + ExitCode[ExitCode["Failure"] = 1] = "Failure"; +})(ExitCode = exports.ExitCode || (exports.ExitCode = {})); +//----------------------------------------------------------------------- +// Variables +//----------------------------------------------------------------------- +/** + * Sets env variable for this action and future actions in the job + * @param name the name of the variable to set + * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function exportVariable(name, val) { + const convertedVal = utils_1.toCommandValue(val); + process.env[name] = convertedVal; + const filePath = process.env['GITHUB_ENV'] || ''; + if (filePath) { + return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val)); + } + command_1.issueCommand('set-env', { name }, convertedVal); +} +exports.exportVariable = exportVariable; +/** + * Registers a secret which will get masked from logs + * @param secret value of the secret + */ +function setSecret(secret) { + command_1.issueCommand('add-mask', {}, secret); +} +exports.setSecret = setSecret; +/** + * Prepends inputPath to the PATH (for this action and future actions) + * @param inputPath + */ +function addPath(inputPath) { + const filePath = process.env['GITHUB_PATH'] || ''; + if (filePath) { + file_command_1.issueFileCommand('PATH', inputPath); + } + else { + command_1.issueCommand('add-path', {}, inputPath); + } + process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; +} +exports.addPath = addPath; +/** + * Gets the value of an input. + * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed. + * Returns an empty string if the value is not defined. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string + */ +function getInput(name, options) { + const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || ''; + if (options && options.required && !val) { + throw new Error(`Input required and not supplied: ${name}`); + } + if (options && options.trimWhitespace === false) { + return val; + } + return val.trim(); +} +exports.getInput = getInput; +/** + * Gets the values of an multiline input. Each value is also trimmed. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string[] + * + */ +function getMultilineInput(name, options) { + const inputs = getInput(name, options) + .split('\n') + .filter(x => x !== ''); + if (options && options.trimWhitespace === false) { + return inputs; + } + return inputs.map(input => input.trim()); +} +exports.getMultilineInput = getMultilineInput; +/** + * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification. + * Support boolean input list: `true | True | TRUE | false | False | FALSE` . + * The return value is also in boolean type. + * ref: https://yaml.org/spec/1.2/spec.html#id2804923 + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns boolean + */ +function getBooleanInput(name, options) { + const trueValue = ['true', 'True', 'TRUE']; + const falseValue = ['false', 'False', 'FALSE']; + const val = getInput(name, options); + if (trueValue.includes(val)) + return true; + if (falseValue.includes(val)) + return false; + throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` + + `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); +} +exports.getBooleanInput = getBooleanInput; +/** + * Sets the value of an output. + * + * @param name name of the output to set + * @param value value to store. Non-string values will be converted to a string via JSON.stringify + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function setOutput(name, value) { + const filePath = process.env['GITHUB_OUTPUT'] || ''; + if (filePath) { + return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value)); + } + process.stdout.write(os.EOL); + command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value)); +} +exports.setOutput = setOutput; +/** + * Enables or disables the echoing of commands into stdout for the rest of the step. + * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set. + * + */ +function setCommandEcho(enabled) { + command_1.issue('echo', enabled ? 'on' : 'off'); +} +exports.setCommandEcho = setCommandEcho; +//----------------------------------------------------------------------- +// Results +//----------------------------------------------------------------------- +/** + * Sets the action status to failed. + * When the action exits it will be with an exit code of 1 + * @param message add error issue message + */ +function setFailed(message) { + process.exitCode = ExitCode.Failure; + error(message); +} +exports.setFailed = setFailed; +//----------------------------------------------------------------------- +// Logging Commands +//----------------------------------------------------------------------- +/** + * Gets whether Actions Step Debug is on or not + */ +function isDebug() { + return process.env['RUNNER_DEBUG'] === '1'; +} +exports.isDebug = isDebug; +/** + * Writes debug message to user log + * @param message debug message + */ +function debug(message) { + command_1.issueCommand('debug', {}, message); +} +exports.debug = debug; +/** + * Adds an error issue + * @param message error issue message. Errors will be converted to string via toString() + * @param properties optional properties to add to the annotation. + */ +function error(message, properties = {}) { + command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); +} +exports.error = error; +/** + * Adds a warning issue + * @param message warning issue message. Errors will be converted to string via toString() + * @param properties optional properties to add to the annotation. + */ +function warning(message, properties = {}) { + command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); +} +exports.warning = warning; +/** + * Adds a notice issue + * @param message notice issue message. Errors will be converted to string via toString() + * @param properties optional properties to add to the annotation. + */ +function notice(message, properties = {}) { + command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); +} +exports.notice = notice; +/** + * Writes info to log with console.log. + * @param message info message + */ +function info(message) { + process.stdout.write(message + os.EOL); +} +exports.info = info; +/** + * Begin an output group. + * + * Output until the next `groupEnd` will be foldable in this group + * + * @param name The name of the output group + */ +function startGroup(name) { + command_1.issue('group', name); +} +exports.startGroup = startGroup; +/** + * End an output group. + */ +function endGroup() { + command_1.issue('endgroup'); +} +exports.endGroup = endGroup; +/** + * Wrap an asynchronous function call in a group. + * + * Returns the same type as the function itself. + * + * @param name The name of the group + * @param fn The function to wrap in the group + */ +function group(name, fn) { + return __awaiter(this, void 0, void 0, function* () { + startGroup(name); + let result; + try { + result = yield fn(); + } + finally { + endGroup(); + } + return result; + }); +} +exports.group = group; +//----------------------------------------------------------------------- +// Wrapper action state +//----------------------------------------------------------------------- +/** + * Saves state for current action, the state can only be retrieved by this action's post job execution. + * + * @param name name of the state to store + * @param value value to store. Non-string values will be converted to a string via JSON.stringify + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function saveState(name, value) { + const filePath = process.env['GITHUB_STATE'] || ''; + if (filePath) { + return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value)); + } + command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value)); +} +exports.saveState = saveState; +/** + * Gets the value of an state set by this action's main execution. + * + * @param name name of the state to get + * @returns string + */ +function getState(name) { + return process.env[`STATE_${name}`] || ''; +} +exports.getState = getState; +function getIDToken(aud) { + return __awaiter(this, void 0, void 0, function* () { + return yield oidc_utils_1.OidcClient.getIDToken(aud); + }); +} +exports.getIDToken = getIDToken; +/** + * Summary exports + */ +var summary_1 = __nccwpck_require__(81327); +Object.defineProperty(exports, "summary", ({ enumerable: true, get: function () { return summary_1.summary; } })); +/** + * @deprecated use core.summary + */ +var summary_2 = __nccwpck_require__(81327); +Object.defineProperty(exports, "markdownSummary", ({ enumerable: true, get: function () { return summary_2.markdownSummary; } })); +/** + * Path exports + */ +var path_utils_1 = __nccwpck_require__(2981); +Object.defineProperty(exports, "toPosixPath", ({ enumerable: true, get: function () { return path_utils_1.toPosixPath; } })); +Object.defineProperty(exports, "toWin32Path", ({ enumerable: true, get: function () { return path_utils_1.toWin32Path; } })); +Object.defineProperty(exports, "toPlatformPath", ({ enumerable: true, get: function () { return path_utils_1.toPlatformPath; } })); +//# sourceMappingURL=core.js.map + +/***/ }), + +/***/ 717: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +// For internal use, subject to change. +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.prepareKeyValueMessage = exports.issueFileCommand = void 0; +// We use any as a valid input type +/* eslint-disable @typescript-eslint/no-explicit-any */ +const fs = __importStar(__nccwpck_require__(57147)); +const os = __importStar(__nccwpck_require__(22037)); +const uuid_1 = __nccwpck_require__(75840); +const utils_1 = __nccwpck_require__(5278); +function issueFileCommand(command, message) { + const filePath = process.env[`GITHUB_${command}`]; + if (!filePath) { + throw new Error(`Unable to find environment variable for file command ${command}`); + } + if (!fs.existsSync(filePath)) { + throw new Error(`Missing file at path: ${filePath}`); + } + fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, { + encoding: 'utf8' + }); +} +exports.issueFileCommand = issueFileCommand; +function prepareKeyValueMessage(key, value) { + const delimiter = `ghadelimiter_${uuid_1.v4()}`; + const convertedValue = utils_1.toCommandValue(value); + // These should realistically never happen, but just in case someone finds a + // way to exploit uuid generation let's not allow keys or values that contain + // the delimiter. + if (key.includes(delimiter)) { + throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`); + } + if (convertedValue.includes(delimiter)) { + throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`); + } + return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`; +} +exports.prepareKeyValueMessage = prepareKeyValueMessage; +//# sourceMappingURL=file-command.js.map + +/***/ }), + +/***/ 98041: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OidcClient = void 0; +const http_client_1 = __nccwpck_require__(96255); +const auth_1 = __nccwpck_require__(35526); +const core_1 = __nccwpck_require__(42186); +class OidcClient { + static createHttpClient(allowRetry = true, maxRetry = 10) { + const requestOptions = { + allowRetries: allowRetry, + maxRetries: maxRetry + }; + return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions); + } + static getRequestToken() { + const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN']; + if (!token) { + throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable'); + } + return token; + } + static getIDTokenUrl() { + const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL']; + if (!runtimeUrl) { + throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable'); + } + return runtimeUrl; + } + static getCall(id_token_url) { + var _a; + return __awaiter(this, void 0, void 0, function* () { + const httpclient = OidcClient.createHttpClient(); + const res = yield httpclient + .getJson(id_token_url) + .catch(error => { + throw new Error(`Failed to get ID Token. \n + Error Code : ${error.statusCode}\n + Error Message: ${error.message}`); + }); + const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; + if (!id_token) { + throw new Error('Response json body do not have ID Token field'); + } + return id_token; + }); + } + static getIDToken(audience) { + return __awaiter(this, void 0, void 0, function* () { + try { + // New ID Token is requested from action service + let id_token_url = OidcClient.getIDTokenUrl(); + if (audience) { + const encodedAudience = encodeURIComponent(audience); + id_token_url = `${id_token_url}&audience=${encodedAudience}`; + } + core_1.debug(`ID token url is ${id_token_url}`); + const id_token = yield OidcClient.getCall(id_token_url); + core_1.setSecret(id_token); + return id_token; + } + catch (error) { + throw new Error(`Error message: ${error.message}`); + } + }); + } +} +exports.OidcClient = OidcClient; +//# sourceMappingURL=oidc-utils.js.map + +/***/ }), + +/***/ 2981: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0; +const path = __importStar(__nccwpck_require__(71017)); +/** + * toPosixPath converts the given path to the posix form. On Windows, \\ will be + * replaced with /. + * + * @param pth. Path to transform. + * @return string Posix path. + */ +function toPosixPath(pth) { + return pth.replace(/[\\]/g, '/'); +} +exports.toPosixPath = toPosixPath; +/** + * toWin32Path converts the given path to the win32 form. On Linux, / will be + * replaced with \\. + * + * @param pth. Path to transform. + * @return string Win32 path. + */ +function toWin32Path(pth) { + return pth.replace(/[/]/g, '\\'); +} +exports.toWin32Path = toWin32Path; +/** + * toPlatformPath converts the given path to a platform-specific path. It does + * this by replacing instances of / and \ with the platform-specific path + * separator. + * + * @param pth The path to platformize. + * @return string The platform-specific path. + */ +function toPlatformPath(pth) { + return pth.replace(/[/\\]/g, path.sep); +} +exports.toPlatformPath = toPlatformPath; +//# sourceMappingURL=path-utils.js.map + +/***/ }), + +/***/ 81327: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0; +const os_1 = __nccwpck_require__(22037); +const fs_1 = __nccwpck_require__(57147); +const { access, appendFile, writeFile } = fs_1.promises; +exports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY'; +exports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary'; +class Summary { + constructor() { + this._buffer = ''; + } + /** + * Finds the summary file path from the environment, rejects if env var is not found or file does not exist + * Also checks r/w permissions. + * + * @returns step summary file path + */ + filePath() { + return __awaiter(this, void 0, void 0, function* () { + if (this._filePath) { + return this._filePath; + } + const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR]; + if (!pathFromEnv) { + throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`); + } + try { + yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK); + } + catch (_a) { + throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`); + } + this._filePath = pathFromEnv; + return this._filePath; + }); + } + /** + * Wraps content in an HTML tag, adding any HTML attributes + * + * @param {string} tag HTML tag to wrap + * @param {string | null} content content within the tag + * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add + * + * @returns {string} content wrapped in HTML element + */ + wrap(tag, content, attrs = {}) { + const htmlAttrs = Object.entries(attrs) + .map(([key, value]) => ` ${key}="${value}"`) + .join(''); + if (!content) { + return `<${tag}${htmlAttrs}>`; + } + return `<${tag}${htmlAttrs}>${content}`; + } + /** + * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default. + * + * @param {SummaryWriteOptions} [options] (optional) options for write operation + * + * @returns {Promise} summary instance + */ + write(options) { + return __awaiter(this, void 0, void 0, function* () { + const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite); + const filePath = yield this.filePath(); + const writeFunc = overwrite ? writeFile : appendFile; + yield writeFunc(filePath, this._buffer, { encoding: 'utf8' }); + return this.emptyBuffer(); + }); + } + /** + * Clears the summary buffer and wipes the summary file + * + * @returns {Summary} summary instance + */ + clear() { + return __awaiter(this, void 0, void 0, function* () { + return this.emptyBuffer().write({ overwrite: true }); + }); + } + /** + * Returns the current summary buffer as a string + * + * @returns {string} string of summary buffer + */ + stringify() { + return this._buffer; + } + /** + * If the summary buffer is empty + * + * @returns {boolen} true if the buffer is empty + */ + isEmptyBuffer() { + return this._buffer.length === 0; + } + /** + * Resets the summary buffer without writing to summary file + * + * @returns {Summary} summary instance + */ + emptyBuffer() { + this._buffer = ''; + return this; + } + /** + * Adds raw text to the summary buffer + * + * @param {string} text content to add + * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false) + * + * @returns {Summary} summary instance + */ + addRaw(text, addEOL = false) { + this._buffer += text; + return addEOL ? this.addEOL() : this; + } + /** + * Adds the operating system-specific end-of-line marker to the buffer + * + * @returns {Summary} summary instance + */ + addEOL() { + return this.addRaw(os_1.EOL); + } + /** + * Adds an HTML codeblock to the summary buffer + * + * @param {string} code content to render within fenced code block + * @param {string} lang (optional) language to syntax highlight code + * + * @returns {Summary} summary instance + */ + addCodeBlock(code, lang) { + const attrs = Object.assign({}, (lang && { lang })); + const element = this.wrap('pre', this.wrap('code', code), attrs); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML list to the summary buffer + * + * @param {string[]} items list of items to render + * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false) + * + * @returns {Summary} summary instance + */ + addList(items, ordered = false) { + const tag = ordered ? 'ol' : 'ul'; + const listItems = items.map(item => this.wrap('li', item)).join(''); + const element = this.wrap(tag, listItems); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML table to the summary buffer + * + * @param {SummaryTableCell[]} rows table rows + * + * @returns {Summary} summary instance + */ + addTable(rows) { + const tableBody = rows + .map(row => { + const cells = row + .map(cell => { + if (typeof cell === 'string') { + return this.wrap('td', cell); + } + const { header, data, colspan, rowspan } = cell; + const tag = header ? 'th' : 'td'; + const attrs = Object.assign(Object.assign({}, (colspan && { colspan })), (rowspan && { rowspan })); + return this.wrap(tag, data, attrs); + }) + .join(''); + return this.wrap('tr', cells); + }) + .join(''); + const element = this.wrap('table', tableBody); + return this.addRaw(element).addEOL(); + } + /** + * Adds a collapsable HTML details element to the summary buffer + * + * @param {string} label text for the closed state + * @param {string} content collapsable content + * + * @returns {Summary} summary instance + */ + addDetails(label, content) { + const element = this.wrap('details', this.wrap('summary', label) + content); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML image tag to the summary buffer + * + * @param {string} src path to the image you to embed + * @param {string} alt text description of the image + * @param {SummaryImageOptions} options (optional) addition image attributes + * + * @returns {Summary} summary instance + */ + addImage(src, alt, options) { + const { width, height } = options || {}; + const attrs = Object.assign(Object.assign({}, (width && { width })), (height && { height })); + const element = this.wrap('img', null, Object.assign({ src, alt }, attrs)); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML section heading element + * + * @param {string} text heading text + * @param {number | string} [level=1] (optional) the heading level, default: 1 + * + * @returns {Summary} summary instance + */ + addHeading(text, level) { + const tag = `h${level}`; + const allowedTag = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(tag) + ? tag + : 'h1'; + const element = this.wrap(allowedTag, text); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML thematic break (
) to the summary buffer + * + * @returns {Summary} summary instance + */ + addSeparator() { + const element = this.wrap('hr', null); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML line break (
) to the summary buffer + * + * @returns {Summary} summary instance + */ + addBreak() { + const element = this.wrap('br', null); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML blockquote to the summary buffer + * + * @param {string} text quote text + * @param {string} cite (optional) citation url + * + * @returns {Summary} summary instance + */ + addQuote(text, cite) { + const attrs = Object.assign({}, (cite && { cite })); + const element = this.wrap('blockquote', text, attrs); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML anchor tag to the summary buffer + * + * @param {string} text link text/content + * @param {string} href hyperlink + * + * @returns {Summary} summary instance + */ + addLink(text, href) { + const element = this.wrap('a', text, { href }); + return this.addRaw(element).addEOL(); + } +} +const _summary = new Summary(); +/** + * @deprecated use `core.summary` + */ +exports.markdownSummary = _summary; +exports.summary = _summary; +//# sourceMappingURL=summary.js.map + +/***/ }), + +/***/ 5278: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// We use any as a valid input type +/* eslint-disable @typescript-eslint/no-explicit-any */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.toCommandProperties = exports.toCommandValue = void 0; +/** + * Sanitizes an input into a string so it can be passed into issueCommand safely + * @param input input to sanitize into a string + */ +function toCommandValue(input) { + if (input === null || input === undefined) { + return ''; + } + else if (typeof input === 'string' || input instanceof String) { + return input; + } + return JSON.stringify(input); +} +exports.toCommandValue = toCommandValue; +/** + * + * @param annotationProperties + * @returns The command properties to send with the actual annotation command + * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646 + */ +function toCommandProperties(annotationProperties) { + if (!Object.keys(annotationProperties).length) { + return {}; + } + return { + title: annotationProperties.title, + file: annotationProperties.file, + line: annotationProperties.startLine, + endLine: annotationProperties.endLine, + col: annotationProperties.startColumn, + endColumn: annotationProperties.endColumn + }; +} +exports.toCommandProperties = toCommandProperties; +//# sourceMappingURL=utils.js.map + +/***/ }), + +/***/ 35526: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PersonalAccessTokenCredentialHandler = exports.BearerCredentialHandler = exports.BasicCredentialHandler = void 0; +class BasicCredentialHandler { + constructor(username, password) { + this.username = username; + this.password = password; + } + prepareRequest(options) { + if (!options.headers) { + throw Error('The request has no headers'); + } + options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`; + } + // This handler cannot handle 401 + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error('not implemented'); + }); + } +} +exports.BasicCredentialHandler = BasicCredentialHandler; +class BearerCredentialHandler { + constructor(token) { + this.token = token; + } + // currently implements pre-authorization + // TODO: support preAuth = false where it hooks on 401 + prepareRequest(options) { + if (!options.headers) { + throw Error('The request has no headers'); + } + options.headers['Authorization'] = `Bearer ${this.token}`; + } + // This handler cannot handle 401 + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error('not implemented'); + }); + } +} +exports.BearerCredentialHandler = BearerCredentialHandler; +class PersonalAccessTokenCredentialHandler { + constructor(token) { + this.token = token; + } + // currently implements pre-authorization + // TODO: support preAuth = false where it hooks on 401 + prepareRequest(options) { + if (!options.headers) { + throw Error('The request has no headers'); + } + options.headers['Authorization'] = `Basic ${Buffer.from(`PAT:${this.token}`).toString('base64')}`; + } + // This handler cannot handle 401 + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error('not implemented'); + }); + } +} +exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; +//# sourceMappingURL=auth.js.map + +/***/ }), + +/***/ 96255: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +/* eslint-disable @typescript-eslint/no-explicit-any */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0; +const http = __importStar(__nccwpck_require__(13685)); +const https = __importStar(__nccwpck_require__(95687)); +const pm = __importStar(__nccwpck_require__(19835)); +const tunnel = __importStar(__nccwpck_require__(74294)); +var HttpCodes; +(function (HttpCodes) { + HttpCodes[HttpCodes["OK"] = 200] = "OK"; + HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices"; + HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently"; + HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved"; + HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther"; + HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified"; + HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy"; + HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy"; + HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect"; + HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect"; + HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest"; + HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized"; + HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired"; + HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden"; + HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound"; + HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed"; + HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable"; + HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired"; + HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout"; + HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict"; + HttpCodes[HttpCodes["Gone"] = 410] = "Gone"; + HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests"; + HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError"; + HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented"; + HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway"; + HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable"; + HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout"; +})(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {})); +var Headers; +(function (Headers) { + Headers["Accept"] = "accept"; + Headers["ContentType"] = "content-type"; +})(Headers = exports.Headers || (exports.Headers = {})); +var MediaTypes; +(function (MediaTypes) { + MediaTypes["ApplicationJson"] = "application/json"; +})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {})); +/** + * Returns the proxy URL, depending upon the supplied url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ +function getProxyUrl(serverUrl) { + const proxyUrl = pm.getProxyUrl(new URL(serverUrl)); + return proxyUrl ? proxyUrl.href : ''; +} +exports.getProxyUrl = getProxyUrl; +const HttpRedirectCodes = [ + HttpCodes.MovedPermanently, + HttpCodes.ResourceMoved, + HttpCodes.SeeOther, + HttpCodes.TemporaryRedirect, + HttpCodes.PermanentRedirect +]; +const HttpResponseRetryCodes = [ + HttpCodes.BadGateway, + HttpCodes.ServiceUnavailable, + HttpCodes.GatewayTimeout +]; +const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD']; +const ExponentialBackoffCeiling = 10; +const ExponentialBackoffTimeSlice = 5; +class HttpClientError extends Error { + constructor(message, statusCode) { + super(message); + this.name = 'HttpClientError'; + this.statusCode = statusCode; + Object.setPrototypeOf(this, HttpClientError.prototype); + } +} +exports.HttpClientError = HttpClientError; +class HttpClientResponse { + constructor(message) { + this.message = message; + } + readBody() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { + let output = Buffer.alloc(0); + this.message.on('data', (chunk) => { + output = Buffer.concat([output, chunk]); + }); + this.message.on('end', () => { + resolve(output.toString()); + }); + })); + }); + } +} +exports.HttpClientResponse = HttpClientResponse; +function isHttps(requestUrl) { + const parsedUrl = new URL(requestUrl); + return parsedUrl.protocol === 'https:'; +} +exports.isHttps = isHttps; +class HttpClient { + constructor(userAgent, handlers, requestOptions) { + this._ignoreSslError = false; + this._allowRedirects = true; + this._allowRedirectDowngrade = false; + this._maxRedirects = 50; + this._allowRetries = false; + this._maxRetries = 1; + this._keepAlive = false; + this._disposed = false; + this.userAgent = userAgent; + this.handlers = handlers || []; + this.requestOptions = requestOptions; + if (requestOptions) { + if (requestOptions.ignoreSslError != null) { + this._ignoreSslError = requestOptions.ignoreSslError; + } + this._socketTimeout = requestOptions.socketTimeout; + if (requestOptions.allowRedirects != null) { + this._allowRedirects = requestOptions.allowRedirects; + } + if (requestOptions.allowRedirectDowngrade != null) { + this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade; + } + if (requestOptions.maxRedirects != null) { + this._maxRedirects = Math.max(requestOptions.maxRedirects, 0); + } + if (requestOptions.keepAlive != null) { + this._keepAlive = requestOptions.keepAlive; + } + if (requestOptions.allowRetries != null) { + this._allowRetries = requestOptions.allowRetries; + } + if (requestOptions.maxRetries != null) { + this._maxRetries = requestOptions.maxRetries; + } + } + } + options(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('OPTIONS', requestUrl, null, additionalHeaders || {}); + }); + } + get(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('GET', requestUrl, null, additionalHeaders || {}); + }); + } + del(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('DELETE', requestUrl, null, additionalHeaders || {}); + }); + } + post(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('POST', requestUrl, data, additionalHeaders || {}); + }); + } + patch(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('PATCH', requestUrl, data, additionalHeaders || {}); + }); + } + put(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('PUT', requestUrl, data, additionalHeaders || {}); + }); + } + head(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('HEAD', requestUrl, null, additionalHeaders || {}); + }); + } + sendStream(verb, requestUrl, stream, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request(verb, requestUrl, stream, additionalHeaders); + }); + } + /** + * Gets a typed object from an endpoint + * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise + */ + getJson(requestUrl, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + const res = yield this.get(requestUrl, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + postJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res = yield this.post(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + putJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res = yield this.put(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + patchJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res = yield this.patch(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + /** + * Makes a raw http request. + * All other methods such as get, post, patch, and request ultimately call this. + * Prefer get, del, post and patch + */ + request(verb, requestUrl, data, headers) { + return __awaiter(this, void 0, void 0, function* () { + if (this._disposed) { + throw new Error('Client has already been disposed.'); + } + const parsedUrl = new URL(requestUrl); + let info = this._prepareRequest(verb, parsedUrl, headers); + // Only perform retries on reads since writes may not be idempotent. + const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb) + ? this._maxRetries + 1 + : 1; + let numTries = 0; + let response; + do { + response = yield this.requestRaw(info, data); + // Check if it's an authentication challenge + if (response && + response.message && + response.message.statusCode === HttpCodes.Unauthorized) { + let authenticationHandler; + for (const handler of this.handlers) { + if (handler.canHandleAuthentication(response)) { + authenticationHandler = handler; + break; + } + } + if (authenticationHandler) { + return authenticationHandler.handleAuthentication(this, info, data); + } + else { + // We have received an unauthorized response but have no handlers to handle it. + // Let the response return to the caller. + return response; + } + } + let redirectsRemaining = this._maxRedirects; + while (response.message.statusCode && + HttpRedirectCodes.includes(response.message.statusCode) && + this._allowRedirects && + redirectsRemaining > 0) { + const redirectUrl = response.message.headers['location']; + if (!redirectUrl) { + // if there's no location to redirect to, we won't + break; + } + const parsedRedirectUrl = new URL(redirectUrl); + if (parsedUrl.protocol === 'https:' && + parsedUrl.protocol !== parsedRedirectUrl.protocol && + !this._allowRedirectDowngrade) { + throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.'); + } + // we need to finish reading the response before reassigning response + // which will leak the open socket. + yield response.readBody(); + // strip authorization header if redirected to a different hostname + if (parsedRedirectUrl.hostname !== parsedUrl.hostname) { + for (const header in headers) { + // header names are case insensitive + if (header.toLowerCase() === 'authorization') { + delete headers[header]; + } + } + } + // let's make the request with the new redirectUrl + info = this._prepareRequest(verb, parsedRedirectUrl, headers); + response = yield this.requestRaw(info, data); + redirectsRemaining--; + } + if (!response.message.statusCode || + !HttpResponseRetryCodes.includes(response.message.statusCode)) { + // If not a retry code, return immediately instead of retrying + return response; + } + numTries += 1; + if (numTries < maxTries) { + yield response.readBody(); + yield this._performExponentialBackoff(numTries); + } + } while (numTries < maxTries); + return response; + }); + } + /** + * Needs to be called if keepAlive is set to true in request options. + */ + dispose() { + if (this._agent) { + this._agent.destroy(); + } + this._disposed = true; + } + /** + * Raw request. + * @param info + * @param data + */ + requestRaw(info, data) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + function callbackForResult(err, res) { + if (err) { + reject(err); + } + else if (!res) { + // If `err` is not passed, then `res` must be passed. + reject(new Error('Unknown error')); + } + else { + resolve(res); + } + } + this.requestRawWithCallback(info, data, callbackForResult); + }); + }); + } + /** + * Raw request with callback. + * @param info + * @param data + * @param onResult + */ + requestRawWithCallback(info, data, onResult) { + if (typeof data === 'string') { + if (!info.options.headers) { + info.options.headers = {}; + } + info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8'); + } + let callbackCalled = false; + function handleResult(err, res) { + if (!callbackCalled) { + callbackCalled = true; + onResult(err, res); + } + } + const req = info.httpModule.request(info.options, (msg) => { + const res = new HttpClientResponse(msg); + handleResult(undefined, res); + }); + let socket; + req.on('socket', sock => { + socket = sock; + }); + // If we ever get disconnected, we want the socket to timeout eventually + req.setTimeout(this._socketTimeout || 3 * 60000, () => { + if (socket) { + socket.end(); + } + handleResult(new Error(`Request timeout: ${info.options.path}`)); + }); + req.on('error', function (err) { + // err has statusCode property + // res should have headers + handleResult(err); + }); + if (data && typeof data === 'string') { + req.write(data, 'utf8'); + } + if (data && typeof data !== 'string') { + data.on('close', function () { + req.end(); + }); + data.pipe(req); + } + else { + req.end(); + } + } + /** + * Gets an http agent. This function is useful when you need an http agent that handles + * routing through a proxy server - depending upon the url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ + getAgent(serverUrl) { + const parsedUrl = new URL(serverUrl); + return this._getAgent(parsedUrl); + } + _prepareRequest(method, requestUrl, headers) { + const info = {}; + info.parsedUrl = requestUrl; + const usingSsl = info.parsedUrl.protocol === 'https:'; + info.httpModule = usingSsl ? https : http; + const defaultPort = usingSsl ? 443 : 80; + info.options = {}; + info.options.host = info.parsedUrl.hostname; + info.options.port = info.parsedUrl.port + ? parseInt(info.parsedUrl.port) + : defaultPort; + info.options.path = + (info.parsedUrl.pathname || '') + (info.parsedUrl.search || ''); + info.options.method = method; + info.options.headers = this._mergeHeaders(headers); + if (this.userAgent != null) { + info.options.headers['user-agent'] = this.userAgent; + } + info.options.agent = this._getAgent(info.parsedUrl); + // gives handlers an opportunity to participate + if (this.handlers) { + for (const handler of this.handlers) { + handler.prepareRequest(info.options); + } + } + return info; + } + _mergeHeaders(headers) { + if (this.requestOptions && this.requestOptions.headers) { + return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {})); + } + return lowercaseKeys(headers || {}); + } + _getExistingOrDefaultHeader(additionalHeaders, header, _default) { + let clientHeader; + if (this.requestOptions && this.requestOptions.headers) { + clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; + } + return additionalHeaders[header] || clientHeader || _default; + } + _getAgent(parsedUrl) { + let agent; + const proxyUrl = pm.getProxyUrl(parsedUrl); + const useProxy = proxyUrl && proxyUrl.hostname; + if (this._keepAlive && useProxy) { + agent = this._proxyAgent; + } + if (this._keepAlive && !useProxy) { + agent = this._agent; + } + // if agent is already assigned use that agent. + if (agent) { + return agent; + } + const usingSsl = parsedUrl.protocol === 'https:'; + let maxSockets = 100; + if (this.requestOptions) { + maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets; + } + // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis. + if (proxyUrl && proxyUrl.hostname) { + const agentOptions = { + maxSockets, + keepAlive: this._keepAlive, + proxy: Object.assign(Object.assign({}, ((proxyUrl.username || proxyUrl.password) && { + proxyAuth: `${proxyUrl.username}:${proxyUrl.password}` + })), { host: proxyUrl.hostname, port: proxyUrl.port }) + }; + let tunnelAgent; + const overHttps = proxyUrl.protocol === 'https:'; + if (usingSsl) { + tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp; + } + else { + tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp; + } + agent = tunnelAgent(agentOptions); + this._proxyAgent = agent; + } + // if reusing agent across request and tunneling agent isn't assigned create a new agent + if (this._keepAlive && !agent) { + const options = { keepAlive: this._keepAlive, maxSockets }; + agent = usingSsl ? new https.Agent(options) : new http.Agent(options); + this._agent = agent; + } + // if not using private agent and tunnel agent isn't setup then use global agent + if (!agent) { + agent = usingSsl ? https.globalAgent : http.globalAgent; + } + if (usingSsl && this._ignoreSslError) { + // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process + // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options + // we have to cast it to any and change it directly + agent.options = Object.assign(agent.options || {}, { + rejectUnauthorized: false + }); + } + return agent; + } + _performExponentialBackoff(retryNumber) { + return __awaiter(this, void 0, void 0, function* () { + retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); + const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); + return new Promise(resolve => setTimeout(() => resolve(), ms)); + }); + } + _processResponse(res, options) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { + const statusCode = res.message.statusCode || 0; + const response = { + statusCode, + result: null, + headers: {} + }; + // not found leads to null obj returned + if (statusCode === HttpCodes.NotFound) { + resolve(response); + } + // get the result from the body + function dateTimeDeserializer(key, value) { + if (typeof value === 'string') { + const a = new Date(value); + if (!isNaN(a.valueOf())) { + return a; + } + } + return value; + } + let obj; + let contents; + try { + contents = yield res.readBody(); + if (contents && contents.length > 0) { + if (options && options.deserializeDates) { + obj = JSON.parse(contents, dateTimeDeserializer); + } + else { + obj = JSON.parse(contents); + } + response.result = obj; + } + response.headers = res.message.headers; + } + catch (err) { + // Invalid resource (contents not json); leaving result obj null + } + // note that 3xx redirects are handled by the http layer. + if (statusCode > 299) { + let msg; + // if exception/error in body, attempt to get better error + if (obj && obj.message) { + msg = obj.message; + } + else if (contents && contents.length > 0) { + // it may be the case that the exception is in the body message as string + msg = contents; + } + else { + msg = `Failed request: (${statusCode})`; + } + const err = new HttpClientError(msg, statusCode); + err.result = response.result; + reject(err); + } + else { + resolve(response); + } + })); + }); + } +} +exports.HttpClient = HttpClient; +const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {}); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 19835: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.checkBypass = exports.getProxyUrl = void 0; +function getProxyUrl(reqUrl) { + const usingSsl = reqUrl.protocol === 'https:'; + if (checkBypass(reqUrl)) { + return undefined; + } + const proxyVar = (() => { + if (usingSsl) { + return process.env['https_proxy'] || process.env['HTTPS_PROXY']; + } + else { + return process.env['http_proxy'] || process.env['HTTP_PROXY']; + } + })(); + if (proxyVar) { + return new URL(proxyVar); + } + else { + return undefined; + } +} +exports.getProxyUrl = getProxyUrl; +function checkBypass(reqUrl) { + if (!reqUrl.hostname) { + return false; + } + const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || ''; + if (!noProxy) { + return false; + } + // Determine the request port + let reqPort; + if (reqUrl.port) { + reqPort = Number(reqUrl.port); + } + else if (reqUrl.protocol === 'http:') { + reqPort = 80; + } + else if (reqUrl.protocol === 'https:') { + reqPort = 443; + } + // Format the request hostname and hostname with port + const upperReqHosts = [reqUrl.hostname.toUpperCase()]; + if (typeof reqPort === 'number') { + upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); + } + // Compare request host against noproxy + for (const upperNoProxyItem of noProxy + .split(',') + .map(x => x.trim().toUpperCase()) + .filter(x => x)) { + if (upperReqHosts.some(x => x === upperNoProxyItem)) { + return true; + } + } + return false; +} +exports.checkBypass = checkBypass; +//# sourceMappingURL=proxy.js.map + +/***/ }), + +/***/ 24046: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SSM = void 0; +const AddTagsToResourceCommand_1 = __nccwpck_require__(16548); +const AssociateOpsItemRelatedItemCommand_1 = __nccwpck_require__(80864); +const CancelCommandCommand_1 = __nccwpck_require__(43654); +const CancelMaintenanceWindowExecutionCommand_1 = __nccwpck_require__(16795); +const CreateActivationCommand_1 = __nccwpck_require__(93455); +const CreateAssociationBatchCommand_1 = __nccwpck_require__(22615); +const CreateAssociationCommand_1 = __nccwpck_require__(87570); +const CreateDocumentCommand_1 = __nccwpck_require__(38888); +const CreateMaintenanceWindowCommand_1 = __nccwpck_require__(84735); +const CreateOpsItemCommand_1 = __nccwpck_require__(17634); +const CreateOpsMetadataCommand_1 = __nccwpck_require__(85963); +const CreatePatchBaselineCommand_1 = __nccwpck_require__(68004); +const CreateResourceDataSyncCommand_1 = __nccwpck_require__(30345); +const DeleteActivationCommand_1 = __nccwpck_require__(67594); +const DeleteAssociationCommand_1 = __nccwpck_require__(5292); +const DeleteDocumentCommand_1 = __nccwpck_require__(91242); +const DeleteInventoryCommand_1 = __nccwpck_require__(47241); +const DeleteMaintenanceWindowCommand_1 = __nccwpck_require__(5695); +const DeleteOpsMetadataCommand_1 = __nccwpck_require__(35235); +const DeleteParameterCommand_1 = __nccwpck_require__(74261); +const DeleteParametersCommand_1 = __nccwpck_require__(35322); +const DeletePatchBaselineCommand_1 = __nccwpck_require__(5734); +const DeleteResourceDataSyncCommand_1 = __nccwpck_require__(4505); +const DeregisterManagedInstanceCommand_1 = __nccwpck_require__(16721); +const DeregisterPatchBaselineForPatchGroupCommand_1 = __nccwpck_require__(11889); +const DeregisterTargetFromMaintenanceWindowCommand_1 = __nccwpck_require__(86346); +const DeregisterTaskFromMaintenanceWindowCommand_1 = __nccwpck_require__(98087); +const DescribeActivationsCommand_1 = __nccwpck_require__(99158); +const DescribeAssociationCommand_1 = __nccwpck_require__(55442); +const DescribeAssociationExecutionsCommand_1 = __nccwpck_require__(3119); +const DescribeAssociationExecutionTargetsCommand_1 = __nccwpck_require__(89459); +const DescribeAutomationExecutionsCommand_1 = __nccwpck_require__(70342); +const DescribeAutomationStepExecutionsCommand_1 = __nccwpck_require__(50626); +const DescribeAvailablePatchesCommand_1 = __nccwpck_require__(73378); +const DescribeDocumentCommand_1 = __nccwpck_require__(4165); +const DescribeDocumentPermissionCommand_1 = __nccwpck_require__(35531); +const DescribeEffectiveInstanceAssociationsCommand_1 = __nccwpck_require__(48907); +const DescribeEffectivePatchesForPatchBaselineCommand_1 = __nccwpck_require__(11074); +const DescribeInstanceAssociationsStatusCommand_1 = __nccwpck_require__(50546); +const DescribeInstanceInformationCommand_1 = __nccwpck_require__(72297); +const DescribeInstancePatchesCommand_1 = __nccwpck_require__(45672); +const DescribeInstancePatchStatesCommand_1 = __nccwpck_require__(96994); +const DescribeInstancePatchStatesForPatchGroupCommand_1 = __nccwpck_require__(50028); +const DescribeInventoryDeletionsCommand_1 = __nccwpck_require__(51289); +const DescribeMaintenanceWindowExecutionsCommand_1 = __nccwpck_require__(66016); +const DescribeMaintenanceWindowExecutionTaskInvocationsCommand_1 = __nccwpck_require__(71741); +const DescribeMaintenanceWindowExecutionTasksCommand_1 = __nccwpck_require__(19495); +const DescribeMaintenanceWindowScheduleCommand_1 = __nccwpck_require__(83598); +const DescribeMaintenanceWindowsCommand_1 = __nccwpck_require__(99482); +const DescribeMaintenanceWindowsForTargetCommand_1 = __nccwpck_require__(41025); +const DescribeMaintenanceWindowTargetsCommand_1 = __nccwpck_require__(78871); +const DescribeMaintenanceWindowTasksCommand_1 = __nccwpck_require__(26677); +const DescribeOpsItemsCommand_1 = __nccwpck_require__(76177); +const DescribeParametersCommand_1 = __nccwpck_require__(45975); +const DescribePatchBaselinesCommand_1 = __nccwpck_require__(83186); +const DescribePatchGroupsCommand_1 = __nccwpck_require__(45192); +const DescribePatchGroupStateCommand_1 = __nccwpck_require__(1655); +const DescribePatchPropertiesCommand_1 = __nccwpck_require__(36964); +const DescribeSessionsCommand_1 = __nccwpck_require__(43787); +const DisassociateOpsItemRelatedItemCommand_1 = __nccwpck_require__(65098); +const GetAutomationExecutionCommand_1 = __nccwpck_require__(29240); +const GetCalendarStateCommand_1 = __nccwpck_require__(68121); +const GetCommandInvocationCommand_1 = __nccwpck_require__(93305); +const GetConnectionStatusCommand_1 = __nccwpck_require__(99654); +const GetDefaultPatchBaselineCommand_1 = __nccwpck_require__(57498); +const GetDeployablePatchSnapshotForInstanceCommand_1 = __nccwpck_require__(92944); +const GetDocumentCommand_1 = __nccwpck_require__(6408); +const GetInventoryCommand_1 = __nccwpck_require__(93690); +const GetInventorySchemaCommand_1 = __nccwpck_require__(88675); +const GetMaintenanceWindowCommand_1 = __nccwpck_require__(49424); +const GetMaintenanceWindowExecutionCommand_1 = __nccwpck_require__(52486); +const GetMaintenanceWindowExecutionTaskCommand_1 = __nccwpck_require__(6244); +const GetMaintenanceWindowExecutionTaskInvocationCommand_1 = __nccwpck_require__(94578); +const GetMaintenanceWindowTaskCommand_1 = __nccwpck_require__(12083); +const GetOpsItemCommand_1 = __nccwpck_require__(46293); +const GetOpsMetadataCommand_1 = __nccwpck_require__(65672); +const GetOpsSummaryCommand_1 = __nccwpck_require__(19458); +const GetParameterCommand_1 = __nccwpck_require__(53134); +const GetParameterHistoryCommand_1 = __nccwpck_require__(30108); +const GetParametersByPathCommand_1 = __nccwpck_require__(22164); +const GetParametersCommand_1 = __nccwpck_require__(43487); +const GetPatchBaselineCommand_1 = __nccwpck_require__(35873); +const GetPatchBaselineForPatchGroupCommand_1 = __nccwpck_require__(95382); +const GetServiceSettingCommand_1 = __nccwpck_require__(36289); +const LabelParameterVersionCommand_1 = __nccwpck_require__(54351); +const ListAssociationsCommand_1 = __nccwpck_require__(29074); +const ListAssociationVersionsCommand_1 = __nccwpck_require__(40838); +const ListCommandInvocationsCommand_1 = __nccwpck_require__(27002); +const ListCommandsCommand_1 = __nccwpck_require__(56883); +const ListComplianceItemsCommand_1 = __nccwpck_require__(29771); +const ListComplianceSummariesCommand_1 = __nccwpck_require__(93331); +const ListDocumentMetadataHistoryCommand_1 = __nccwpck_require__(41758); +const ListDocumentsCommand_1 = __nccwpck_require__(37018); +const ListDocumentVersionsCommand_1 = __nccwpck_require__(41473); +const ListInventoryEntriesCommand_1 = __nccwpck_require__(15943); +const ListOpsItemEventsCommand_1 = __nccwpck_require__(23927); +const ListOpsItemRelatedItemsCommand_1 = __nccwpck_require__(95342); +const ListOpsMetadataCommand_1 = __nccwpck_require__(93770); +const ListResourceComplianceSummariesCommand_1 = __nccwpck_require__(25219); +const ListResourceDataSyncCommand_1 = __nccwpck_require__(30788); +const ListTagsForResourceCommand_1 = __nccwpck_require__(99655); +const ModifyDocumentPermissionCommand_1 = __nccwpck_require__(3863); +const PutComplianceItemsCommand_1 = __nccwpck_require__(5777); +const PutInventoryCommand_1 = __nccwpck_require__(61374); +const PutParameterCommand_1 = __nccwpck_require__(53056); +const RegisterDefaultPatchBaselineCommand_1 = __nccwpck_require__(51698); +const RegisterPatchBaselineForPatchGroupCommand_1 = __nccwpck_require__(40858); +const RegisterTargetWithMaintenanceWindowCommand_1 = __nccwpck_require__(99894); +const RegisterTaskWithMaintenanceWindowCommand_1 = __nccwpck_require__(15375); +const RemoveTagsFromResourceCommand_1 = __nccwpck_require__(52892); +const ResetServiceSettingCommand_1 = __nccwpck_require__(80327); +const ResumeSessionCommand_1 = __nccwpck_require__(25508); +const SendAutomationSignalCommand_1 = __nccwpck_require__(55185); +const SendCommandCommand_1 = __nccwpck_require__(63552); +const StartAssociationsOnceCommand_1 = __nccwpck_require__(52233); +const StartAutomationExecutionCommand_1 = __nccwpck_require__(81295); +const StartChangeRequestExecutionCommand_1 = __nccwpck_require__(21965); +const StartSessionCommand_1 = __nccwpck_require__(1829); +const StopAutomationExecutionCommand_1 = __nccwpck_require__(11430); +const TerminateSessionCommand_1 = __nccwpck_require__(49199); +const UnlabelParameterVersionCommand_1 = __nccwpck_require__(24376); +const UpdateAssociationCommand_1 = __nccwpck_require__(35455); +const UpdateAssociationStatusCommand_1 = __nccwpck_require__(54036); +const UpdateDocumentCommand_1 = __nccwpck_require__(91539); +const UpdateDocumentDefaultVersionCommand_1 = __nccwpck_require__(39946); +const UpdateDocumentMetadataCommand_1 = __nccwpck_require__(30307); +const UpdateMaintenanceWindowCommand_1 = __nccwpck_require__(18832); +const UpdateMaintenanceWindowTargetCommand_1 = __nccwpck_require__(59941); +const UpdateMaintenanceWindowTaskCommand_1 = __nccwpck_require__(42453); +const UpdateManagedInstanceRoleCommand_1 = __nccwpck_require__(49753); +const UpdateOpsItemCommand_1 = __nccwpck_require__(64569); +const UpdateOpsMetadataCommand_1 = __nccwpck_require__(57038); +const UpdatePatchBaselineCommand_1 = __nccwpck_require__(71939); +const UpdateResourceDataSyncCommand_1 = __nccwpck_require__(20567); +const UpdateServiceSettingCommand_1 = __nccwpck_require__(12789); +const SSMClient_1 = __nccwpck_require__(13440); +class SSM extends SSMClient_1.SSMClient { + addTagsToResource(args, optionsOrCb, cb) { + const command = new AddTagsToResourceCommand_1.AddTagsToResourceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + associateOpsItemRelatedItem(args, optionsOrCb, cb) { + const command = new AssociateOpsItemRelatedItemCommand_1.AssociateOpsItemRelatedItemCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + cancelCommand(args, optionsOrCb, cb) { + const command = new CancelCommandCommand_1.CancelCommandCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + cancelMaintenanceWindowExecution(args, optionsOrCb, cb) { + const command = new CancelMaintenanceWindowExecutionCommand_1.CancelMaintenanceWindowExecutionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + createActivation(args, optionsOrCb, cb) { + const command = new CreateActivationCommand_1.CreateActivationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + createAssociation(args, optionsOrCb, cb) { + const command = new CreateAssociationCommand_1.CreateAssociationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + createAssociationBatch(args, optionsOrCb, cb) { + const command = new CreateAssociationBatchCommand_1.CreateAssociationBatchCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + createDocument(args, optionsOrCb, cb) { + const command = new CreateDocumentCommand_1.CreateDocumentCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + createMaintenanceWindow(args, optionsOrCb, cb) { + const command = new CreateMaintenanceWindowCommand_1.CreateMaintenanceWindowCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + createOpsItem(args, optionsOrCb, cb) { + const command = new CreateOpsItemCommand_1.CreateOpsItemCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + createOpsMetadata(args, optionsOrCb, cb) { + const command = new CreateOpsMetadataCommand_1.CreateOpsMetadataCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + createPatchBaseline(args, optionsOrCb, cb) { + const command = new CreatePatchBaselineCommand_1.CreatePatchBaselineCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + createResourceDataSync(args, optionsOrCb, cb) { + const command = new CreateResourceDataSyncCommand_1.CreateResourceDataSyncCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + deleteActivation(args, optionsOrCb, cb) { + const command = new DeleteActivationCommand_1.DeleteActivationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + deleteAssociation(args, optionsOrCb, cb) { + const command = new DeleteAssociationCommand_1.DeleteAssociationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + deleteDocument(args, optionsOrCb, cb) { + const command = new DeleteDocumentCommand_1.DeleteDocumentCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + deleteInventory(args, optionsOrCb, cb) { + const command = new DeleteInventoryCommand_1.DeleteInventoryCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + deleteMaintenanceWindow(args, optionsOrCb, cb) { + const command = new DeleteMaintenanceWindowCommand_1.DeleteMaintenanceWindowCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + deleteOpsMetadata(args, optionsOrCb, cb) { + const command = new DeleteOpsMetadataCommand_1.DeleteOpsMetadataCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + deleteParameter(args, optionsOrCb, cb) { + const command = new DeleteParameterCommand_1.DeleteParameterCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + deleteParameters(args, optionsOrCb, cb) { + const command = new DeleteParametersCommand_1.DeleteParametersCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + deletePatchBaseline(args, optionsOrCb, cb) { + const command = new DeletePatchBaselineCommand_1.DeletePatchBaselineCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + deleteResourceDataSync(args, optionsOrCb, cb) { + const command = new DeleteResourceDataSyncCommand_1.DeleteResourceDataSyncCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + deregisterManagedInstance(args, optionsOrCb, cb) { + const command = new DeregisterManagedInstanceCommand_1.DeregisterManagedInstanceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + deregisterPatchBaselineForPatchGroup(args, optionsOrCb, cb) { + const command = new DeregisterPatchBaselineForPatchGroupCommand_1.DeregisterPatchBaselineForPatchGroupCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + deregisterTargetFromMaintenanceWindow(args, optionsOrCb, cb) { + const command = new DeregisterTargetFromMaintenanceWindowCommand_1.DeregisterTargetFromMaintenanceWindowCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + deregisterTaskFromMaintenanceWindow(args, optionsOrCb, cb) { + const command = new DeregisterTaskFromMaintenanceWindowCommand_1.DeregisterTaskFromMaintenanceWindowCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeActivations(args, optionsOrCb, cb) { + const command = new DescribeActivationsCommand_1.DescribeActivationsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeAssociation(args, optionsOrCb, cb) { + const command = new DescribeAssociationCommand_1.DescribeAssociationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeAssociationExecutions(args, optionsOrCb, cb) { + const command = new DescribeAssociationExecutionsCommand_1.DescribeAssociationExecutionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeAssociationExecutionTargets(args, optionsOrCb, cb) { + const command = new DescribeAssociationExecutionTargetsCommand_1.DescribeAssociationExecutionTargetsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeAutomationExecutions(args, optionsOrCb, cb) { + const command = new DescribeAutomationExecutionsCommand_1.DescribeAutomationExecutionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeAutomationStepExecutions(args, optionsOrCb, cb) { + const command = new DescribeAutomationStepExecutionsCommand_1.DescribeAutomationStepExecutionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeAvailablePatches(args, optionsOrCb, cb) { + const command = new DescribeAvailablePatchesCommand_1.DescribeAvailablePatchesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeDocument(args, optionsOrCb, cb) { + const command = new DescribeDocumentCommand_1.DescribeDocumentCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeDocumentPermission(args, optionsOrCb, cb) { + const command = new DescribeDocumentPermissionCommand_1.DescribeDocumentPermissionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeEffectiveInstanceAssociations(args, optionsOrCb, cb) { + const command = new DescribeEffectiveInstanceAssociationsCommand_1.DescribeEffectiveInstanceAssociationsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeEffectivePatchesForPatchBaseline(args, optionsOrCb, cb) { + const command = new DescribeEffectivePatchesForPatchBaselineCommand_1.DescribeEffectivePatchesForPatchBaselineCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeInstanceAssociationsStatus(args, optionsOrCb, cb) { + const command = new DescribeInstanceAssociationsStatusCommand_1.DescribeInstanceAssociationsStatusCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeInstanceInformation(args, optionsOrCb, cb) { + const command = new DescribeInstanceInformationCommand_1.DescribeInstanceInformationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeInstancePatches(args, optionsOrCb, cb) { + const command = new DescribeInstancePatchesCommand_1.DescribeInstancePatchesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeInstancePatchStates(args, optionsOrCb, cb) { + const command = new DescribeInstancePatchStatesCommand_1.DescribeInstancePatchStatesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeInstancePatchStatesForPatchGroup(args, optionsOrCb, cb) { + const command = new DescribeInstancePatchStatesForPatchGroupCommand_1.DescribeInstancePatchStatesForPatchGroupCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeInventoryDeletions(args, optionsOrCb, cb) { + const command = new DescribeInventoryDeletionsCommand_1.DescribeInventoryDeletionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeMaintenanceWindowExecutions(args, optionsOrCb, cb) { + const command = new DescribeMaintenanceWindowExecutionsCommand_1.DescribeMaintenanceWindowExecutionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeMaintenanceWindowExecutionTaskInvocations(args, optionsOrCb, cb) { + const command = new DescribeMaintenanceWindowExecutionTaskInvocationsCommand_1.DescribeMaintenanceWindowExecutionTaskInvocationsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeMaintenanceWindowExecutionTasks(args, optionsOrCb, cb) { + const command = new DescribeMaintenanceWindowExecutionTasksCommand_1.DescribeMaintenanceWindowExecutionTasksCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeMaintenanceWindows(args, optionsOrCb, cb) { + const command = new DescribeMaintenanceWindowsCommand_1.DescribeMaintenanceWindowsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeMaintenanceWindowSchedule(args, optionsOrCb, cb) { + const command = new DescribeMaintenanceWindowScheduleCommand_1.DescribeMaintenanceWindowScheduleCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeMaintenanceWindowsForTarget(args, optionsOrCb, cb) { + const command = new DescribeMaintenanceWindowsForTargetCommand_1.DescribeMaintenanceWindowsForTargetCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeMaintenanceWindowTargets(args, optionsOrCb, cb) { + const command = new DescribeMaintenanceWindowTargetsCommand_1.DescribeMaintenanceWindowTargetsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeMaintenanceWindowTasks(args, optionsOrCb, cb) { + const command = new DescribeMaintenanceWindowTasksCommand_1.DescribeMaintenanceWindowTasksCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeOpsItems(args, optionsOrCb, cb) { + const command = new DescribeOpsItemsCommand_1.DescribeOpsItemsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeParameters(args, optionsOrCb, cb) { + const command = new DescribeParametersCommand_1.DescribeParametersCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describePatchBaselines(args, optionsOrCb, cb) { + const command = new DescribePatchBaselinesCommand_1.DescribePatchBaselinesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describePatchGroups(args, optionsOrCb, cb) { + const command = new DescribePatchGroupsCommand_1.DescribePatchGroupsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describePatchGroupState(args, optionsOrCb, cb) { + const command = new DescribePatchGroupStateCommand_1.DescribePatchGroupStateCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describePatchProperties(args, optionsOrCb, cb) { + const command = new DescribePatchPropertiesCommand_1.DescribePatchPropertiesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + describeSessions(args, optionsOrCb, cb) { + const command = new DescribeSessionsCommand_1.DescribeSessionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + disassociateOpsItemRelatedItem(args, optionsOrCb, cb) { + const command = new DisassociateOpsItemRelatedItemCommand_1.DisassociateOpsItemRelatedItemCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getAutomationExecution(args, optionsOrCb, cb) { + const command = new GetAutomationExecutionCommand_1.GetAutomationExecutionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getCalendarState(args, optionsOrCb, cb) { + const command = new GetCalendarStateCommand_1.GetCalendarStateCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getCommandInvocation(args, optionsOrCb, cb) { + const command = new GetCommandInvocationCommand_1.GetCommandInvocationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getConnectionStatus(args, optionsOrCb, cb) { + const command = new GetConnectionStatusCommand_1.GetConnectionStatusCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getDefaultPatchBaseline(args, optionsOrCb, cb) { + const command = new GetDefaultPatchBaselineCommand_1.GetDefaultPatchBaselineCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getDeployablePatchSnapshotForInstance(args, optionsOrCb, cb) { + const command = new GetDeployablePatchSnapshotForInstanceCommand_1.GetDeployablePatchSnapshotForInstanceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getDocument(args, optionsOrCb, cb) { + const command = new GetDocumentCommand_1.GetDocumentCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getInventory(args, optionsOrCb, cb) { + const command = new GetInventoryCommand_1.GetInventoryCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getInventorySchema(args, optionsOrCb, cb) { + const command = new GetInventorySchemaCommand_1.GetInventorySchemaCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getMaintenanceWindow(args, optionsOrCb, cb) { + const command = new GetMaintenanceWindowCommand_1.GetMaintenanceWindowCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getMaintenanceWindowExecution(args, optionsOrCb, cb) { + const command = new GetMaintenanceWindowExecutionCommand_1.GetMaintenanceWindowExecutionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getMaintenanceWindowExecutionTask(args, optionsOrCb, cb) { + const command = new GetMaintenanceWindowExecutionTaskCommand_1.GetMaintenanceWindowExecutionTaskCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getMaintenanceWindowExecutionTaskInvocation(args, optionsOrCb, cb) { + const command = new GetMaintenanceWindowExecutionTaskInvocationCommand_1.GetMaintenanceWindowExecutionTaskInvocationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getMaintenanceWindowTask(args, optionsOrCb, cb) { + const command = new GetMaintenanceWindowTaskCommand_1.GetMaintenanceWindowTaskCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getOpsItem(args, optionsOrCb, cb) { + const command = new GetOpsItemCommand_1.GetOpsItemCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getOpsMetadata(args, optionsOrCb, cb) { + const command = new GetOpsMetadataCommand_1.GetOpsMetadataCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getOpsSummary(args, optionsOrCb, cb) { + const command = new GetOpsSummaryCommand_1.GetOpsSummaryCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getParameter(args, optionsOrCb, cb) { + const command = new GetParameterCommand_1.GetParameterCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getParameterHistory(args, optionsOrCb, cb) { + const command = new GetParameterHistoryCommand_1.GetParameterHistoryCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getParameters(args, optionsOrCb, cb) { + const command = new GetParametersCommand_1.GetParametersCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getParametersByPath(args, optionsOrCb, cb) { + const command = new GetParametersByPathCommand_1.GetParametersByPathCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getPatchBaseline(args, optionsOrCb, cb) { + const command = new GetPatchBaselineCommand_1.GetPatchBaselineCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getPatchBaselineForPatchGroup(args, optionsOrCb, cb) { + const command = new GetPatchBaselineForPatchGroupCommand_1.GetPatchBaselineForPatchGroupCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getServiceSetting(args, optionsOrCb, cb) { + const command = new GetServiceSettingCommand_1.GetServiceSettingCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + labelParameterVersion(args, optionsOrCb, cb) { + const command = new LabelParameterVersionCommand_1.LabelParameterVersionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + listAssociations(args, optionsOrCb, cb) { + const command = new ListAssociationsCommand_1.ListAssociationsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + listAssociationVersions(args, optionsOrCb, cb) { + const command = new ListAssociationVersionsCommand_1.ListAssociationVersionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + listCommandInvocations(args, optionsOrCb, cb) { + const command = new ListCommandInvocationsCommand_1.ListCommandInvocationsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + listCommands(args, optionsOrCb, cb) { + const command = new ListCommandsCommand_1.ListCommandsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + listComplianceItems(args, optionsOrCb, cb) { + const command = new ListComplianceItemsCommand_1.ListComplianceItemsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + listComplianceSummaries(args, optionsOrCb, cb) { + const command = new ListComplianceSummariesCommand_1.ListComplianceSummariesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + listDocumentMetadataHistory(args, optionsOrCb, cb) { + const command = new ListDocumentMetadataHistoryCommand_1.ListDocumentMetadataHistoryCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + listDocuments(args, optionsOrCb, cb) { + const command = new ListDocumentsCommand_1.ListDocumentsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + listDocumentVersions(args, optionsOrCb, cb) { + const command = new ListDocumentVersionsCommand_1.ListDocumentVersionsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + listInventoryEntries(args, optionsOrCb, cb) { + const command = new ListInventoryEntriesCommand_1.ListInventoryEntriesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + listOpsItemEvents(args, optionsOrCb, cb) { + const command = new ListOpsItemEventsCommand_1.ListOpsItemEventsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + listOpsItemRelatedItems(args, optionsOrCb, cb) { + const command = new ListOpsItemRelatedItemsCommand_1.ListOpsItemRelatedItemsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + listOpsMetadata(args, optionsOrCb, cb) { + const command = new ListOpsMetadataCommand_1.ListOpsMetadataCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + listResourceComplianceSummaries(args, optionsOrCb, cb) { + const command = new ListResourceComplianceSummariesCommand_1.ListResourceComplianceSummariesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + listResourceDataSync(args, optionsOrCb, cb) { + const command = new ListResourceDataSyncCommand_1.ListResourceDataSyncCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + listTagsForResource(args, optionsOrCb, cb) { + const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + modifyDocumentPermission(args, optionsOrCb, cb) { + const command = new ModifyDocumentPermissionCommand_1.ModifyDocumentPermissionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + putComplianceItems(args, optionsOrCb, cb) { + const command = new PutComplianceItemsCommand_1.PutComplianceItemsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + putInventory(args, optionsOrCb, cb) { + const command = new PutInventoryCommand_1.PutInventoryCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + putParameter(args, optionsOrCb, cb) { + const command = new PutParameterCommand_1.PutParameterCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + registerDefaultPatchBaseline(args, optionsOrCb, cb) { + const command = new RegisterDefaultPatchBaselineCommand_1.RegisterDefaultPatchBaselineCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + registerPatchBaselineForPatchGroup(args, optionsOrCb, cb) { + const command = new RegisterPatchBaselineForPatchGroupCommand_1.RegisterPatchBaselineForPatchGroupCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + registerTargetWithMaintenanceWindow(args, optionsOrCb, cb) { + const command = new RegisterTargetWithMaintenanceWindowCommand_1.RegisterTargetWithMaintenanceWindowCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + registerTaskWithMaintenanceWindow(args, optionsOrCb, cb) { + const command = new RegisterTaskWithMaintenanceWindowCommand_1.RegisterTaskWithMaintenanceWindowCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + removeTagsFromResource(args, optionsOrCb, cb) { + const command = new RemoveTagsFromResourceCommand_1.RemoveTagsFromResourceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + resetServiceSetting(args, optionsOrCb, cb) { + const command = new ResetServiceSettingCommand_1.ResetServiceSettingCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + resumeSession(args, optionsOrCb, cb) { + const command = new ResumeSessionCommand_1.ResumeSessionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + sendAutomationSignal(args, optionsOrCb, cb) { + const command = new SendAutomationSignalCommand_1.SendAutomationSignalCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + sendCommand(args, optionsOrCb, cb) { + const command = new SendCommandCommand_1.SendCommandCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + startAssociationsOnce(args, optionsOrCb, cb) { + const command = new StartAssociationsOnceCommand_1.StartAssociationsOnceCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + startAutomationExecution(args, optionsOrCb, cb) { + const command = new StartAutomationExecutionCommand_1.StartAutomationExecutionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + startChangeRequestExecution(args, optionsOrCb, cb) { + const command = new StartChangeRequestExecutionCommand_1.StartChangeRequestExecutionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + startSession(args, optionsOrCb, cb) { + const command = new StartSessionCommand_1.StartSessionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + stopAutomationExecution(args, optionsOrCb, cb) { + const command = new StopAutomationExecutionCommand_1.StopAutomationExecutionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + terminateSession(args, optionsOrCb, cb) { + const command = new TerminateSessionCommand_1.TerminateSessionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + unlabelParameterVersion(args, optionsOrCb, cb) { + const command = new UnlabelParameterVersionCommand_1.UnlabelParameterVersionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + updateAssociation(args, optionsOrCb, cb) { + const command = new UpdateAssociationCommand_1.UpdateAssociationCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + updateAssociationStatus(args, optionsOrCb, cb) { + const command = new UpdateAssociationStatusCommand_1.UpdateAssociationStatusCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + updateDocument(args, optionsOrCb, cb) { + const command = new UpdateDocumentCommand_1.UpdateDocumentCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + updateDocumentDefaultVersion(args, optionsOrCb, cb) { + const command = new UpdateDocumentDefaultVersionCommand_1.UpdateDocumentDefaultVersionCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + updateDocumentMetadata(args, optionsOrCb, cb) { + const command = new UpdateDocumentMetadataCommand_1.UpdateDocumentMetadataCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + updateMaintenanceWindow(args, optionsOrCb, cb) { + const command = new UpdateMaintenanceWindowCommand_1.UpdateMaintenanceWindowCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + updateMaintenanceWindowTarget(args, optionsOrCb, cb) { + const command = new UpdateMaintenanceWindowTargetCommand_1.UpdateMaintenanceWindowTargetCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + updateMaintenanceWindowTask(args, optionsOrCb, cb) { + const command = new UpdateMaintenanceWindowTaskCommand_1.UpdateMaintenanceWindowTaskCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + updateManagedInstanceRole(args, optionsOrCb, cb) { + const command = new UpdateManagedInstanceRoleCommand_1.UpdateManagedInstanceRoleCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + updateOpsItem(args, optionsOrCb, cb) { + const command = new UpdateOpsItemCommand_1.UpdateOpsItemCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + updateOpsMetadata(args, optionsOrCb, cb) { + const command = new UpdateOpsMetadataCommand_1.UpdateOpsMetadataCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + updatePatchBaseline(args, optionsOrCb, cb) { + const command = new UpdatePatchBaselineCommand_1.UpdatePatchBaselineCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + updateResourceDataSync(args, optionsOrCb, cb) { + const command = new UpdateResourceDataSyncCommand_1.UpdateResourceDataSyncCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + updateServiceSetting(args, optionsOrCb, cb) { + const command = new UpdateServiceSettingCommand_1.UpdateServiceSettingCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } +} +exports.SSM = SSM; + + +/***/ }), + +/***/ 13440: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SSMClient = void 0; +const config_resolver_1 = __nccwpck_require__(56153); +const middleware_content_length_1 = __nccwpck_require__(42245); +const middleware_host_header_1 = __nccwpck_require__(22545); +const middleware_logger_1 = __nccwpck_require__(20014); +const middleware_recursion_detection_1 = __nccwpck_require__(85525); +const middleware_retry_1 = __nccwpck_require__(96064); +const middleware_signing_1 = __nccwpck_require__(14935); +const middleware_user_agent_1 = __nccwpck_require__(64688); +const smithy_client_1 = __nccwpck_require__(4963); +const runtimeConfig_1 = __nccwpck_require__(78509); +class SSMClient extends smithy_client_1.Client { + constructor(configuration) { + const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); + const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); + const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); + const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); + const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); + const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4); + const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); + super(_config_6); + this.config = _config_6; + this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); + } + destroy() { + super.destroy(); + } +} +exports.SSMClient = SSMClient; + + +/***/ }), + +/***/ 16548: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AddTagsToResourceCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class AddTagsToResourceCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "AddTagsToResourceCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AddTagsToResourceRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.AddTagsToResourceResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1AddTagsToResourceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1AddTagsToResourceCommand)(output, context); + } +} +exports.AddTagsToResourceCommand = AddTagsToResourceCommand; + + +/***/ }), + +/***/ 80864: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AssociateOpsItemRelatedItemCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class AssociateOpsItemRelatedItemCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "AssociateOpsItemRelatedItemCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AssociateOpsItemRelatedItemRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.AssociateOpsItemRelatedItemResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1AssociateOpsItemRelatedItemCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1AssociateOpsItemRelatedItemCommand)(output, context); + } +} +exports.AssociateOpsItemRelatedItemCommand = AssociateOpsItemRelatedItemCommand; + + +/***/ }), + +/***/ 43654: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CancelCommandCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class CancelCommandCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "CancelCommandCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CancelCommandRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CancelCommandResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CancelCommandCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CancelCommandCommand)(output, context); + } +} +exports.CancelCommandCommand = CancelCommandCommand; + + +/***/ }), + +/***/ 16795: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CancelMaintenanceWindowExecutionCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class CancelMaintenanceWindowExecutionCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "CancelMaintenanceWindowExecutionCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CancelMaintenanceWindowExecutionRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CancelMaintenanceWindowExecutionResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CancelMaintenanceWindowExecutionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CancelMaintenanceWindowExecutionCommand)(output, context); + } +} +exports.CancelMaintenanceWindowExecutionCommand = CancelMaintenanceWindowExecutionCommand; + + +/***/ }), + +/***/ 93455: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CreateActivationCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class CreateActivationCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "CreateActivationCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateActivationRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateActivationResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CreateActivationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CreateActivationCommand)(output, context); + } +} +exports.CreateActivationCommand = CreateActivationCommand; + + +/***/ }), + +/***/ 22615: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CreateAssociationBatchCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class CreateAssociationBatchCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "CreateAssociationBatchCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateAssociationBatchRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateAssociationBatchResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CreateAssociationBatchCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CreateAssociationBatchCommand)(output, context); + } +} +exports.CreateAssociationBatchCommand = CreateAssociationBatchCommand; + + +/***/ }), + +/***/ 87570: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CreateAssociationCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class CreateAssociationCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "CreateAssociationCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateAssociationRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateAssociationResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CreateAssociationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CreateAssociationCommand)(output, context); + } +} +exports.CreateAssociationCommand = CreateAssociationCommand; + + +/***/ }), + +/***/ 38888: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CreateDocumentCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class CreateDocumentCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "CreateDocumentCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateDocumentRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateDocumentResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CreateDocumentCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CreateDocumentCommand)(output, context); + } +} +exports.CreateDocumentCommand = CreateDocumentCommand; + + +/***/ }), + +/***/ 84735: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CreateMaintenanceWindowCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class CreateMaintenanceWindowCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "CreateMaintenanceWindowCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateMaintenanceWindowRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateMaintenanceWindowResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CreateMaintenanceWindowCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CreateMaintenanceWindowCommand)(output, context); + } +} +exports.CreateMaintenanceWindowCommand = CreateMaintenanceWindowCommand; + + +/***/ }), + +/***/ 17634: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CreateOpsItemCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class CreateOpsItemCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "CreateOpsItemCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateOpsItemRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateOpsItemResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CreateOpsItemCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CreateOpsItemCommand)(output, context); + } +} +exports.CreateOpsItemCommand = CreateOpsItemCommand; + + +/***/ }), + +/***/ 85963: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CreateOpsMetadataCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class CreateOpsMetadataCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "CreateOpsMetadataCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateOpsMetadataRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateOpsMetadataResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CreateOpsMetadataCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CreateOpsMetadataCommand)(output, context); + } +} +exports.CreateOpsMetadataCommand = CreateOpsMetadataCommand; + + +/***/ }), + +/***/ 68004: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CreatePatchBaselineCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class CreatePatchBaselineCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "CreatePatchBaselineCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreatePatchBaselineRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreatePatchBaselineResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CreatePatchBaselineCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CreatePatchBaselineCommand)(output, context); + } +} +exports.CreatePatchBaselineCommand = CreatePatchBaselineCommand; + + +/***/ }), + +/***/ 30345: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CreateResourceDataSyncCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class CreateResourceDataSyncCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "CreateResourceDataSyncCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateResourceDataSyncRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateResourceDataSyncResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1CreateResourceDataSyncCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1CreateResourceDataSyncCommand)(output, context); + } +} +exports.CreateResourceDataSyncCommand = CreateResourceDataSyncCommand; + + +/***/ }), + +/***/ 67594: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeleteActivationCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DeleteActivationCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DeleteActivationCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteActivationRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteActivationResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteActivationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteActivationCommand)(output, context); + } +} +exports.DeleteActivationCommand = DeleteActivationCommand; + + +/***/ }), + +/***/ 5292: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeleteAssociationCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DeleteAssociationCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DeleteAssociationCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteAssociationRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteAssociationResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteAssociationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteAssociationCommand)(output, context); + } +} +exports.DeleteAssociationCommand = DeleteAssociationCommand; + + +/***/ }), + +/***/ 91242: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeleteDocumentCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DeleteDocumentCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DeleteDocumentCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteDocumentRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteDocumentResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteDocumentCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteDocumentCommand)(output, context); + } +} +exports.DeleteDocumentCommand = DeleteDocumentCommand; + + +/***/ }), + +/***/ 47241: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeleteInventoryCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DeleteInventoryCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DeleteInventoryCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteInventoryRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteInventoryResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteInventoryCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteInventoryCommand)(output, context); + } +} +exports.DeleteInventoryCommand = DeleteInventoryCommand; + + +/***/ }), + +/***/ 5695: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeleteMaintenanceWindowCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DeleteMaintenanceWindowCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DeleteMaintenanceWindowCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteMaintenanceWindowRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteMaintenanceWindowResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteMaintenanceWindowCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteMaintenanceWindowCommand)(output, context); + } +} +exports.DeleteMaintenanceWindowCommand = DeleteMaintenanceWindowCommand; + + +/***/ }), + +/***/ 35235: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeleteOpsMetadataCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DeleteOpsMetadataCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DeleteOpsMetadataCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteOpsMetadataRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteOpsMetadataResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteOpsMetadataCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteOpsMetadataCommand)(output, context); + } +} +exports.DeleteOpsMetadataCommand = DeleteOpsMetadataCommand; + + +/***/ }), + +/***/ 74261: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeleteParameterCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DeleteParameterCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DeleteParameterCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteParameterRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteParameterResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteParameterCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteParameterCommand)(output, context); + } +} +exports.DeleteParameterCommand = DeleteParameterCommand; + + +/***/ }), + +/***/ 35322: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeleteParametersCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DeleteParametersCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DeleteParametersCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteParametersRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteParametersResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteParametersCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteParametersCommand)(output, context); + } +} +exports.DeleteParametersCommand = DeleteParametersCommand; + + +/***/ }), + +/***/ 5734: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeletePatchBaselineCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DeletePatchBaselineCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DeletePatchBaselineCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeletePatchBaselineRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeletePatchBaselineResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeletePatchBaselineCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeletePatchBaselineCommand)(output, context); + } +} +exports.DeletePatchBaselineCommand = DeletePatchBaselineCommand; + + +/***/ }), + +/***/ 4505: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeleteResourceDataSyncCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DeleteResourceDataSyncCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DeleteResourceDataSyncCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteResourceDataSyncRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteResourceDataSyncResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeleteResourceDataSyncCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeleteResourceDataSyncCommand)(output, context); + } +} +exports.DeleteResourceDataSyncCommand = DeleteResourceDataSyncCommand; + + +/***/ }), + +/***/ 16721: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeregisterManagedInstanceCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DeregisterManagedInstanceCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DeregisterManagedInstanceCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeregisterManagedInstanceRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeregisterManagedInstanceResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeregisterManagedInstanceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeregisterManagedInstanceCommand)(output, context); + } +} +exports.DeregisterManagedInstanceCommand = DeregisterManagedInstanceCommand; + + +/***/ }), + +/***/ 11889: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeregisterPatchBaselineForPatchGroupCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DeregisterPatchBaselineForPatchGroupCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DeregisterPatchBaselineForPatchGroupCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeregisterPatchBaselineForPatchGroupRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeregisterPatchBaselineForPatchGroupResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand)(output, context); + } +} +exports.DeregisterPatchBaselineForPatchGroupCommand = DeregisterPatchBaselineForPatchGroupCommand; + + +/***/ }), + +/***/ 86346: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeregisterTargetFromMaintenanceWindowCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DeregisterTargetFromMaintenanceWindowCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DeregisterTargetFromMaintenanceWindowCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeregisterTargetFromMaintenanceWindowRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeregisterTargetFromMaintenanceWindowResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand)(output, context); + } +} +exports.DeregisterTargetFromMaintenanceWindowCommand = DeregisterTargetFromMaintenanceWindowCommand; + + +/***/ }), + +/***/ 98087: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DeregisterTaskFromMaintenanceWindowCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DeregisterTaskFromMaintenanceWindowCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DeregisterTaskFromMaintenanceWindowCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeregisterTaskFromMaintenanceWindowRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeregisterTaskFromMaintenanceWindowResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand)(output, context); + } +} +exports.DeregisterTaskFromMaintenanceWindowCommand = DeregisterTaskFromMaintenanceWindowCommand; + + +/***/ }), + +/***/ 99158: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeActivationsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeActivationsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeActivationsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeActivationsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeActivationsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeActivationsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeActivationsCommand)(output, context); + } +} +exports.DescribeActivationsCommand = DescribeActivationsCommand; + + +/***/ }), + +/***/ 55442: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeAssociationCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeAssociationCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeAssociationCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeAssociationRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeAssociationResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeAssociationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeAssociationCommand)(output, context); + } +} +exports.DescribeAssociationCommand = DescribeAssociationCommand; + + +/***/ }), + +/***/ 89459: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeAssociationExecutionTargetsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeAssociationExecutionTargetsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeAssociationExecutionTargetsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeAssociationExecutionTargetsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeAssociationExecutionTargetsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeAssociationExecutionTargetsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeAssociationExecutionTargetsCommand)(output, context); + } +} +exports.DescribeAssociationExecutionTargetsCommand = DescribeAssociationExecutionTargetsCommand; + + +/***/ }), + +/***/ 3119: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeAssociationExecutionsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeAssociationExecutionsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeAssociationExecutionsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeAssociationExecutionsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeAssociationExecutionsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeAssociationExecutionsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeAssociationExecutionsCommand)(output, context); + } +} +exports.DescribeAssociationExecutionsCommand = DescribeAssociationExecutionsCommand; + + +/***/ }), + +/***/ 70342: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeAutomationExecutionsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeAutomationExecutionsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeAutomationExecutionsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeAutomationExecutionsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeAutomationExecutionsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeAutomationExecutionsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeAutomationExecutionsCommand)(output, context); + } +} +exports.DescribeAutomationExecutionsCommand = DescribeAutomationExecutionsCommand; + + +/***/ }), + +/***/ 50626: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeAutomationStepExecutionsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeAutomationStepExecutionsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeAutomationStepExecutionsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeAutomationStepExecutionsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeAutomationStepExecutionsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeAutomationStepExecutionsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeAutomationStepExecutionsCommand)(output, context); + } +} +exports.DescribeAutomationStepExecutionsCommand = DescribeAutomationStepExecutionsCommand; + + +/***/ }), + +/***/ 73378: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeAvailablePatchesCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeAvailablePatchesCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeAvailablePatchesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeAvailablePatchesRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeAvailablePatchesResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeAvailablePatchesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeAvailablePatchesCommand)(output, context); + } +} +exports.DescribeAvailablePatchesCommand = DescribeAvailablePatchesCommand; + + +/***/ }), + +/***/ 4165: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeDocumentCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeDocumentCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeDocumentCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeDocumentRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeDocumentResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeDocumentCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeDocumentCommand)(output, context); + } +} +exports.DescribeDocumentCommand = DescribeDocumentCommand; + + +/***/ }), + +/***/ 35531: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeDocumentPermissionCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeDocumentPermissionCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeDocumentPermissionCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeDocumentPermissionRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeDocumentPermissionResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeDocumentPermissionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeDocumentPermissionCommand)(output, context); + } +} +exports.DescribeDocumentPermissionCommand = DescribeDocumentPermissionCommand; + + +/***/ }), + +/***/ 48907: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeEffectiveInstanceAssociationsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeEffectiveInstanceAssociationsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeEffectiveInstanceAssociationsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeEffectiveInstanceAssociationsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeEffectiveInstanceAssociationsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand)(output, context); + } +} +exports.DescribeEffectiveInstanceAssociationsCommand = DescribeEffectiveInstanceAssociationsCommand; + + +/***/ }), + +/***/ 11074: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeEffectivePatchesForPatchBaselineCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeEffectivePatchesForPatchBaselineCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeEffectivePatchesForPatchBaselineCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeEffectivePatchesForPatchBaselineRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeEffectivePatchesForPatchBaselineResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand)(output, context); + } +} +exports.DescribeEffectivePatchesForPatchBaselineCommand = DescribeEffectivePatchesForPatchBaselineCommand; + + +/***/ }), + +/***/ 50546: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeInstanceAssociationsStatusCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeInstanceAssociationsStatusCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeInstanceAssociationsStatusCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeInstanceAssociationsStatusRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeInstanceAssociationsStatusResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeInstanceAssociationsStatusCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeInstanceAssociationsStatusCommand)(output, context); + } +} +exports.DescribeInstanceAssociationsStatusCommand = DescribeInstanceAssociationsStatusCommand; + + +/***/ }), + +/***/ 72297: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeInstanceInformationCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeInstanceInformationCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeInstanceInformationCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeInstanceInformationRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeInstanceInformationResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeInstanceInformationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeInstanceInformationCommand)(output, context); + } +} +exports.DescribeInstanceInformationCommand = DescribeInstanceInformationCommand; + + +/***/ }), + +/***/ 96994: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeInstancePatchStatesCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeInstancePatchStatesCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeInstancePatchStatesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeInstancePatchStatesRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeInstancePatchStatesResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeInstancePatchStatesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeInstancePatchStatesCommand)(output, context); + } +} +exports.DescribeInstancePatchStatesCommand = DescribeInstancePatchStatesCommand; + + +/***/ }), + +/***/ 50028: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeInstancePatchStatesForPatchGroupCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeInstancePatchStatesForPatchGroupCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeInstancePatchStatesForPatchGroupCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeInstancePatchStatesForPatchGroupRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand)(output, context); + } +} +exports.DescribeInstancePatchStatesForPatchGroupCommand = DescribeInstancePatchStatesForPatchGroupCommand; + + +/***/ }), + +/***/ 45672: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeInstancePatchesCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeInstancePatchesCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeInstancePatchesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeInstancePatchesRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeInstancePatchesResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeInstancePatchesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeInstancePatchesCommand)(output, context); + } +} +exports.DescribeInstancePatchesCommand = DescribeInstancePatchesCommand; + + +/***/ }), + +/***/ 51289: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeInventoryDeletionsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeInventoryDeletionsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeInventoryDeletionsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeInventoryDeletionsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeInventoryDeletionsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeInventoryDeletionsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeInventoryDeletionsCommand)(output, context); + } +} +exports.DescribeInventoryDeletionsCommand = DescribeInventoryDeletionsCommand; + + +/***/ }), + +/***/ 71741: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeMaintenanceWindowExecutionTaskInvocationsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeMaintenanceWindowExecutionTaskInvocationsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeMaintenanceWindowExecutionTaskInvocationsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowExecutionTaskInvocationsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand)(output, context); + } +} +exports.DescribeMaintenanceWindowExecutionTaskInvocationsCommand = DescribeMaintenanceWindowExecutionTaskInvocationsCommand; + + +/***/ }), + +/***/ 19495: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeMaintenanceWindowExecutionTasksCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeMaintenanceWindowExecutionTasksCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeMaintenanceWindowExecutionTasksCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowExecutionTasksRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowExecutionTasksResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand)(output, context); + } +} +exports.DescribeMaintenanceWindowExecutionTasksCommand = DescribeMaintenanceWindowExecutionTasksCommand; + + +/***/ }), + +/***/ 66016: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeMaintenanceWindowExecutionsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeMaintenanceWindowExecutionsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeMaintenanceWindowExecutionsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowExecutionsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowExecutionsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand)(output, context); + } +} +exports.DescribeMaintenanceWindowExecutionsCommand = DescribeMaintenanceWindowExecutionsCommand; + + +/***/ }), + +/***/ 83598: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeMaintenanceWindowScheduleCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeMaintenanceWindowScheduleCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeMaintenanceWindowScheduleCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowScheduleRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowScheduleResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeMaintenanceWindowScheduleCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeMaintenanceWindowScheduleCommand)(output, context); + } +} +exports.DescribeMaintenanceWindowScheduleCommand = DescribeMaintenanceWindowScheduleCommand; + + +/***/ }), + +/***/ 78871: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeMaintenanceWindowTargetsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeMaintenanceWindowTargetsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeMaintenanceWindowTargetsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowTargetsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowTargetsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeMaintenanceWindowTargetsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeMaintenanceWindowTargetsCommand)(output, context); + } +} +exports.DescribeMaintenanceWindowTargetsCommand = DescribeMaintenanceWindowTargetsCommand; + + +/***/ }), + +/***/ 26677: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeMaintenanceWindowTasksCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeMaintenanceWindowTasksCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeMaintenanceWindowTasksCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowTasksRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowTasksResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeMaintenanceWindowTasksCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeMaintenanceWindowTasksCommand)(output, context); + } +} +exports.DescribeMaintenanceWindowTasksCommand = DescribeMaintenanceWindowTasksCommand; + + +/***/ }), + +/***/ 99482: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeMaintenanceWindowsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeMaintenanceWindowsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeMaintenanceWindowsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeMaintenanceWindowsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeMaintenanceWindowsCommand)(output, context); + } +} +exports.DescribeMaintenanceWindowsCommand = DescribeMaintenanceWindowsCommand; + + +/***/ }), + +/***/ 41025: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeMaintenanceWindowsForTargetCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeMaintenanceWindowsForTargetCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeMaintenanceWindowsForTargetCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowsForTargetRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowsForTargetResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand)(output, context); + } +} +exports.DescribeMaintenanceWindowsForTargetCommand = DescribeMaintenanceWindowsForTargetCommand; + + +/***/ }), + +/***/ 76177: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeOpsItemsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeOpsItemsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeOpsItemsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeOpsItemsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeOpsItemsResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeOpsItemsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeOpsItemsCommand)(output, context); + } +} +exports.DescribeOpsItemsCommand = DescribeOpsItemsCommand; + + +/***/ }), + +/***/ 45975: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeParametersCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeParametersCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeParametersCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeParametersRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.DescribeParametersResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeParametersCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeParametersCommand)(output, context); + } +} +exports.DescribeParametersCommand = DescribeParametersCommand; + + +/***/ }), + +/***/ 83186: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribePatchBaselinesCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribePatchBaselinesCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribePatchBaselinesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.DescribePatchBaselinesRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.DescribePatchBaselinesResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribePatchBaselinesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribePatchBaselinesCommand)(output, context); + } +} +exports.DescribePatchBaselinesCommand = DescribePatchBaselinesCommand; + + +/***/ }), + +/***/ 1655: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribePatchGroupStateCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribePatchGroupStateCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribePatchGroupStateCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.DescribePatchGroupStateRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.DescribePatchGroupStateResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribePatchGroupStateCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribePatchGroupStateCommand)(output, context); + } +} +exports.DescribePatchGroupStateCommand = DescribePatchGroupStateCommand; + + +/***/ }), + +/***/ 45192: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribePatchGroupsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribePatchGroupsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribePatchGroupsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.DescribePatchGroupsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.DescribePatchGroupsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribePatchGroupsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribePatchGroupsCommand)(output, context); + } +} +exports.DescribePatchGroupsCommand = DescribePatchGroupsCommand; + + +/***/ }), + +/***/ 36964: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribePatchPropertiesCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribePatchPropertiesCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribePatchPropertiesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.DescribePatchPropertiesRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.DescribePatchPropertiesResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribePatchPropertiesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribePatchPropertiesCommand)(output, context); + } +} +exports.DescribePatchPropertiesCommand = DescribePatchPropertiesCommand; + + +/***/ }), + +/***/ 43787: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DescribeSessionsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DescribeSessionsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DescribeSessionsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.DescribeSessionsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.DescribeSessionsResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DescribeSessionsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeSessionsCommand)(output, context); + } +} +exports.DescribeSessionsCommand = DescribeSessionsCommand; + + +/***/ }), + +/***/ 65098: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DisassociateOpsItemRelatedItemCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class DisassociateOpsItemRelatedItemCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "DisassociateOpsItemRelatedItemCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.DisassociateOpsItemRelatedItemRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.DisassociateOpsItemRelatedItemResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1DisassociateOpsItemRelatedItemCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1DisassociateOpsItemRelatedItemCommand)(output, context); + } +} +exports.DisassociateOpsItemRelatedItemCommand = DisassociateOpsItemRelatedItemCommand; + + +/***/ }), + +/***/ 29240: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetAutomationExecutionCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetAutomationExecutionCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetAutomationExecutionCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetAutomationExecutionRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetAutomationExecutionResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetAutomationExecutionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetAutomationExecutionCommand)(output, context); + } +} +exports.GetAutomationExecutionCommand = GetAutomationExecutionCommand; + + +/***/ }), + +/***/ 68121: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetCalendarStateCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetCalendarStateCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetCalendarStateCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetCalendarStateRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetCalendarStateResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetCalendarStateCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetCalendarStateCommand)(output, context); + } +} +exports.GetCalendarStateCommand = GetCalendarStateCommand; + + +/***/ }), + +/***/ 93305: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetCommandInvocationCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetCommandInvocationCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetCommandInvocationCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetCommandInvocationRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetCommandInvocationResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetCommandInvocationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetCommandInvocationCommand)(output, context); + } +} +exports.GetCommandInvocationCommand = GetCommandInvocationCommand; + + +/***/ }), + +/***/ 99654: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetConnectionStatusCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetConnectionStatusCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetConnectionStatusCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetConnectionStatusRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetConnectionStatusResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetConnectionStatusCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetConnectionStatusCommand)(output, context); + } +} +exports.GetConnectionStatusCommand = GetConnectionStatusCommand; + + +/***/ }), + +/***/ 57498: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetDefaultPatchBaselineCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetDefaultPatchBaselineCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetDefaultPatchBaselineCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetDefaultPatchBaselineRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetDefaultPatchBaselineResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetDefaultPatchBaselineCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetDefaultPatchBaselineCommand)(output, context); + } +} +exports.GetDefaultPatchBaselineCommand = GetDefaultPatchBaselineCommand; + + +/***/ }), + +/***/ 92944: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetDeployablePatchSnapshotForInstanceCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetDeployablePatchSnapshotForInstanceCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetDeployablePatchSnapshotForInstanceCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetDeployablePatchSnapshotForInstanceResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand)(output, context); + } +} +exports.GetDeployablePatchSnapshotForInstanceCommand = GetDeployablePatchSnapshotForInstanceCommand; + + +/***/ }), + +/***/ 6408: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetDocumentCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetDocumentCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetDocumentCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetDocumentRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetDocumentResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetDocumentCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetDocumentCommand)(output, context); + } +} +exports.GetDocumentCommand = GetDocumentCommand; + + +/***/ }), + +/***/ 93690: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetInventoryCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const models_2_1 = __nccwpck_require__(33439); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetInventoryCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetInventoryCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_2_1.GetInventoryRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetInventoryResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetInventoryCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetInventoryCommand)(output, context); + } +} +exports.GetInventoryCommand = GetInventoryCommand; + + +/***/ }), + +/***/ 88675: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetInventorySchemaCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetInventorySchemaCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetInventorySchemaCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetInventorySchemaRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetInventorySchemaResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetInventorySchemaCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetInventorySchemaCommand)(output, context); + } +} +exports.GetInventorySchemaCommand = GetInventorySchemaCommand; + + +/***/ }), + +/***/ 49424: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetMaintenanceWindowCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetMaintenanceWindowCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetMaintenanceWindowCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetMaintenanceWindowRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetMaintenanceWindowResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetMaintenanceWindowCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetMaintenanceWindowCommand)(output, context); + } +} +exports.GetMaintenanceWindowCommand = GetMaintenanceWindowCommand; + + +/***/ }), + +/***/ 52486: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetMaintenanceWindowExecutionCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetMaintenanceWindowExecutionCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetMaintenanceWindowExecutionCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetMaintenanceWindowExecutionRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetMaintenanceWindowExecutionResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetMaintenanceWindowExecutionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetMaintenanceWindowExecutionCommand)(output, context); + } +} +exports.GetMaintenanceWindowExecutionCommand = GetMaintenanceWindowExecutionCommand; + + +/***/ }), + +/***/ 6244: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetMaintenanceWindowExecutionTaskCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetMaintenanceWindowExecutionTaskCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetMaintenanceWindowExecutionTaskCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetMaintenanceWindowExecutionTaskRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand)(output, context); + } +} +exports.GetMaintenanceWindowExecutionTaskCommand = GetMaintenanceWindowExecutionTaskCommand; + + +/***/ }), + +/***/ 94578: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetMaintenanceWindowExecutionTaskInvocationCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetMaintenanceWindowExecutionTaskInvocationCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetMaintenanceWindowExecutionTaskInvocationCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetMaintenanceWindowExecutionTaskInvocationRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand)(output, context); + } +} +exports.GetMaintenanceWindowExecutionTaskInvocationCommand = GetMaintenanceWindowExecutionTaskInvocationCommand; + + +/***/ }), + +/***/ 12083: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetMaintenanceWindowTaskCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetMaintenanceWindowTaskCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetMaintenanceWindowTaskCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetMaintenanceWindowTaskRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetMaintenanceWindowTaskResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetMaintenanceWindowTaskCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetMaintenanceWindowTaskCommand)(output, context); + } +} +exports.GetMaintenanceWindowTaskCommand = GetMaintenanceWindowTaskCommand; + + +/***/ }), + +/***/ 46293: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetOpsItemCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetOpsItemCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetOpsItemCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetOpsItemRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetOpsItemResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetOpsItemCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetOpsItemCommand)(output, context); + } +} +exports.GetOpsItemCommand = GetOpsItemCommand; + + +/***/ }), + +/***/ 65672: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetOpsMetadataCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetOpsMetadataCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetOpsMetadataCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetOpsMetadataRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetOpsMetadataResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetOpsMetadataCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetOpsMetadataCommand)(output, context); + } +} +exports.GetOpsMetadataCommand = GetOpsMetadataCommand; + + +/***/ }), + +/***/ 19458: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetOpsSummaryCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const models_2_1 = __nccwpck_require__(33439); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetOpsSummaryCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetOpsSummaryCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_2_1.GetOpsSummaryRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetOpsSummaryResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetOpsSummaryCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetOpsSummaryCommand)(output, context); + } +} +exports.GetOpsSummaryCommand = GetOpsSummaryCommand; + + +/***/ }), + +/***/ 53134: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetParameterCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetParameterCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetParameterCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetParameterRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetParameterResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetParameterCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetParameterCommand)(output, context); + } +} +exports.GetParameterCommand = GetParameterCommand; + + +/***/ }), + +/***/ 30108: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetParameterHistoryCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetParameterHistoryCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetParameterHistoryCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetParameterHistoryRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetParameterHistoryResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetParameterHistoryCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetParameterHistoryCommand)(output, context); + } +} +exports.GetParameterHistoryCommand = GetParameterHistoryCommand; + + +/***/ }), + +/***/ 22164: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetParametersByPathCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetParametersByPathCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetParametersByPathCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetParametersByPathRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetParametersByPathResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetParametersByPathCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetParametersByPathCommand)(output, context); + } +} +exports.GetParametersByPathCommand = GetParametersByPathCommand; + + +/***/ }), + +/***/ 43487: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetParametersCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetParametersCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetParametersCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetParametersRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetParametersResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetParametersCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetParametersCommand)(output, context); + } +} +exports.GetParametersCommand = GetParametersCommand; + + +/***/ }), + +/***/ 35873: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetPatchBaselineCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetPatchBaselineCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetPatchBaselineCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetPatchBaselineRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetPatchBaselineResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetPatchBaselineCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetPatchBaselineCommand)(output, context); + } +} +exports.GetPatchBaselineCommand = GetPatchBaselineCommand; + + +/***/ }), + +/***/ 95382: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetPatchBaselineForPatchGroupCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetPatchBaselineForPatchGroupCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetPatchBaselineForPatchGroupCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetPatchBaselineForPatchGroupRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetPatchBaselineForPatchGroupResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetPatchBaselineForPatchGroupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetPatchBaselineForPatchGroupCommand)(output, context); + } +} +exports.GetPatchBaselineForPatchGroupCommand = GetPatchBaselineForPatchGroupCommand; + + +/***/ }), + +/***/ 36289: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetServiceSettingCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class GetServiceSettingCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "GetServiceSettingCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.GetServiceSettingRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.GetServiceSettingResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1GetServiceSettingCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1GetServiceSettingCommand)(output, context); + } +} +exports.GetServiceSettingCommand = GetServiceSettingCommand; + + +/***/ }), + +/***/ 54351: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LabelParameterVersionCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class LabelParameterVersionCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "LabelParameterVersionCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.LabelParameterVersionRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.LabelParameterVersionResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1LabelParameterVersionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1LabelParameterVersionCommand)(output, context); + } +} +exports.LabelParameterVersionCommand = LabelParameterVersionCommand; + + +/***/ }), + +/***/ 40838: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListAssociationVersionsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ListAssociationVersionsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ListAssociationVersionsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ListAssociationVersionsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ListAssociationVersionsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListAssociationVersionsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListAssociationVersionsCommand)(output, context); + } +} +exports.ListAssociationVersionsCommand = ListAssociationVersionsCommand; + + +/***/ }), + +/***/ 29074: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListAssociationsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ListAssociationsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ListAssociationsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ListAssociationsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ListAssociationsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListAssociationsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListAssociationsCommand)(output, context); + } +} +exports.ListAssociationsCommand = ListAssociationsCommand; + + +/***/ }), + +/***/ 27002: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListCommandInvocationsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ListCommandInvocationsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ListCommandInvocationsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ListCommandInvocationsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ListCommandInvocationsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListCommandInvocationsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListCommandInvocationsCommand)(output, context); + } +} +exports.ListCommandInvocationsCommand = ListCommandInvocationsCommand; + + +/***/ }), + +/***/ 56883: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListCommandsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ListCommandsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ListCommandsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ListCommandsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ListCommandsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListCommandsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListCommandsCommand)(output, context); + } +} +exports.ListCommandsCommand = ListCommandsCommand; + + +/***/ }), + +/***/ 29771: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListComplianceItemsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ListComplianceItemsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ListComplianceItemsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ListComplianceItemsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ListComplianceItemsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListComplianceItemsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListComplianceItemsCommand)(output, context); + } +} +exports.ListComplianceItemsCommand = ListComplianceItemsCommand; + + +/***/ }), + +/***/ 93331: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListComplianceSummariesCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ListComplianceSummariesCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ListComplianceSummariesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ListComplianceSummariesRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ListComplianceSummariesResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListComplianceSummariesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListComplianceSummariesCommand)(output, context); + } +} +exports.ListComplianceSummariesCommand = ListComplianceSummariesCommand; + + +/***/ }), + +/***/ 41758: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListDocumentMetadataHistoryCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ListDocumentMetadataHistoryCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ListDocumentMetadataHistoryCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ListDocumentMetadataHistoryRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ListDocumentMetadataHistoryResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListDocumentMetadataHistoryCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListDocumentMetadataHistoryCommand)(output, context); + } +} +exports.ListDocumentMetadataHistoryCommand = ListDocumentMetadataHistoryCommand; + + +/***/ }), + +/***/ 41473: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListDocumentVersionsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ListDocumentVersionsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ListDocumentVersionsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ListDocumentVersionsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ListDocumentVersionsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListDocumentVersionsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListDocumentVersionsCommand)(output, context); + } +} +exports.ListDocumentVersionsCommand = ListDocumentVersionsCommand; + + +/***/ }), + +/***/ 37018: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListDocumentsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ListDocumentsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ListDocumentsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ListDocumentsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ListDocumentsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListDocumentsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListDocumentsCommand)(output, context); + } +} +exports.ListDocumentsCommand = ListDocumentsCommand; + + +/***/ }), + +/***/ 15943: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListInventoryEntriesCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ListInventoryEntriesCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ListInventoryEntriesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ListInventoryEntriesRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ListInventoryEntriesResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListInventoryEntriesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListInventoryEntriesCommand)(output, context); + } +} +exports.ListInventoryEntriesCommand = ListInventoryEntriesCommand; + + +/***/ }), + +/***/ 23927: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListOpsItemEventsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ListOpsItemEventsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ListOpsItemEventsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ListOpsItemEventsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ListOpsItemEventsResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListOpsItemEventsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListOpsItemEventsCommand)(output, context); + } +} +exports.ListOpsItemEventsCommand = ListOpsItemEventsCommand; + + +/***/ }), + +/***/ 95342: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListOpsItemRelatedItemsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ListOpsItemRelatedItemsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ListOpsItemRelatedItemsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ListOpsItemRelatedItemsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ListOpsItemRelatedItemsResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListOpsItemRelatedItemsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListOpsItemRelatedItemsCommand)(output, context); + } +} +exports.ListOpsItemRelatedItemsCommand = ListOpsItemRelatedItemsCommand; + + +/***/ }), + +/***/ 93770: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListOpsMetadataCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ListOpsMetadataCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ListOpsMetadataCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ListOpsMetadataRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ListOpsMetadataResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListOpsMetadataCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListOpsMetadataCommand)(output, context); + } +} +exports.ListOpsMetadataCommand = ListOpsMetadataCommand; + + +/***/ }), + +/***/ 25219: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListResourceComplianceSummariesCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ListResourceComplianceSummariesCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ListResourceComplianceSummariesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ListResourceComplianceSummariesRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ListResourceComplianceSummariesResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListResourceComplianceSummariesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListResourceComplianceSummariesCommand)(output, context); + } +} +exports.ListResourceComplianceSummariesCommand = ListResourceComplianceSummariesCommand; + + +/***/ }), + +/***/ 30788: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListResourceDataSyncCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ListResourceDataSyncCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ListResourceDataSyncCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ListResourceDataSyncRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ListResourceDataSyncResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListResourceDataSyncCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListResourceDataSyncCommand)(output, context); + } +} +exports.ListResourceDataSyncCommand = ListResourceDataSyncCommand; + + +/***/ }), + +/***/ 99655: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListTagsForResourceCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ListTagsForResourceCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ListTagsForResourceCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ListTagsForResourceRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ListTagsForResourceResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ListTagsForResourceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ListTagsForResourceCommand)(output, context); + } +} +exports.ListTagsForResourceCommand = ListTagsForResourceCommand; + + +/***/ }), + +/***/ 3863: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ModifyDocumentPermissionCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ModifyDocumentPermissionCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ModifyDocumentPermissionCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ModifyDocumentPermissionRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ModifyDocumentPermissionResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ModifyDocumentPermissionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ModifyDocumentPermissionCommand)(output, context); + } +} +exports.ModifyDocumentPermissionCommand = ModifyDocumentPermissionCommand; + + +/***/ }), + +/***/ 5777: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PutComplianceItemsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class PutComplianceItemsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "PutComplianceItemsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.PutComplianceItemsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.PutComplianceItemsResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1PutComplianceItemsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1PutComplianceItemsCommand)(output, context); + } +} +exports.PutComplianceItemsCommand = PutComplianceItemsCommand; + + +/***/ }), + +/***/ 61374: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PutInventoryCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class PutInventoryCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "PutInventoryCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.PutInventoryRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.PutInventoryResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1PutInventoryCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1PutInventoryCommand)(output, context); + } +} +exports.PutInventoryCommand = PutInventoryCommand; + + +/***/ }), + +/***/ 53056: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PutParameterCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class PutParameterCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "PutParameterCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.PutParameterRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.PutParameterResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1PutParameterCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1PutParameterCommand)(output, context); + } +} +exports.PutParameterCommand = PutParameterCommand; + + +/***/ }), + +/***/ 51698: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.RegisterDefaultPatchBaselineCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class RegisterDefaultPatchBaselineCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "RegisterDefaultPatchBaselineCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.RegisterDefaultPatchBaselineRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.RegisterDefaultPatchBaselineResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1RegisterDefaultPatchBaselineCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1RegisterDefaultPatchBaselineCommand)(output, context); + } +} +exports.RegisterDefaultPatchBaselineCommand = RegisterDefaultPatchBaselineCommand; + + +/***/ }), + +/***/ 40858: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.RegisterPatchBaselineForPatchGroupCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class RegisterPatchBaselineForPatchGroupCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "RegisterPatchBaselineForPatchGroupCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.RegisterPatchBaselineForPatchGroupRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.RegisterPatchBaselineForPatchGroupResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand)(output, context); + } +} +exports.RegisterPatchBaselineForPatchGroupCommand = RegisterPatchBaselineForPatchGroupCommand; + + +/***/ }), + +/***/ 99894: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.RegisterTargetWithMaintenanceWindowCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class RegisterTargetWithMaintenanceWindowCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "RegisterTargetWithMaintenanceWindowCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.RegisterTargetWithMaintenanceWindowResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand)(output, context); + } +} +exports.RegisterTargetWithMaintenanceWindowCommand = RegisterTargetWithMaintenanceWindowCommand; + + +/***/ }), + +/***/ 15375: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.RegisterTaskWithMaintenanceWindowCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class RegisterTaskWithMaintenanceWindowCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "RegisterTaskWithMaintenanceWindowCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.RegisterTaskWithMaintenanceWindowResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand)(output, context); + } +} +exports.RegisterTaskWithMaintenanceWindowCommand = RegisterTaskWithMaintenanceWindowCommand; + + +/***/ }), + +/***/ 52892: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.RemoveTagsFromResourceCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class RemoveTagsFromResourceCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "RemoveTagsFromResourceCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.RemoveTagsFromResourceRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.RemoveTagsFromResourceResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1RemoveTagsFromResourceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1RemoveTagsFromResourceCommand)(output, context); + } +} +exports.RemoveTagsFromResourceCommand = RemoveTagsFromResourceCommand; + + +/***/ }), + +/***/ 80327: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ResetServiceSettingCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ResetServiceSettingCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ResetServiceSettingCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ResetServiceSettingRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ResetServiceSettingResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ResetServiceSettingCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ResetServiceSettingCommand)(output, context); + } +} +exports.ResetServiceSettingCommand = ResetServiceSettingCommand; + + +/***/ }), + +/***/ 25508: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ResumeSessionCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class ResumeSessionCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "ResumeSessionCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.ResumeSessionRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.ResumeSessionResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1ResumeSessionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1ResumeSessionCommand)(output, context); + } +} +exports.ResumeSessionCommand = ResumeSessionCommand; + + +/***/ }), + +/***/ 55185: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SendAutomationSignalCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class SendAutomationSignalCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "SendAutomationSignalCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.SendAutomationSignalRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.SendAutomationSignalResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1SendAutomationSignalCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1SendAutomationSignalCommand)(output, context); + } +} +exports.SendAutomationSignalCommand = SendAutomationSignalCommand; + + +/***/ }), + +/***/ 63552: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SendCommandCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class SendCommandCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "SendCommandCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.SendCommandRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.SendCommandResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1SendCommandCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1SendCommandCommand)(output, context); + } +} +exports.SendCommandCommand = SendCommandCommand; + + +/***/ }), + +/***/ 52233: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.StartAssociationsOnceCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class StartAssociationsOnceCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "StartAssociationsOnceCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.StartAssociationsOnceRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.StartAssociationsOnceResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1StartAssociationsOnceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1StartAssociationsOnceCommand)(output, context); + } +} +exports.StartAssociationsOnceCommand = StartAssociationsOnceCommand; + + +/***/ }), + +/***/ 81295: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.StartAutomationExecutionCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class StartAutomationExecutionCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "StartAutomationExecutionCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.StartAutomationExecutionRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.StartAutomationExecutionResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1StartAutomationExecutionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1StartAutomationExecutionCommand)(output, context); + } +} +exports.StartAutomationExecutionCommand = StartAutomationExecutionCommand; + + +/***/ }), + +/***/ 21965: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.StartChangeRequestExecutionCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class StartChangeRequestExecutionCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "StartChangeRequestExecutionCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.StartChangeRequestExecutionRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.StartChangeRequestExecutionResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1StartChangeRequestExecutionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1StartChangeRequestExecutionCommand)(output, context); + } +} +exports.StartChangeRequestExecutionCommand = StartChangeRequestExecutionCommand; + + +/***/ }), + +/***/ 1829: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.StartSessionCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class StartSessionCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "StartSessionCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.StartSessionRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.StartSessionResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1StartSessionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1StartSessionCommand)(output, context); + } +} +exports.StartSessionCommand = StartSessionCommand; + + +/***/ }), + +/***/ 11430: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.StopAutomationExecutionCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class StopAutomationExecutionCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "StopAutomationExecutionCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.StopAutomationExecutionRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.StopAutomationExecutionResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1StopAutomationExecutionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1StopAutomationExecutionCommand)(output, context); + } +} +exports.StopAutomationExecutionCommand = StopAutomationExecutionCommand; + + +/***/ }), + +/***/ 49199: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TerminateSessionCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class TerminateSessionCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "TerminateSessionCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.TerminateSessionRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.TerminateSessionResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1TerminateSessionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1TerminateSessionCommand)(output, context); + } +} +exports.TerminateSessionCommand = TerminateSessionCommand; + + +/***/ }), + +/***/ 24376: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UnlabelParameterVersionCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class UnlabelParameterVersionCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "UnlabelParameterVersionCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.UnlabelParameterVersionRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.UnlabelParameterVersionResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UnlabelParameterVersionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UnlabelParameterVersionCommand)(output, context); + } +} +exports.UnlabelParameterVersionCommand = UnlabelParameterVersionCommand; + + +/***/ }), + +/***/ 35455: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateAssociationCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class UpdateAssociationCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "UpdateAssociationCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.UpdateAssociationRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.UpdateAssociationResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UpdateAssociationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateAssociationCommand)(output, context); + } +} +exports.UpdateAssociationCommand = UpdateAssociationCommand; + + +/***/ }), + +/***/ 54036: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateAssociationStatusCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class UpdateAssociationStatusCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "UpdateAssociationStatusCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.UpdateAssociationStatusRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.UpdateAssociationStatusResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UpdateAssociationStatusCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateAssociationStatusCommand)(output, context); + } +} +exports.UpdateAssociationStatusCommand = UpdateAssociationStatusCommand; + + +/***/ }), + +/***/ 91539: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateDocumentCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class UpdateDocumentCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "UpdateDocumentCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.UpdateDocumentRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.UpdateDocumentResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UpdateDocumentCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateDocumentCommand)(output, context); + } +} +exports.UpdateDocumentCommand = UpdateDocumentCommand; + + +/***/ }), + +/***/ 39946: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateDocumentDefaultVersionCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_1_1 = __nccwpck_require__(9974); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class UpdateDocumentDefaultVersionCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "UpdateDocumentDefaultVersionCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_1_1.UpdateDocumentDefaultVersionRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_1_1.UpdateDocumentDefaultVersionResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UpdateDocumentDefaultVersionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateDocumentDefaultVersionCommand)(output, context); + } +} +exports.UpdateDocumentDefaultVersionCommand = UpdateDocumentDefaultVersionCommand; + + +/***/ }), + +/***/ 30307: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateDocumentMetadataCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_2_1 = __nccwpck_require__(33439); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class UpdateDocumentMetadataCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "UpdateDocumentMetadataCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_2_1.UpdateDocumentMetadataRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_2_1.UpdateDocumentMetadataResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UpdateDocumentMetadataCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateDocumentMetadataCommand)(output, context); + } +} +exports.UpdateDocumentMetadataCommand = UpdateDocumentMetadataCommand; + + +/***/ }), + +/***/ 18832: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateMaintenanceWindowCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_2_1 = __nccwpck_require__(33439); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class UpdateMaintenanceWindowCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "UpdateMaintenanceWindowCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_2_1.UpdateMaintenanceWindowRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_2_1.UpdateMaintenanceWindowResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UpdateMaintenanceWindowCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateMaintenanceWindowCommand)(output, context); + } +} +exports.UpdateMaintenanceWindowCommand = UpdateMaintenanceWindowCommand; + + +/***/ }), + +/***/ 59941: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateMaintenanceWindowTargetCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_2_1 = __nccwpck_require__(33439); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class UpdateMaintenanceWindowTargetCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "UpdateMaintenanceWindowTargetCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_2_1.UpdateMaintenanceWindowTargetRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_2_1.UpdateMaintenanceWindowTargetResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UpdateMaintenanceWindowTargetCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateMaintenanceWindowTargetCommand)(output, context); + } +} +exports.UpdateMaintenanceWindowTargetCommand = UpdateMaintenanceWindowTargetCommand; + + +/***/ }), + +/***/ 42453: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateMaintenanceWindowTaskCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_2_1 = __nccwpck_require__(33439); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class UpdateMaintenanceWindowTaskCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "UpdateMaintenanceWindowTaskCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_2_1.UpdateMaintenanceWindowTaskRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_2_1.UpdateMaintenanceWindowTaskResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UpdateMaintenanceWindowTaskCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateMaintenanceWindowTaskCommand)(output, context); + } +} +exports.UpdateMaintenanceWindowTaskCommand = UpdateMaintenanceWindowTaskCommand; + + +/***/ }), + +/***/ 49753: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateManagedInstanceRoleCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_2_1 = __nccwpck_require__(33439); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class UpdateManagedInstanceRoleCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "UpdateManagedInstanceRoleCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_2_1.UpdateManagedInstanceRoleRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_2_1.UpdateManagedInstanceRoleResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UpdateManagedInstanceRoleCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateManagedInstanceRoleCommand)(output, context); + } +} +exports.UpdateManagedInstanceRoleCommand = UpdateManagedInstanceRoleCommand; + + +/***/ }), + +/***/ 64569: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateOpsItemCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_2_1 = __nccwpck_require__(33439); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class UpdateOpsItemCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "UpdateOpsItemCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_2_1.UpdateOpsItemRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_2_1.UpdateOpsItemResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UpdateOpsItemCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateOpsItemCommand)(output, context); + } +} +exports.UpdateOpsItemCommand = UpdateOpsItemCommand; + + +/***/ }), + +/***/ 57038: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateOpsMetadataCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_2_1 = __nccwpck_require__(33439); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class UpdateOpsMetadataCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "UpdateOpsMetadataCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_2_1.UpdateOpsMetadataRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_2_1.UpdateOpsMetadataResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UpdateOpsMetadataCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateOpsMetadataCommand)(output, context); + } +} +exports.UpdateOpsMetadataCommand = UpdateOpsMetadataCommand; + + +/***/ }), + +/***/ 71939: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdatePatchBaselineCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_2_1 = __nccwpck_require__(33439); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class UpdatePatchBaselineCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "UpdatePatchBaselineCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_2_1.UpdatePatchBaselineRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_2_1.UpdatePatchBaselineResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UpdatePatchBaselineCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UpdatePatchBaselineCommand)(output, context); + } +} +exports.UpdatePatchBaselineCommand = UpdatePatchBaselineCommand; + + +/***/ }), + +/***/ 20567: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateResourceDataSyncCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_2_1 = __nccwpck_require__(33439); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class UpdateResourceDataSyncCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "UpdateResourceDataSyncCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_2_1.UpdateResourceDataSyncRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_2_1.UpdateResourceDataSyncResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UpdateResourceDataSyncCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateResourceDataSyncCommand)(output, context); + } +} +exports.UpdateResourceDataSyncCommand = UpdateResourceDataSyncCommand; + + +/***/ }), + +/***/ 12789: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UpdateServiceSettingCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_2_1 = __nccwpck_require__(33439); +const Aws_json1_1_1 = __nccwpck_require__(95750); +class UpdateServiceSettingCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSMClient"; + const commandName = "UpdateServiceSettingCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_2_1.UpdateServiceSettingRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_2_1.UpdateServiceSettingResultFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_1_1.serializeAws_json1_1UpdateServiceSettingCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_1_1.deserializeAws_json1_1UpdateServiceSettingCommand)(output, context); + } +} +exports.UpdateServiceSettingCommand = UpdateServiceSettingCommand; + + +/***/ }), + +/***/ 45498: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(16548), exports); +tslib_1.__exportStar(__nccwpck_require__(80864), exports); +tslib_1.__exportStar(__nccwpck_require__(43654), exports); +tslib_1.__exportStar(__nccwpck_require__(16795), exports); +tslib_1.__exportStar(__nccwpck_require__(93455), exports); +tslib_1.__exportStar(__nccwpck_require__(22615), exports); +tslib_1.__exportStar(__nccwpck_require__(87570), exports); +tslib_1.__exportStar(__nccwpck_require__(38888), exports); +tslib_1.__exportStar(__nccwpck_require__(84735), exports); +tslib_1.__exportStar(__nccwpck_require__(17634), exports); +tslib_1.__exportStar(__nccwpck_require__(85963), exports); +tslib_1.__exportStar(__nccwpck_require__(68004), exports); +tslib_1.__exportStar(__nccwpck_require__(30345), exports); +tslib_1.__exportStar(__nccwpck_require__(67594), exports); +tslib_1.__exportStar(__nccwpck_require__(5292), exports); +tslib_1.__exportStar(__nccwpck_require__(91242), exports); +tslib_1.__exportStar(__nccwpck_require__(47241), exports); +tslib_1.__exportStar(__nccwpck_require__(5695), exports); +tslib_1.__exportStar(__nccwpck_require__(35235), exports); +tslib_1.__exportStar(__nccwpck_require__(74261), exports); +tslib_1.__exportStar(__nccwpck_require__(35322), exports); +tslib_1.__exportStar(__nccwpck_require__(5734), exports); +tslib_1.__exportStar(__nccwpck_require__(4505), exports); +tslib_1.__exportStar(__nccwpck_require__(16721), exports); +tslib_1.__exportStar(__nccwpck_require__(11889), exports); +tslib_1.__exportStar(__nccwpck_require__(86346), exports); +tslib_1.__exportStar(__nccwpck_require__(98087), exports); +tslib_1.__exportStar(__nccwpck_require__(99158), exports); +tslib_1.__exportStar(__nccwpck_require__(55442), exports); +tslib_1.__exportStar(__nccwpck_require__(89459), exports); +tslib_1.__exportStar(__nccwpck_require__(3119), exports); +tslib_1.__exportStar(__nccwpck_require__(70342), exports); +tslib_1.__exportStar(__nccwpck_require__(50626), exports); +tslib_1.__exportStar(__nccwpck_require__(73378), exports); +tslib_1.__exportStar(__nccwpck_require__(4165), exports); +tslib_1.__exportStar(__nccwpck_require__(35531), exports); +tslib_1.__exportStar(__nccwpck_require__(48907), exports); +tslib_1.__exportStar(__nccwpck_require__(11074), exports); +tslib_1.__exportStar(__nccwpck_require__(50546), exports); +tslib_1.__exportStar(__nccwpck_require__(72297), exports); +tslib_1.__exportStar(__nccwpck_require__(96994), exports); +tslib_1.__exportStar(__nccwpck_require__(50028), exports); +tslib_1.__exportStar(__nccwpck_require__(45672), exports); +tslib_1.__exportStar(__nccwpck_require__(51289), exports); +tslib_1.__exportStar(__nccwpck_require__(71741), exports); +tslib_1.__exportStar(__nccwpck_require__(19495), exports); +tslib_1.__exportStar(__nccwpck_require__(66016), exports); +tslib_1.__exportStar(__nccwpck_require__(83598), exports); +tslib_1.__exportStar(__nccwpck_require__(78871), exports); +tslib_1.__exportStar(__nccwpck_require__(26677), exports); +tslib_1.__exportStar(__nccwpck_require__(99482), exports); +tslib_1.__exportStar(__nccwpck_require__(41025), exports); +tslib_1.__exportStar(__nccwpck_require__(76177), exports); +tslib_1.__exportStar(__nccwpck_require__(45975), exports); +tslib_1.__exportStar(__nccwpck_require__(83186), exports); +tslib_1.__exportStar(__nccwpck_require__(1655), exports); +tslib_1.__exportStar(__nccwpck_require__(45192), exports); +tslib_1.__exportStar(__nccwpck_require__(36964), exports); +tslib_1.__exportStar(__nccwpck_require__(43787), exports); +tslib_1.__exportStar(__nccwpck_require__(65098), exports); +tslib_1.__exportStar(__nccwpck_require__(29240), exports); +tslib_1.__exportStar(__nccwpck_require__(68121), exports); +tslib_1.__exportStar(__nccwpck_require__(93305), exports); +tslib_1.__exportStar(__nccwpck_require__(99654), exports); +tslib_1.__exportStar(__nccwpck_require__(57498), exports); +tslib_1.__exportStar(__nccwpck_require__(92944), exports); +tslib_1.__exportStar(__nccwpck_require__(6408), exports); +tslib_1.__exportStar(__nccwpck_require__(93690), exports); +tslib_1.__exportStar(__nccwpck_require__(88675), exports); +tslib_1.__exportStar(__nccwpck_require__(49424), exports); +tslib_1.__exportStar(__nccwpck_require__(52486), exports); +tslib_1.__exportStar(__nccwpck_require__(6244), exports); +tslib_1.__exportStar(__nccwpck_require__(94578), exports); +tslib_1.__exportStar(__nccwpck_require__(12083), exports); +tslib_1.__exportStar(__nccwpck_require__(46293), exports); +tslib_1.__exportStar(__nccwpck_require__(65672), exports); +tslib_1.__exportStar(__nccwpck_require__(19458), exports); +tslib_1.__exportStar(__nccwpck_require__(53134), exports); +tslib_1.__exportStar(__nccwpck_require__(30108), exports); +tslib_1.__exportStar(__nccwpck_require__(22164), exports); +tslib_1.__exportStar(__nccwpck_require__(43487), exports); +tslib_1.__exportStar(__nccwpck_require__(35873), exports); +tslib_1.__exportStar(__nccwpck_require__(95382), exports); +tslib_1.__exportStar(__nccwpck_require__(36289), exports); +tslib_1.__exportStar(__nccwpck_require__(54351), exports); +tslib_1.__exportStar(__nccwpck_require__(40838), exports); +tslib_1.__exportStar(__nccwpck_require__(29074), exports); +tslib_1.__exportStar(__nccwpck_require__(27002), exports); +tslib_1.__exportStar(__nccwpck_require__(56883), exports); +tslib_1.__exportStar(__nccwpck_require__(29771), exports); +tslib_1.__exportStar(__nccwpck_require__(93331), exports); +tslib_1.__exportStar(__nccwpck_require__(41758), exports); +tslib_1.__exportStar(__nccwpck_require__(41473), exports); +tslib_1.__exportStar(__nccwpck_require__(37018), exports); +tslib_1.__exportStar(__nccwpck_require__(15943), exports); +tslib_1.__exportStar(__nccwpck_require__(23927), exports); +tslib_1.__exportStar(__nccwpck_require__(95342), exports); +tslib_1.__exportStar(__nccwpck_require__(93770), exports); +tslib_1.__exportStar(__nccwpck_require__(25219), exports); +tslib_1.__exportStar(__nccwpck_require__(30788), exports); +tslib_1.__exportStar(__nccwpck_require__(99655), exports); +tslib_1.__exportStar(__nccwpck_require__(3863), exports); +tslib_1.__exportStar(__nccwpck_require__(5777), exports); +tslib_1.__exportStar(__nccwpck_require__(61374), exports); +tslib_1.__exportStar(__nccwpck_require__(53056), exports); +tslib_1.__exportStar(__nccwpck_require__(51698), exports); +tslib_1.__exportStar(__nccwpck_require__(40858), exports); +tslib_1.__exportStar(__nccwpck_require__(99894), exports); +tslib_1.__exportStar(__nccwpck_require__(15375), exports); +tslib_1.__exportStar(__nccwpck_require__(52892), exports); +tslib_1.__exportStar(__nccwpck_require__(80327), exports); +tslib_1.__exportStar(__nccwpck_require__(25508), exports); +tslib_1.__exportStar(__nccwpck_require__(55185), exports); +tslib_1.__exportStar(__nccwpck_require__(63552), exports); +tslib_1.__exportStar(__nccwpck_require__(52233), exports); +tslib_1.__exportStar(__nccwpck_require__(81295), exports); +tslib_1.__exportStar(__nccwpck_require__(21965), exports); +tslib_1.__exportStar(__nccwpck_require__(1829), exports); +tslib_1.__exportStar(__nccwpck_require__(11430), exports); +tslib_1.__exportStar(__nccwpck_require__(49199), exports); +tslib_1.__exportStar(__nccwpck_require__(24376), exports); +tslib_1.__exportStar(__nccwpck_require__(35455), exports); +tslib_1.__exportStar(__nccwpck_require__(54036), exports); +tslib_1.__exportStar(__nccwpck_require__(91539), exports); +tslib_1.__exportStar(__nccwpck_require__(39946), exports); +tslib_1.__exportStar(__nccwpck_require__(30307), exports); +tslib_1.__exportStar(__nccwpck_require__(18832), exports); +tslib_1.__exportStar(__nccwpck_require__(59941), exports); +tslib_1.__exportStar(__nccwpck_require__(42453), exports); +tslib_1.__exportStar(__nccwpck_require__(49753), exports); +tslib_1.__exportStar(__nccwpck_require__(64569), exports); +tslib_1.__exportStar(__nccwpck_require__(57038), exports); +tslib_1.__exportStar(__nccwpck_require__(71939), exports); +tslib_1.__exportStar(__nccwpck_require__(20567), exports); +tslib_1.__exportStar(__nccwpck_require__(12789), exports); + + +/***/ }), + +/***/ 57499: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.defaultRegionInfoProvider = void 0; +const config_resolver_1 = __nccwpck_require__(56153); +const regionHash = { + "ca-central-1": { + variants: [ + { + hostname: "ssm-fips.ca-central-1.amazonaws.com", + tags: ["fips"], + }, + ], + }, + "us-east-1": { + variants: [ + { + hostname: "ssm-fips.us-east-1.amazonaws.com", + tags: ["fips"], + }, + ], + }, + "us-east-2": { + variants: [ + { + hostname: "ssm-fips.us-east-2.amazonaws.com", + tags: ["fips"], + }, + ], + }, + "us-gov-east-1": { + variants: [ + { + hostname: "ssm.us-gov-east-1.amazonaws.com", + tags: ["fips"], + }, + ], + }, + "us-gov-west-1": { + variants: [ + { + hostname: "ssm.us-gov-west-1.amazonaws.com", + tags: ["fips"], + }, + ], + }, + "us-west-1": { + variants: [ + { + hostname: "ssm-fips.us-west-1.amazonaws.com", + tags: ["fips"], + }, + ], + }, + "us-west-2": { + variants: [ + { + hostname: "ssm-fips.us-west-2.amazonaws.com", + tags: ["fips"], + }, + ], + }, +}; +const partitionHash = { + aws: { + regions: [ + "af-south-1", + "ap-east-1", + "ap-northeast-1", + "ap-northeast-2", + "ap-northeast-3", + "ap-south-1", + "ap-southeast-1", + "ap-southeast-2", + "ap-southeast-3", + "ca-central-1", + "eu-central-1", + "eu-north-1", + "eu-south-1", + "eu-west-1", + "eu-west-2", + "eu-west-3", + "fips-ca-central-1", + "fips-us-east-1", + "fips-us-east-2", + "fips-us-west-1", + "fips-us-west-2", + "me-south-1", + "sa-east-1", + "us-east-1", + "us-east-2", + "us-west-1", + "us-west-2", + ], + regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "ssm.{region}.amazonaws.com", + tags: [], + }, + { + hostname: "ssm-fips.{region}.amazonaws.com", + tags: ["fips"], + }, + { + hostname: "ssm-fips.{region}.api.aws", + tags: ["dualstack", "fips"], + }, + { + hostname: "ssm.{region}.api.aws", + tags: ["dualstack"], + }, + ], + }, + "aws-cn": { + regions: ["cn-north-1", "cn-northwest-1"], + regionRegex: "^cn\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "ssm.{region}.amazonaws.com.cn", + tags: [], + }, + { + hostname: "ssm-fips.{region}.amazonaws.com.cn", + tags: ["fips"], + }, + { + hostname: "ssm-fips.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack", "fips"], + }, + { + hostname: "ssm.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack"], + }, + ], + }, + "aws-iso": { + regions: ["us-iso-east-1", "us-iso-west-1"], + regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "ssm.{region}.c2s.ic.gov", + tags: [], + }, + { + hostname: "ssm-fips.{region}.c2s.ic.gov", + tags: ["fips"], + }, + ], + }, + "aws-iso-b": { + regions: ["us-isob-east-1"], + regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "ssm.{region}.sc2s.sgov.gov", + tags: [], + }, + { + hostname: "ssm-fips.{region}.sc2s.sgov.gov", + tags: ["fips"], + }, + ], + }, + "aws-us-gov": { + regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"], + regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "ssm.{region}.amazonaws.com", + tags: [], + }, + { + hostname: "ssm.{region}.amazonaws.com", + tags: ["fips"], + }, + { + hostname: "ssm-fips.{region}.api.aws", + tags: ["dualstack", "fips"], + }, + { + hostname: "ssm.{region}.api.aws", + tags: ["dualstack"], + }, + ], + }, +}; +const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { + ...options, + signingService: "ssm", + regionHash, + partitionHash, +}); +exports.defaultRegionInfoProvider = defaultRegionInfoProvider; + + +/***/ }), + +/***/ 20341: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SSMServiceException = void 0; +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(24046), exports); +tslib_1.__exportStar(__nccwpck_require__(13440), exports); +tslib_1.__exportStar(__nccwpck_require__(45498), exports); +tslib_1.__exportStar(__nccwpck_require__(84513), exports); +tslib_1.__exportStar(__nccwpck_require__(62666), exports); +tslib_1.__exportStar(__nccwpck_require__(88981), exports); +var SSMServiceException_1 = __nccwpck_require__(97777); +Object.defineProperty(exports, "SSMServiceException", ({ enumerable: true, get: function () { return SSMServiceException_1.SSMServiceException; } })); + + +/***/ }), + +/***/ 97777: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SSMServiceException = void 0; +const smithy_client_1 = __nccwpck_require__(4963); +class SSMServiceException extends smithy_client_1.ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, SSMServiceException.prototype); + } +} +exports.SSMServiceException = SSMServiceException; + + +/***/ }), + +/***/ 84513: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(82053), exports); +tslib_1.__exportStar(__nccwpck_require__(9974), exports); +tslib_1.__exportStar(__nccwpck_require__(33439), exports); + + +/***/ }), + +/***/ 82053: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PatchFilterKey = exports.PatchComplianceLevel = exports.OpsMetadataTooManyUpdatesException = exports.OpsMetadataLimitExceededException = exports.OpsMetadataInvalidArgumentException = exports.OpsMetadataAlreadyExistsException = exports.OpsItemAlreadyExistsException = exports.OpsItemDataType = exports.ResourceLimitExceededException = exports.IdempotentParameterMismatch = exports.MaxDocumentSizeExceeded = exports.InvalidDocumentSchemaVersion = exports.InvalidDocumentContent = exports.DocumentLimitExceeded = exports.DocumentAlreadyExists = exports.DocumentStatus = exports.ReviewStatus = exports.PlatformType = exports.DocumentHashType = exports.DocumentType = exports.DocumentFormat = exports.AttachmentsSourceKey = exports.UnsupportedPlatformType = exports.InvalidTargetMaps = exports.InvalidTarget = exports.InvalidSchedule = exports.InvalidOutputLocation = exports.InvalidDocumentVersion = exports.InvalidDocument = exports.AssociationStatusName = exports.AssociationSyncCompliance = exports.AssociationComplianceSeverity = exports.AssociationLimitExceeded = exports.AssociationAlreadyExists = exports.InvalidParameters = exports.DoesNotExistException = exports.InvalidInstanceId = exports.InvalidCommandId = exports.DuplicateInstanceId = exports.OpsItemRelatedItemAlreadyExistsException = exports.OpsItemNotFoundException = exports.OpsItemLimitExceededException = exports.OpsItemInvalidParameterException = exports.AlreadyExistsException = exports.TooManyUpdates = exports.TooManyTagsError = exports.InvalidResourceType = exports.InvalidResourceId = exports.InternalServerError = exports.ResourceTypeForTagging = void 0; +exports.RebootOption = exports.PatchOperationType = exports.PatchComplianceDataState = exports.InvalidInstanceInformationFilterValue = exports.SourceType = exports.ResourceType = exports.PingStatus = exports.InstanceInformationFilterKey = exports.UnsupportedOperatingSystem = exports.PatchDeploymentStatus = exports.InvalidPermissionType = exports.DocumentPermissionType = exports.StepExecutionFilterKey = exports.AutomationExecutionNotFoundException = exports.InvalidFilterValue = exports.InvalidFilterKey = exports.ExecutionMode = exports.AutomationType = exports.AutomationSubtype = exports.AutomationExecutionStatus = exports.AutomationExecutionFilterKey = exports.AssociationExecutionTargetsFilterKey = exports.AssociationExecutionDoesNotExist = exports.AssociationFilterOperatorType = exports.AssociationExecutionFilterKey = exports.InvalidAssociationVersion = exports.InvalidNextToken = exports.InvalidFilter = exports.DescribeActivationsFilterKeys = exports.TargetInUseException = exports.ResourceDataSyncNotFoundException = exports.ResourceInUseException = exports.ParameterNotFound = exports.OpsMetadataNotFoundException = exports.InvalidTypeNameException = exports.InvalidOptionException = exports.InvalidInventoryRequestException = exports.InvalidDeleteInventoryParametersException = exports.InventorySchemaDeleteOption = exports.InvalidDocumentOperation = exports.AssociatedInstances = exports.AssociationDoesNotExist = exports.InvalidActivationId = exports.InvalidActivation = exports.ResourceDataSyncInvalidConfigurationException = exports.ResourceDataSyncCountExceededException = exports.ResourceDataSyncAlreadyExistsException = exports.ResourceDataSyncS3Format = exports.PatchAction = exports.OperatingSystem = void 0; +exports.OpsItemDataValueFilterSensitiveLog = exports.OpsItemNotificationFilterSensitiveLog = exports.CreateMaintenanceWindowResultFilterSensitiveLog = exports.CreateMaintenanceWindowRequestFilterSensitiveLog = exports.CreateDocumentResultFilterSensitiveLog = exports.DocumentDescriptionFilterSensitiveLog = exports.ReviewInformationFilterSensitiveLog = exports.DocumentParameterFilterSensitiveLog = exports.AttachmentInformationFilterSensitiveLog = exports.CreateDocumentRequestFilterSensitiveLog = exports.DocumentRequiresFilterSensitiveLog = exports.AttachmentsSourceFilterSensitiveLog = exports.CreateAssociationBatchResultFilterSensitiveLog = exports.FailedCreateAssociationFilterSensitiveLog = exports.CreateAssociationBatchRequestFilterSensitiveLog = exports.CreateAssociationBatchRequestEntryFilterSensitiveLog = exports.CreateAssociationResultFilterSensitiveLog = exports.AssociationDescriptionFilterSensitiveLog = exports.AssociationStatusFilterSensitiveLog = exports.AssociationOverviewFilterSensitiveLog = exports.CreateAssociationRequestFilterSensitiveLog = exports.TargetFilterSensitiveLog = exports.TargetLocationFilterSensitiveLog = exports.InstanceAssociationOutputLocationFilterSensitiveLog = exports.S3OutputLocationFilterSensitiveLog = exports.CreateActivationResultFilterSensitiveLog = exports.CreateActivationRequestFilterSensitiveLog = exports.RegistrationMetadataItemFilterSensitiveLog = exports.CancelMaintenanceWindowExecutionResultFilterSensitiveLog = exports.CancelMaintenanceWindowExecutionRequestFilterSensitiveLog = exports.CancelCommandResultFilterSensitiveLog = exports.CancelCommandRequestFilterSensitiveLog = exports.AssociateOpsItemRelatedItemResponseFilterSensitiveLog = exports.AssociateOpsItemRelatedItemRequestFilterSensitiveLog = exports.AddTagsToResourceResultFilterSensitiveLog = exports.AddTagsToResourceRequestFilterSensitiveLog = exports.ActivationFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.AccountSharingInfoFilterSensitiveLog = exports.ParametersFilterKey = exports.OpsItemStatus = exports.OpsItemFilterOperator = exports.OpsItemFilterKey = exports.MaintenanceWindowTaskCutoffBehavior = exports.MaintenanceWindowResourceType = exports.MaintenanceWindowTaskType = exports.MaintenanceWindowExecutionStatus = exports.InvalidDeletionIdException = exports.InventoryDeletionStatus = exports.InstancePatchStateOperatorType = void 0; +exports.DeregisterTaskFromMaintenanceWindowResultFilterSensitiveLog = exports.DeregisterTaskFromMaintenanceWindowRequestFilterSensitiveLog = exports.DeregisterTargetFromMaintenanceWindowResultFilterSensitiveLog = exports.DeregisterTargetFromMaintenanceWindowRequestFilterSensitiveLog = exports.DeregisterPatchBaselineForPatchGroupResultFilterSensitiveLog = exports.DeregisterPatchBaselineForPatchGroupRequestFilterSensitiveLog = exports.DeregisterManagedInstanceResultFilterSensitiveLog = exports.DeregisterManagedInstanceRequestFilterSensitiveLog = exports.DeleteResourceDataSyncResultFilterSensitiveLog = exports.DeleteResourceDataSyncRequestFilterSensitiveLog = exports.DeletePatchBaselineResultFilterSensitiveLog = exports.DeletePatchBaselineRequestFilterSensitiveLog = exports.DeleteParametersResultFilterSensitiveLog = exports.DeleteParametersRequestFilterSensitiveLog = exports.DeleteParameterResultFilterSensitiveLog = exports.DeleteParameterRequestFilterSensitiveLog = exports.DeleteOpsMetadataResultFilterSensitiveLog = exports.DeleteOpsMetadataRequestFilterSensitiveLog = exports.DeleteMaintenanceWindowResultFilterSensitiveLog = exports.DeleteMaintenanceWindowRequestFilterSensitiveLog = exports.DeleteInventoryResultFilterSensitiveLog = exports.InventoryDeletionSummaryFilterSensitiveLog = exports.InventoryDeletionSummaryItemFilterSensitiveLog = exports.DeleteInventoryRequestFilterSensitiveLog = exports.DeleteDocumentResultFilterSensitiveLog = exports.DeleteDocumentRequestFilterSensitiveLog = exports.DeleteAssociationResultFilterSensitiveLog = exports.DeleteAssociationRequestFilterSensitiveLog = exports.DeleteActivationResultFilterSensitiveLog = exports.DeleteActivationRequestFilterSensitiveLog = exports.CreateResourceDataSyncResultFilterSensitiveLog = exports.CreateResourceDataSyncRequestFilterSensitiveLog = exports.ResourceDataSyncSourceFilterSensitiveLog = exports.ResourceDataSyncAwsOrganizationsSourceFilterSensitiveLog = exports.ResourceDataSyncOrganizationalUnitFilterSensitiveLog = exports.ResourceDataSyncS3DestinationFilterSensitiveLog = exports.ResourceDataSyncDestinationDataSharingFilterSensitiveLog = exports.CreatePatchBaselineResultFilterSensitiveLog = exports.CreatePatchBaselineRequestFilterSensitiveLog = exports.PatchSourceFilterSensitiveLog = exports.PatchRuleGroupFilterSensitiveLog = exports.PatchRuleFilterSensitiveLog = exports.PatchFilterGroupFilterSensitiveLog = exports.PatchFilterFilterSensitiveLog = exports.CreateOpsMetadataResultFilterSensitiveLog = exports.CreateOpsMetadataRequestFilterSensitiveLog = exports.MetadataValueFilterSensitiveLog = exports.CreateOpsItemResponseFilterSensitiveLog = exports.CreateOpsItemRequestFilterSensitiveLog = exports.RelatedOpsItemFilterSensitiveLog = void 0; +exports.InstanceInformationFilterSensitiveLog = exports.InstanceAggregatedAssociationOverviewFilterSensitiveLog = exports.DescribeInstanceInformationRequestFilterSensitiveLog = exports.InstanceInformationFilterFilterSensitiveLog = exports.InstanceInformationStringFilterFilterSensitiveLog = exports.DescribeInstanceAssociationsStatusResultFilterSensitiveLog = exports.InstanceAssociationStatusInfoFilterSensitiveLog = exports.InstanceAssociationOutputUrlFilterSensitiveLog = exports.S3OutputUrlFilterSensitiveLog = exports.DescribeInstanceAssociationsStatusRequestFilterSensitiveLog = exports.DescribeEffectivePatchesForPatchBaselineResultFilterSensitiveLog = exports.EffectivePatchFilterSensitiveLog = exports.PatchStatusFilterSensitiveLog = exports.DescribeEffectivePatchesForPatchBaselineRequestFilterSensitiveLog = exports.DescribeEffectiveInstanceAssociationsResultFilterSensitiveLog = exports.InstanceAssociationFilterSensitiveLog = exports.DescribeEffectiveInstanceAssociationsRequestFilterSensitiveLog = exports.DescribeDocumentPermissionResponseFilterSensitiveLog = exports.DescribeDocumentPermissionRequestFilterSensitiveLog = exports.DescribeDocumentResultFilterSensitiveLog = exports.DescribeDocumentRequestFilterSensitiveLog = exports.DescribeAvailablePatchesResultFilterSensitiveLog = exports.PatchFilterSensitiveLog = exports.DescribeAvailablePatchesRequestFilterSensitiveLog = exports.PatchOrchestratorFilterFilterSensitiveLog = exports.DescribeAutomationStepExecutionsResultFilterSensitiveLog = exports.StepExecutionFilterSensitiveLog = exports.FailureDetailsFilterSensitiveLog = exports.DescribeAutomationStepExecutionsRequestFilterSensitiveLog = exports.StepExecutionFilterFilterSensitiveLog = exports.DescribeAutomationExecutionsResultFilterSensitiveLog = exports.AutomationExecutionMetadataFilterSensitiveLog = exports.RunbookFilterSensitiveLog = exports.ResolvedTargetsFilterSensitiveLog = exports.DescribeAutomationExecutionsRequestFilterSensitiveLog = exports.AutomationExecutionFilterFilterSensitiveLog = exports.DescribeAssociationExecutionTargetsResultFilterSensitiveLog = exports.AssociationExecutionTargetFilterSensitiveLog = exports.OutputSourceFilterSensitiveLog = exports.DescribeAssociationExecutionTargetsRequestFilterSensitiveLog = exports.AssociationExecutionTargetsFilterFilterSensitiveLog = exports.DescribeAssociationExecutionsResultFilterSensitiveLog = exports.AssociationExecutionFilterSensitiveLog = exports.DescribeAssociationExecutionsRequestFilterSensitiveLog = exports.AssociationExecutionFilterFilterSensitiveLog = exports.DescribeAssociationResultFilterSensitiveLog = exports.DescribeAssociationRequestFilterSensitiveLog = exports.DescribeActivationsResultFilterSensitiveLog = exports.DescribeActivationsRequestFilterSensitiveLog = exports.DescribeActivationsFilterFilterSensitiveLog = void 0; +exports.ParameterInlinePolicyFilterSensitiveLog = exports.DescribeParametersRequestFilterSensitiveLog = exports.ParameterStringFilterFilterSensitiveLog = exports.ParametersFilterFilterSensitiveLog = exports.DescribeOpsItemsResponseFilterSensitiveLog = exports.OpsItemSummaryFilterSensitiveLog = exports.DescribeOpsItemsRequestFilterSensitiveLog = exports.OpsItemFilterFilterSensitiveLog = exports.DescribeMaintenanceWindowTasksResultFilterSensitiveLog = exports.MaintenanceWindowTaskFilterSensitiveLog = exports.MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog = exports.LoggingInfoFilterSensitiveLog = exports.DescribeMaintenanceWindowTasksRequestFilterSensitiveLog = exports.DescribeMaintenanceWindowTargetsResultFilterSensitiveLog = exports.MaintenanceWindowTargetFilterSensitiveLog = exports.DescribeMaintenanceWindowTargetsRequestFilterSensitiveLog = exports.DescribeMaintenanceWindowsForTargetResultFilterSensitiveLog = exports.MaintenanceWindowIdentityForTargetFilterSensitiveLog = exports.DescribeMaintenanceWindowsForTargetRequestFilterSensitiveLog = exports.DescribeMaintenanceWindowScheduleResultFilterSensitiveLog = exports.ScheduledWindowExecutionFilterSensitiveLog = exports.DescribeMaintenanceWindowScheduleRequestFilterSensitiveLog = exports.DescribeMaintenanceWindowsResultFilterSensitiveLog = exports.MaintenanceWindowIdentityFilterSensitiveLog = exports.DescribeMaintenanceWindowsRequestFilterSensitiveLog = exports.DescribeMaintenanceWindowExecutionTasksResultFilterSensitiveLog = exports.MaintenanceWindowExecutionTaskIdentityFilterSensitiveLog = exports.DescribeMaintenanceWindowExecutionTasksRequestFilterSensitiveLog = exports.DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog = exports.MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog = exports.DescribeMaintenanceWindowExecutionTaskInvocationsRequestFilterSensitiveLog = exports.DescribeMaintenanceWindowExecutionsResultFilterSensitiveLog = exports.MaintenanceWindowExecutionFilterSensitiveLog = exports.DescribeMaintenanceWindowExecutionsRequestFilterSensitiveLog = exports.MaintenanceWindowFilterFilterSensitiveLog = exports.DescribeInventoryDeletionsResultFilterSensitiveLog = exports.InventoryDeletionStatusItemFilterSensitiveLog = exports.DescribeInventoryDeletionsRequestFilterSensitiveLog = exports.DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog = exports.DescribeInstancePatchStatesForPatchGroupRequestFilterSensitiveLog = exports.InstancePatchStateFilterFilterSensitiveLog = exports.DescribeInstancePatchStatesResultFilterSensitiveLog = exports.InstancePatchStateFilterSensitiveLog = exports.DescribeInstancePatchStatesRequestFilterSensitiveLog = exports.DescribeInstancePatchesResultFilterSensitiveLog = exports.PatchComplianceDataFilterSensitiveLog = exports.DescribeInstancePatchesRequestFilterSensitiveLog = exports.DescribeInstanceInformationResultFilterSensitiveLog = void 0; +const smithy_client_1 = __nccwpck_require__(4963); +const SSMServiceException_1 = __nccwpck_require__(97777); +var ResourceTypeForTagging; +(function (ResourceTypeForTagging) { + ResourceTypeForTagging["AUTOMATION"] = "Automation"; + ResourceTypeForTagging["DOCUMENT"] = "Document"; + ResourceTypeForTagging["MAINTENANCE_WINDOW"] = "MaintenanceWindow"; + ResourceTypeForTagging["MANAGED_INSTANCE"] = "ManagedInstance"; + ResourceTypeForTagging["OPSMETADATA"] = "OpsMetadata"; + ResourceTypeForTagging["OPS_ITEM"] = "OpsItem"; + ResourceTypeForTagging["PARAMETER"] = "Parameter"; + ResourceTypeForTagging["PATCH_BASELINE"] = "PatchBaseline"; +})(ResourceTypeForTagging = exports.ResourceTypeForTagging || (exports.ResourceTypeForTagging = {})); +class InternalServerError extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InternalServerError", + $fault: "server", + ...opts, + }); + this.name = "InternalServerError"; + this.$fault = "server"; + Object.setPrototypeOf(this, InternalServerError.prototype); + this.Message = opts.Message; + } +} +exports.InternalServerError = InternalServerError; +class InvalidResourceId extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidResourceId", + $fault: "client", + ...opts, + }); + this.name = "InvalidResourceId"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidResourceId.prototype); + } +} +exports.InvalidResourceId = InvalidResourceId; +class InvalidResourceType extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidResourceType", + $fault: "client", + ...opts, + }); + this.name = "InvalidResourceType"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidResourceType.prototype); + } +} +exports.InvalidResourceType = InvalidResourceType; +class TooManyTagsError extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "TooManyTagsError", + $fault: "client", + ...opts, + }); + this.name = "TooManyTagsError"; + this.$fault = "client"; + Object.setPrototypeOf(this, TooManyTagsError.prototype); + } +} +exports.TooManyTagsError = TooManyTagsError; +class TooManyUpdates extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "TooManyUpdates", + $fault: "client", + ...opts, + }); + this.name = "TooManyUpdates"; + this.$fault = "client"; + Object.setPrototypeOf(this, TooManyUpdates.prototype); + this.Message = opts.Message; + } +} +exports.TooManyUpdates = TooManyUpdates; +class AlreadyExistsException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "AlreadyExistsException", + $fault: "client", + ...opts, + }); + this.name = "AlreadyExistsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, AlreadyExistsException.prototype); + this.Message = opts.Message; + } +} +exports.AlreadyExistsException = AlreadyExistsException; +class OpsItemInvalidParameterException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "OpsItemInvalidParameterException", + $fault: "client", + ...opts, + }); + this.name = "OpsItemInvalidParameterException"; + this.$fault = "client"; + Object.setPrototypeOf(this, OpsItemInvalidParameterException.prototype); + this.ParameterNames = opts.ParameterNames; + this.Message = opts.Message; + } +} +exports.OpsItemInvalidParameterException = OpsItemInvalidParameterException; +class OpsItemLimitExceededException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "OpsItemLimitExceededException", + $fault: "client", + ...opts, + }); + this.name = "OpsItemLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, OpsItemLimitExceededException.prototype); + this.ResourceTypes = opts.ResourceTypes; + this.Limit = opts.Limit; + this.LimitType = opts.LimitType; + this.Message = opts.Message; + } +} +exports.OpsItemLimitExceededException = OpsItemLimitExceededException; +class OpsItemNotFoundException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "OpsItemNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "OpsItemNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, OpsItemNotFoundException.prototype); + this.Message = opts.Message; + } +} +exports.OpsItemNotFoundException = OpsItemNotFoundException; +class OpsItemRelatedItemAlreadyExistsException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "OpsItemRelatedItemAlreadyExistsException", + $fault: "client", + ...opts, + }); + this.name = "OpsItemRelatedItemAlreadyExistsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, OpsItemRelatedItemAlreadyExistsException.prototype); + this.Message = opts.Message; + this.ResourceUri = opts.ResourceUri; + this.OpsItemId = opts.OpsItemId; + } +} +exports.OpsItemRelatedItemAlreadyExistsException = OpsItemRelatedItemAlreadyExistsException; +class DuplicateInstanceId extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "DuplicateInstanceId", + $fault: "client", + ...opts, + }); + this.name = "DuplicateInstanceId"; + this.$fault = "client"; + Object.setPrototypeOf(this, DuplicateInstanceId.prototype); + } +} +exports.DuplicateInstanceId = DuplicateInstanceId; +class InvalidCommandId extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidCommandId", + $fault: "client", + ...opts, + }); + this.name = "InvalidCommandId"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidCommandId.prototype); + } +} +exports.InvalidCommandId = InvalidCommandId; +class InvalidInstanceId extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidInstanceId", + $fault: "client", + ...opts, + }); + this.name = "InvalidInstanceId"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidInstanceId.prototype); + this.Message = opts.Message; + } +} +exports.InvalidInstanceId = InvalidInstanceId; +class DoesNotExistException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "DoesNotExistException", + $fault: "client", + ...opts, + }); + this.name = "DoesNotExistException"; + this.$fault = "client"; + Object.setPrototypeOf(this, DoesNotExistException.prototype); + this.Message = opts.Message; + } +} +exports.DoesNotExistException = DoesNotExistException; +class InvalidParameters extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidParameters", + $fault: "client", + ...opts, + }); + this.name = "InvalidParameters"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidParameters.prototype); + this.Message = opts.Message; + } +} +exports.InvalidParameters = InvalidParameters; +class AssociationAlreadyExists extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "AssociationAlreadyExists", + $fault: "client", + ...opts, + }); + this.name = "AssociationAlreadyExists"; + this.$fault = "client"; + Object.setPrototypeOf(this, AssociationAlreadyExists.prototype); + } +} +exports.AssociationAlreadyExists = AssociationAlreadyExists; +class AssociationLimitExceeded extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "AssociationLimitExceeded", + $fault: "client", + ...opts, + }); + this.name = "AssociationLimitExceeded"; + this.$fault = "client"; + Object.setPrototypeOf(this, AssociationLimitExceeded.prototype); + } +} +exports.AssociationLimitExceeded = AssociationLimitExceeded; +var AssociationComplianceSeverity; +(function (AssociationComplianceSeverity) { + AssociationComplianceSeverity["Critical"] = "CRITICAL"; + AssociationComplianceSeverity["High"] = "HIGH"; + AssociationComplianceSeverity["Low"] = "LOW"; + AssociationComplianceSeverity["Medium"] = "MEDIUM"; + AssociationComplianceSeverity["Unspecified"] = "UNSPECIFIED"; +})(AssociationComplianceSeverity = exports.AssociationComplianceSeverity || (exports.AssociationComplianceSeverity = {})); +var AssociationSyncCompliance; +(function (AssociationSyncCompliance) { + AssociationSyncCompliance["Auto"] = "AUTO"; + AssociationSyncCompliance["Manual"] = "MANUAL"; +})(AssociationSyncCompliance = exports.AssociationSyncCompliance || (exports.AssociationSyncCompliance = {})); +var AssociationStatusName; +(function (AssociationStatusName) { + AssociationStatusName["Failed"] = "Failed"; + AssociationStatusName["Pending"] = "Pending"; + AssociationStatusName["Success"] = "Success"; +})(AssociationStatusName = exports.AssociationStatusName || (exports.AssociationStatusName = {})); +class InvalidDocument extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidDocument", + $fault: "client", + ...opts, + }); + this.name = "InvalidDocument"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDocument.prototype); + this.Message = opts.Message; + } +} +exports.InvalidDocument = InvalidDocument; +class InvalidDocumentVersion extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidDocumentVersion", + $fault: "client", + ...opts, + }); + this.name = "InvalidDocumentVersion"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDocumentVersion.prototype); + this.Message = opts.Message; + } +} +exports.InvalidDocumentVersion = InvalidDocumentVersion; +class InvalidOutputLocation extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidOutputLocation", + $fault: "client", + ...opts, + }); + this.name = "InvalidOutputLocation"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidOutputLocation.prototype); + } +} +exports.InvalidOutputLocation = InvalidOutputLocation; +class InvalidSchedule extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidSchedule", + $fault: "client", + ...opts, + }); + this.name = "InvalidSchedule"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidSchedule.prototype); + this.Message = opts.Message; + } +} +exports.InvalidSchedule = InvalidSchedule; +class InvalidTarget extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidTarget", + $fault: "client", + ...opts, + }); + this.name = "InvalidTarget"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTarget.prototype); + this.Message = opts.Message; + } +} +exports.InvalidTarget = InvalidTarget; +class InvalidTargetMaps extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidTargetMaps", + $fault: "client", + ...opts, + }); + this.name = "InvalidTargetMaps"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTargetMaps.prototype); + this.Message = opts.Message; + } +} +exports.InvalidTargetMaps = InvalidTargetMaps; +class UnsupportedPlatformType extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "UnsupportedPlatformType", + $fault: "client", + ...opts, + }); + this.name = "UnsupportedPlatformType"; + this.$fault = "client"; + Object.setPrototypeOf(this, UnsupportedPlatformType.prototype); + this.Message = opts.Message; + } +} +exports.UnsupportedPlatformType = UnsupportedPlatformType; +var AttachmentsSourceKey; +(function (AttachmentsSourceKey) { + AttachmentsSourceKey["AttachmentReference"] = "AttachmentReference"; + AttachmentsSourceKey["S3FileUrl"] = "S3FileUrl"; + AttachmentsSourceKey["SourceUrl"] = "SourceUrl"; +})(AttachmentsSourceKey = exports.AttachmentsSourceKey || (exports.AttachmentsSourceKey = {})); +var DocumentFormat; +(function (DocumentFormat) { + DocumentFormat["JSON"] = "JSON"; + DocumentFormat["TEXT"] = "TEXT"; + DocumentFormat["YAML"] = "YAML"; +})(DocumentFormat = exports.DocumentFormat || (exports.DocumentFormat = {})); +var DocumentType; +(function (DocumentType) { + DocumentType["ApplicationConfiguration"] = "ApplicationConfiguration"; + DocumentType["ApplicationConfigurationSchema"] = "ApplicationConfigurationSchema"; + DocumentType["Automation"] = "Automation"; + DocumentType["ChangeCalendar"] = "ChangeCalendar"; + DocumentType["ChangeTemplate"] = "Automation.ChangeTemplate"; + DocumentType["Command"] = "Command"; + DocumentType["DeploymentStrategy"] = "DeploymentStrategy"; + DocumentType["Package"] = "Package"; + DocumentType["Policy"] = "Policy"; + DocumentType["ProblemAnalysis"] = "ProblemAnalysis"; + DocumentType["ProblemAnalysisTemplate"] = "ProblemAnalysisTemplate"; + DocumentType["Session"] = "Session"; +})(DocumentType = exports.DocumentType || (exports.DocumentType = {})); +var DocumentHashType; +(function (DocumentHashType) { + DocumentHashType["SHA1"] = "Sha1"; + DocumentHashType["SHA256"] = "Sha256"; +})(DocumentHashType = exports.DocumentHashType || (exports.DocumentHashType = {})); +var PlatformType; +(function (PlatformType) { + PlatformType["LINUX"] = "Linux"; + PlatformType["MACOS"] = "MacOS"; + PlatformType["WINDOWS"] = "Windows"; +})(PlatformType = exports.PlatformType || (exports.PlatformType = {})); +var ReviewStatus; +(function (ReviewStatus) { + ReviewStatus["APPROVED"] = "APPROVED"; + ReviewStatus["NOT_REVIEWED"] = "NOT_REVIEWED"; + ReviewStatus["PENDING"] = "PENDING"; + ReviewStatus["REJECTED"] = "REJECTED"; +})(ReviewStatus = exports.ReviewStatus || (exports.ReviewStatus = {})); +var DocumentStatus; +(function (DocumentStatus) { + DocumentStatus["Active"] = "Active"; + DocumentStatus["Creating"] = "Creating"; + DocumentStatus["Deleting"] = "Deleting"; + DocumentStatus["Failed"] = "Failed"; + DocumentStatus["Updating"] = "Updating"; +})(DocumentStatus = exports.DocumentStatus || (exports.DocumentStatus = {})); +class DocumentAlreadyExists extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "DocumentAlreadyExists", + $fault: "client", + ...opts, + }); + this.name = "DocumentAlreadyExists"; + this.$fault = "client"; + Object.setPrototypeOf(this, DocumentAlreadyExists.prototype); + this.Message = opts.Message; + } +} +exports.DocumentAlreadyExists = DocumentAlreadyExists; +class DocumentLimitExceeded extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "DocumentLimitExceeded", + $fault: "client", + ...opts, + }); + this.name = "DocumentLimitExceeded"; + this.$fault = "client"; + Object.setPrototypeOf(this, DocumentLimitExceeded.prototype); + this.Message = opts.Message; + } +} +exports.DocumentLimitExceeded = DocumentLimitExceeded; +class InvalidDocumentContent extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidDocumentContent", + $fault: "client", + ...opts, + }); + this.name = "InvalidDocumentContent"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDocumentContent.prototype); + this.Message = opts.Message; + } +} +exports.InvalidDocumentContent = InvalidDocumentContent; +class InvalidDocumentSchemaVersion extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidDocumentSchemaVersion", + $fault: "client", + ...opts, + }); + this.name = "InvalidDocumentSchemaVersion"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDocumentSchemaVersion.prototype); + this.Message = opts.Message; + } +} +exports.InvalidDocumentSchemaVersion = InvalidDocumentSchemaVersion; +class MaxDocumentSizeExceeded extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "MaxDocumentSizeExceeded", + $fault: "client", + ...opts, + }); + this.name = "MaxDocumentSizeExceeded"; + this.$fault = "client"; + Object.setPrototypeOf(this, MaxDocumentSizeExceeded.prototype); + this.Message = opts.Message; + } +} +exports.MaxDocumentSizeExceeded = MaxDocumentSizeExceeded; +class IdempotentParameterMismatch extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "IdempotentParameterMismatch", + $fault: "client", + ...opts, + }); + this.name = "IdempotentParameterMismatch"; + this.$fault = "client"; + Object.setPrototypeOf(this, IdempotentParameterMismatch.prototype); + this.Message = opts.Message; + } +} +exports.IdempotentParameterMismatch = IdempotentParameterMismatch; +class ResourceLimitExceededException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "ResourceLimitExceededException", + $fault: "client", + ...opts, + }); + this.name = "ResourceLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ResourceLimitExceededException.prototype); + this.Message = opts.Message; + } +} +exports.ResourceLimitExceededException = ResourceLimitExceededException; +var OpsItemDataType; +(function (OpsItemDataType) { + OpsItemDataType["SEARCHABLE_STRING"] = "SearchableString"; + OpsItemDataType["STRING"] = "String"; +})(OpsItemDataType = exports.OpsItemDataType || (exports.OpsItemDataType = {})); +class OpsItemAlreadyExistsException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "OpsItemAlreadyExistsException", + $fault: "client", + ...opts, + }); + this.name = "OpsItemAlreadyExistsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, OpsItemAlreadyExistsException.prototype); + this.Message = opts.Message; + this.OpsItemId = opts.OpsItemId; + } +} +exports.OpsItemAlreadyExistsException = OpsItemAlreadyExistsException; +class OpsMetadataAlreadyExistsException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "OpsMetadataAlreadyExistsException", + $fault: "client", + ...opts, + }); + this.name = "OpsMetadataAlreadyExistsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, OpsMetadataAlreadyExistsException.prototype); + } +} +exports.OpsMetadataAlreadyExistsException = OpsMetadataAlreadyExistsException; +class OpsMetadataInvalidArgumentException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "OpsMetadataInvalidArgumentException", + $fault: "client", + ...opts, + }); + this.name = "OpsMetadataInvalidArgumentException"; + this.$fault = "client"; + Object.setPrototypeOf(this, OpsMetadataInvalidArgumentException.prototype); + } +} +exports.OpsMetadataInvalidArgumentException = OpsMetadataInvalidArgumentException; +class OpsMetadataLimitExceededException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "OpsMetadataLimitExceededException", + $fault: "client", + ...opts, + }); + this.name = "OpsMetadataLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, OpsMetadataLimitExceededException.prototype); + } +} +exports.OpsMetadataLimitExceededException = OpsMetadataLimitExceededException; +class OpsMetadataTooManyUpdatesException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "OpsMetadataTooManyUpdatesException", + $fault: "client", + ...opts, + }); + this.name = "OpsMetadataTooManyUpdatesException"; + this.$fault = "client"; + Object.setPrototypeOf(this, OpsMetadataTooManyUpdatesException.prototype); + } +} +exports.OpsMetadataTooManyUpdatesException = OpsMetadataTooManyUpdatesException; +var PatchComplianceLevel; +(function (PatchComplianceLevel) { + PatchComplianceLevel["Critical"] = "CRITICAL"; + PatchComplianceLevel["High"] = "HIGH"; + PatchComplianceLevel["Informational"] = "INFORMATIONAL"; + PatchComplianceLevel["Low"] = "LOW"; + PatchComplianceLevel["Medium"] = "MEDIUM"; + PatchComplianceLevel["Unspecified"] = "UNSPECIFIED"; +})(PatchComplianceLevel = exports.PatchComplianceLevel || (exports.PatchComplianceLevel = {})); +var PatchFilterKey; +(function (PatchFilterKey) { + PatchFilterKey["AdvisoryId"] = "ADVISORY_ID"; + PatchFilterKey["Arch"] = "ARCH"; + PatchFilterKey["BugzillaId"] = "BUGZILLA_ID"; + PatchFilterKey["CVEId"] = "CVE_ID"; + PatchFilterKey["Classification"] = "CLASSIFICATION"; + PatchFilterKey["Epoch"] = "EPOCH"; + PatchFilterKey["MsrcSeverity"] = "MSRC_SEVERITY"; + PatchFilterKey["Name"] = "NAME"; + PatchFilterKey["PatchId"] = "PATCH_ID"; + PatchFilterKey["PatchSet"] = "PATCH_SET"; + PatchFilterKey["Priority"] = "PRIORITY"; + PatchFilterKey["Product"] = "PRODUCT"; + PatchFilterKey["ProductFamily"] = "PRODUCT_FAMILY"; + PatchFilterKey["Release"] = "RELEASE"; + PatchFilterKey["Repository"] = "REPOSITORY"; + PatchFilterKey["Section"] = "SECTION"; + PatchFilterKey["Security"] = "SECURITY"; + PatchFilterKey["Severity"] = "SEVERITY"; + PatchFilterKey["Version"] = "VERSION"; +})(PatchFilterKey = exports.PatchFilterKey || (exports.PatchFilterKey = {})); +var OperatingSystem; +(function (OperatingSystem) { + OperatingSystem["AmazonLinux"] = "AMAZON_LINUX"; + OperatingSystem["AmazonLinux2"] = "AMAZON_LINUX_2"; + OperatingSystem["CentOS"] = "CENTOS"; + OperatingSystem["Debian"] = "DEBIAN"; + OperatingSystem["MacOS"] = "MACOS"; + OperatingSystem["OracleLinux"] = "ORACLE_LINUX"; + OperatingSystem["Raspbian"] = "RASPBIAN"; + OperatingSystem["RedhatEnterpriseLinux"] = "REDHAT_ENTERPRISE_LINUX"; + OperatingSystem["Rocky_Linux"] = "ROCKY_LINUX"; + OperatingSystem["Suse"] = "SUSE"; + OperatingSystem["Ubuntu"] = "UBUNTU"; + OperatingSystem["Windows"] = "WINDOWS"; +})(OperatingSystem = exports.OperatingSystem || (exports.OperatingSystem = {})); +var PatchAction; +(function (PatchAction) { + PatchAction["AllowAsDependency"] = "ALLOW_AS_DEPENDENCY"; + PatchAction["Block"] = "BLOCK"; +})(PatchAction = exports.PatchAction || (exports.PatchAction = {})); +var ResourceDataSyncS3Format; +(function (ResourceDataSyncS3Format) { + ResourceDataSyncS3Format["JSON_SERDE"] = "JsonSerDe"; +})(ResourceDataSyncS3Format = exports.ResourceDataSyncS3Format || (exports.ResourceDataSyncS3Format = {})); +class ResourceDataSyncAlreadyExistsException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "ResourceDataSyncAlreadyExistsException", + $fault: "client", + ...opts, + }); + this.name = "ResourceDataSyncAlreadyExistsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ResourceDataSyncAlreadyExistsException.prototype); + this.SyncName = opts.SyncName; + } +} +exports.ResourceDataSyncAlreadyExistsException = ResourceDataSyncAlreadyExistsException; +class ResourceDataSyncCountExceededException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "ResourceDataSyncCountExceededException", + $fault: "client", + ...opts, + }); + this.name = "ResourceDataSyncCountExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ResourceDataSyncCountExceededException.prototype); + this.Message = opts.Message; + } +} +exports.ResourceDataSyncCountExceededException = ResourceDataSyncCountExceededException; +class ResourceDataSyncInvalidConfigurationException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "ResourceDataSyncInvalidConfigurationException", + $fault: "client", + ...opts, + }); + this.name = "ResourceDataSyncInvalidConfigurationException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ResourceDataSyncInvalidConfigurationException.prototype); + this.Message = opts.Message; + } +} +exports.ResourceDataSyncInvalidConfigurationException = ResourceDataSyncInvalidConfigurationException; +class InvalidActivation extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidActivation", + $fault: "client", + ...opts, + }); + this.name = "InvalidActivation"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidActivation.prototype); + this.Message = opts.Message; + } +} +exports.InvalidActivation = InvalidActivation; +class InvalidActivationId extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidActivationId", + $fault: "client", + ...opts, + }); + this.name = "InvalidActivationId"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidActivationId.prototype); + this.Message = opts.Message; + } +} +exports.InvalidActivationId = InvalidActivationId; +class AssociationDoesNotExist extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "AssociationDoesNotExist", + $fault: "client", + ...opts, + }); + this.name = "AssociationDoesNotExist"; + this.$fault = "client"; + Object.setPrototypeOf(this, AssociationDoesNotExist.prototype); + this.Message = opts.Message; + } +} +exports.AssociationDoesNotExist = AssociationDoesNotExist; +class AssociatedInstances extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "AssociatedInstances", + $fault: "client", + ...opts, + }); + this.name = "AssociatedInstances"; + this.$fault = "client"; + Object.setPrototypeOf(this, AssociatedInstances.prototype); + } +} +exports.AssociatedInstances = AssociatedInstances; +class InvalidDocumentOperation extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidDocumentOperation", + $fault: "client", + ...opts, + }); + this.name = "InvalidDocumentOperation"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDocumentOperation.prototype); + this.Message = opts.Message; + } +} +exports.InvalidDocumentOperation = InvalidDocumentOperation; +var InventorySchemaDeleteOption; +(function (InventorySchemaDeleteOption) { + InventorySchemaDeleteOption["DELETE_SCHEMA"] = "DeleteSchema"; + InventorySchemaDeleteOption["DISABLE_SCHEMA"] = "DisableSchema"; +})(InventorySchemaDeleteOption = exports.InventorySchemaDeleteOption || (exports.InventorySchemaDeleteOption = {})); +class InvalidDeleteInventoryParametersException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidDeleteInventoryParametersException", + $fault: "client", + ...opts, + }); + this.name = "InvalidDeleteInventoryParametersException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeleteInventoryParametersException.prototype); + this.Message = opts.Message; + } +} +exports.InvalidDeleteInventoryParametersException = InvalidDeleteInventoryParametersException; +class InvalidInventoryRequestException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidInventoryRequestException", + $fault: "client", + ...opts, + }); + this.name = "InvalidInventoryRequestException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidInventoryRequestException.prototype); + this.Message = opts.Message; + } +} +exports.InvalidInventoryRequestException = InvalidInventoryRequestException; +class InvalidOptionException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidOptionException", + $fault: "client", + ...opts, + }); + this.name = "InvalidOptionException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidOptionException.prototype); + this.Message = opts.Message; + } +} +exports.InvalidOptionException = InvalidOptionException; +class InvalidTypeNameException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidTypeNameException", + $fault: "client", + ...opts, + }); + this.name = "InvalidTypeNameException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidTypeNameException.prototype); + this.Message = opts.Message; + } +} +exports.InvalidTypeNameException = InvalidTypeNameException; +class OpsMetadataNotFoundException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "OpsMetadataNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "OpsMetadataNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, OpsMetadataNotFoundException.prototype); + } +} +exports.OpsMetadataNotFoundException = OpsMetadataNotFoundException; +class ParameterNotFound extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "ParameterNotFound", + $fault: "client", + ...opts, + }); + this.name = "ParameterNotFound"; + this.$fault = "client"; + Object.setPrototypeOf(this, ParameterNotFound.prototype); + } +} +exports.ParameterNotFound = ParameterNotFound; +class ResourceInUseException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "ResourceInUseException", + $fault: "client", + ...opts, + }); + this.name = "ResourceInUseException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ResourceInUseException.prototype); + this.Message = opts.Message; + } +} +exports.ResourceInUseException = ResourceInUseException; +class ResourceDataSyncNotFoundException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "ResourceDataSyncNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "ResourceDataSyncNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ResourceDataSyncNotFoundException.prototype); + this.SyncName = opts.SyncName; + this.SyncType = opts.SyncType; + this.Message = opts.Message; + } +} +exports.ResourceDataSyncNotFoundException = ResourceDataSyncNotFoundException; +class TargetInUseException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "TargetInUseException", + $fault: "client", + ...opts, + }); + this.name = "TargetInUseException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TargetInUseException.prototype); + this.Message = opts.Message; + } +} +exports.TargetInUseException = TargetInUseException; +var DescribeActivationsFilterKeys; +(function (DescribeActivationsFilterKeys) { + DescribeActivationsFilterKeys["ACTIVATION_IDS"] = "ActivationIds"; + DescribeActivationsFilterKeys["DEFAULT_INSTANCE_NAME"] = "DefaultInstanceName"; + DescribeActivationsFilterKeys["IAM_ROLE"] = "IamRole"; +})(DescribeActivationsFilterKeys = exports.DescribeActivationsFilterKeys || (exports.DescribeActivationsFilterKeys = {})); +class InvalidFilter extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidFilter", + $fault: "client", + ...opts, + }); + this.name = "InvalidFilter"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidFilter.prototype); + this.Message = opts.Message; + } +} +exports.InvalidFilter = InvalidFilter; +class InvalidNextToken extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidNextToken", + $fault: "client", + ...opts, + }); + this.name = "InvalidNextToken"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidNextToken.prototype); + this.Message = opts.Message; + } +} +exports.InvalidNextToken = InvalidNextToken; +class InvalidAssociationVersion extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidAssociationVersion", + $fault: "client", + ...opts, + }); + this.name = "InvalidAssociationVersion"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidAssociationVersion.prototype); + this.Message = opts.Message; + } +} +exports.InvalidAssociationVersion = InvalidAssociationVersion; +var AssociationExecutionFilterKey; +(function (AssociationExecutionFilterKey) { + AssociationExecutionFilterKey["CreatedTime"] = "CreatedTime"; + AssociationExecutionFilterKey["ExecutionId"] = "ExecutionId"; + AssociationExecutionFilterKey["Status"] = "Status"; +})(AssociationExecutionFilterKey = exports.AssociationExecutionFilterKey || (exports.AssociationExecutionFilterKey = {})); +var AssociationFilterOperatorType; +(function (AssociationFilterOperatorType) { + AssociationFilterOperatorType["Equal"] = "EQUAL"; + AssociationFilterOperatorType["GreaterThan"] = "GREATER_THAN"; + AssociationFilterOperatorType["LessThan"] = "LESS_THAN"; +})(AssociationFilterOperatorType = exports.AssociationFilterOperatorType || (exports.AssociationFilterOperatorType = {})); +class AssociationExecutionDoesNotExist extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "AssociationExecutionDoesNotExist", + $fault: "client", + ...opts, + }); + this.name = "AssociationExecutionDoesNotExist"; + this.$fault = "client"; + Object.setPrototypeOf(this, AssociationExecutionDoesNotExist.prototype); + this.Message = opts.Message; + } +} +exports.AssociationExecutionDoesNotExist = AssociationExecutionDoesNotExist; +var AssociationExecutionTargetsFilterKey; +(function (AssociationExecutionTargetsFilterKey) { + AssociationExecutionTargetsFilterKey["ResourceId"] = "ResourceId"; + AssociationExecutionTargetsFilterKey["ResourceType"] = "ResourceType"; + AssociationExecutionTargetsFilterKey["Status"] = "Status"; +})(AssociationExecutionTargetsFilterKey = exports.AssociationExecutionTargetsFilterKey || (exports.AssociationExecutionTargetsFilterKey = {})); +var AutomationExecutionFilterKey; +(function (AutomationExecutionFilterKey) { + AutomationExecutionFilterKey["AUTOMATION_SUBTYPE"] = "AutomationSubtype"; + AutomationExecutionFilterKey["AUTOMATION_TYPE"] = "AutomationType"; + AutomationExecutionFilterKey["CURRENT_ACTION"] = "CurrentAction"; + AutomationExecutionFilterKey["DOCUMENT_NAME_PREFIX"] = "DocumentNamePrefix"; + AutomationExecutionFilterKey["EXECUTION_ID"] = "ExecutionId"; + AutomationExecutionFilterKey["EXECUTION_STATUS"] = "ExecutionStatus"; + AutomationExecutionFilterKey["OPS_ITEM_ID"] = "OpsItemId"; + AutomationExecutionFilterKey["PARENT_EXECUTION_ID"] = "ParentExecutionId"; + AutomationExecutionFilterKey["START_TIME_AFTER"] = "StartTimeAfter"; + AutomationExecutionFilterKey["START_TIME_BEFORE"] = "StartTimeBefore"; + AutomationExecutionFilterKey["TAG_KEY"] = "TagKey"; + AutomationExecutionFilterKey["TARGET_RESOURCE_GROUP"] = "TargetResourceGroup"; +})(AutomationExecutionFilterKey = exports.AutomationExecutionFilterKey || (exports.AutomationExecutionFilterKey = {})); +var AutomationExecutionStatus; +(function (AutomationExecutionStatus) { + AutomationExecutionStatus["APPROVED"] = "Approved"; + AutomationExecutionStatus["CANCELLED"] = "Cancelled"; + AutomationExecutionStatus["CANCELLING"] = "Cancelling"; + AutomationExecutionStatus["CHANGE_CALENDAR_OVERRIDE_APPROVED"] = "ChangeCalendarOverrideApproved"; + AutomationExecutionStatus["CHANGE_CALENDAR_OVERRIDE_REJECTED"] = "ChangeCalendarOverrideRejected"; + AutomationExecutionStatus["COMPLETED_WITH_FAILURE"] = "CompletedWithFailure"; + AutomationExecutionStatus["COMPLETED_WITH_SUCCESS"] = "CompletedWithSuccess"; + AutomationExecutionStatus["FAILED"] = "Failed"; + AutomationExecutionStatus["INPROGRESS"] = "InProgress"; + AutomationExecutionStatus["PENDING"] = "Pending"; + AutomationExecutionStatus["PENDING_APPROVAL"] = "PendingApproval"; + AutomationExecutionStatus["PENDING_CHANGE_CALENDAR_OVERRIDE"] = "PendingChangeCalendarOverride"; + AutomationExecutionStatus["REJECTED"] = "Rejected"; + AutomationExecutionStatus["RUNBOOK_INPROGRESS"] = "RunbookInProgress"; + AutomationExecutionStatus["SCHEDULED"] = "Scheduled"; + AutomationExecutionStatus["SUCCESS"] = "Success"; + AutomationExecutionStatus["TIMEDOUT"] = "TimedOut"; + AutomationExecutionStatus["WAITING"] = "Waiting"; +})(AutomationExecutionStatus = exports.AutomationExecutionStatus || (exports.AutomationExecutionStatus = {})); +var AutomationSubtype; +(function (AutomationSubtype) { + AutomationSubtype["ChangeRequest"] = "ChangeRequest"; +})(AutomationSubtype = exports.AutomationSubtype || (exports.AutomationSubtype = {})); +var AutomationType; +(function (AutomationType) { + AutomationType["CrossAccount"] = "CrossAccount"; + AutomationType["Local"] = "Local"; +})(AutomationType = exports.AutomationType || (exports.AutomationType = {})); +var ExecutionMode; +(function (ExecutionMode) { + ExecutionMode["Auto"] = "Auto"; + ExecutionMode["Interactive"] = "Interactive"; +})(ExecutionMode = exports.ExecutionMode || (exports.ExecutionMode = {})); +class InvalidFilterKey extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidFilterKey", + $fault: "client", + ...opts, + }); + this.name = "InvalidFilterKey"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidFilterKey.prototype); + } +} +exports.InvalidFilterKey = InvalidFilterKey; +class InvalidFilterValue extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidFilterValue", + $fault: "client", + ...opts, + }); + this.name = "InvalidFilterValue"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidFilterValue.prototype); + this.Message = opts.Message; + } +} +exports.InvalidFilterValue = InvalidFilterValue; +class AutomationExecutionNotFoundException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "AutomationExecutionNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "AutomationExecutionNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, AutomationExecutionNotFoundException.prototype); + this.Message = opts.Message; + } +} +exports.AutomationExecutionNotFoundException = AutomationExecutionNotFoundException; +var StepExecutionFilterKey; +(function (StepExecutionFilterKey) { + StepExecutionFilterKey["ACTION"] = "Action"; + StepExecutionFilterKey["START_TIME_AFTER"] = "StartTimeAfter"; + StepExecutionFilterKey["START_TIME_BEFORE"] = "StartTimeBefore"; + StepExecutionFilterKey["STEP_EXECUTION_ID"] = "StepExecutionId"; + StepExecutionFilterKey["STEP_EXECUTION_STATUS"] = "StepExecutionStatus"; + StepExecutionFilterKey["STEP_NAME"] = "StepName"; +})(StepExecutionFilterKey = exports.StepExecutionFilterKey || (exports.StepExecutionFilterKey = {})); +var DocumentPermissionType; +(function (DocumentPermissionType) { + DocumentPermissionType["SHARE"] = "Share"; +})(DocumentPermissionType = exports.DocumentPermissionType || (exports.DocumentPermissionType = {})); +class InvalidPermissionType extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidPermissionType", + $fault: "client", + ...opts, + }); + this.name = "InvalidPermissionType"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidPermissionType.prototype); + this.Message = opts.Message; + } +} +exports.InvalidPermissionType = InvalidPermissionType; +var PatchDeploymentStatus; +(function (PatchDeploymentStatus) { + PatchDeploymentStatus["Approved"] = "APPROVED"; + PatchDeploymentStatus["ExplicitApproved"] = "EXPLICIT_APPROVED"; + PatchDeploymentStatus["ExplicitRejected"] = "EXPLICIT_REJECTED"; + PatchDeploymentStatus["PendingApproval"] = "PENDING_APPROVAL"; +})(PatchDeploymentStatus = exports.PatchDeploymentStatus || (exports.PatchDeploymentStatus = {})); +class UnsupportedOperatingSystem extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "UnsupportedOperatingSystem", + $fault: "client", + ...opts, + }); + this.name = "UnsupportedOperatingSystem"; + this.$fault = "client"; + Object.setPrototypeOf(this, UnsupportedOperatingSystem.prototype); + this.Message = opts.Message; + } +} +exports.UnsupportedOperatingSystem = UnsupportedOperatingSystem; +var InstanceInformationFilterKey; +(function (InstanceInformationFilterKey) { + InstanceInformationFilterKey["ACTIVATION_IDS"] = "ActivationIds"; + InstanceInformationFilterKey["AGENT_VERSION"] = "AgentVersion"; + InstanceInformationFilterKey["ASSOCIATION_STATUS"] = "AssociationStatus"; + InstanceInformationFilterKey["IAM_ROLE"] = "IamRole"; + InstanceInformationFilterKey["INSTANCE_IDS"] = "InstanceIds"; + InstanceInformationFilterKey["PING_STATUS"] = "PingStatus"; + InstanceInformationFilterKey["PLATFORM_TYPES"] = "PlatformTypes"; + InstanceInformationFilterKey["RESOURCE_TYPE"] = "ResourceType"; +})(InstanceInformationFilterKey = exports.InstanceInformationFilterKey || (exports.InstanceInformationFilterKey = {})); +var PingStatus; +(function (PingStatus) { + PingStatus["CONNECTION_LOST"] = "ConnectionLost"; + PingStatus["INACTIVE"] = "Inactive"; + PingStatus["ONLINE"] = "Online"; +})(PingStatus = exports.PingStatus || (exports.PingStatus = {})); +var ResourceType; +(function (ResourceType) { + ResourceType["DOCUMENT"] = "Document"; + ResourceType["EC2_INSTANCE"] = "EC2Instance"; + ResourceType["MANAGED_INSTANCE"] = "ManagedInstance"; +})(ResourceType = exports.ResourceType || (exports.ResourceType = {})); +var SourceType; +(function (SourceType) { + SourceType["AWS_EC2_INSTANCE"] = "AWS::EC2::Instance"; + SourceType["AWS_IOT_THING"] = "AWS::IoT::Thing"; + SourceType["AWS_SSM_MANAGEDINSTANCE"] = "AWS::SSM::ManagedInstance"; +})(SourceType = exports.SourceType || (exports.SourceType = {})); +class InvalidInstanceInformationFilterValue extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidInstanceInformationFilterValue", + $fault: "client", + ...opts, + }); + this.name = "InvalidInstanceInformationFilterValue"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidInstanceInformationFilterValue.prototype); + } +} +exports.InvalidInstanceInformationFilterValue = InvalidInstanceInformationFilterValue; +var PatchComplianceDataState; +(function (PatchComplianceDataState) { + PatchComplianceDataState["Failed"] = "FAILED"; + PatchComplianceDataState["Installed"] = "INSTALLED"; + PatchComplianceDataState["InstalledOther"] = "INSTALLED_OTHER"; + PatchComplianceDataState["InstalledPendingReboot"] = "INSTALLED_PENDING_REBOOT"; + PatchComplianceDataState["InstalledRejected"] = "INSTALLED_REJECTED"; + PatchComplianceDataState["Missing"] = "MISSING"; + PatchComplianceDataState["NotApplicable"] = "NOT_APPLICABLE"; +})(PatchComplianceDataState = exports.PatchComplianceDataState || (exports.PatchComplianceDataState = {})); +var PatchOperationType; +(function (PatchOperationType) { + PatchOperationType["INSTALL"] = "Install"; + PatchOperationType["SCAN"] = "Scan"; +})(PatchOperationType = exports.PatchOperationType || (exports.PatchOperationType = {})); +var RebootOption; +(function (RebootOption) { + RebootOption["NO_REBOOT"] = "NoReboot"; + RebootOption["REBOOT_IF_NEEDED"] = "RebootIfNeeded"; +})(RebootOption = exports.RebootOption || (exports.RebootOption = {})); +var InstancePatchStateOperatorType; +(function (InstancePatchStateOperatorType) { + InstancePatchStateOperatorType["EQUAL"] = "Equal"; + InstancePatchStateOperatorType["GREATER_THAN"] = "GreaterThan"; + InstancePatchStateOperatorType["LESS_THAN"] = "LessThan"; + InstancePatchStateOperatorType["NOT_EQUAL"] = "NotEqual"; +})(InstancePatchStateOperatorType = exports.InstancePatchStateOperatorType || (exports.InstancePatchStateOperatorType = {})); +var InventoryDeletionStatus; +(function (InventoryDeletionStatus) { + InventoryDeletionStatus["COMPLETE"] = "Complete"; + InventoryDeletionStatus["IN_PROGRESS"] = "InProgress"; +})(InventoryDeletionStatus = exports.InventoryDeletionStatus || (exports.InventoryDeletionStatus = {})); +class InvalidDeletionIdException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidDeletionIdException", + $fault: "client", + ...opts, + }); + this.name = "InvalidDeletionIdException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDeletionIdException.prototype); + this.Message = opts.Message; + } +} +exports.InvalidDeletionIdException = InvalidDeletionIdException; +var MaintenanceWindowExecutionStatus; +(function (MaintenanceWindowExecutionStatus) { + MaintenanceWindowExecutionStatus["Cancelled"] = "CANCELLED"; + MaintenanceWindowExecutionStatus["Cancelling"] = "CANCELLING"; + MaintenanceWindowExecutionStatus["Failed"] = "FAILED"; + MaintenanceWindowExecutionStatus["InProgress"] = "IN_PROGRESS"; + MaintenanceWindowExecutionStatus["Pending"] = "PENDING"; + MaintenanceWindowExecutionStatus["SkippedOverlapping"] = "SKIPPED_OVERLAPPING"; + MaintenanceWindowExecutionStatus["Success"] = "SUCCESS"; + MaintenanceWindowExecutionStatus["TimedOut"] = "TIMED_OUT"; +})(MaintenanceWindowExecutionStatus = exports.MaintenanceWindowExecutionStatus || (exports.MaintenanceWindowExecutionStatus = {})); +var MaintenanceWindowTaskType; +(function (MaintenanceWindowTaskType) { + MaintenanceWindowTaskType["Automation"] = "AUTOMATION"; + MaintenanceWindowTaskType["Lambda"] = "LAMBDA"; + MaintenanceWindowTaskType["RunCommand"] = "RUN_COMMAND"; + MaintenanceWindowTaskType["StepFunctions"] = "STEP_FUNCTIONS"; +})(MaintenanceWindowTaskType = exports.MaintenanceWindowTaskType || (exports.MaintenanceWindowTaskType = {})); +var MaintenanceWindowResourceType; +(function (MaintenanceWindowResourceType) { + MaintenanceWindowResourceType["Instance"] = "INSTANCE"; + MaintenanceWindowResourceType["ResourceGroup"] = "RESOURCE_GROUP"; +})(MaintenanceWindowResourceType = exports.MaintenanceWindowResourceType || (exports.MaintenanceWindowResourceType = {})); +var MaintenanceWindowTaskCutoffBehavior; +(function (MaintenanceWindowTaskCutoffBehavior) { + MaintenanceWindowTaskCutoffBehavior["CancelTask"] = "CANCEL_TASK"; + MaintenanceWindowTaskCutoffBehavior["ContinueTask"] = "CONTINUE_TASK"; +})(MaintenanceWindowTaskCutoffBehavior = exports.MaintenanceWindowTaskCutoffBehavior || (exports.MaintenanceWindowTaskCutoffBehavior = {})); +var OpsItemFilterKey; +(function (OpsItemFilterKey) { + OpsItemFilterKey["ACTUAL_END_TIME"] = "ActualEndTime"; + OpsItemFilterKey["ACTUAL_START_TIME"] = "ActualStartTime"; + OpsItemFilterKey["AUTOMATION_ID"] = "AutomationId"; + OpsItemFilterKey["CATEGORY"] = "Category"; + OpsItemFilterKey["CHANGE_REQUEST_APPROVER_ARN"] = "ChangeRequestByApproverArn"; + OpsItemFilterKey["CHANGE_REQUEST_APPROVER_NAME"] = "ChangeRequestByApproverName"; + OpsItemFilterKey["CHANGE_REQUEST_REQUESTER_ARN"] = "ChangeRequestByRequesterArn"; + OpsItemFilterKey["CHANGE_REQUEST_REQUESTER_NAME"] = "ChangeRequestByRequesterName"; + OpsItemFilterKey["CHANGE_REQUEST_TARGETS_RESOURCE_GROUP"] = "ChangeRequestByTargetsResourceGroup"; + OpsItemFilterKey["CHANGE_REQUEST_TEMPLATE"] = "ChangeRequestByTemplate"; + OpsItemFilterKey["CREATED_BY"] = "CreatedBy"; + OpsItemFilterKey["CREATED_TIME"] = "CreatedTime"; + OpsItemFilterKey["INSIGHT_TYPE"] = "InsightByType"; + OpsItemFilterKey["LAST_MODIFIED_TIME"] = "LastModifiedTime"; + OpsItemFilterKey["OPERATIONAL_DATA"] = "OperationalData"; + OpsItemFilterKey["OPERATIONAL_DATA_KEY"] = "OperationalDataKey"; + OpsItemFilterKey["OPERATIONAL_DATA_VALUE"] = "OperationalDataValue"; + OpsItemFilterKey["OPSITEM_ID"] = "OpsItemId"; + OpsItemFilterKey["OPSITEM_TYPE"] = "OpsItemType"; + OpsItemFilterKey["PLANNED_END_TIME"] = "PlannedEndTime"; + OpsItemFilterKey["PLANNED_START_TIME"] = "PlannedStartTime"; + OpsItemFilterKey["PRIORITY"] = "Priority"; + OpsItemFilterKey["RESOURCE_ID"] = "ResourceId"; + OpsItemFilterKey["SEVERITY"] = "Severity"; + OpsItemFilterKey["SOURCE"] = "Source"; + OpsItemFilterKey["STATUS"] = "Status"; + OpsItemFilterKey["TITLE"] = "Title"; +})(OpsItemFilterKey = exports.OpsItemFilterKey || (exports.OpsItemFilterKey = {})); +var OpsItemFilterOperator; +(function (OpsItemFilterOperator) { + OpsItemFilterOperator["CONTAINS"] = "Contains"; + OpsItemFilterOperator["EQUAL"] = "Equal"; + OpsItemFilterOperator["GREATER_THAN"] = "GreaterThan"; + OpsItemFilterOperator["LESS_THAN"] = "LessThan"; +})(OpsItemFilterOperator = exports.OpsItemFilterOperator || (exports.OpsItemFilterOperator = {})); +var OpsItemStatus; +(function (OpsItemStatus) { + OpsItemStatus["APPROVED"] = "Approved"; + OpsItemStatus["CANCELLED"] = "Cancelled"; + OpsItemStatus["CANCELLING"] = "Cancelling"; + OpsItemStatus["CHANGE_CALENDAR_OVERRIDE_APPROVED"] = "ChangeCalendarOverrideApproved"; + OpsItemStatus["CHANGE_CALENDAR_OVERRIDE_REJECTED"] = "ChangeCalendarOverrideRejected"; + OpsItemStatus["CLOSED"] = "Closed"; + OpsItemStatus["COMPLETED_WITH_FAILURE"] = "CompletedWithFailure"; + OpsItemStatus["COMPLETED_WITH_SUCCESS"] = "CompletedWithSuccess"; + OpsItemStatus["FAILED"] = "Failed"; + OpsItemStatus["IN_PROGRESS"] = "InProgress"; + OpsItemStatus["OPEN"] = "Open"; + OpsItemStatus["PENDING"] = "Pending"; + OpsItemStatus["PENDING_APPROVAL"] = "PendingApproval"; + OpsItemStatus["PENDING_CHANGE_CALENDAR_OVERRIDE"] = "PendingChangeCalendarOverride"; + OpsItemStatus["REJECTED"] = "Rejected"; + OpsItemStatus["RESOLVED"] = "Resolved"; + OpsItemStatus["RUNBOOK_IN_PROGRESS"] = "RunbookInProgress"; + OpsItemStatus["SCHEDULED"] = "Scheduled"; + OpsItemStatus["TIMED_OUT"] = "TimedOut"; +})(OpsItemStatus = exports.OpsItemStatus || (exports.OpsItemStatus = {})); +var ParametersFilterKey; +(function (ParametersFilterKey) { + ParametersFilterKey["KEY_ID"] = "KeyId"; + ParametersFilterKey["NAME"] = "Name"; + ParametersFilterKey["TYPE"] = "Type"; +})(ParametersFilterKey = exports.ParametersFilterKey || (exports.ParametersFilterKey = {})); +const AccountSharingInfoFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AccountSharingInfoFilterSensitiveLog = AccountSharingInfoFilterSensitiveLog; +const TagFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.TagFilterSensitiveLog = TagFilterSensitiveLog; +const ActivationFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ActivationFilterSensitiveLog = ActivationFilterSensitiveLog; +const AddTagsToResourceRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AddTagsToResourceRequestFilterSensitiveLog = AddTagsToResourceRequestFilterSensitiveLog; +const AddTagsToResourceResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AddTagsToResourceResultFilterSensitiveLog = AddTagsToResourceResultFilterSensitiveLog; +const AssociateOpsItemRelatedItemRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AssociateOpsItemRelatedItemRequestFilterSensitiveLog = AssociateOpsItemRelatedItemRequestFilterSensitiveLog; +const AssociateOpsItemRelatedItemResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AssociateOpsItemRelatedItemResponseFilterSensitiveLog = AssociateOpsItemRelatedItemResponseFilterSensitiveLog; +const CancelCommandRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CancelCommandRequestFilterSensitiveLog = CancelCommandRequestFilterSensitiveLog; +const CancelCommandResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CancelCommandResultFilterSensitiveLog = CancelCommandResultFilterSensitiveLog; +const CancelMaintenanceWindowExecutionRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CancelMaintenanceWindowExecutionRequestFilterSensitiveLog = CancelMaintenanceWindowExecutionRequestFilterSensitiveLog; +const CancelMaintenanceWindowExecutionResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CancelMaintenanceWindowExecutionResultFilterSensitiveLog = CancelMaintenanceWindowExecutionResultFilterSensitiveLog; +const RegistrationMetadataItemFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.RegistrationMetadataItemFilterSensitiveLog = RegistrationMetadataItemFilterSensitiveLog; +const CreateActivationRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CreateActivationRequestFilterSensitiveLog = CreateActivationRequestFilterSensitiveLog; +const CreateActivationResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CreateActivationResultFilterSensitiveLog = CreateActivationResultFilterSensitiveLog; +const S3OutputLocationFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.S3OutputLocationFilterSensitiveLog = S3OutputLocationFilterSensitiveLog; +const InstanceAssociationOutputLocationFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InstanceAssociationOutputLocationFilterSensitiveLog = InstanceAssociationOutputLocationFilterSensitiveLog; +const TargetLocationFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.TargetLocationFilterSensitiveLog = TargetLocationFilterSensitiveLog; +const TargetFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.TargetFilterSensitiveLog = TargetFilterSensitiveLog; +const CreateAssociationRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), +}); +exports.CreateAssociationRequestFilterSensitiveLog = CreateAssociationRequestFilterSensitiveLog; +const AssociationOverviewFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AssociationOverviewFilterSensitiveLog = AssociationOverviewFilterSensitiveLog; +const AssociationStatusFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AssociationStatusFilterSensitiveLog = AssociationStatusFilterSensitiveLog; +const AssociationDescriptionFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), +}); +exports.AssociationDescriptionFilterSensitiveLog = AssociationDescriptionFilterSensitiveLog; +const CreateAssociationResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.AssociationDescription && { + AssociationDescription: (0, exports.AssociationDescriptionFilterSensitiveLog)(obj.AssociationDescription), + }), +}); +exports.CreateAssociationResultFilterSensitiveLog = CreateAssociationResultFilterSensitiveLog; +const CreateAssociationBatchRequestEntryFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), +}); +exports.CreateAssociationBatchRequestEntryFilterSensitiveLog = CreateAssociationBatchRequestEntryFilterSensitiveLog; +const CreateAssociationBatchRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Entries && { + Entries: obj.Entries.map((item) => (0, exports.CreateAssociationBatchRequestEntryFilterSensitiveLog)(item)), + }), +}); +exports.CreateAssociationBatchRequestFilterSensitiveLog = CreateAssociationBatchRequestFilterSensitiveLog; +const FailedCreateAssociationFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Entry && { Entry: (0, exports.CreateAssociationBatchRequestEntryFilterSensitiveLog)(obj.Entry) }), +}); +exports.FailedCreateAssociationFilterSensitiveLog = FailedCreateAssociationFilterSensitiveLog; +const CreateAssociationBatchResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Successful && { Successful: obj.Successful.map((item) => (0, exports.AssociationDescriptionFilterSensitiveLog)(item)) }), + ...(obj.Failed && { Failed: obj.Failed.map((item) => (0, exports.FailedCreateAssociationFilterSensitiveLog)(item)) }), +}); +exports.CreateAssociationBatchResultFilterSensitiveLog = CreateAssociationBatchResultFilterSensitiveLog; +const AttachmentsSourceFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AttachmentsSourceFilterSensitiveLog = AttachmentsSourceFilterSensitiveLog; +const DocumentRequiresFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DocumentRequiresFilterSensitiveLog = DocumentRequiresFilterSensitiveLog; +const CreateDocumentRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CreateDocumentRequestFilterSensitiveLog = CreateDocumentRequestFilterSensitiveLog; +const AttachmentInformationFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AttachmentInformationFilterSensitiveLog = AttachmentInformationFilterSensitiveLog; +const DocumentParameterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DocumentParameterFilterSensitiveLog = DocumentParameterFilterSensitiveLog; +const ReviewInformationFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ReviewInformationFilterSensitiveLog = ReviewInformationFilterSensitiveLog; +const DocumentDescriptionFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DocumentDescriptionFilterSensitiveLog = DocumentDescriptionFilterSensitiveLog; +const CreateDocumentResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CreateDocumentResultFilterSensitiveLog = CreateDocumentResultFilterSensitiveLog; +const CreateMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), +}); +exports.CreateMaintenanceWindowRequestFilterSensitiveLog = CreateMaintenanceWindowRequestFilterSensitiveLog; +const CreateMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CreateMaintenanceWindowResultFilterSensitiveLog = CreateMaintenanceWindowResultFilterSensitiveLog; +const OpsItemNotificationFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.OpsItemNotificationFilterSensitiveLog = OpsItemNotificationFilterSensitiveLog; +const OpsItemDataValueFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.OpsItemDataValueFilterSensitiveLog = OpsItemDataValueFilterSensitiveLog; +const RelatedOpsItemFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.RelatedOpsItemFilterSensitiveLog = RelatedOpsItemFilterSensitiveLog; +const CreateOpsItemRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CreateOpsItemRequestFilterSensitiveLog = CreateOpsItemRequestFilterSensitiveLog; +const CreateOpsItemResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CreateOpsItemResponseFilterSensitiveLog = CreateOpsItemResponseFilterSensitiveLog; +const MetadataValueFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.MetadataValueFilterSensitiveLog = MetadataValueFilterSensitiveLog; +const CreateOpsMetadataRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CreateOpsMetadataRequestFilterSensitiveLog = CreateOpsMetadataRequestFilterSensitiveLog; +const CreateOpsMetadataResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CreateOpsMetadataResultFilterSensitiveLog = CreateOpsMetadataResultFilterSensitiveLog; +const PatchFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.PatchFilterFilterSensitiveLog = PatchFilterFilterSensitiveLog; +const PatchFilterGroupFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.PatchFilterGroupFilterSensitiveLog = PatchFilterGroupFilterSensitiveLog; +const PatchRuleFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.PatchRuleFilterSensitiveLog = PatchRuleFilterSensitiveLog; +const PatchRuleGroupFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.PatchRuleGroupFilterSensitiveLog = PatchRuleGroupFilterSensitiveLog; +const PatchSourceFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Configuration && { Configuration: smithy_client_1.SENSITIVE_STRING }), +}); +exports.PatchSourceFilterSensitiveLog = PatchSourceFilterSensitiveLog; +const CreatePatchBaselineRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Sources && { Sources: obj.Sources.map((item) => (0, exports.PatchSourceFilterSensitiveLog)(item)) }), +}); +exports.CreatePatchBaselineRequestFilterSensitiveLog = CreatePatchBaselineRequestFilterSensitiveLog; +const CreatePatchBaselineResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CreatePatchBaselineResultFilterSensitiveLog = CreatePatchBaselineResultFilterSensitiveLog; +const ResourceDataSyncDestinationDataSharingFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ResourceDataSyncDestinationDataSharingFilterSensitiveLog = ResourceDataSyncDestinationDataSharingFilterSensitiveLog; +const ResourceDataSyncS3DestinationFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ResourceDataSyncS3DestinationFilterSensitiveLog = ResourceDataSyncS3DestinationFilterSensitiveLog; +const ResourceDataSyncOrganizationalUnitFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ResourceDataSyncOrganizationalUnitFilterSensitiveLog = ResourceDataSyncOrganizationalUnitFilterSensitiveLog; +const ResourceDataSyncAwsOrganizationsSourceFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ResourceDataSyncAwsOrganizationsSourceFilterSensitiveLog = ResourceDataSyncAwsOrganizationsSourceFilterSensitiveLog; +const ResourceDataSyncSourceFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ResourceDataSyncSourceFilterSensitiveLog = ResourceDataSyncSourceFilterSensitiveLog; +const CreateResourceDataSyncRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CreateResourceDataSyncRequestFilterSensitiveLog = CreateResourceDataSyncRequestFilterSensitiveLog; +const CreateResourceDataSyncResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CreateResourceDataSyncResultFilterSensitiveLog = CreateResourceDataSyncResultFilterSensitiveLog; +const DeleteActivationRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeleteActivationRequestFilterSensitiveLog = DeleteActivationRequestFilterSensitiveLog; +const DeleteActivationResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeleteActivationResultFilterSensitiveLog = DeleteActivationResultFilterSensitiveLog; +const DeleteAssociationRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeleteAssociationRequestFilterSensitiveLog = DeleteAssociationRequestFilterSensitiveLog; +const DeleteAssociationResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeleteAssociationResultFilterSensitiveLog = DeleteAssociationResultFilterSensitiveLog; +const DeleteDocumentRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeleteDocumentRequestFilterSensitiveLog = DeleteDocumentRequestFilterSensitiveLog; +const DeleteDocumentResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeleteDocumentResultFilterSensitiveLog = DeleteDocumentResultFilterSensitiveLog; +const DeleteInventoryRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeleteInventoryRequestFilterSensitiveLog = DeleteInventoryRequestFilterSensitiveLog; +const InventoryDeletionSummaryItemFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InventoryDeletionSummaryItemFilterSensitiveLog = InventoryDeletionSummaryItemFilterSensitiveLog; +const InventoryDeletionSummaryFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InventoryDeletionSummaryFilterSensitiveLog = InventoryDeletionSummaryFilterSensitiveLog; +const DeleteInventoryResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeleteInventoryResultFilterSensitiveLog = DeleteInventoryResultFilterSensitiveLog; +const DeleteMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeleteMaintenanceWindowRequestFilterSensitiveLog = DeleteMaintenanceWindowRequestFilterSensitiveLog; +const DeleteMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeleteMaintenanceWindowResultFilterSensitiveLog = DeleteMaintenanceWindowResultFilterSensitiveLog; +const DeleteOpsMetadataRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeleteOpsMetadataRequestFilterSensitiveLog = DeleteOpsMetadataRequestFilterSensitiveLog; +const DeleteOpsMetadataResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeleteOpsMetadataResultFilterSensitiveLog = DeleteOpsMetadataResultFilterSensitiveLog; +const DeleteParameterRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeleteParameterRequestFilterSensitiveLog = DeleteParameterRequestFilterSensitiveLog; +const DeleteParameterResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeleteParameterResultFilterSensitiveLog = DeleteParameterResultFilterSensitiveLog; +const DeleteParametersRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeleteParametersRequestFilterSensitiveLog = DeleteParametersRequestFilterSensitiveLog; +const DeleteParametersResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeleteParametersResultFilterSensitiveLog = DeleteParametersResultFilterSensitiveLog; +const DeletePatchBaselineRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeletePatchBaselineRequestFilterSensitiveLog = DeletePatchBaselineRequestFilterSensitiveLog; +const DeletePatchBaselineResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeletePatchBaselineResultFilterSensitiveLog = DeletePatchBaselineResultFilterSensitiveLog; +const DeleteResourceDataSyncRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeleteResourceDataSyncRequestFilterSensitiveLog = DeleteResourceDataSyncRequestFilterSensitiveLog; +const DeleteResourceDataSyncResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeleteResourceDataSyncResultFilterSensitiveLog = DeleteResourceDataSyncResultFilterSensitiveLog; +const DeregisterManagedInstanceRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeregisterManagedInstanceRequestFilterSensitiveLog = DeregisterManagedInstanceRequestFilterSensitiveLog; +const DeregisterManagedInstanceResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeregisterManagedInstanceResultFilterSensitiveLog = DeregisterManagedInstanceResultFilterSensitiveLog; +const DeregisterPatchBaselineForPatchGroupRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeregisterPatchBaselineForPatchGroupRequestFilterSensitiveLog = DeregisterPatchBaselineForPatchGroupRequestFilterSensitiveLog; +const DeregisterPatchBaselineForPatchGroupResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeregisterPatchBaselineForPatchGroupResultFilterSensitiveLog = DeregisterPatchBaselineForPatchGroupResultFilterSensitiveLog; +const DeregisterTargetFromMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeregisterTargetFromMaintenanceWindowRequestFilterSensitiveLog = DeregisterTargetFromMaintenanceWindowRequestFilterSensitiveLog; +const DeregisterTargetFromMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeregisterTargetFromMaintenanceWindowResultFilterSensitiveLog = DeregisterTargetFromMaintenanceWindowResultFilterSensitiveLog; +const DeregisterTaskFromMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeregisterTaskFromMaintenanceWindowRequestFilterSensitiveLog = DeregisterTaskFromMaintenanceWindowRequestFilterSensitiveLog; +const DeregisterTaskFromMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DeregisterTaskFromMaintenanceWindowResultFilterSensitiveLog = DeregisterTaskFromMaintenanceWindowResultFilterSensitiveLog; +const DescribeActivationsFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeActivationsFilterFilterSensitiveLog = DescribeActivationsFilterFilterSensitiveLog; +const DescribeActivationsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeActivationsRequestFilterSensitiveLog = DescribeActivationsRequestFilterSensitiveLog; +const DescribeActivationsResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeActivationsResultFilterSensitiveLog = DescribeActivationsResultFilterSensitiveLog; +const DescribeAssociationRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeAssociationRequestFilterSensitiveLog = DescribeAssociationRequestFilterSensitiveLog; +const DescribeAssociationResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.AssociationDescription && { + AssociationDescription: (0, exports.AssociationDescriptionFilterSensitiveLog)(obj.AssociationDescription), + }), +}); +exports.DescribeAssociationResultFilterSensitiveLog = DescribeAssociationResultFilterSensitiveLog; +const AssociationExecutionFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AssociationExecutionFilterFilterSensitiveLog = AssociationExecutionFilterFilterSensitiveLog; +const DescribeAssociationExecutionsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeAssociationExecutionsRequestFilterSensitiveLog = DescribeAssociationExecutionsRequestFilterSensitiveLog; +const AssociationExecutionFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AssociationExecutionFilterSensitiveLog = AssociationExecutionFilterSensitiveLog; +const DescribeAssociationExecutionsResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeAssociationExecutionsResultFilterSensitiveLog = DescribeAssociationExecutionsResultFilterSensitiveLog; +const AssociationExecutionTargetsFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AssociationExecutionTargetsFilterFilterSensitiveLog = AssociationExecutionTargetsFilterFilterSensitiveLog; +const DescribeAssociationExecutionTargetsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeAssociationExecutionTargetsRequestFilterSensitiveLog = DescribeAssociationExecutionTargetsRequestFilterSensitiveLog; +const OutputSourceFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.OutputSourceFilterSensitiveLog = OutputSourceFilterSensitiveLog; +const AssociationExecutionTargetFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AssociationExecutionTargetFilterSensitiveLog = AssociationExecutionTargetFilterSensitiveLog; +const DescribeAssociationExecutionTargetsResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeAssociationExecutionTargetsResultFilterSensitiveLog = DescribeAssociationExecutionTargetsResultFilterSensitiveLog; +const AutomationExecutionFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AutomationExecutionFilterFilterSensitiveLog = AutomationExecutionFilterFilterSensitiveLog; +const DescribeAutomationExecutionsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeAutomationExecutionsRequestFilterSensitiveLog = DescribeAutomationExecutionsRequestFilterSensitiveLog; +const ResolvedTargetsFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ResolvedTargetsFilterSensitiveLog = ResolvedTargetsFilterSensitiveLog; +const RunbookFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.RunbookFilterSensitiveLog = RunbookFilterSensitiveLog; +const AutomationExecutionMetadataFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AutomationExecutionMetadataFilterSensitiveLog = AutomationExecutionMetadataFilterSensitiveLog; +const DescribeAutomationExecutionsResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeAutomationExecutionsResultFilterSensitiveLog = DescribeAutomationExecutionsResultFilterSensitiveLog; +const StepExecutionFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.StepExecutionFilterFilterSensitiveLog = StepExecutionFilterFilterSensitiveLog; +const DescribeAutomationStepExecutionsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeAutomationStepExecutionsRequestFilterSensitiveLog = DescribeAutomationStepExecutionsRequestFilterSensitiveLog; +const FailureDetailsFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.FailureDetailsFilterSensitiveLog = FailureDetailsFilterSensitiveLog; +const StepExecutionFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.StepExecutionFilterSensitiveLog = StepExecutionFilterSensitiveLog; +const DescribeAutomationStepExecutionsResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeAutomationStepExecutionsResultFilterSensitiveLog = DescribeAutomationStepExecutionsResultFilterSensitiveLog; +const PatchOrchestratorFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.PatchOrchestratorFilterFilterSensitiveLog = PatchOrchestratorFilterFilterSensitiveLog; +const DescribeAvailablePatchesRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeAvailablePatchesRequestFilterSensitiveLog = DescribeAvailablePatchesRequestFilterSensitiveLog; +const PatchFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.PatchFilterSensitiveLog = PatchFilterSensitiveLog; +const DescribeAvailablePatchesResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeAvailablePatchesResultFilterSensitiveLog = DescribeAvailablePatchesResultFilterSensitiveLog; +const DescribeDocumentRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeDocumentRequestFilterSensitiveLog = DescribeDocumentRequestFilterSensitiveLog; +const DescribeDocumentResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeDocumentResultFilterSensitiveLog = DescribeDocumentResultFilterSensitiveLog; +const DescribeDocumentPermissionRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeDocumentPermissionRequestFilterSensitiveLog = DescribeDocumentPermissionRequestFilterSensitiveLog; +const DescribeDocumentPermissionResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeDocumentPermissionResponseFilterSensitiveLog = DescribeDocumentPermissionResponseFilterSensitiveLog; +const DescribeEffectiveInstanceAssociationsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeEffectiveInstanceAssociationsRequestFilterSensitiveLog = DescribeEffectiveInstanceAssociationsRequestFilterSensitiveLog; +const InstanceAssociationFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InstanceAssociationFilterSensitiveLog = InstanceAssociationFilterSensitiveLog; +const DescribeEffectiveInstanceAssociationsResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeEffectiveInstanceAssociationsResultFilterSensitiveLog = DescribeEffectiveInstanceAssociationsResultFilterSensitiveLog; +const DescribeEffectivePatchesForPatchBaselineRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeEffectivePatchesForPatchBaselineRequestFilterSensitiveLog = DescribeEffectivePatchesForPatchBaselineRequestFilterSensitiveLog; +const PatchStatusFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.PatchStatusFilterSensitiveLog = PatchStatusFilterSensitiveLog; +const EffectivePatchFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.EffectivePatchFilterSensitiveLog = EffectivePatchFilterSensitiveLog; +const DescribeEffectivePatchesForPatchBaselineResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeEffectivePatchesForPatchBaselineResultFilterSensitiveLog = DescribeEffectivePatchesForPatchBaselineResultFilterSensitiveLog; +const DescribeInstanceAssociationsStatusRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeInstanceAssociationsStatusRequestFilterSensitiveLog = DescribeInstanceAssociationsStatusRequestFilterSensitiveLog; +const S3OutputUrlFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.S3OutputUrlFilterSensitiveLog = S3OutputUrlFilterSensitiveLog; +const InstanceAssociationOutputUrlFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InstanceAssociationOutputUrlFilterSensitiveLog = InstanceAssociationOutputUrlFilterSensitiveLog; +const InstanceAssociationStatusInfoFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InstanceAssociationStatusInfoFilterSensitiveLog = InstanceAssociationStatusInfoFilterSensitiveLog; +const DescribeInstanceAssociationsStatusResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeInstanceAssociationsStatusResultFilterSensitiveLog = DescribeInstanceAssociationsStatusResultFilterSensitiveLog; +const InstanceInformationStringFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InstanceInformationStringFilterFilterSensitiveLog = InstanceInformationStringFilterFilterSensitiveLog; +const InstanceInformationFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InstanceInformationFilterFilterSensitiveLog = InstanceInformationFilterFilterSensitiveLog; +const DescribeInstanceInformationRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeInstanceInformationRequestFilterSensitiveLog = DescribeInstanceInformationRequestFilterSensitiveLog; +const InstanceAggregatedAssociationOverviewFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InstanceAggregatedAssociationOverviewFilterSensitiveLog = InstanceAggregatedAssociationOverviewFilterSensitiveLog; +const InstanceInformationFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InstanceInformationFilterSensitiveLog = InstanceInformationFilterSensitiveLog; +const DescribeInstanceInformationResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeInstanceInformationResultFilterSensitiveLog = DescribeInstanceInformationResultFilterSensitiveLog; +const DescribeInstancePatchesRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeInstancePatchesRequestFilterSensitiveLog = DescribeInstancePatchesRequestFilterSensitiveLog; +const PatchComplianceDataFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.PatchComplianceDataFilterSensitiveLog = PatchComplianceDataFilterSensitiveLog; +const DescribeInstancePatchesResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeInstancePatchesResultFilterSensitiveLog = DescribeInstancePatchesResultFilterSensitiveLog; +const DescribeInstancePatchStatesRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeInstancePatchStatesRequestFilterSensitiveLog = DescribeInstancePatchStatesRequestFilterSensitiveLog; +const InstancePatchStateFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), +}); +exports.InstancePatchStateFilterSensitiveLog = InstancePatchStateFilterSensitiveLog; +const DescribeInstancePatchStatesResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.InstancePatchStates && { + InstancePatchStates: obj.InstancePatchStates.map((item) => (0, exports.InstancePatchStateFilterSensitiveLog)(item)), + }), +}); +exports.DescribeInstancePatchStatesResultFilterSensitiveLog = DescribeInstancePatchStatesResultFilterSensitiveLog; +const InstancePatchStateFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InstancePatchStateFilterFilterSensitiveLog = InstancePatchStateFilterFilterSensitiveLog; +const DescribeInstancePatchStatesForPatchGroupRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeInstancePatchStatesForPatchGroupRequestFilterSensitiveLog = DescribeInstancePatchStatesForPatchGroupRequestFilterSensitiveLog; +const DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.InstancePatchStates && { + InstancePatchStates: obj.InstancePatchStates.map((item) => (0, exports.InstancePatchStateFilterSensitiveLog)(item)), + }), +}); +exports.DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog = DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog; +const DescribeInventoryDeletionsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeInventoryDeletionsRequestFilterSensitiveLog = DescribeInventoryDeletionsRequestFilterSensitiveLog; +const InventoryDeletionStatusItemFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InventoryDeletionStatusItemFilterSensitiveLog = InventoryDeletionStatusItemFilterSensitiveLog; +const DescribeInventoryDeletionsResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeInventoryDeletionsResultFilterSensitiveLog = DescribeInventoryDeletionsResultFilterSensitiveLog; +const MaintenanceWindowFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.MaintenanceWindowFilterFilterSensitiveLog = MaintenanceWindowFilterFilterSensitiveLog; +const DescribeMaintenanceWindowExecutionsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeMaintenanceWindowExecutionsRequestFilterSensitiveLog = DescribeMaintenanceWindowExecutionsRequestFilterSensitiveLog; +const MaintenanceWindowExecutionFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.MaintenanceWindowExecutionFilterSensitiveLog = MaintenanceWindowExecutionFilterSensitiveLog; +const DescribeMaintenanceWindowExecutionsResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeMaintenanceWindowExecutionsResultFilterSensitiveLog = DescribeMaintenanceWindowExecutionsResultFilterSensitiveLog; +const DescribeMaintenanceWindowExecutionTaskInvocationsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeMaintenanceWindowExecutionTaskInvocationsRequestFilterSensitiveLog = DescribeMaintenanceWindowExecutionTaskInvocationsRequestFilterSensitiveLog; +const MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), + ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), +}); +exports.MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog = MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog; +const DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.WindowExecutionTaskInvocationIdentities && { + WindowExecutionTaskInvocationIdentities: obj.WindowExecutionTaskInvocationIdentities.map((item) => (0, exports.MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog)(item)), + }), +}); +exports.DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog = DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog; +const DescribeMaintenanceWindowExecutionTasksRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeMaintenanceWindowExecutionTasksRequestFilterSensitiveLog = DescribeMaintenanceWindowExecutionTasksRequestFilterSensitiveLog; +const MaintenanceWindowExecutionTaskIdentityFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.MaintenanceWindowExecutionTaskIdentityFilterSensitiveLog = MaintenanceWindowExecutionTaskIdentityFilterSensitiveLog; +const DescribeMaintenanceWindowExecutionTasksResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeMaintenanceWindowExecutionTasksResultFilterSensitiveLog = DescribeMaintenanceWindowExecutionTasksResultFilterSensitiveLog; +const DescribeMaintenanceWindowsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeMaintenanceWindowsRequestFilterSensitiveLog = DescribeMaintenanceWindowsRequestFilterSensitiveLog; +const MaintenanceWindowIdentityFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), +}); +exports.MaintenanceWindowIdentityFilterSensitiveLog = MaintenanceWindowIdentityFilterSensitiveLog; +const DescribeMaintenanceWindowsResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.WindowIdentities && { + WindowIdentities: obj.WindowIdentities.map((item) => (0, exports.MaintenanceWindowIdentityFilterSensitiveLog)(item)), + }), +}); +exports.DescribeMaintenanceWindowsResultFilterSensitiveLog = DescribeMaintenanceWindowsResultFilterSensitiveLog; +const DescribeMaintenanceWindowScheduleRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeMaintenanceWindowScheduleRequestFilterSensitiveLog = DescribeMaintenanceWindowScheduleRequestFilterSensitiveLog; +const ScheduledWindowExecutionFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ScheduledWindowExecutionFilterSensitiveLog = ScheduledWindowExecutionFilterSensitiveLog; +const DescribeMaintenanceWindowScheduleResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeMaintenanceWindowScheduleResultFilterSensitiveLog = DescribeMaintenanceWindowScheduleResultFilterSensitiveLog; +const DescribeMaintenanceWindowsForTargetRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeMaintenanceWindowsForTargetRequestFilterSensitiveLog = DescribeMaintenanceWindowsForTargetRequestFilterSensitiveLog; +const MaintenanceWindowIdentityForTargetFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.MaintenanceWindowIdentityForTargetFilterSensitiveLog = MaintenanceWindowIdentityForTargetFilterSensitiveLog; +const DescribeMaintenanceWindowsForTargetResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeMaintenanceWindowsForTargetResultFilterSensitiveLog = DescribeMaintenanceWindowsForTargetResultFilterSensitiveLog; +const DescribeMaintenanceWindowTargetsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeMaintenanceWindowTargetsRequestFilterSensitiveLog = DescribeMaintenanceWindowTargetsRequestFilterSensitiveLog; +const MaintenanceWindowTargetFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), + ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), +}); +exports.MaintenanceWindowTargetFilterSensitiveLog = MaintenanceWindowTargetFilterSensitiveLog; +const DescribeMaintenanceWindowTargetsResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Targets && { Targets: obj.Targets.map((item) => (0, exports.MaintenanceWindowTargetFilterSensitiveLog)(item)) }), +}); +exports.DescribeMaintenanceWindowTargetsResultFilterSensitiveLog = DescribeMaintenanceWindowTargetsResultFilterSensitiveLog; +const DescribeMaintenanceWindowTasksRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeMaintenanceWindowTasksRequestFilterSensitiveLog = DescribeMaintenanceWindowTasksRequestFilterSensitiveLog; +const LoggingInfoFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.LoggingInfoFilterSensitiveLog = LoggingInfoFilterSensitiveLog; +const MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Values && { Values: smithy_client_1.SENSITIVE_STRING }), +}); +exports.MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog = MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog; +const MaintenanceWindowTaskFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.TaskParameters && { TaskParameters: smithy_client_1.SENSITIVE_STRING }), + ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), +}); +exports.MaintenanceWindowTaskFilterSensitiveLog = MaintenanceWindowTaskFilterSensitiveLog; +const DescribeMaintenanceWindowTasksResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Tasks && { Tasks: obj.Tasks.map((item) => (0, exports.MaintenanceWindowTaskFilterSensitiveLog)(item)) }), +}); +exports.DescribeMaintenanceWindowTasksResultFilterSensitiveLog = DescribeMaintenanceWindowTasksResultFilterSensitiveLog; +const OpsItemFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.OpsItemFilterFilterSensitiveLog = OpsItemFilterFilterSensitiveLog; +const DescribeOpsItemsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeOpsItemsRequestFilterSensitiveLog = DescribeOpsItemsRequestFilterSensitiveLog; +const OpsItemSummaryFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.OpsItemSummaryFilterSensitiveLog = OpsItemSummaryFilterSensitiveLog; +const DescribeOpsItemsResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeOpsItemsResponseFilterSensitiveLog = DescribeOpsItemsResponseFilterSensitiveLog; +const ParametersFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ParametersFilterFilterSensitiveLog = ParametersFilterFilterSensitiveLog; +const ParameterStringFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ParameterStringFilterFilterSensitiveLog = ParameterStringFilterFilterSensitiveLog; +const DescribeParametersRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeParametersRequestFilterSensitiveLog = DescribeParametersRequestFilterSensitiveLog; +const ParameterInlinePolicyFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ParameterInlinePolicyFilterSensitiveLog = ParameterInlinePolicyFilterSensitiveLog; + + +/***/ }), + +/***/ 9974: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ComplianceUploadType = exports.ItemSizeLimitExceededException = exports.InvalidItemContentException = exports.ComplianceTypeCountLimitExceededException = exports.DocumentPermissionLimit = exports.LastResourceDataSyncStatus = exports.OpsItemRelatedItemsFilterOperator = exports.OpsItemRelatedItemsFilterKey = exports.OpsItemEventFilterOperator = exports.OpsItemEventFilterKey = exports.DocumentFilterKey = exports.DocumentReviewCommentType = exports.DocumentMetadataEnum = exports.ComplianceStatus = exports.ComplianceSeverity = exports.ComplianceQueryOperatorType = exports.CommandStatus = exports.CommandPluginStatus = exports.CommandFilterKey = exports.AssociationFilterKey = exports.ParameterVersionLabelLimitExceeded = exports.ServiceSettingNotFound = exports.ParameterVersionNotFound = exports.InvalidKeyId = exports.OpsFilterOperatorType = exports.NotificationType = exports.NotificationEvent = exports.InventoryAttributeDataType = exports.InvalidResultAttributeException = exports.InvalidInventoryGroupException = exports.InvalidAggregatorException = exports.InventoryQueryOperatorType = exports.AttachmentHashType = exports.UnsupportedFeatureRequiredException = exports.ConnectionStatus = exports.InvocationDoesNotExist = exports.InvalidPluginName = exports.CommandInvocationStatus = exports.UnsupportedCalendarException = exports.InvalidDocumentType = exports.CalendarState = exports.OpsItemRelatedItemAssociationNotFoundException = exports.SessionStatus = exports.SessionState = exports.SessionFilterKey = exports.PatchProperty = exports.PatchSet = exports.InvalidFilterOption = exports.ParameterType = exports.ParameterTier = void 0; +exports.DescribePatchGroupsResultFilterSensitiveLog = exports.PatchGroupPatchBaselineMappingFilterSensitiveLog = exports.DescribePatchGroupsRequestFilterSensitiveLog = exports.DescribePatchBaselinesResultFilterSensitiveLog = exports.PatchBaselineIdentityFilterSensitiveLog = exports.DescribePatchBaselinesRequestFilterSensitiveLog = exports.DescribeParametersResultFilterSensitiveLog = exports.ParameterMetadataFilterSensitiveLog = exports.DocumentReviewAction = exports.DuplicateDocumentVersionName = exports.DuplicateDocumentContent = exports.DocumentVersionLimitExceeded = exports.StatusUnchanged = exports.InvalidUpdate = exports.AssociationVersionLimitExceeded = exports.StopType = exports.InvalidAutomationStatusUpdateException = exports.TargetNotConnected = exports.AutomationDefinitionNotApprovedException = exports.InvalidAutomationExecutionParametersException = exports.AutomationExecutionLimitExceededException = exports.AutomationDefinitionVersionNotFoundException = exports.AutomationDefinitionNotFoundException = exports.InvalidAssociation = exports.InvalidRole = exports.InvalidOutputFolder = exports.InvalidNotificationConfig = exports.SignalType = exports.InvalidAutomationSignalException = exports.AutomationStepNotFoundException = exports.FeatureNotAvailableException = exports.UnsupportedParameterType = exports.PoliciesLimitExceededException = exports.ParameterPatternMismatchException = exports.ParameterMaxVersionLimitExceeded = exports.ParameterLimitExceeded = exports.ParameterAlreadyExists = exports.InvalidPolicyTypeException = exports.InvalidPolicyAttributeException = exports.InvalidAllowedPatternException = exports.IncompatiblePolicyException = exports.HierarchyTypeMismatchException = exports.HierarchyLevelLimitExceededException = exports.UnsupportedInventorySchemaVersionException = exports.UnsupportedInventoryItemContextException = exports.SubTypeCountLimitExceededException = exports.ItemContentMismatchException = exports.InvalidInventoryItemContextException = exports.CustomSchemaCountLimitExceededException = exports.TotalSizeLimitExceededException = void 0; +exports.MaintenanceWindowAutomationParametersFilterSensitiveLog = exports.GetMaintenanceWindowTaskRequestFilterSensitiveLog = exports.GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog = exports.GetMaintenanceWindowExecutionTaskInvocationRequestFilterSensitiveLog = exports.GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog = exports.GetMaintenanceWindowExecutionTaskRequestFilterSensitiveLog = exports.GetMaintenanceWindowExecutionResultFilterSensitiveLog = exports.GetMaintenanceWindowExecutionRequestFilterSensitiveLog = exports.GetMaintenanceWindowResultFilterSensitiveLog = exports.GetMaintenanceWindowRequestFilterSensitiveLog = exports.GetInventorySchemaResultFilterSensitiveLog = exports.InventoryItemSchemaFilterSensitiveLog = exports.InventoryItemAttributeFilterSensitiveLog = exports.GetInventorySchemaRequestFilterSensitiveLog = exports.GetInventoryResultFilterSensitiveLog = exports.InventoryResultEntityFilterSensitiveLog = exports.InventoryResultItemFilterSensitiveLog = exports.ResultAttributeFilterSensitiveLog = exports.InventoryGroupFilterSensitiveLog = exports.InventoryFilterFilterSensitiveLog = exports.GetDocumentResultFilterSensitiveLog = exports.AttachmentContentFilterSensitiveLog = exports.GetDocumentRequestFilterSensitiveLog = exports.GetDeployablePatchSnapshotForInstanceResultFilterSensitiveLog = exports.GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog = exports.BaselineOverrideFilterSensitiveLog = exports.GetDefaultPatchBaselineResultFilterSensitiveLog = exports.GetDefaultPatchBaselineRequestFilterSensitiveLog = exports.GetConnectionStatusResponseFilterSensitiveLog = exports.GetConnectionStatusRequestFilterSensitiveLog = exports.GetCommandInvocationResultFilterSensitiveLog = exports.CloudWatchOutputConfigFilterSensitiveLog = exports.GetCommandInvocationRequestFilterSensitiveLog = exports.GetCalendarStateResponseFilterSensitiveLog = exports.GetCalendarStateRequestFilterSensitiveLog = exports.GetAutomationExecutionResultFilterSensitiveLog = exports.AutomationExecutionFilterSensitiveLog = exports.ProgressCountersFilterSensitiveLog = exports.GetAutomationExecutionRequestFilterSensitiveLog = exports.DisassociateOpsItemRelatedItemResponseFilterSensitiveLog = exports.DisassociateOpsItemRelatedItemRequestFilterSensitiveLog = exports.DescribeSessionsResponseFilterSensitiveLog = exports.SessionFilterSensitiveLog = exports.SessionManagerOutputUrlFilterSensitiveLog = exports.DescribeSessionsRequestFilterSensitiveLog = exports.SessionFilterFilterSensitiveLog = exports.DescribePatchPropertiesResultFilterSensitiveLog = exports.DescribePatchPropertiesRequestFilterSensitiveLog = exports.DescribePatchGroupStateResultFilterSensitiveLog = exports.DescribePatchGroupStateRequestFilterSensitiveLog = void 0; +exports.ListCommandsResultFilterSensitiveLog = exports.CommandFilterSensitiveLog = exports.ListCommandsRequestFilterSensitiveLog = exports.ListCommandInvocationsResultFilterSensitiveLog = exports.CommandInvocationFilterSensitiveLog = exports.CommandPluginFilterSensitiveLog = exports.ListCommandInvocationsRequestFilterSensitiveLog = exports.CommandFilterFilterSensitiveLog = exports.ListAssociationVersionsResultFilterSensitiveLog = exports.AssociationVersionInfoFilterSensitiveLog = exports.ListAssociationVersionsRequestFilterSensitiveLog = exports.ListAssociationsResultFilterSensitiveLog = exports.AssociationFilterSensitiveLog = exports.ListAssociationsRequestFilterSensitiveLog = exports.AssociationFilterFilterSensitiveLog = exports.LabelParameterVersionResultFilterSensitiveLog = exports.LabelParameterVersionRequestFilterSensitiveLog = exports.GetServiceSettingResultFilterSensitiveLog = exports.ServiceSettingFilterSensitiveLog = exports.GetServiceSettingRequestFilterSensitiveLog = exports.GetPatchBaselineForPatchGroupResultFilterSensitiveLog = exports.GetPatchBaselineForPatchGroupRequestFilterSensitiveLog = exports.GetPatchBaselineResultFilterSensitiveLog = exports.GetPatchBaselineRequestFilterSensitiveLog = exports.GetParametersByPathResultFilterSensitiveLog = exports.GetParametersByPathRequestFilterSensitiveLog = exports.GetParametersResultFilterSensitiveLog = exports.GetParametersRequestFilterSensitiveLog = exports.GetParameterHistoryResultFilterSensitiveLog = exports.ParameterHistoryFilterSensitiveLog = exports.GetParameterHistoryRequestFilterSensitiveLog = exports.GetParameterResultFilterSensitiveLog = exports.ParameterFilterSensitiveLog = exports.GetParameterRequestFilterSensitiveLog = exports.GetOpsSummaryResultFilterSensitiveLog = exports.OpsEntityFilterSensitiveLog = exports.OpsEntityItemFilterSensitiveLog = exports.OpsResultAttributeFilterSensitiveLog = exports.OpsFilterFilterSensitiveLog = exports.GetOpsMetadataResultFilterSensitiveLog = exports.GetOpsMetadataRequestFilterSensitiveLog = exports.GetOpsItemResponseFilterSensitiveLog = exports.OpsItemFilterSensitiveLog = exports.GetOpsItemRequestFilterSensitiveLog = exports.GetMaintenanceWindowTaskResultFilterSensitiveLog = exports.MaintenanceWindowTaskInvocationParametersFilterSensitiveLog = exports.MaintenanceWindowStepFunctionsParametersFilterSensitiveLog = exports.MaintenanceWindowRunCommandParametersFilterSensitiveLog = exports.NotificationConfigFilterSensitiveLog = exports.MaintenanceWindowLambdaParametersFilterSensitiveLog = void 0; +exports.ModifyDocumentPermissionResponseFilterSensitiveLog = exports.ModifyDocumentPermissionRequestFilterSensitiveLog = exports.ListTagsForResourceResultFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListResourceDataSyncResultFilterSensitiveLog = exports.ResourceDataSyncItemFilterSensitiveLog = exports.ResourceDataSyncSourceWithStateFilterSensitiveLog = exports.ListResourceDataSyncRequestFilterSensitiveLog = exports.ListResourceComplianceSummariesResultFilterSensitiveLog = exports.ResourceComplianceSummaryItemFilterSensitiveLog = exports.ListResourceComplianceSummariesRequestFilterSensitiveLog = exports.ListOpsMetadataResultFilterSensitiveLog = exports.OpsMetadataFilterSensitiveLog = exports.ListOpsMetadataRequestFilterSensitiveLog = exports.OpsMetadataFilterFilterSensitiveLog = exports.ListOpsItemRelatedItemsResponseFilterSensitiveLog = exports.OpsItemRelatedItemSummaryFilterSensitiveLog = exports.ListOpsItemRelatedItemsRequestFilterSensitiveLog = exports.OpsItemRelatedItemsFilterFilterSensitiveLog = exports.ListOpsItemEventsResponseFilterSensitiveLog = exports.OpsItemEventSummaryFilterSensitiveLog = exports.OpsItemIdentityFilterSensitiveLog = exports.ListOpsItemEventsRequestFilterSensitiveLog = exports.OpsItemEventFilterFilterSensitiveLog = exports.ListInventoryEntriesResultFilterSensitiveLog = exports.ListInventoryEntriesRequestFilterSensitiveLog = exports.ListDocumentVersionsResultFilterSensitiveLog = exports.DocumentVersionInfoFilterSensitiveLog = exports.ListDocumentVersionsRequestFilterSensitiveLog = exports.ListDocumentsResultFilterSensitiveLog = exports.DocumentIdentifierFilterSensitiveLog = exports.ListDocumentsRequestFilterSensitiveLog = exports.DocumentKeyValuesFilterFilterSensitiveLog = exports.DocumentFilterFilterSensitiveLog = exports.ListDocumentMetadataHistoryResponseFilterSensitiveLog = exports.DocumentMetadataResponseInfoFilterSensitiveLog = exports.DocumentReviewerResponseSourceFilterSensitiveLog = exports.DocumentReviewCommentSourceFilterSensitiveLog = exports.ListDocumentMetadataHistoryRequestFilterSensitiveLog = exports.ListComplianceSummariesResultFilterSensitiveLog = exports.ComplianceSummaryItemFilterSensitiveLog = exports.NonCompliantSummaryFilterSensitiveLog = exports.CompliantSummaryFilterSensitiveLog = exports.SeveritySummaryFilterSensitiveLog = exports.ListComplianceSummariesRequestFilterSensitiveLog = exports.ListComplianceItemsResultFilterSensitiveLog = exports.ComplianceItemFilterSensitiveLog = exports.ComplianceExecutionSummaryFilterSensitiveLog = exports.ListComplianceItemsRequestFilterSensitiveLog = exports.ComplianceStringFilterFilterSensitiveLog = void 0; +exports.DocumentReviewsFilterSensitiveLog = exports.UpdateDocumentDefaultVersionResultFilterSensitiveLog = exports.DocumentDefaultVersionDescriptionFilterSensitiveLog = exports.UpdateDocumentDefaultVersionRequestFilterSensitiveLog = exports.UpdateDocumentResultFilterSensitiveLog = exports.UpdateDocumentRequestFilterSensitiveLog = exports.UpdateAssociationStatusResultFilterSensitiveLog = exports.UpdateAssociationStatusRequestFilterSensitiveLog = exports.UpdateAssociationResultFilterSensitiveLog = exports.UpdateAssociationRequestFilterSensitiveLog = exports.UnlabelParameterVersionResultFilterSensitiveLog = exports.UnlabelParameterVersionRequestFilterSensitiveLog = exports.TerminateSessionResponseFilterSensitiveLog = exports.TerminateSessionRequestFilterSensitiveLog = exports.StopAutomationExecutionResultFilterSensitiveLog = exports.StopAutomationExecutionRequestFilterSensitiveLog = exports.StartSessionResponseFilterSensitiveLog = exports.StartSessionRequestFilterSensitiveLog = exports.StartChangeRequestExecutionResultFilterSensitiveLog = exports.StartChangeRequestExecutionRequestFilterSensitiveLog = exports.StartAutomationExecutionResultFilterSensitiveLog = exports.StartAutomationExecutionRequestFilterSensitiveLog = exports.StartAssociationsOnceResultFilterSensitiveLog = exports.StartAssociationsOnceRequestFilterSensitiveLog = exports.SendCommandResultFilterSensitiveLog = exports.SendCommandRequestFilterSensitiveLog = exports.SendAutomationSignalResultFilterSensitiveLog = exports.SendAutomationSignalRequestFilterSensitiveLog = exports.ResumeSessionResponseFilterSensitiveLog = exports.ResumeSessionRequestFilterSensitiveLog = exports.ResetServiceSettingResultFilterSensitiveLog = exports.ResetServiceSettingRequestFilterSensitiveLog = exports.RemoveTagsFromResourceResultFilterSensitiveLog = exports.RemoveTagsFromResourceRequestFilterSensitiveLog = exports.RegisterTaskWithMaintenanceWindowResultFilterSensitiveLog = exports.RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog = exports.RegisterTargetWithMaintenanceWindowResultFilterSensitiveLog = exports.RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog = exports.RegisterPatchBaselineForPatchGroupResultFilterSensitiveLog = exports.RegisterPatchBaselineForPatchGroupRequestFilterSensitiveLog = exports.RegisterDefaultPatchBaselineResultFilterSensitiveLog = exports.RegisterDefaultPatchBaselineRequestFilterSensitiveLog = exports.PutParameterResultFilterSensitiveLog = exports.PutParameterRequestFilterSensitiveLog = exports.PutInventoryResultFilterSensitiveLog = exports.PutInventoryRequestFilterSensitiveLog = exports.InventoryItemFilterSensitiveLog = exports.PutComplianceItemsResultFilterSensitiveLog = exports.PutComplianceItemsRequestFilterSensitiveLog = exports.ComplianceItemEntryFilterSensitiveLog = void 0; +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const SSMServiceException_1 = __nccwpck_require__(97777); +var ParameterTier; +(function (ParameterTier) { + ParameterTier["ADVANCED"] = "Advanced"; + ParameterTier["INTELLIGENT_TIERING"] = "Intelligent-Tiering"; + ParameterTier["STANDARD"] = "Standard"; +})(ParameterTier = exports.ParameterTier || (exports.ParameterTier = {})); +var ParameterType; +(function (ParameterType) { + ParameterType["SECURE_STRING"] = "SecureString"; + ParameterType["STRING"] = "String"; + ParameterType["STRING_LIST"] = "StringList"; +})(ParameterType = exports.ParameterType || (exports.ParameterType = {})); +class InvalidFilterOption extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidFilterOption", + $fault: "client", + ...opts, + }); + this.name = "InvalidFilterOption"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidFilterOption.prototype); + } +} +exports.InvalidFilterOption = InvalidFilterOption; +var PatchSet; +(function (PatchSet) { + PatchSet["Application"] = "APPLICATION"; + PatchSet["Os"] = "OS"; +})(PatchSet = exports.PatchSet || (exports.PatchSet = {})); +var PatchProperty; +(function (PatchProperty) { + PatchProperty["PatchClassification"] = "CLASSIFICATION"; + PatchProperty["PatchMsrcSeverity"] = "MSRC_SEVERITY"; + PatchProperty["PatchPriority"] = "PRIORITY"; + PatchProperty["PatchProductFamily"] = "PRODUCT_FAMILY"; + PatchProperty["PatchSeverity"] = "SEVERITY"; + PatchProperty["Product"] = "PRODUCT"; +})(PatchProperty = exports.PatchProperty || (exports.PatchProperty = {})); +var SessionFilterKey; +(function (SessionFilterKey) { + SessionFilterKey["INVOKED_AFTER"] = "InvokedAfter"; + SessionFilterKey["INVOKED_BEFORE"] = "InvokedBefore"; + SessionFilterKey["OWNER"] = "Owner"; + SessionFilterKey["SESSION_ID"] = "SessionId"; + SessionFilterKey["STATUS"] = "Status"; + SessionFilterKey["TARGET_ID"] = "Target"; +})(SessionFilterKey = exports.SessionFilterKey || (exports.SessionFilterKey = {})); +var SessionState; +(function (SessionState) { + SessionState["ACTIVE"] = "Active"; + SessionState["HISTORY"] = "History"; +})(SessionState = exports.SessionState || (exports.SessionState = {})); +var SessionStatus; +(function (SessionStatus) { + SessionStatus["CONNECTED"] = "Connected"; + SessionStatus["CONNECTING"] = "Connecting"; + SessionStatus["DISCONNECTED"] = "Disconnected"; + SessionStatus["FAILED"] = "Failed"; + SessionStatus["TERMINATED"] = "Terminated"; + SessionStatus["TERMINATING"] = "Terminating"; +})(SessionStatus = exports.SessionStatus || (exports.SessionStatus = {})); +class OpsItemRelatedItemAssociationNotFoundException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "OpsItemRelatedItemAssociationNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "OpsItemRelatedItemAssociationNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, OpsItemRelatedItemAssociationNotFoundException.prototype); + this.Message = opts.Message; + } +} +exports.OpsItemRelatedItemAssociationNotFoundException = OpsItemRelatedItemAssociationNotFoundException; +var CalendarState; +(function (CalendarState) { + CalendarState["CLOSED"] = "CLOSED"; + CalendarState["OPEN"] = "OPEN"; +})(CalendarState = exports.CalendarState || (exports.CalendarState = {})); +class InvalidDocumentType extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidDocumentType", + $fault: "client", + ...opts, + }); + this.name = "InvalidDocumentType"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidDocumentType.prototype); + this.Message = opts.Message; + } +} +exports.InvalidDocumentType = InvalidDocumentType; +class UnsupportedCalendarException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "UnsupportedCalendarException", + $fault: "client", + ...opts, + }); + this.name = "UnsupportedCalendarException"; + this.$fault = "client"; + Object.setPrototypeOf(this, UnsupportedCalendarException.prototype); + this.Message = opts.Message; + } +} +exports.UnsupportedCalendarException = UnsupportedCalendarException; +var CommandInvocationStatus; +(function (CommandInvocationStatus) { + CommandInvocationStatus["CANCELLED"] = "Cancelled"; + CommandInvocationStatus["CANCELLING"] = "Cancelling"; + CommandInvocationStatus["DELAYED"] = "Delayed"; + CommandInvocationStatus["FAILED"] = "Failed"; + CommandInvocationStatus["IN_PROGRESS"] = "InProgress"; + CommandInvocationStatus["PENDING"] = "Pending"; + CommandInvocationStatus["SUCCESS"] = "Success"; + CommandInvocationStatus["TIMED_OUT"] = "TimedOut"; +})(CommandInvocationStatus = exports.CommandInvocationStatus || (exports.CommandInvocationStatus = {})); +class InvalidPluginName extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidPluginName", + $fault: "client", + ...opts, + }); + this.name = "InvalidPluginName"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidPluginName.prototype); + } +} +exports.InvalidPluginName = InvalidPluginName; +class InvocationDoesNotExist extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvocationDoesNotExist", + $fault: "client", + ...opts, + }); + this.name = "InvocationDoesNotExist"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvocationDoesNotExist.prototype); + } +} +exports.InvocationDoesNotExist = InvocationDoesNotExist; +var ConnectionStatus; +(function (ConnectionStatus) { + ConnectionStatus["CONNECTED"] = "Connected"; + ConnectionStatus["NOT_CONNECTED"] = "NotConnected"; +})(ConnectionStatus = exports.ConnectionStatus || (exports.ConnectionStatus = {})); +class UnsupportedFeatureRequiredException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "UnsupportedFeatureRequiredException", + $fault: "client", + ...opts, + }); + this.name = "UnsupportedFeatureRequiredException"; + this.$fault = "client"; + Object.setPrototypeOf(this, UnsupportedFeatureRequiredException.prototype); + this.Message = opts.Message; + } +} +exports.UnsupportedFeatureRequiredException = UnsupportedFeatureRequiredException; +var AttachmentHashType; +(function (AttachmentHashType) { + AttachmentHashType["SHA256"] = "Sha256"; +})(AttachmentHashType = exports.AttachmentHashType || (exports.AttachmentHashType = {})); +var InventoryQueryOperatorType; +(function (InventoryQueryOperatorType) { + InventoryQueryOperatorType["BEGIN_WITH"] = "BeginWith"; + InventoryQueryOperatorType["EQUAL"] = "Equal"; + InventoryQueryOperatorType["EXISTS"] = "Exists"; + InventoryQueryOperatorType["GREATER_THAN"] = "GreaterThan"; + InventoryQueryOperatorType["LESS_THAN"] = "LessThan"; + InventoryQueryOperatorType["NOT_EQUAL"] = "NotEqual"; +})(InventoryQueryOperatorType = exports.InventoryQueryOperatorType || (exports.InventoryQueryOperatorType = {})); +class InvalidAggregatorException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidAggregatorException", + $fault: "client", + ...opts, + }); + this.name = "InvalidAggregatorException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidAggregatorException.prototype); + this.Message = opts.Message; + } +} +exports.InvalidAggregatorException = InvalidAggregatorException; +class InvalidInventoryGroupException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidInventoryGroupException", + $fault: "client", + ...opts, + }); + this.name = "InvalidInventoryGroupException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidInventoryGroupException.prototype); + this.Message = opts.Message; + } +} +exports.InvalidInventoryGroupException = InvalidInventoryGroupException; +class InvalidResultAttributeException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidResultAttributeException", + $fault: "client", + ...opts, + }); + this.name = "InvalidResultAttributeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidResultAttributeException.prototype); + this.Message = opts.Message; + } +} +exports.InvalidResultAttributeException = InvalidResultAttributeException; +var InventoryAttributeDataType; +(function (InventoryAttributeDataType) { + InventoryAttributeDataType["NUMBER"] = "number"; + InventoryAttributeDataType["STRING"] = "string"; +})(InventoryAttributeDataType = exports.InventoryAttributeDataType || (exports.InventoryAttributeDataType = {})); +var NotificationEvent; +(function (NotificationEvent) { + NotificationEvent["ALL"] = "All"; + NotificationEvent["CANCELLED"] = "Cancelled"; + NotificationEvent["FAILED"] = "Failed"; + NotificationEvent["IN_PROGRESS"] = "InProgress"; + NotificationEvent["SUCCESS"] = "Success"; + NotificationEvent["TIMED_OUT"] = "TimedOut"; +})(NotificationEvent = exports.NotificationEvent || (exports.NotificationEvent = {})); +var NotificationType; +(function (NotificationType) { + NotificationType["Command"] = "Command"; + NotificationType["Invocation"] = "Invocation"; +})(NotificationType = exports.NotificationType || (exports.NotificationType = {})); +var OpsFilterOperatorType; +(function (OpsFilterOperatorType) { + OpsFilterOperatorType["BEGIN_WITH"] = "BeginWith"; + OpsFilterOperatorType["EQUAL"] = "Equal"; + OpsFilterOperatorType["EXISTS"] = "Exists"; + OpsFilterOperatorType["GREATER_THAN"] = "GreaterThan"; + OpsFilterOperatorType["LESS_THAN"] = "LessThan"; + OpsFilterOperatorType["NOT_EQUAL"] = "NotEqual"; +})(OpsFilterOperatorType = exports.OpsFilterOperatorType || (exports.OpsFilterOperatorType = {})); +class InvalidKeyId extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidKeyId", + $fault: "client", + ...opts, + }); + this.name = "InvalidKeyId"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidKeyId.prototype); + } +} +exports.InvalidKeyId = InvalidKeyId; +class ParameterVersionNotFound extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "ParameterVersionNotFound", + $fault: "client", + ...opts, + }); + this.name = "ParameterVersionNotFound"; + this.$fault = "client"; + Object.setPrototypeOf(this, ParameterVersionNotFound.prototype); + } +} +exports.ParameterVersionNotFound = ParameterVersionNotFound; +class ServiceSettingNotFound extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "ServiceSettingNotFound", + $fault: "client", + ...opts, + }); + this.name = "ServiceSettingNotFound"; + this.$fault = "client"; + Object.setPrototypeOf(this, ServiceSettingNotFound.prototype); + this.Message = opts.Message; + } +} +exports.ServiceSettingNotFound = ServiceSettingNotFound; +class ParameterVersionLabelLimitExceeded extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "ParameterVersionLabelLimitExceeded", + $fault: "client", + ...opts, + }); + this.name = "ParameterVersionLabelLimitExceeded"; + this.$fault = "client"; + Object.setPrototypeOf(this, ParameterVersionLabelLimitExceeded.prototype); + } +} +exports.ParameterVersionLabelLimitExceeded = ParameterVersionLabelLimitExceeded; +var AssociationFilterKey; +(function (AssociationFilterKey) { + AssociationFilterKey["AssociationId"] = "AssociationId"; + AssociationFilterKey["AssociationName"] = "AssociationName"; + AssociationFilterKey["InstanceId"] = "InstanceId"; + AssociationFilterKey["LastExecutedAfter"] = "LastExecutedAfter"; + AssociationFilterKey["LastExecutedBefore"] = "LastExecutedBefore"; + AssociationFilterKey["Name"] = "Name"; + AssociationFilterKey["ResourceGroupName"] = "ResourceGroupName"; + AssociationFilterKey["Status"] = "AssociationStatusName"; +})(AssociationFilterKey = exports.AssociationFilterKey || (exports.AssociationFilterKey = {})); +var CommandFilterKey; +(function (CommandFilterKey) { + CommandFilterKey["DOCUMENT_NAME"] = "DocumentName"; + CommandFilterKey["EXECUTION_STAGE"] = "ExecutionStage"; + CommandFilterKey["INVOKED_AFTER"] = "InvokedAfter"; + CommandFilterKey["INVOKED_BEFORE"] = "InvokedBefore"; + CommandFilterKey["STATUS"] = "Status"; +})(CommandFilterKey = exports.CommandFilterKey || (exports.CommandFilterKey = {})); +var CommandPluginStatus; +(function (CommandPluginStatus) { + CommandPluginStatus["CANCELLED"] = "Cancelled"; + CommandPluginStatus["FAILED"] = "Failed"; + CommandPluginStatus["IN_PROGRESS"] = "InProgress"; + CommandPluginStatus["PENDING"] = "Pending"; + CommandPluginStatus["SUCCESS"] = "Success"; + CommandPluginStatus["TIMED_OUT"] = "TimedOut"; +})(CommandPluginStatus = exports.CommandPluginStatus || (exports.CommandPluginStatus = {})); +var CommandStatus; +(function (CommandStatus) { + CommandStatus["CANCELLED"] = "Cancelled"; + CommandStatus["CANCELLING"] = "Cancelling"; + CommandStatus["FAILED"] = "Failed"; + CommandStatus["IN_PROGRESS"] = "InProgress"; + CommandStatus["PENDING"] = "Pending"; + CommandStatus["SUCCESS"] = "Success"; + CommandStatus["TIMED_OUT"] = "TimedOut"; +})(CommandStatus = exports.CommandStatus || (exports.CommandStatus = {})); +var ComplianceQueryOperatorType; +(function (ComplianceQueryOperatorType) { + ComplianceQueryOperatorType["BeginWith"] = "BEGIN_WITH"; + ComplianceQueryOperatorType["Equal"] = "EQUAL"; + ComplianceQueryOperatorType["GreaterThan"] = "GREATER_THAN"; + ComplianceQueryOperatorType["LessThan"] = "LESS_THAN"; + ComplianceQueryOperatorType["NotEqual"] = "NOT_EQUAL"; +})(ComplianceQueryOperatorType = exports.ComplianceQueryOperatorType || (exports.ComplianceQueryOperatorType = {})); +var ComplianceSeverity; +(function (ComplianceSeverity) { + ComplianceSeverity["Critical"] = "CRITICAL"; + ComplianceSeverity["High"] = "HIGH"; + ComplianceSeverity["Informational"] = "INFORMATIONAL"; + ComplianceSeverity["Low"] = "LOW"; + ComplianceSeverity["Medium"] = "MEDIUM"; + ComplianceSeverity["Unspecified"] = "UNSPECIFIED"; +})(ComplianceSeverity = exports.ComplianceSeverity || (exports.ComplianceSeverity = {})); +var ComplianceStatus; +(function (ComplianceStatus) { + ComplianceStatus["Compliant"] = "COMPLIANT"; + ComplianceStatus["NonCompliant"] = "NON_COMPLIANT"; +})(ComplianceStatus = exports.ComplianceStatus || (exports.ComplianceStatus = {})); +var DocumentMetadataEnum; +(function (DocumentMetadataEnum) { + DocumentMetadataEnum["DocumentReviews"] = "DocumentReviews"; +})(DocumentMetadataEnum = exports.DocumentMetadataEnum || (exports.DocumentMetadataEnum = {})); +var DocumentReviewCommentType; +(function (DocumentReviewCommentType) { + DocumentReviewCommentType["Comment"] = "Comment"; +})(DocumentReviewCommentType = exports.DocumentReviewCommentType || (exports.DocumentReviewCommentType = {})); +var DocumentFilterKey; +(function (DocumentFilterKey) { + DocumentFilterKey["DocumentType"] = "DocumentType"; + DocumentFilterKey["Name"] = "Name"; + DocumentFilterKey["Owner"] = "Owner"; + DocumentFilterKey["PlatformTypes"] = "PlatformTypes"; +})(DocumentFilterKey = exports.DocumentFilterKey || (exports.DocumentFilterKey = {})); +var OpsItemEventFilterKey; +(function (OpsItemEventFilterKey) { + OpsItemEventFilterKey["OPSITEM_ID"] = "OpsItemId"; +})(OpsItemEventFilterKey = exports.OpsItemEventFilterKey || (exports.OpsItemEventFilterKey = {})); +var OpsItemEventFilterOperator; +(function (OpsItemEventFilterOperator) { + OpsItemEventFilterOperator["EQUAL"] = "Equal"; +})(OpsItemEventFilterOperator = exports.OpsItemEventFilterOperator || (exports.OpsItemEventFilterOperator = {})); +var OpsItemRelatedItemsFilterKey; +(function (OpsItemRelatedItemsFilterKey) { + OpsItemRelatedItemsFilterKey["ASSOCIATION_ID"] = "AssociationId"; + OpsItemRelatedItemsFilterKey["RESOURCE_TYPE"] = "ResourceType"; + OpsItemRelatedItemsFilterKey["RESOURCE_URI"] = "ResourceUri"; +})(OpsItemRelatedItemsFilterKey = exports.OpsItemRelatedItemsFilterKey || (exports.OpsItemRelatedItemsFilterKey = {})); +var OpsItemRelatedItemsFilterOperator; +(function (OpsItemRelatedItemsFilterOperator) { + OpsItemRelatedItemsFilterOperator["EQUAL"] = "Equal"; +})(OpsItemRelatedItemsFilterOperator = exports.OpsItemRelatedItemsFilterOperator || (exports.OpsItemRelatedItemsFilterOperator = {})); +var LastResourceDataSyncStatus; +(function (LastResourceDataSyncStatus) { + LastResourceDataSyncStatus["FAILED"] = "Failed"; + LastResourceDataSyncStatus["INPROGRESS"] = "InProgress"; + LastResourceDataSyncStatus["SUCCESSFUL"] = "Successful"; +})(LastResourceDataSyncStatus = exports.LastResourceDataSyncStatus || (exports.LastResourceDataSyncStatus = {})); +class DocumentPermissionLimit extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "DocumentPermissionLimit", + $fault: "client", + ...opts, + }); + this.name = "DocumentPermissionLimit"; + this.$fault = "client"; + Object.setPrototypeOf(this, DocumentPermissionLimit.prototype); + this.Message = opts.Message; + } +} +exports.DocumentPermissionLimit = DocumentPermissionLimit; +class ComplianceTypeCountLimitExceededException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "ComplianceTypeCountLimitExceededException", + $fault: "client", + ...opts, + }); + this.name = "ComplianceTypeCountLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ComplianceTypeCountLimitExceededException.prototype); + this.Message = opts.Message; + } +} +exports.ComplianceTypeCountLimitExceededException = ComplianceTypeCountLimitExceededException; +class InvalidItemContentException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidItemContentException", + $fault: "client", + ...opts, + }); + this.name = "InvalidItemContentException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidItemContentException.prototype); + this.TypeName = opts.TypeName; + this.Message = opts.Message; + } +} +exports.InvalidItemContentException = InvalidItemContentException; +class ItemSizeLimitExceededException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "ItemSizeLimitExceededException", + $fault: "client", + ...opts, + }); + this.name = "ItemSizeLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ItemSizeLimitExceededException.prototype); + this.TypeName = opts.TypeName; + this.Message = opts.Message; + } +} +exports.ItemSizeLimitExceededException = ItemSizeLimitExceededException; +var ComplianceUploadType; +(function (ComplianceUploadType) { + ComplianceUploadType["Complete"] = "COMPLETE"; + ComplianceUploadType["Partial"] = "PARTIAL"; +})(ComplianceUploadType = exports.ComplianceUploadType || (exports.ComplianceUploadType = {})); +class TotalSizeLimitExceededException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "TotalSizeLimitExceededException", + $fault: "client", + ...opts, + }); + this.name = "TotalSizeLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TotalSizeLimitExceededException.prototype); + this.Message = opts.Message; + } +} +exports.TotalSizeLimitExceededException = TotalSizeLimitExceededException; +class CustomSchemaCountLimitExceededException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "CustomSchemaCountLimitExceededException", + $fault: "client", + ...opts, + }); + this.name = "CustomSchemaCountLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, CustomSchemaCountLimitExceededException.prototype); + this.Message = opts.Message; + } +} +exports.CustomSchemaCountLimitExceededException = CustomSchemaCountLimitExceededException; +class InvalidInventoryItemContextException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidInventoryItemContextException", + $fault: "client", + ...opts, + }); + this.name = "InvalidInventoryItemContextException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidInventoryItemContextException.prototype); + this.Message = opts.Message; + } +} +exports.InvalidInventoryItemContextException = InvalidInventoryItemContextException; +class ItemContentMismatchException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "ItemContentMismatchException", + $fault: "client", + ...opts, + }); + this.name = "ItemContentMismatchException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ItemContentMismatchException.prototype); + this.TypeName = opts.TypeName; + this.Message = opts.Message; + } +} +exports.ItemContentMismatchException = ItemContentMismatchException; +class SubTypeCountLimitExceededException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "SubTypeCountLimitExceededException", + $fault: "client", + ...opts, + }); + this.name = "SubTypeCountLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, SubTypeCountLimitExceededException.prototype); + this.Message = opts.Message; + } +} +exports.SubTypeCountLimitExceededException = SubTypeCountLimitExceededException; +class UnsupportedInventoryItemContextException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "UnsupportedInventoryItemContextException", + $fault: "client", + ...opts, + }); + this.name = "UnsupportedInventoryItemContextException"; + this.$fault = "client"; + Object.setPrototypeOf(this, UnsupportedInventoryItemContextException.prototype); + this.TypeName = opts.TypeName; + this.Message = opts.Message; + } +} +exports.UnsupportedInventoryItemContextException = UnsupportedInventoryItemContextException; +class UnsupportedInventorySchemaVersionException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "UnsupportedInventorySchemaVersionException", + $fault: "client", + ...opts, + }); + this.name = "UnsupportedInventorySchemaVersionException"; + this.$fault = "client"; + Object.setPrototypeOf(this, UnsupportedInventorySchemaVersionException.prototype); + this.Message = opts.Message; + } +} +exports.UnsupportedInventorySchemaVersionException = UnsupportedInventorySchemaVersionException; +class HierarchyLevelLimitExceededException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "HierarchyLevelLimitExceededException", + $fault: "client", + ...opts, + }); + this.name = "HierarchyLevelLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, HierarchyLevelLimitExceededException.prototype); + } +} +exports.HierarchyLevelLimitExceededException = HierarchyLevelLimitExceededException; +class HierarchyTypeMismatchException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "HierarchyTypeMismatchException", + $fault: "client", + ...opts, + }); + this.name = "HierarchyTypeMismatchException"; + this.$fault = "client"; + Object.setPrototypeOf(this, HierarchyTypeMismatchException.prototype); + } +} +exports.HierarchyTypeMismatchException = HierarchyTypeMismatchException; +class IncompatiblePolicyException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "IncompatiblePolicyException", + $fault: "client", + ...opts, + }); + this.name = "IncompatiblePolicyException"; + this.$fault = "client"; + Object.setPrototypeOf(this, IncompatiblePolicyException.prototype); + } +} +exports.IncompatiblePolicyException = IncompatiblePolicyException; +class InvalidAllowedPatternException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidAllowedPatternException", + $fault: "client", + ...opts, + }); + this.name = "InvalidAllowedPatternException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidAllowedPatternException.prototype); + } +} +exports.InvalidAllowedPatternException = InvalidAllowedPatternException; +class InvalidPolicyAttributeException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidPolicyAttributeException", + $fault: "client", + ...opts, + }); + this.name = "InvalidPolicyAttributeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidPolicyAttributeException.prototype); + } +} +exports.InvalidPolicyAttributeException = InvalidPolicyAttributeException; +class InvalidPolicyTypeException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidPolicyTypeException", + $fault: "client", + ...opts, + }); + this.name = "InvalidPolicyTypeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidPolicyTypeException.prototype); + } +} +exports.InvalidPolicyTypeException = InvalidPolicyTypeException; +class ParameterAlreadyExists extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "ParameterAlreadyExists", + $fault: "client", + ...opts, + }); + this.name = "ParameterAlreadyExists"; + this.$fault = "client"; + Object.setPrototypeOf(this, ParameterAlreadyExists.prototype); + } +} +exports.ParameterAlreadyExists = ParameterAlreadyExists; +class ParameterLimitExceeded extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "ParameterLimitExceeded", + $fault: "client", + ...opts, + }); + this.name = "ParameterLimitExceeded"; + this.$fault = "client"; + Object.setPrototypeOf(this, ParameterLimitExceeded.prototype); + } +} +exports.ParameterLimitExceeded = ParameterLimitExceeded; +class ParameterMaxVersionLimitExceeded extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "ParameterMaxVersionLimitExceeded", + $fault: "client", + ...opts, + }); + this.name = "ParameterMaxVersionLimitExceeded"; + this.$fault = "client"; + Object.setPrototypeOf(this, ParameterMaxVersionLimitExceeded.prototype); + } +} +exports.ParameterMaxVersionLimitExceeded = ParameterMaxVersionLimitExceeded; +class ParameterPatternMismatchException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "ParameterPatternMismatchException", + $fault: "client", + ...opts, + }); + this.name = "ParameterPatternMismatchException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ParameterPatternMismatchException.prototype); + } +} +exports.ParameterPatternMismatchException = ParameterPatternMismatchException; +class PoliciesLimitExceededException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "PoliciesLimitExceededException", + $fault: "client", + ...opts, + }); + this.name = "PoliciesLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, PoliciesLimitExceededException.prototype); + } +} +exports.PoliciesLimitExceededException = PoliciesLimitExceededException; +class UnsupportedParameterType extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "UnsupportedParameterType", + $fault: "client", + ...opts, + }); + this.name = "UnsupportedParameterType"; + this.$fault = "client"; + Object.setPrototypeOf(this, UnsupportedParameterType.prototype); + } +} +exports.UnsupportedParameterType = UnsupportedParameterType; +class FeatureNotAvailableException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "FeatureNotAvailableException", + $fault: "client", + ...opts, + }); + this.name = "FeatureNotAvailableException"; + this.$fault = "client"; + Object.setPrototypeOf(this, FeatureNotAvailableException.prototype); + this.Message = opts.Message; + } +} +exports.FeatureNotAvailableException = FeatureNotAvailableException; +class AutomationStepNotFoundException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "AutomationStepNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "AutomationStepNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, AutomationStepNotFoundException.prototype); + this.Message = opts.Message; + } +} +exports.AutomationStepNotFoundException = AutomationStepNotFoundException; +class InvalidAutomationSignalException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidAutomationSignalException", + $fault: "client", + ...opts, + }); + this.name = "InvalidAutomationSignalException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidAutomationSignalException.prototype); + this.Message = opts.Message; + } +} +exports.InvalidAutomationSignalException = InvalidAutomationSignalException; +var SignalType; +(function (SignalType) { + SignalType["APPROVE"] = "Approve"; + SignalType["REJECT"] = "Reject"; + SignalType["RESUME"] = "Resume"; + SignalType["START_STEP"] = "StartStep"; + SignalType["STOP_STEP"] = "StopStep"; +})(SignalType = exports.SignalType || (exports.SignalType = {})); +class InvalidNotificationConfig extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidNotificationConfig", + $fault: "client", + ...opts, + }); + this.name = "InvalidNotificationConfig"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidNotificationConfig.prototype); + this.Message = opts.Message; + } +} +exports.InvalidNotificationConfig = InvalidNotificationConfig; +class InvalidOutputFolder extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidOutputFolder", + $fault: "client", + ...opts, + }); + this.name = "InvalidOutputFolder"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidOutputFolder.prototype); + } +} +exports.InvalidOutputFolder = InvalidOutputFolder; +class InvalidRole extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidRole", + $fault: "client", + ...opts, + }); + this.name = "InvalidRole"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidRole.prototype); + this.Message = opts.Message; + } +} +exports.InvalidRole = InvalidRole; +class InvalidAssociation extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidAssociation", + $fault: "client", + ...opts, + }); + this.name = "InvalidAssociation"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidAssociation.prototype); + this.Message = opts.Message; + } +} +exports.InvalidAssociation = InvalidAssociation; +class AutomationDefinitionNotFoundException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "AutomationDefinitionNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "AutomationDefinitionNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, AutomationDefinitionNotFoundException.prototype); + this.Message = opts.Message; + } +} +exports.AutomationDefinitionNotFoundException = AutomationDefinitionNotFoundException; +class AutomationDefinitionVersionNotFoundException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "AutomationDefinitionVersionNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "AutomationDefinitionVersionNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, AutomationDefinitionVersionNotFoundException.prototype); + this.Message = opts.Message; + } +} +exports.AutomationDefinitionVersionNotFoundException = AutomationDefinitionVersionNotFoundException; +class AutomationExecutionLimitExceededException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "AutomationExecutionLimitExceededException", + $fault: "client", + ...opts, + }); + this.name = "AutomationExecutionLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, AutomationExecutionLimitExceededException.prototype); + this.Message = opts.Message; + } +} +exports.AutomationExecutionLimitExceededException = AutomationExecutionLimitExceededException; +class InvalidAutomationExecutionParametersException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidAutomationExecutionParametersException", + $fault: "client", + ...opts, + }); + this.name = "InvalidAutomationExecutionParametersException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidAutomationExecutionParametersException.prototype); + this.Message = opts.Message; + } +} +exports.InvalidAutomationExecutionParametersException = InvalidAutomationExecutionParametersException; +class AutomationDefinitionNotApprovedException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "AutomationDefinitionNotApprovedException", + $fault: "client", + ...opts, + }); + this.name = "AutomationDefinitionNotApprovedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, AutomationDefinitionNotApprovedException.prototype); + this.Message = opts.Message; + } +} +exports.AutomationDefinitionNotApprovedException = AutomationDefinitionNotApprovedException; +class TargetNotConnected extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "TargetNotConnected", + $fault: "client", + ...opts, + }); + this.name = "TargetNotConnected"; + this.$fault = "client"; + Object.setPrototypeOf(this, TargetNotConnected.prototype); + this.Message = opts.Message; + } +} +exports.TargetNotConnected = TargetNotConnected; +class InvalidAutomationStatusUpdateException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidAutomationStatusUpdateException", + $fault: "client", + ...opts, + }); + this.name = "InvalidAutomationStatusUpdateException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidAutomationStatusUpdateException.prototype); + this.Message = opts.Message; + } +} +exports.InvalidAutomationStatusUpdateException = InvalidAutomationStatusUpdateException; +var StopType; +(function (StopType) { + StopType["CANCEL"] = "Cancel"; + StopType["COMPLETE"] = "Complete"; +})(StopType = exports.StopType || (exports.StopType = {})); +class AssociationVersionLimitExceeded extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "AssociationVersionLimitExceeded", + $fault: "client", + ...opts, + }); + this.name = "AssociationVersionLimitExceeded"; + this.$fault = "client"; + Object.setPrototypeOf(this, AssociationVersionLimitExceeded.prototype); + this.Message = opts.Message; + } +} +exports.AssociationVersionLimitExceeded = AssociationVersionLimitExceeded; +class InvalidUpdate extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "InvalidUpdate", + $fault: "client", + ...opts, + }); + this.name = "InvalidUpdate"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidUpdate.prototype); + this.Message = opts.Message; + } +} +exports.InvalidUpdate = InvalidUpdate; +class StatusUnchanged extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "StatusUnchanged", + $fault: "client", + ...opts, + }); + this.name = "StatusUnchanged"; + this.$fault = "client"; + Object.setPrototypeOf(this, StatusUnchanged.prototype); + } +} +exports.StatusUnchanged = StatusUnchanged; +class DocumentVersionLimitExceeded extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "DocumentVersionLimitExceeded", + $fault: "client", + ...opts, + }); + this.name = "DocumentVersionLimitExceeded"; + this.$fault = "client"; + Object.setPrototypeOf(this, DocumentVersionLimitExceeded.prototype); + this.Message = opts.Message; + } +} +exports.DocumentVersionLimitExceeded = DocumentVersionLimitExceeded; +class DuplicateDocumentContent extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "DuplicateDocumentContent", + $fault: "client", + ...opts, + }); + this.name = "DuplicateDocumentContent"; + this.$fault = "client"; + Object.setPrototypeOf(this, DuplicateDocumentContent.prototype); + this.Message = opts.Message; + } +} +exports.DuplicateDocumentContent = DuplicateDocumentContent; +class DuplicateDocumentVersionName extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "DuplicateDocumentVersionName", + $fault: "client", + ...opts, + }); + this.name = "DuplicateDocumentVersionName"; + this.$fault = "client"; + Object.setPrototypeOf(this, DuplicateDocumentVersionName.prototype); + this.Message = opts.Message; + } +} +exports.DuplicateDocumentVersionName = DuplicateDocumentVersionName; +var DocumentReviewAction; +(function (DocumentReviewAction) { + DocumentReviewAction["Approve"] = "Approve"; + DocumentReviewAction["Reject"] = "Reject"; + DocumentReviewAction["SendForReview"] = "SendForReview"; + DocumentReviewAction["UpdateReview"] = "UpdateReview"; +})(DocumentReviewAction = exports.DocumentReviewAction || (exports.DocumentReviewAction = {})); +const ParameterMetadataFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ParameterMetadataFilterSensitiveLog = ParameterMetadataFilterSensitiveLog; +const DescribeParametersResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeParametersResultFilterSensitiveLog = DescribeParametersResultFilterSensitiveLog; +const DescribePatchBaselinesRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribePatchBaselinesRequestFilterSensitiveLog = DescribePatchBaselinesRequestFilterSensitiveLog; +const PatchBaselineIdentityFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.PatchBaselineIdentityFilterSensitiveLog = PatchBaselineIdentityFilterSensitiveLog; +const DescribePatchBaselinesResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribePatchBaselinesResultFilterSensitiveLog = DescribePatchBaselinesResultFilterSensitiveLog; +const DescribePatchGroupsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribePatchGroupsRequestFilterSensitiveLog = DescribePatchGroupsRequestFilterSensitiveLog; +const PatchGroupPatchBaselineMappingFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.PatchGroupPatchBaselineMappingFilterSensitiveLog = PatchGroupPatchBaselineMappingFilterSensitiveLog; +const DescribePatchGroupsResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribePatchGroupsResultFilterSensitiveLog = DescribePatchGroupsResultFilterSensitiveLog; +const DescribePatchGroupStateRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribePatchGroupStateRequestFilterSensitiveLog = DescribePatchGroupStateRequestFilterSensitiveLog; +const DescribePatchGroupStateResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribePatchGroupStateResultFilterSensitiveLog = DescribePatchGroupStateResultFilterSensitiveLog; +const DescribePatchPropertiesRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribePatchPropertiesRequestFilterSensitiveLog = DescribePatchPropertiesRequestFilterSensitiveLog; +const DescribePatchPropertiesResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribePatchPropertiesResultFilterSensitiveLog = DescribePatchPropertiesResultFilterSensitiveLog; +const SessionFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.SessionFilterFilterSensitiveLog = SessionFilterFilterSensitiveLog; +const DescribeSessionsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeSessionsRequestFilterSensitiveLog = DescribeSessionsRequestFilterSensitiveLog; +const SessionManagerOutputUrlFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.SessionManagerOutputUrlFilterSensitiveLog = SessionManagerOutputUrlFilterSensitiveLog; +const SessionFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.SessionFilterSensitiveLog = SessionFilterSensitiveLog; +const DescribeSessionsResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DescribeSessionsResponseFilterSensitiveLog = DescribeSessionsResponseFilterSensitiveLog; +const DisassociateOpsItemRelatedItemRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DisassociateOpsItemRelatedItemRequestFilterSensitiveLog = DisassociateOpsItemRelatedItemRequestFilterSensitiveLog; +const DisassociateOpsItemRelatedItemResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DisassociateOpsItemRelatedItemResponseFilterSensitiveLog = DisassociateOpsItemRelatedItemResponseFilterSensitiveLog; +const GetAutomationExecutionRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetAutomationExecutionRequestFilterSensitiveLog = GetAutomationExecutionRequestFilterSensitiveLog; +const ProgressCountersFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ProgressCountersFilterSensitiveLog = ProgressCountersFilterSensitiveLog; +const AutomationExecutionFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AutomationExecutionFilterSensitiveLog = AutomationExecutionFilterSensitiveLog; +const GetAutomationExecutionResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetAutomationExecutionResultFilterSensitiveLog = GetAutomationExecutionResultFilterSensitiveLog; +const GetCalendarStateRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetCalendarStateRequestFilterSensitiveLog = GetCalendarStateRequestFilterSensitiveLog; +const GetCalendarStateResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetCalendarStateResponseFilterSensitiveLog = GetCalendarStateResponseFilterSensitiveLog; +const GetCommandInvocationRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetCommandInvocationRequestFilterSensitiveLog = GetCommandInvocationRequestFilterSensitiveLog; +const CloudWatchOutputConfigFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CloudWatchOutputConfigFilterSensitiveLog = CloudWatchOutputConfigFilterSensitiveLog; +const GetCommandInvocationResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetCommandInvocationResultFilterSensitiveLog = GetCommandInvocationResultFilterSensitiveLog; +const GetConnectionStatusRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetConnectionStatusRequestFilterSensitiveLog = GetConnectionStatusRequestFilterSensitiveLog; +const GetConnectionStatusResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetConnectionStatusResponseFilterSensitiveLog = GetConnectionStatusResponseFilterSensitiveLog; +const GetDefaultPatchBaselineRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetDefaultPatchBaselineRequestFilterSensitiveLog = GetDefaultPatchBaselineRequestFilterSensitiveLog; +const GetDefaultPatchBaselineResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetDefaultPatchBaselineResultFilterSensitiveLog = GetDefaultPatchBaselineResultFilterSensitiveLog; +const BaselineOverrideFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Sources && { Sources: obj.Sources.map((item) => (0, models_0_1.PatchSourceFilterSensitiveLog)(item)) }), +}); +exports.BaselineOverrideFilterSensitiveLog = BaselineOverrideFilterSensitiveLog; +const GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog = GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog; +const GetDeployablePatchSnapshotForInstanceResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetDeployablePatchSnapshotForInstanceResultFilterSensitiveLog = GetDeployablePatchSnapshotForInstanceResultFilterSensitiveLog; +const GetDocumentRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetDocumentRequestFilterSensitiveLog = GetDocumentRequestFilterSensitiveLog; +const AttachmentContentFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AttachmentContentFilterSensitiveLog = AttachmentContentFilterSensitiveLog; +const GetDocumentResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetDocumentResultFilterSensitiveLog = GetDocumentResultFilterSensitiveLog; +const InventoryFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InventoryFilterFilterSensitiveLog = InventoryFilterFilterSensitiveLog; +const InventoryGroupFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InventoryGroupFilterSensitiveLog = InventoryGroupFilterSensitiveLog; +const ResultAttributeFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ResultAttributeFilterSensitiveLog = ResultAttributeFilterSensitiveLog; +const InventoryResultItemFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InventoryResultItemFilterSensitiveLog = InventoryResultItemFilterSensitiveLog; +const InventoryResultEntityFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InventoryResultEntityFilterSensitiveLog = InventoryResultEntityFilterSensitiveLog; +const GetInventoryResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetInventoryResultFilterSensitiveLog = GetInventoryResultFilterSensitiveLog; +const GetInventorySchemaRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetInventorySchemaRequestFilterSensitiveLog = GetInventorySchemaRequestFilterSensitiveLog; +const InventoryItemAttributeFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InventoryItemAttributeFilterSensitiveLog = InventoryItemAttributeFilterSensitiveLog; +const InventoryItemSchemaFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InventoryItemSchemaFilterSensitiveLog = InventoryItemSchemaFilterSensitiveLog; +const GetInventorySchemaResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetInventorySchemaResultFilterSensitiveLog = GetInventorySchemaResultFilterSensitiveLog; +const GetMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetMaintenanceWindowRequestFilterSensitiveLog = GetMaintenanceWindowRequestFilterSensitiveLog; +const GetMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), +}); +exports.GetMaintenanceWindowResultFilterSensitiveLog = GetMaintenanceWindowResultFilterSensitiveLog; +const GetMaintenanceWindowExecutionRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetMaintenanceWindowExecutionRequestFilterSensitiveLog = GetMaintenanceWindowExecutionRequestFilterSensitiveLog; +const GetMaintenanceWindowExecutionResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetMaintenanceWindowExecutionResultFilterSensitiveLog = GetMaintenanceWindowExecutionResultFilterSensitiveLog; +const GetMaintenanceWindowExecutionTaskRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetMaintenanceWindowExecutionTaskRequestFilterSensitiveLog = GetMaintenanceWindowExecutionTaskRequestFilterSensitiveLog; +const GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.TaskParameters && { TaskParameters: smithy_client_1.SENSITIVE_STRING }), +}); +exports.GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog = GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog; +const GetMaintenanceWindowExecutionTaskInvocationRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetMaintenanceWindowExecutionTaskInvocationRequestFilterSensitiveLog = GetMaintenanceWindowExecutionTaskInvocationRequestFilterSensitiveLog; +const GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), + ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), +}); +exports.GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog = GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog; +const GetMaintenanceWindowTaskRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetMaintenanceWindowTaskRequestFilterSensitiveLog = GetMaintenanceWindowTaskRequestFilterSensitiveLog; +const MaintenanceWindowAutomationParametersFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.MaintenanceWindowAutomationParametersFilterSensitiveLog = MaintenanceWindowAutomationParametersFilterSensitiveLog; +const MaintenanceWindowLambdaParametersFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Payload && { Payload: smithy_client_1.SENSITIVE_STRING }), +}); +exports.MaintenanceWindowLambdaParametersFilterSensitiveLog = MaintenanceWindowLambdaParametersFilterSensitiveLog; +const NotificationConfigFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.NotificationConfigFilterSensitiveLog = NotificationConfigFilterSensitiveLog; +const MaintenanceWindowRunCommandParametersFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), +}); +exports.MaintenanceWindowRunCommandParametersFilterSensitiveLog = MaintenanceWindowRunCommandParametersFilterSensitiveLog; +const MaintenanceWindowStepFunctionsParametersFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Input && { Input: smithy_client_1.SENSITIVE_STRING }), +}); +exports.MaintenanceWindowStepFunctionsParametersFilterSensitiveLog = MaintenanceWindowStepFunctionsParametersFilterSensitiveLog; +const MaintenanceWindowTaskInvocationParametersFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.RunCommand && { RunCommand: (0, exports.MaintenanceWindowRunCommandParametersFilterSensitiveLog)(obj.RunCommand) }), + ...(obj.StepFunctions && { + StepFunctions: (0, exports.MaintenanceWindowStepFunctionsParametersFilterSensitiveLog)(obj.StepFunctions), + }), + ...(obj.Lambda && { Lambda: (0, exports.MaintenanceWindowLambdaParametersFilterSensitiveLog)(obj.Lambda) }), +}); +exports.MaintenanceWindowTaskInvocationParametersFilterSensitiveLog = MaintenanceWindowTaskInvocationParametersFilterSensitiveLog; +const GetMaintenanceWindowTaskResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.TaskParameters && { TaskParameters: smithy_client_1.SENSITIVE_STRING }), + ...(obj.TaskInvocationParameters && { + TaskInvocationParameters: (0, exports.MaintenanceWindowTaskInvocationParametersFilterSensitiveLog)(obj.TaskInvocationParameters), + }), + ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), +}); +exports.GetMaintenanceWindowTaskResultFilterSensitiveLog = GetMaintenanceWindowTaskResultFilterSensitiveLog; +const GetOpsItemRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetOpsItemRequestFilterSensitiveLog = GetOpsItemRequestFilterSensitiveLog; +const OpsItemFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.OpsItemFilterSensitiveLog = OpsItemFilterSensitiveLog; +const GetOpsItemResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetOpsItemResponseFilterSensitiveLog = GetOpsItemResponseFilterSensitiveLog; +const GetOpsMetadataRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetOpsMetadataRequestFilterSensitiveLog = GetOpsMetadataRequestFilterSensitiveLog; +const GetOpsMetadataResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetOpsMetadataResultFilterSensitiveLog = GetOpsMetadataResultFilterSensitiveLog; +const OpsFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.OpsFilterFilterSensitiveLog = OpsFilterFilterSensitiveLog; +const OpsResultAttributeFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.OpsResultAttributeFilterSensitiveLog = OpsResultAttributeFilterSensitiveLog; +const OpsEntityItemFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.OpsEntityItemFilterSensitiveLog = OpsEntityItemFilterSensitiveLog; +const OpsEntityFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.OpsEntityFilterSensitiveLog = OpsEntityFilterSensitiveLog; +const GetOpsSummaryResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetOpsSummaryResultFilterSensitiveLog = GetOpsSummaryResultFilterSensitiveLog; +const GetParameterRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetParameterRequestFilterSensitiveLog = GetParameterRequestFilterSensitiveLog; +const ParameterFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Value && { Value: smithy_client_1.SENSITIVE_STRING }), +}); +exports.ParameterFilterSensitiveLog = ParameterFilterSensitiveLog; +const GetParameterResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Parameter && { Parameter: (0, exports.ParameterFilterSensitiveLog)(obj.Parameter) }), +}); +exports.GetParameterResultFilterSensitiveLog = GetParameterResultFilterSensitiveLog; +const GetParameterHistoryRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetParameterHistoryRequestFilterSensitiveLog = GetParameterHistoryRequestFilterSensitiveLog; +const ParameterHistoryFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Value && { Value: smithy_client_1.SENSITIVE_STRING }), +}); +exports.ParameterHistoryFilterSensitiveLog = ParameterHistoryFilterSensitiveLog; +const GetParameterHistoryResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports.ParameterHistoryFilterSensitiveLog)(item)) }), +}); +exports.GetParameterHistoryResultFilterSensitiveLog = GetParameterHistoryResultFilterSensitiveLog; +const GetParametersRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetParametersRequestFilterSensitiveLog = GetParametersRequestFilterSensitiveLog; +const GetParametersResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports.ParameterFilterSensitiveLog)(item)) }), +}); +exports.GetParametersResultFilterSensitiveLog = GetParametersResultFilterSensitiveLog; +const GetParametersByPathRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetParametersByPathRequestFilterSensitiveLog = GetParametersByPathRequestFilterSensitiveLog; +const GetParametersByPathResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports.ParameterFilterSensitiveLog)(item)) }), +}); +exports.GetParametersByPathResultFilterSensitiveLog = GetParametersByPathResultFilterSensitiveLog; +const GetPatchBaselineRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetPatchBaselineRequestFilterSensitiveLog = GetPatchBaselineRequestFilterSensitiveLog; +const GetPatchBaselineResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Sources && { Sources: obj.Sources.map((item) => (0, models_0_1.PatchSourceFilterSensitiveLog)(item)) }), +}); +exports.GetPatchBaselineResultFilterSensitiveLog = GetPatchBaselineResultFilterSensitiveLog; +const GetPatchBaselineForPatchGroupRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetPatchBaselineForPatchGroupRequestFilterSensitiveLog = GetPatchBaselineForPatchGroupRequestFilterSensitiveLog; +const GetPatchBaselineForPatchGroupResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetPatchBaselineForPatchGroupResultFilterSensitiveLog = GetPatchBaselineForPatchGroupResultFilterSensitiveLog; +const GetServiceSettingRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetServiceSettingRequestFilterSensitiveLog = GetServiceSettingRequestFilterSensitiveLog; +const ServiceSettingFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ServiceSettingFilterSensitiveLog = ServiceSettingFilterSensitiveLog; +const GetServiceSettingResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetServiceSettingResultFilterSensitiveLog = GetServiceSettingResultFilterSensitiveLog; +const LabelParameterVersionRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.LabelParameterVersionRequestFilterSensitiveLog = LabelParameterVersionRequestFilterSensitiveLog; +const LabelParameterVersionResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.LabelParameterVersionResultFilterSensitiveLog = LabelParameterVersionResultFilterSensitiveLog; +const AssociationFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AssociationFilterFilterSensitiveLog = AssociationFilterFilterSensitiveLog; +const ListAssociationsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListAssociationsRequestFilterSensitiveLog = ListAssociationsRequestFilterSensitiveLog; +const AssociationFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AssociationFilterSensitiveLog = AssociationFilterSensitiveLog; +const ListAssociationsResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListAssociationsResultFilterSensitiveLog = ListAssociationsResultFilterSensitiveLog; +const ListAssociationVersionsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListAssociationVersionsRequestFilterSensitiveLog = ListAssociationVersionsRequestFilterSensitiveLog; +const AssociationVersionInfoFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), +}); +exports.AssociationVersionInfoFilterSensitiveLog = AssociationVersionInfoFilterSensitiveLog; +const ListAssociationVersionsResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.AssociationVersions && { + AssociationVersions: obj.AssociationVersions.map((item) => (0, exports.AssociationVersionInfoFilterSensitiveLog)(item)), + }), +}); +exports.ListAssociationVersionsResultFilterSensitiveLog = ListAssociationVersionsResultFilterSensitiveLog; +const CommandFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CommandFilterFilterSensitiveLog = CommandFilterFilterSensitiveLog; +const ListCommandInvocationsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListCommandInvocationsRequestFilterSensitiveLog = ListCommandInvocationsRequestFilterSensitiveLog; +const CommandPluginFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CommandPluginFilterSensitiveLog = CommandPluginFilterSensitiveLog; +const CommandInvocationFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CommandInvocationFilterSensitiveLog = CommandInvocationFilterSensitiveLog; +const ListCommandInvocationsResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListCommandInvocationsResultFilterSensitiveLog = ListCommandInvocationsResultFilterSensitiveLog; +const ListCommandsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListCommandsRequestFilterSensitiveLog = ListCommandsRequestFilterSensitiveLog; +const CommandFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), +}); +exports.CommandFilterSensitiveLog = CommandFilterSensitiveLog; +const ListCommandsResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Commands && { Commands: obj.Commands.map((item) => (0, exports.CommandFilterSensitiveLog)(item)) }), +}); +exports.ListCommandsResultFilterSensitiveLog = ListCommandsResultFilterSensitiveLog; +const ComplianceStringFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ComplianceStringFilterFilterSensitiveLog = ComplianceStringFilterFilterSensitiveLog; +const ListComplianceItemsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListComplianceItemsRequestFilterSensitiveLog = ListComplianceItemsRequestFilterSensitiveLog; +const ComplianceExecutionSummaryFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ComplianceExecutionSummaryFilterSensitiveLog = ComplianceExecutionSummaryFilterSensitiveLog; +const ComplianceItemFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ComplianceItemFilterSensitiveLog = ComplianceItemFilterSensitiveLog; +const ListComplianceItemsResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListComplianceItemsResultFilterSensitiveLog = ListComplianceItemsResultFilterSensitiveLog; +const ListComplianceSummariesRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListComplianceSummariesRequestFilterSensitiveLog = ListComplianceSummariesRequestFilterSensitiveLog; +const SeveritySummaryFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.SeveritySummaryFilterSensitiveLog = SeveritySummaryFilterSensitiveLog; +const CompliantSummaryFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CompliantSummaryFilterSensitiveLog = CompliantSummaryFilterSensitiveLog; +const NonCompliantSummaryFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.NonCompliantSummaryFilterSensitiveLog = NonCompliantSummaryFilterSensitiveLog; +const ComplianceSummaryItemFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ComplianceSummaryItemFilterSensitiveLog = ComplianceSummaryItemFilterSensitiveLog; +const ListComplianceSummariesResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListComplianceSummariesResultFilterSensitiveLog = ListComplianceSummariesResultFilterSensitiveLog; +const ListDocumentMetadataHistoryRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListDocumentMetadataHistoryRequestFilterSensitiveLog = ListDocumentMetadataHistoryRequestFilterSensitiveLog; +const DocumentReviewCommentSourceFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DocumentReviewCommentSourceFilterSensitiveLog = DocumentReviewCommentSourceFilterSensitiveLog; +const DocumentReviewerResponseSourceFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DocumentReviewerResponseSourceFilterSensitiveLog = DocumentReviewerResponseSourceFilterSensitiveLog; +const DocumentMetadataResponseInfoFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DocumentMetadataResponseInfoFilterSensitiveLog = DocumentMetadataResponseInfoFilterSensitiveLog; +const ListDocumentMetadataHistoryResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListDocumentMetadataHistoryResponseFilterSensitiveLog = ListDocumentMetadataHistoryResponseFilterSensitiveLog; +const DocumentFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DocumentFilterFilterSensitiveLog = DocumentFilterFilterSensitiveLog; +const DocumentKeyValuesFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DocumentKeyValuesFilterFilterSensitiveLog = DocumentKeyValuesFilterFilterSensitiveLog; +const ListDocumentsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListDocumentsRequestFilterSensitiveLog = ListDocumentsRequestFilterSensitiveLog; +const DocumentIdentifierFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DocumentIdentifierFilterSensitiveLog = DocumentIdentifierFilterSensitiveLog; +const ListDocumentsResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListDocumentsResultFilterSensitiveLog = ListDocumentsResultFilterSensitiveLog; +const ListDocumentVersionsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListDocumentVersionsRequestFilterSensitiveLog = ListDocumentVersionsRequestFilterSensitiveLog; +const DocumentVersionInfoFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DocumentVersionInfoFilterSensitiveLog = DocumentVersionInfoFilterSensitiveLog; +const ListDocumentVersionsResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListDocumentVersionsResultFilterSensitiveLog = ListDocumentVersionsResultFilterSensitiveLog; +const ListInventoryEntriesRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListInventoryEntriesRequestFilterSensitiveLog = ListInventoryEntriesRequestFilterSensitiveLog; +const ListInventoryEntriesResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListInventoryEntriesResultFilterSensitiveLog = ListInventoryEntriesResultFilterSensitiveLog; +const OpsItemEventFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.OpsItemEventFilterFilterSensitiveLog = OpsItemEventFilterFilterSensitiveLog; +const ListOpsItemEventsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListOpsItemEventsRequestFilterSensitiveLog = ListOpsItemEventsRequestFilterSensitiveLog; +const OpsItemIdentityFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.OpsItemIdentityFilterSensitiveLog = OpsItemIdentityFilterSensitiveLog; +const OpsItemEventSummaryFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.OpsItemEventSummaryFilterSensitiveLog = OpsItemEventSummaryFilterSensitiveLog; +const ListOpsItemEventsResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListOpsItemEventsResponseFilterSensitiveLog = ListOpsItemEventsResponseFilterSensitiveLog; +const OpsItemRelatedItemsFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.OpsItemRelatedItemsFilterFilterSensitiveLog = OpsItemRelatedItemsFilterFilterSensitiveLog; +const ListOpsItemRelatedItemsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListOpsItemRelatedItemsRequestFilterSensitiveLog = ListOpsItemRelatedItemsRequestFilterSensitiveLog; +const OpsItemRelatedItemSummaryFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.OpsItemRelatedItemSummaryFilterSensitiveLog = OpsItemRelatedItemSummaryFilterSensitiveLog; +const ListOpsItemRelatedItemsResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListOpsItemRelatedItemsResponseFilterSensitiveLog = ListOpsItemRelatedItemsResponseFilterSensitiveLog; +const OpsMetadataFilterFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.OpsMetadataFilterFilterSensitiveLog = OpsMetadataFilterFilterSensitiveLog; +const ListOpsMetadataRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListOpsMetadataRequestFilterSensitiveLog = ListOpsMetadataRequestFilterSensitiveLog; +const OpsMetadataFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.OpsMetadataFilterSensitiveLog = OpsMetadataFilterSensitiveLog; +const ListOpsMetadataResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListOpsMetadataResultFilterSensitiveLog = ListOpsMetadataResultFilterSensitiveLog; +const ListResourceComplianceSummariesRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListResourceComplianceSummariesRequestFilterSensitiveLog = ListResourceComplianceSummariesRequestFilterSensitiveLog; +const ResourceComplianceSummaryItemFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ResourceComplianceSummaryItemFilterSensitiveLog = ResourceComplianceSummaryItemFilterSensitiveLog; +const ListResourceComplianceSummariesResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListResourceComplianceSummariesResultFilterSensitiveLog = ListResourceComplianceSummariesResultFilterSensitiveLog; +const ListResourceDataSyncRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListResourceDataSyncRequestFilterSensitiveLog = ListResourceDataSyncRequestFilterSensitiveLog; +const ResourceDataSyncSourceWithStateFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ResourceDataSyncSourceWithStateFilterSensitiveLog = ResourceDataSyncSourceWithStateFilterSensitiveLog; +const ResourceDataSyncItemFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ResourceDataSyncItemFilterSensitiveLog = ResourceDataSyncItemFilterSensitiveLog; +const ListResourceDataSyncResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListResourceDataSyncResultFilterSensitiveLog = ListResourceDataSyncResultFilterSensitiveLog; +const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListTagsForResourceRequestFilterSensitiveLog = ListTagsForResourceRequestFilterSensitiveLog; +const ListTagsForResourceResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListTagsForResourceResultFilterSensitiveLog = ListTagsForResourceResultFilterSensitiveLog; +const ModifyDocumentPermissionRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ModifyDocumentPermissionRequestFilterSensitiveLog = ModifyDocumentPermissionRequestFilterSensitiveLog; +const ModifyDocumentPermissionResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ModifyDocumentPermissionResponseFilterSensitiveLog = ModifyDocumentPermissionResponseFilterSensitiveLog; +const ComplianceItemEntryFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ComplianceItemEntryFilterSensitiveLog = ComplianceItemEntryFilterSensitiveLog; +const PutComplianceItemsRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.PutComplianceItemsRequestFilterSensitiveLog = PutComplianceItemsRequestFilterSensitiveLog; +const PutComplianceItemsResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.PutComplianceItemsResultFilterSensitiveLog = PutComplianceItemsResultFilterSensitiveLog; +const InventoryItemFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InventoryItemFilterSensitiveLog = InventoryItemFilterSensitiveLog; +const PutInventoryRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.PutInventoryRequestFilterSensitiveLog = PutInventoryRequestFilterSensitiveLog; +const PutInventoryResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.PutInventoryResultFilterSensitiveLog = PutInventoryResultFilterSensitiveLog; +const PutParameterRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Value && { Value: smithy_client_1.SENSITIVE_STRING }), +}); +exports.PutParameterRequestFilterSensitiveLog = PutParameterRequestFilterSensitiveLog; +const PutParameterResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.PutParameterResultFilterSensitiveLog = PutParameterResultFilterSensitiveLog; +const RegisterDefaultPatchBaselineRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.RegisterDefaultPatchBaselineRequestFilterSensitiveLog = RegisterDefaultPatchBaselineRequestFilterSensitiveLog; +const RegisterDefaultPatchBaselineResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.RegisterDefaultPatchBaselineResultFilterSensitiveLog = RegisterDefaultPatchBaselineResultFilterSensitiveLog; +const RegisterPatchBaselineForPatchGroupRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.RegisterPatchBaselineForPatchGroupRequestFilterSensitiveLog = RegisterPatchBaselineForPatchGroupRequestFilterSensitiveLog; +const RegisterPatchBaselineForPatchGroupResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.RegisterPatchBaselineForPatchGroupResultFilterSensitiveLog = RegisterPatchBaselineForPatchGroupResultFilterSensitiveLog; +const RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), + ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), +}); +exports.RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog = RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog; +const RegisterTargetWithMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.RegisterTargetWithMaintenanceWindowResultFilterSensitiveLog = RegisterTargetWithMaintenanceWindowResultFilterSensitiveLog; +const RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.TaskParameters && { TaskParameters: smithy_client_1.SENSITIVE_STRING }), + ...(obj.TaskInvocationParameters && { + TaskInvocationParameters: (0, exports.MaintenanceWindowTaskInvocationParametersFilterSensitiveLog)(obj.TaskInvocationParameters), + }), + ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), +}); +exports.RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog = RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog; +const RegisterTaskWithMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.RegisterTaskWithMaintenanceWindowResultFilterSensitiveLog = RegisterTaskWithMaintenanceWindowResultFilterSensitiveLog; +const RemoveTagsFromResourceRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.RemoveTagsFromResourceRequestFilterSensitiveLog = RemoveTagsFromResourceRequestFilterSensitiveLog; +const RemoveTagsFromResourceResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.RemoveTagsFromResourceResultFilterSensitiveLog = RemoveTagsFromResourceResultFilterSensitiveLog; +const ResetServiceSettingRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ResetServiceSettingRequestFilterSensitiveLog = ResetServiceSettingRequestFilterSensitiveLog; +const ResetServiceSettingResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ResetServiceSettingResultFilterSensitiveLog = ResetServiceSettingResultFilterSensitiveLog; +const ResumeSessionRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ResumeSessionRequestFilterSensitiveLog = ResumeSessionRequestFilterSensitiveLog; +const ResumeSessionResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ResumeSessionResponseFilterSensitiveLog = ResumeSessionResponseFilterSensitiveLog; +const SendAutomationSignalRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.SendAutomationSignalRequestFilterSensitiveLog = SendAutomationSignalRequestFilterSensitiveLog; +const SendAutomationSignalResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.SendAutomationSignalResultFilterSensitiveLog = SendAutomationSignalResultFilterSensitiveLog; +const SendCommandRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), +}); +exports.SendCommandRequestFilterSensitiveLog = SendCommandRequestFilterSensitiveLog; +const SendCommandResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Command && { Command: (0, exports.CommandFilterSensitiveLog)(obj.Command) }), +}); +exports.SendCommandResultFilterSensitiveLog = SendCommandResultFilterSensitiveLog; +const StartAssociationsOnceRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.StartAssociationsOnceRequestFilterSensitiveLog = StartAssociationsOnceRequestFilterSensitiveLog; +const StartAssociationsOnceResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.StartAssociationsOnceResultFilterSensitiveLog = StartAssociationsOnceResultFilterSensitiveLog; +const StartAutomationExecutionRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.StartAutomationExecutionRequestFilterSensitiveLog = StartAutomationExecutionRequestFilterSensitiveLog; +const StartAutomationExecutionResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.StartAutomationExecutionResultFilterSensitiveLog = StartAutomationExecutionResultFilterSensitiveLog; +const StartChangeRequestExecutionRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.StartChangeRequestExecutionRequestFilterSensitiveLog = StartChangeRequestExecutionRequestFilterSensitiveLog; +const StartChangeRequestExecutionResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.StartChangeRequestExecutionResultFilterSensitiveLog = StartChangeRequestExecutionResultFilterSensitiveLog; +const StartSessionRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.StartSessionRequestFilterSensitiveLog = StartSessionRequestFilterSensitiveLog; +const StartSessionResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.StartSessionResponseFilterSensitiveLog = StartSessionResponseFilterSensitiveLog; +const StopAutomationExecutionRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.StopAutomationExecutionRequestFilterSensitiveLog = StopAutomationExecutionRequestFilterSensitiveLog; +const StopAutomationExecutionResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.StopAutomationExecutionResultFilterSensitiveLog = StopAutomationExecutionResultFilterSensitiveLog; +const TerminateSessionRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.TerminateSessionRequestFilterSensitiveLog = TerminateSessionRequestFilterSensitiveLog; +const TerminateSessionResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.TerminateSessionResponseFilterSensitiveLog = TerminateSessionResponseFilterSensitiveLog; +const UnlabelParameterVersionRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UnlabelParameterVersionRequestFilterSensitiveLog = UnlabelParameterVersionRequestFilterSensitiveLog; +const UnlabelParameterVersionResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UnlabelParameterVersionResultFilterSensitiveLog = UnlabelParameterVersionResultFilterSensitiveLog; +const UpdateAssociationRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), +}); +exports.UpdateAssociationRequestFilterSensitiveLog = UpdateAssociationRequestFilterSensitiveLog; +const UpdateAssociationResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.AssociationDescription && { + AssociationDescription: (0, models_0_1.AssociationDescriptionFilterSensitiveLog)(obj.AssociationDescription), + }), +}); +exports.UpdateAssociationResultFilterSensitiveLog = UpdateAssociationResultFilterSensitiveLog; +const UpdateAssociationStatusRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UpdateAssociationStatusRequestFilterSensitiveLog = UpdateAssociationStatusRequestFilterSensitiveLog; +const UpdateAssociationStatusResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.AssociationDescription && { + AssociationDescription: (0, models_0_1.AssociationDescriptionFilterSensitiveLog)(obj.AssociationDescription), + }), +}); +exports.UpdateAssociationStatusResultFilterSensitiveLog = UpdateAssociationStatusResultFilterSensitiveLog; +const UpdateDocumentRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UpdateDocumentRequestFilterSensitiveLog = UpdateDocumentRequestFilterSensitiveLog; +const UpdateDocumentResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UpdateDocumentResultFilterSensitiveLog = UpdateDocumentResultFilterSensitiveLog; +const UpdateDocumentDefaultVersionRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UpdateDocumentDefaultVersionRequestFilterSensitiveLog = UpdateDocumentDefaultVersionRequestFilterSensitiveLog; +const DocumentDefaultVersionDescriptionFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DocumentDefaultVersionDescriptionFilterSensitiveLog = DocumentDefaultVersionDescriptionFilterSensitiveLog; +const UpdateDocumentDefaultVersionResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UpdateDocumentDefaultVersionResultFilterSensitiveLog = UpdateDocumentDefaultVersionResultFilterSensitiveLog; +const DocumentReviewsFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DocumentReviewsFilterSensitiveLog = DocumentReviewsFilterSensitiveLog; + + +/***/ }), + +/***/ 33439: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetOpsSummaryRequestFilterSensitiveLog = exports.GetInventoryRequestFilterSensitiveLog = exports.OpsAggregatorFilterSensitiveLog = exports.InventoryAggregatorFilterSensitiveLog = exports.UpdateServiceSettingResultFilterSensitiveLog = exports.UpdateServiceSettingRequestFilterSensitiveLog = exports.UpdateResourceDataSyncResultFilterSensitiveLog = exports.UpdateResourceDataSyncRequestFilterSensitiveLog = exports.UpdatePatchBaselineResultFilterSensitiveLog = exports.UpdatePatchBaselineRequestFilterSensitiveLog = exports.UpdateOpsMetadataResultFilterSensitiveLog = exports.UpdateOpsMetadataRequestFilterSensitiveLog = exports.UpdateOpsItemResponseFilterSensitiveLog = exports.UpdateOpsItemRequestFilterSensitiveLog = exports.UpdateManagedInstanceRoleResultFilterSensitiveLog = exports.UpdateManagedInstanceRoleRequestFilterSensitiveLog = exports.UpdateMaintenanceWindowTaskResultFilterSensitiveLog = exports.UpdateMaintenanceWindowTaskRequestFilterSensitiveLog = exports.UpdateMaintenanceWindowTargetResultFilterSensitiveLog = exports.UpdateMaintenanceWindowTargetRequestFilterSensitiveLog = exports.UpdateMaintenanceWindowResultFilterSensitiveLog = exports.UpdateMaintenanceWindowRequestFilterSensitiveLog = exports.UpdateDocumentMetadataResponseFilterSensitiveLog = exports.UpdateDocumentMetadataRequestFilterSensitiveLog = exports.ResourceDataSyncConflictException = exports.OpsMetadataKeyLimitExceededException = void 0; +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(82053); +const models_1_1 = __nccwpck_require__(9974); +const SSMServiceException_1 = __nccwpck_require__(97777); +class OpsMetadataKeyLimitExceededException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "OpsMetadataKeyLimitExceededException", + $fault: "client", + ...opts, + }); + this.name = "OpsMetadataKeyLimitExceededException"; + this.$fault = "client"; + Object.setPrototypeOf(this, OpsMetadataKeyLimitExceededException.prototype); + } +} +exports.OpsMetadataKeyLimitExceededException = OpsMetadataKeyLimitExceededException; +class ResourceDataSyncConflictException extends SSMServiceException_1.SSMServiceException { + constructor(opts) { + super({ + name: "ResourceDataSyncConflictException", + $fault: "client", + ...opts, + }); + this.name = "ResourceDataSyncConflictException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ResourceDataSyncConflictException.prototype); + this.Message = opts.Message; + } +} +exports.ResourceDataSyncConflictException = ResourceDataSyncConflictException; +const UpdateDocumentMetadataRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UpdateDocumentMetadataRequestFilterSensitiveLog = UpdateDocumentMetadataRequestFilterSensitiveLog; +const UpdateDocumentMetadataResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UpdateDocumentMetadataResponseFilterSensitiveLog = UpdateDocumentMetadataResponseFilterSensitiveLog; +const UpdateMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), +}); +exports.UpdateMaintenanceWindowRequestFilterSensitiveLog = UpdateMaintenanceWindowRequestFilterSensitiveLog; +const UpdateMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), +}); +exports.UpdateMaintenanceWindowResultFilterSensitiveLog = UpdateMaintenanceWindowResultFilterSensitiveLog; +const UpdateMaintenanceWindowTargetRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), + ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), +}); +exports.UpdateMaintenanceWindowTargetRequestFilterSensitiveLog = UpdateMaintenanceWindowTargetRequestFilterSensitiveLog; +const UpdateMaintenanceWindowTargetResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), + ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), +}); +exports.UpdateMaintenanceWindowTargetResultFilterSensitiveLog = UpdateMaintenanceWindowTargetResultFilterSensitiveLog; +const UpdateMaintenanceWindowTaskRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.TaskParameters && { TaskParameters: smithy_client_1.SENSITIVE_STRING }), + ...(obj.TaskInvocationParameters && { + TaskInvocationParameters: (0, models_1_1.MaintenanceWindowTaskInvocationParametersFilterSensitiveLog)(obj.TaskInvocationParameters), + }), + ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), +}); +exports.UpdateMaintenanceWindowTaskRequestFilterSensitiveLog = UpdateMaintenanceWindowTaskRequestFilterSensitiveLog; +const UpdateMaintenanceWindowTaskResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.TaskParameters && { TaskParameters: smithy_client_1.SENSITIVE_STRING }), + ...(obj.TaskInvocationParameters && { + TaskInvocationParameters: (0, models_1_1.MaintenanceWindowTaskInvocationParametersFilterSensitiveLog)(obj.TaskInvocationParameters), + }), + ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), +}); +exports.UpdateMaintenanceWindowTaskResultFilterSensitiveLog = UpdateMaintenanceWindowTaskResultFilterSensitiveLog; +const UpdateManagedInstanceRoleRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UpdateManagedInstanceRoleRequestFilterSensitiveLog = UpdateManagedInstanceRoleRequestFilterSensitiveLog; +const UpdateManagedInstanceRoleResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UpdateManagedInstanceRoleResultFilterSensitiveLog = UpdateManagedInstanceRoleResultFilterSensitiveLog; +const UpdateOpsItemRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UpdateOpsItemRequestFilterSensitiveLog = UpdateOpsItemRequestFilterSensitiveLog; +const UpdateOpsItemResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UpdateOpsItemResponseFilterSensitiveLog = UpdateOpsItemResponseFilterSensitiveLog; +const UpdateOpsMetadataRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UpdateOpsMetadataRequestFilterSensitiveLog = UpdateOpsMetadataRequestFilterSensitiveLog; +const UpdateOpsMetadataResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UpdateOpsMetadataResultFilterSensitiveLog = UpdateOpsMetadataResultFilterSensitiveLog; +const UpdatePatchBaselineRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Sources && { Sources: obj.Sources.map((item) => (0, models_0_1.PatchSourceFilterSensitiveLog)(item)) }), +}); +exports.UpdatePatchBaselineRequestFilterSensitiveLog = UpdatePatchBaselineRequestFilterSensitiveLog; +const UpdatePatchBaselineResultFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.Sources && { Sources: obj.Sources.map((item) => (0, models_0_1.PatchSourceFilterSensitiveLog)(item)) }), +}); +exports.UpdatePatchBaselineResultFilterSensitiveLog = UpdatePatchBaselineResultFilterSensitiveLog; +const UpdateResourceDataSyncRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UpdateResourceDataSyncRequestFilterSensitiveLog = UpdateResourceDataSyncRequestFilterSensitiveLog; +const UpdateResourceDataSyncResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UpdateResourceDataSyncResultFilterSensitiveLog = UpdateResourceDataSyncResultFilterSensitiveLog; +const UpdateServiceSettingRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UpdateServiceSettingRequestFilterSensitiveLog = UpdateServiceSettingRequestFilterSensitiveLog; +const UpdateServiceSettingResultFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.UpdateServiceSettingResultFilterSensitiveLog = UpdateServiceSettingResultFilterSensitiveLog; +const InventoryAggregatorFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.InventoryAggregatorFilterSensitiveLog = InventoryAggregatorFilterSensitiveLog; +const OpsAggregatorFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.OpsAggregatorFilterSensitiveLog = OpsAggregatorFilterSensitiveLog; +const GetInventoryRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetInventoryRequestFilterSensitiveLog = GetInventoryRequestFilterSensitiveLog; +const GetOpsSummaryRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetOpsSummaryRequestFilterSensitiveLog = GetOpsSummaryRequestFilterSensitiveLog; + + +/***/ }), + +/***/ 38664: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeActivations = void 0; +const DescribeActivationsCommand_1 = __nccwpck_require__(99158); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeActivationsCommand_1.DescribeActivationsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeActivations(input, ...args); +}; +async function* paginateDescribeActivations(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeActivations = paginateDescribeActivations; + + +/***/ }), + +/***/ 25387: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeAssociationExecutionTargets = void 0; +const DescribeAssociationExecutionTargetsCommand_1 = __nccwpck_require__(89459); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeAssociationExecutionTargetsCommand_1.DescribeAssociationExecutionTargetsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeAssociationExecutionTargets(input, ...args); +}; +async function* paginateDescribeAssociationExecutionTargets(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeAssociationExecutionTargets = paginateDescribeAssociationExecutionTargets; + + +/***/ }), + +/***/ 4094: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeAssociationExecutions = void 0; +const DescribeAssociationExecutionsCommand_1 = __nccwpck_require__(3119); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeAssociationExecutionsCommand_1.DescribeAssociationExecutionsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeAssociationExecutions(input, ...args); +}; +async function* paginateDescribeAssociationExecutions(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeAssociationExecutions = paginateDescribeAssociationExecutions; + + +/***/ }), + +/***/ 35119: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeAutomationExecutions = void 0; +const DescribeAutomationExecutionsCommand_1 = __nccwpck_require__(70342); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeAutomationExecutionsCommand_1.DescribeAutomationExecutionsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeAutomationExecutions(input, ...args); +}; +async function* paginateDescribeAutomationExecutions(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeAutomationExecutions = paginateDescribeAutomationExecutions; + + +/***/ }), + +/***/ 76943: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeAutomationStepExecutions = void 0; +const DescribeAutomationStepExecutionsCommand_1 = __nccwpck_require__(50626); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeAutomationStepExecutionsCommand_1.DescribeAutomationStepExecutionsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeAutomationStepExecutions(input, ...args); +}; +async function* paginateDescribeAutomationStepExecutions(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeAutomationStepExecutions = paginateDescribeAutomationStepExecutions; + + +/***/ }), + +/***/ 19798: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeAvailablePatches = void 0; +const DescribeAvailablePatchesCommand_1 = __nccwpck_require__(73378); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeAvailablePatchesCommand_1.DescribeAvailablePatchesCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeAvailablePatches(input, ...args); +}; +async function* paginateDescribeAvailablePatches(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeAvailablePatches = paginateDescribeAvailablePatches; + + +/***/ }), + +/***/ 54408: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeEffectiveInstanceAssociations = void 0; +const DescribeEffectiveInstanceAssociationsCommand_1 = __nccwpck_require__(48907); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeEffectiveInstanceAssociationsCommand_1.DescribeEffectiveInstanceAssociationsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeEffectiveInstanceAssociations(input, ...args); +}; +async function* paginateDescribeEffectiveInstanceAssociations(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeEffectiveInstanceAssociations = paginateDescribeEffectiveInstanceAssociations; + + +/***/ }), + +/***/ 83091: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeEffectivePatchesForPatchBaseline = void 0; +const DescribeEffectivePatchesForPatchBaselineCommand_1 = __nccwpck_require__(11074); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeEffectivePatchesForPatchBaselineCommand_1.DescribeEffectivePatchesForPatchBaselineCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeEffectivePatchesForPatchBaseline(input, ...args); +}; +async function* paginateDescribeEffectivePatchesForPatchBaseline(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeEffectivePatchesForPatchBaseline = paginateDescribeEffectivePatchesForPatchBaseline; + + +/***/ }), + +/***/ 71274: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeInstanceAssociationsStatus = void 0; +const DescribeInstanceAssociationsStatusCommand_1 = __nccwpck_require__(50546); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeInstanceAssociationsStatusCommand_1.DescribeInstanceAssociationsStatusCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeInstanceAssociationsStatus(input, ...args); +}; +async function* paginateDescribeInstanceAssociationsStatus(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeInstanceAssociationsStatus = paginateDescribeInstanceAssociationsStatus; + + +/***/ }), + +/***/ 93287: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeInstanceInformation = void 0; +const DescribeInstanceInformationCommand_1 = __nccwpck_require__(72297); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeInstanceInformationCommand_1.DescribeInstanceInformationCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeInstanceInformation(input, ...args); +}; +async function* paginateDescribeInstanceInformation(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeInstanceInformation = paginateDescribeInstanceInformation; + + +/***/ }), + +/***/ 44444: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeInstancePatchStatesForPatchGroup = void 0; +const DescribeInstancePatchStatesForPatchGroupCommand_1 = __nccwpck_require__(50028); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeInstancePatchStatesForPatchGroupCommand_1.DescribeInstancePatchStatesForPatchGroupCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeInstancePatchStatesForPatchGroup(input, ...args); +}; +async function* paginateDescribeInstancePatchStatesForPatchGroup(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeInstancePatchStatesForPatchGroup = paginateDescribeInstancePatchStatesForPatchGroup; + + +/***/ }), + +/***/ 43172: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeInstancePatchStates = void 0; +const DescribeInstancePatchStatesCommand_1 = __nccwpck_require__(96994); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeInstancePatchStatesCommand_1.DescribeInstancePatchStatesCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeInstancePatchStates(input, ...args); +}; +async function* paginateDescribeInstancePatchStates(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeInstancePatchStates = paginateDescribeInstancePatchStates; + + +/***/ }), + +/***/ 81129: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeInstancePatches = void 0; +const DescribeInstancePatchesCommand_1 = __nccwpck_require__(45672); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeInstancePatchesCommand_1.DescribeInstancePatchesCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeInstancePatches(input, ...args); +}; +async function* paginateDescribeInstancePatches(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeInstancePatches = paginateDescribeInstancePatches; + + +/***/ }), + +/***/ 84268: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeInventoryDeletions = void 0; +const DescribeInventoryDeletionsCommand_1 = __nccwpck_require__(51289); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeInventoryDeletionsCommand_1.DescribeInventoryDeletionsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeInventoryDeletions(input, ...args); +}; +async function* paginateDescribeInventoryDeletions(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeInventoryDeletions = paginateDescribeInventoryDeletions; + + +/***/ }), + +/***/ 60525: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeMaintenanceWindowExecutionTaskInvocations = void 0; +const DescribeMaintenanceWindowExecutionTaskInvocationsCommand_1 = __nccwpck_require__(71741); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeMaintenanceWindowExecutionTaskInvocationsCommand_1.DescribeMaintenanceWindowExecutionTaskInvocationsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeMaintenanceWindowExecutionTaskInvocations(input, ...args); +}; +async function* paginateDescribeMaintenanceWindowExecutionTaskInvocations(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeMaintenanceWindowExecutionTaskInvocations = paginateDescribeMaintenanceWindowExecutionTaskInvocations; + + +/***/ }), + +/***/ 48289: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeMaintenanceWindowExecutionTasks = void 0; +const DescribeMaintenanceWindowExecutionTasksCommand_1 = __nccwpck_require__(19495); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeMaintenanceWindowExecutionTasksCommand_1.DescribeMaintenanceWindowExecutionTasksCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeMaintenanceWindowExecutionTasks(input, ...args); +}; +async function* paginateDescribeMaintenanceWindowExecutionTasks(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeMaintenanceWindowExecutionTasks = paginateDescribeMaintenanceWindowExecutionTasks; + + +/***/ }), + +/***/ 67564: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeMaintenanceWindowExecutions = void 0; +const DescribeMaintenanceWindowExecutionsCommand_1 = __nccwpck_require__(66016); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeMaintenanceWindowExecutionsCommand_1.DescribeMaintenanceWindowExecutionsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeMaintenanceWindowExecutions(input, ...args); +}; +async function* paginateDescribeMaintenanceWindowExecutions(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeMaintenanceWindowExecutions = paginateDescribeMaintenanceWindowExecutions; + + +/***/ }), + +/***/ 11462: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeMaintenanceWindowSchedule = void 0; +const DescribeMaintenanceWindowScheduleCommand_1 = __nccwpck_require__(83598); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeMaintenanceWindowScheduleCommand_1.DescribeMaintenanceWindowScheduleCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeMaintenanceWindowSchedule(input, ...args); +}; +async function* paginateDescribeMaintenanceWindowSchedule(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeMaintenanceWindowSchedule = paginateDescribeMaintenanceWindowSchedule; + + +/***/ }), + +/***/ 3605: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeMaintenanceWindowTargets = void 0; +const DescribeMaintenanceWindowTargetsCommand_1 = __nccwpck_require__(78871); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeMaintenanceWindowTargetsCommand_1.DescribeMaintenanceWindowTargetsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeMaintenanceWindowTargets(input, ...args); +}; +async function* paginateDescribeMaintenanceWindowTargets(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeMaintenanceWindowTargets = paginateDescribeMaintenanceWindowTargets; + + +/***/ }), + +/***/ 45445: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeMaintenanceWindowTasks = void 0; +const DescribeMaintenanceWindowTasksCommand_1 = __nccwpck_require__(26677); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeMaintenanceWindowTasksCommand_1.DescribeMaintenanceWindowTasksCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeMaintenanceWindowTasks(input, ...args); +}; +async function* paginateDescribeMaintenanceWindowTasks(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeMaintenanceWindowTasks = paginateDescribeMaintenanceWindowTasks; + + +/***/ }), + +/***/ 25787: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeMaintenanceWindowsForTarget = void 0; +const DescribeMaintenanceWindowsForTargetCommand_1 = __nccwpck_require__(41025); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeMaintenanceWindowsForTargetCommand_1.DescribeMaintenanceWindowsForTargetCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeMaintenanceWindowsForTarget(input, ...args); +}; +async function* paginateDescribeMaintenanceWindowsForTarget(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeMaintenanceWindowsForTarget = paginateDescribeMaintenanceWindowsForTarget; + + +/***/ }), + +/***/ 68896: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeMaintenanceWindows = void 0; +const DescribeMaintenanceWindowsCommand_1 = __nccwpck_require__(99482); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeMaintenanceWindowsCommand_1.DescribeMaintenanceWindowsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeMaintenanceWindows(input, ...args); +}; +async function* paginateDescribeMaintenanceWindows(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeMaintenanceWindows = paginateDescribeMaintenanceWindows; + + +/***/ }), + +/***/ 7344: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeOpsItems = void 0; +const DescribeOpsItemsCommand_1 = __nccwpck_require__(76177); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeOpsItemsCommand_1.DescribeOpsItemsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeOpsItems(input, ...args); +}; +async function* paginateDescribeOpsItems(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeOpsItems = paginateDescribeOpsItems; + + +/***/ }), + +/***/ 96395: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeParameters = void 0; +const DescribeParametersCommand_1 = __nccwpck_require__(45975); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeParametersCommand_1.DescribeParametersCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeParameters(input, ...args); +}; +async function* paginateDescribeParameters(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeParameters = paginateDescribeParameters; + + +/***/ }), + +/***/ 44390: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribePatchBaselines = void 0; +const DescribePatchBaselinesCommand_1 = __nccwpck_require__(83186); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribePatchBaselinesCommand_1.DescribePatchBaselinesCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describePatchBaselines(input, ...args); +}; +async function* paginateDescribePatchBaselines(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribePatchBaselines = paginateDescribePatchBaselines; + + +/***/ }), + +/***/ 14639: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribePatchGroups = void 0; +const DescribePatchGroupsCommand_1 = __nccwpck_require__(45192); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribePatchGroupsCommand_1.DescribePatchGroupsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describePatchGroups(input, ...args); +}; +async function* paginateDescribePatchGroups(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribePatchGroups = paginateDescribePatchGroups; + + +/***/ }), + +/***/ 92680: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribePatchProperties = void 0; +const DescribePatchPropertiesCommand_1 = __nccwpck_require__(36964); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribePatchPropertiesCommand_1.DescribePatchPropertiesCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describePatchProperties(input, ...args); +}; +async function* paginateDescribePatchProperties(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribePatchProperties = paginateDescribePatchProperties; + + +/***/ }), + +/***/ 42731: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateDescribeSessions = void 0; +const DescribeSessionsCommand_1 = __nccwpck_require__(43787); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new DescribeSessionsCommand_1.DescribeSessionsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.describeSessions(input, ...args); +}; +async function* paginateDescribeSessions(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateDescribeSessions = paginateDescribeSessions; + + +/***/ }), + +/***/ 72813: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateGetInventory = void 0; +const GetInventoryCommand_1 = __nccwpck_require__(93690); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new GetInventoryCommand_1.GetInventoryCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.getInventory(input, ...args); +}; +async function* paginateGetInventory(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateGetInventory = paginateGetInventory; + + +/***/ }), + +/***/ 85353: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateGetInventorySchema = void 0; +const GetInventorySchemaCommand_1 = __nccwpck_require__(88675); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new GetInventorySchemaCommand_1.GetInventorySchemaCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.getInventorySchema(input, ...args); +}; +async function* paginateGetInventorySchema(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateGetInventorySchema = paginateGetInventorySchema; + + +/***/ }), + +/***/ 78257: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateGetOpsSummary = void 0; +const GetOpsSummaryCommand_1 = __nccwpck_require__(19458); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new GetOpsSummaryCommand_1.GetOpsSummaryCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.getOpsSummary(input, ...args); +}; +async function* paginateGetOpsSummary(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateGetOpsSummary = paginateGetOpsSummary; + + +/***/ }), + +/***/ 58800: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateGetParameterHistory = void 0; +const GetParameterHistoryCommand_1 = __nccwpck_require__(30108); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new GetParameterHistoryCommand_1.GetParameterHistoryCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.getParameterHistory(input, ...args); +}; +async function* paginateGetParameterHistory(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateGetParameterHistory = paginateGetParameterHistory; + + +/***/ }), + +/***/ 93579: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateGetParametersByPath = void 0; +const GetParametersByPathCommand_1 = __nccwpck_require__(22164); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new GetParametersByPathCommand_1.GetParametersByPathCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.getParametersByPath(input, ...args); +}; +async function* paginateGetParametersByPath(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateGetParametersByPath = paginateGetParametersByPath; + + +/***/ }), + +/***/ 2511: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); + + +/***/ }), + +/***/ 2205: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateListAssociationVersions = void 0; +const ListAssociationVersionsCommand_1 = __nccwpck_require__(40838); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListAssociationVersionsCommand_1.ListAssociationVersionsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.listAssociationVersions(input, ...args); +}; +async function* paginateListAssociationVersions(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListAssociationVersions = paginateListAssociationVersions; + + +/***/ }), + +/***/ 59920: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateListAssociations = void 0; +const ListAssociationsCommand_1 = __nccwpck_require__(29074); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListAssociationsCommand_1.ListAssociationsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.listAssociations(input, ...args); +}; +async function* paginateListAssociations(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListAssociations = paginateListAssociations; + + +/***/ }), + +/***/ 87610: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateListCommandInvocations = void 0; +const ListCommandInvocationsCommand_1 = __nccwpck_require__(27002); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListCommandInvocationsCommand_1.ListCommandInvocationsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.listCommandInvocations(input, ...args); +}; +async function* paginateListCommandInvocations(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListCommandInvocations = paginateListCommandInvocations; + + +/***/ }), + +/***/ 73478: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateListCommands = void 0; +const ListCommandsCommand_1 = __nccwpck_require__(56883); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListCommandsCommand_1.ListCommandsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.listCommands(input, ...args); +}; +async function* paginateListCommands(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListCommands = paginateListCommands; + + +/***/ }), + +/***/ 68453: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateListComplianceItems = void 0; +const ListComplianceItemsCommand_1 = __nccwpck_require__(29771); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListComplianceItemsCommand_1.ListComplianceItemsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.listComplianceItems(input, ...args); +}; +async function* paginateListComplianceItems(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListComplianceItems = paginateListComplianceItems; + + +/***/ }), + +/***/ 78627: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateListComplianceSummaries = void 0; +const ListComplianceSummariesCommand_1 = __nccwpck_require__(93331); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListComplianceSummariesCommand_1.ListComplianceSummariesCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.listComplianceSummaries(input, ...args); +}; +async function* paginateListComplianceSummaries(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListComplianceSummaries = paginateListComplianceSummaries; + + +/***/ }), + +/***/ 60248: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateListDocumentVersions = void 0; +const ListDocumentVersionsCommand_1 = __nccwpck_require__(41473); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListDocumentVersionsCommand_1.ListDocumentVersionsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.listDocumentVersions(input, ...args); +}; +async function* paginateListDocumentVersions(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListDocumentVersions = paginateListDocumentVersions; + + +/***/ }), + +/***/ 790: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateListDocuments = void 0; +const ListDocumentsCommand_1 = __nccwpck_require__(37018); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListDocumentsCommand_1.ListDocumentsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.listDocuments(input, ...args); +}; +async function* paginateListDocuments(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListDocuments = paginateListDocuments; + + +/***/ }), + +/***/ 21278: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateListOpsItemEvents = void 0; +const ListOpsItemEventsCommand_1 = __nccwpck_require__(23927); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListOpsItemEventsCommand_1.ListOpsItemEventsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.listOpsItemEvents(input, ...args); +}; +async function* paginateListOpsItemEvents(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListOpsItemEvents = paginateListOpsItemEvents; + + +/***/ }), + +/***/ 87317: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateListOpsItemRelatedItems = void 0; +const ListOpsItemRelatedItemsCommand_1 = __nccwpck_require__(95342); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListOpsItemRelatedItemsCommand_1.ListOpsItemRelatedItemsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.listOpsItemRelatedItems(input, ...args); +}; +async function* paginateListOpsItemRelatedItems(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListOpsItemRelatedItems = paginateListOpsItemRelatedItems; + + +/***/ }), + +/***/ 38860: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateListOpsMetadata = void 0; +const ListOpsMetadataCommand_1 = __nccwpck_require__(93770); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListOpsMetadataCommand_1.ListOpsMetadataCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.listOpsMetadata(input, ...args); +}; +async function* paginateListOpsMetadata(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListOpsMetadata = paginateListOpsMetadata; + + +/***/ }), + +/***/ 93620: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateListResourceComplianceSummaries = void 0; +const ListResourceComplianceSummariesCommand_1 = __nccwpck_require__(25219); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListResourceComplianceSummariesCommand_1.ListResourceComplianceSummariesCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.listResourceComplianceSummaries(input, ...args); +}; +async function* paginateListResourceComplianceSummaries(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListResourceComplianceSummaries = paginateListResourceComplianceSummaries; + + +/***/ }), + +/***/ 99617: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateListResourceDataSync = void 0; +const ListResourceDataSyncCommand_1 = __nccwpck_require__(30788); +const SSM_1 = __nccwpck_require__(24046); +const SSMClient_1 = __nccwpck_require__(13440); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListResourceDataSyncCommand_1.ListResourceDataSyncCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.listResourceDataSync(input, ...args); +}; +async function* paginateListResourceDataSync(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input["MaxResults"] = config.pageSize; + if (config.client instanceof SSM_1.SSM) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSMClient_1.SSMClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSM | SSMClient"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListResourceDataSync = paginateListResourceDataSync; + + +/***/ }), + +/***/ 62666: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(38664), exports); +tslib_1.__exportStar(__nccwpck_require__(25387), exports); +tslib_1.__exportStar(__nccwpck_require__(4094), exports); +tslib_1.__exportStar(__nccwpck_require__(35119), exports); +tslib_1.__exportStar(__nccwpck_require__(76943), exports); +tslib_1.__exportStar(__nccwpck_require__(19798), exports); +tslib_1.__exportStar(__nccwpck_require__(54408), exports); +tslib_1.__exportStar(__nccwpck_require__(83091), exports); +tslib_1.__exportStar(__nccwpck_require__(71274), exports); +tslib_1.__exportStar(__nccwpck_require__(93287), exports); +tslib_1.__exportStar(__nccwpck_require__(2511), exports); +tslib_1.__exportStar(__nccwpck_require__(44444), exports); +tslib_1.__exportStar(__nccwpck_require__(43172), exports); +tslib_1.__exportStar(__nccwpck_require__(81129), exports); +tslib_1.__exportStar(__nccwpck_require__(84268), exports); +tslib_1.__exportStar(__nccwpck_require__(60525), exports); +tslib_1.__exportStar(__nccwpck_require__(48289), exports); +tslib_1.__exportStar(__nccwpck_require__(67564), exports); +tslib_1.__exportStar(__nccwpck_require__(11462), exports); +tslib_1.__exportStar(__nccwpck_require__(3605), exports); +tslib_1.__exportStar(__nccwpck_require__(45445), exports); +tslib_1.__exportStar(__nccwpck_require__(25787), exports); +tslib_1.__exportStar(__nccwpck_require__(68896), exports); +tslib_1.__exportStar(__nccwpck_require__(7344), exports); +tslib_1.__exportStar(__nccwpck_require__(96395), exports); +tslib_1.__exportStar(__nccwpck_require__(44390), exports); +tslib_1.__exportStar(__nccwpck_require__(14639), exports); +tslib_1.__exportStar(__nccwpck_require__(92680), exports); +tslib_1.__exportStar(__nccwpck_require__(42731), exports); +tslib_1.__exportStar(__nccwpck_require__(72813), exports); +tslib_1.__exportStar(__nccwpck_require__(85353), exports); +tslib_1.__exportStar(__nccwpck_require__(78257), exports); +tslib_1.__exportStar(__nccwpck_require__(58800), exports); +tslib_1.__exportStar(__nccwpck_require__(93579), exports); +tslib_1.__exportStar(__nccwpck_require__(2205), exports); +tslib_1.__exportStar(__nccwpck_require__(59920), exports); +tslib_1.__exportStar(__nccwpck_require__(87610), exports); +tslib_1.__exportStar(__nccwpck_require__(73478), exports); +tslib_1.__exportStar(__nccwpck_require__(68453), exports); +tslib_1.__exportStar(__nccwpck_require__(78627), exports); +tslib_1.__exportStar(__nccwpck_require__(60248), exports); +tslib_1.__exportStar(__nccwpck_require__(790), exports); +tslib_1.__exportStar(__nccwpck_require__(21278), exports); +tslib_1.__exportStar(__nccwpck_require__(87317), exports); +tslib_1.__exportStar(__nccwpck_require__(38860), exports); +tslib_1.__exportStar(__nccwpck_require__(93620), exports); +tslib_1.__exportStar(__nccwpck_require__(99617), exports); + + +/***/ }), + +/***/ 95750: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.serializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand = exports.serializeAws_json1_1DescribeMaintenanceWindowScheduleCommand = exports.serializeAws_json1_1DescribeMaintenanceWindowsCommand = exports.serializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand = exports.serializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand = exports.serializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand = exports.serializeAws_json1_1DescribeInventoryDeletionsCommand = exports.serializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand = exports.serializeAws_json1_1DescribeInstancePatchStatesCommand = exports.serializeAws_json1_1DescribeInstancePatchesCommand = exports.serializeAws_json1_1DescribeInstanceInformationCommand = exports.serializeAws_json1_1DescribeInstanceAssociationsStatusCommand = exports.serializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand = exports.serializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand = exports.serializeAws_json1_1DescribeDocumentPermissionCommand = exports.serializeAws_json1_1DescribeDocumentCommand = exports.serializeAws_json1_1DescribeAvailablePatchesCommand = exports.serializeAws_json1_1DescribeAutomationStepExecutionsCommand = exports.serializeAws_json1_1DescribeAutomationExecutionsCommand = exports.serializeAws_json1_1DescribeAssociationExecutionTargetsCommand = exports.serializeAws_json1_1DescribeAssociationExecutionsCommand = exports.serializeAws_json1_1DescribeAssociationCommand = exports.serializeAws_json1_1DescribeActivationsCommand = exports.serializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand = exports.serializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand = exports.serializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand = exports.serializeAws_json1_1DeregisterManagedInstanceCommand = exports.serializeAws_json1_1DeleteResourceDataSyncCommand = exports.serializeAws_json1_1DeletePatchBaselineCommand = exports.serializeAws_json1_1DeleteParametersCommand = exports.serializeAws_json1_1DeleteParameterCommand = exports.serializeAws_json1_1DeleteOpsMetadataCommand = exports.serializeAws_json1_1DeleteMaintenanceWindowCommand = exports.serializeAws_json1_1DeleteInventoryCommand = exports.serializeAws_json1_1DeleteDocumentCommand = exports.serializeAws_json1_1DeleteAssociationCommand = exports.serializeAws_json1_1DeleteActivationCommand = exports.serializeAws_json1_1CreateResourceDataSyncCommand = exports.serializeAws_json1_1CreatePatchBaselineCommand = exports.serializeAws_json1_1CreateOpsMetadataCommand = exports.serializeAws_json1_1CreateOpsItemCommand = exports.serializeAws_json1_1CreateMaintenanceWindowCommand = exports.serializeAws_json1_1CreateDocumentCommand = exports.serializeAws_json1_1CreateAssociationBatchCommand = exports.serializeAws_json1_1CreateAssociationCommand = exports.serializeAws_json1_1CreateActivationCommand = exports.serializeAws_json1_1CancelMaintenanceWindowExecutionCommand = exports.serializeAws_json1_1CancelCommandCommand = exports.serializeAws_json1_1AssociateOpsItemRelatedItemCommand = exports.serializeAws_json1_1AddTagsToResourceCommand = void 0; +exports.serializeAws_json1_1ListResourceDataSyncCommand = exports.serializeAws_json1_1ListResourceComplianceSummariesCommand = exports.serializeAws_json1_1ListOpsMetadataCommand = exports.serializeAws_json1_1ListOpsItemRelatedItemsCommand = exports.serializeAws_json1_1ListOpsItemEventsCommand = exports.serializeAws_json1_1ListInventoryEntriesCommand = exports.serializeAws_json1_1ListDocumentVersionsCommand = exports.serializeAws_json1_1ListDocumentsCommand = exports.serializeAws_json1_1ListDocumentMetadataHistoryCommand = exports.serializeAws_json1_1ListComplianceSummariesCommand = exports.serializeAws_json1_1ListComplianceItemsCommand = exports.serializeAws_json1_1ListCommandsCommand = exports.serializeAws_json1_1ListCommandInvocationsCommand = exports.serializeAws_json1_1ListAssociationVersionsCommand = exports.serializeAws_json1_1ListAssociationsCommand = exports.serializeAws_json1_1LabelParameterVersionCommand = exports.serializeAws_json1_1GetServiceSettingCommand = exports.serializeAws_json1_1GetPatchBaselineForPatchGroupCommand = exports.serializeAws_json1_1GetPatchBaselineCommand = exports.serializeAws_json1_1GetParametersByPathCommand = exports.serializeAws_json1_1GetParametersCommand = exports.serializeAws_json1_1GetParameterHistoryCommand = exports.serializeAws_json1_1GetParameterCommand = exports.serializeAws_json1_1GetOpsSummaryCommand = exports.serializeAws_json1_1GetOpsMetadataCommand = exports.serializeAws_json1_1GetOpsItemCommand = exports.serializeAws_json1_1GetMaintenanceWindowTaskCommand = exports.serializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand = exports.serializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand = exports.serializeAws_json1_1GetMaintenanceWindowExecutionCommand = exports.serializeAws_json1_1GetMaintenanceWindowCommand = exports.serializeAws_json1_1GetInventorySchemaCommand = exports.serializeAws_json1_1GetInventoryCommand = exports.serializeAws_json1_1GetDocumentCommand = exports.serializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand = exports.serializeAws_json1_1GetDefaultPatchBaselineCommand = exports.serializeAws_json1_1GetConnectionStatusCommand = exports.serializeAws_json1_1GetCommandInvocationCommand = exports.serializeAws_json1_1GetCalendarStateCommand = exports.serializeAws_json1_1GetAutomationExecutionCommand = exports.serializeAws_json1_1DisassociateOpsItemRelatedItemCommand = exports.serializeAws_json1_1DescribeSessionsCommand = exports.serializeAws_json1_1DescribePatchPropertiesCommand = exports.serializeAws_json1_1DescribePatchGroupStateCommand = exports.serializeAws_json1_1DescribePatchGroupsCommand = exports.serializeAws_json1_1DescribePatchBaselinesCommand = exports.serializeAws_json1_1DescribeParametersCommand = exports.serializeAws_json1_1DescribeOpsItemsCommand = exports.serializeAws_json1_1DescribeMaintenanceWindowTasksCommand = exports.serializeAws_json1_1DescribeMaintenanceWindowTargetsCommand = void 0; +exports.deserializeAws_json1_1DeleteAssociationCommand = exports.deserializeAws_json1_1DeleteActivationCommand = exports.deserializeAws_json1_1CreateResourceDataSyncCommand = exports.deserializeAws_json1_1CreatePatchBaselineCommand = exports.deserializeAws_json1_1CreateOpsMetadataCommand = exports.deserializeAws_json1_1CreateOpsItemCommand = exports.deserializeAws_json1_1CreateMaintenanceWindowCommand = exports.deserializeAws_json1_1CreateDocumentCommand = exports.deserializeAws_json1_1CreateAssociationBatchCommand = exports.deserializeAws_json1_1CreateAssociationCommand = exports.deserializeAws_json1_1CreateActivationCommand = exports.deserializeAws_json1_1CancelMaintenanceWindowExecutionCommand = exports.deserializeAws_json1_1CancelCommandCommand = exports.deserializeAws_json1_1AssociateOpsItemRelatedItemCommand = exports.deserializeAws_json1_1AddTagsToResourceCommand = exports.serializeAws_json1_1UpdateServiceSettingCommand = exports.serializeAws_json1_1UpdateResourceDataSyncCommand = exports.serializeAws_json1_1UpdatePatchBaselineCommand = exports.serializeAws_json1_1UpdateOpsMetadataCommand = exports.serializeAws_json1_1UpdateOpsItemCommand = exports.serializeAws_json1_1UpdateManagedInstanceRoleCommand = exports.serializeAws_json1_1UpdateMaintenanceWindowTaskCommand = exports.serializeAws_json1_1UpdateMaintenanceWindowTargetCommand = exports.serializeAws_json1_1UpdateMaintenanceWindowCommand = exports.serializeAws_json1_1UpdateDocumentMetadataCommand = exports.serializeAws_json1_1UpdateDocumentDefaultVersionCommand = exports.serializeAws_json1_1UpdateDocumentCommand = exports.serializeAws_json1_1UpdateAssociationStatusCommand = exports.serializeAws_json1_1UpdateAssociationCommand = exports.serializeAws_json1_1UnlabelParameterVersionCommand = exports.serializeAws_json1_1TerminateSessionCommand = exports.serializeAws_json1_1StopAutomationExecutionCommand = exports.serializeAws_json1_1StartSessionCommand = exports.serializeAws_json1_1StartChangeRequestExecutionCommand = exports.serializeAws_json1_1StartAutomationExecutionCommand = exports.serializeAws_json1_1StartAssociationsOnceCommand = exports.serializeAws_json1_1SendCommandCommand = exports.serializeAws_json1_1SendAutomationSignalCommand = exports.serializeAws_json1_1ResumeSessionCommand = exports.serializeAws_json1_1ResetServiceSettingCommand = exports.serializeAws_json1_1RemoveTagsFromResourceCommand = exports.serializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand = exports.serializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand = exports.serializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand = exports.serializeAws_json1_1RegisterDefaultPatchBaselineCommand = exports.serializeAws_json1_1PutParameterCommand = exports.serializeAws_json1_1PutInventoryCommand = exports.serializeAws_json1_1PutComplianceItemsCommand = exports.serializeAws_json1_1ModifyDocumentPermissionCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = void 0; +exports.deserializeAws_json1_1GetDefaultPatchBaselineCommand = exports.deserializeAws_json1_1GetConnectionStatusCommand = exports.deserializeAws_json1_1GetCommandInvocationCommand = exports.deserializeAws_json1_1GetCalendarStateCommand = exports.deserializeAws_json1_1GetAutomationExecutionCommand = exports.deserializeAws_json1_1DisassociateOpsItemRelatedItemCommand = exports.deserializeAws_json1_1DescribeSessionsCommand = exports.deserializeAws_json1_1DescribePatchPropertiesCommand = exports.deserializeAws_json1_1DescribePatchGroupStateCommand = exports.deserializeAws_json1_1DescribePatchGroupsCommand = exports.deserializeAws_json1_1DescribePatchBaselinesCommand = exports.deserializeAws_json1_1DescribeParametersCommand = exports.deserializeAws_json1_1DescribeOpsItemsCommand = exports.deserializeAws_json1_1DescribeMaintenanceWindowTasksCommand = exports.deserializeAws_json1_1DescribeMaintenanceWindowTargetsCommand = exports.deserializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand = exports.deserializeAws_json1_1DescribeMaintenanceWindowScheduleCommand = exports.deserializeAws_json1_1DescribeMaintenanceWindowsCommand = exports.deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand = exports.deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand = exports.deserializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand = exports.deserializeAws_json1_1DescribeInventoryDeletionsCommand = exports.deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand = exports.deserializeAws_json1_1DescribeInstancePatchStatesCommand = exports.deserializeAws_json1_1DescribeInstancePatchesCommand = exports.deserializeAws_json1_1DescribeInstanceInformationCommand = exports.deserializeAws_json1_1DescribeInstanceAssociationsStatusCommand = exports.deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand = exports.deserializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand = exports.deserializeAws_json1_1DescribeDocumentPermissionCommand = exports.deserializeAws_json1_1DescribeDocumentCommand = exports.deserializeAws_json1_1DescribeAvailablePatchesCommand = exports.deserializeAws_json1_1DescribeAutomationStepExecutionsCommand = exports.deserializeAws_json1_1DescribeAutomationExecutionsCommand = exports.deserializeAws_json1_1DescribeAssociationExecutionTargetsCommand = exports.deserializeAws_json1_1DescribeAssociationExecutionsCommand = exports.deserializeAws_json1_1DescribeAssociationCommand = exports.deserializeAws_json1_1DescribeActivationsCommand = exports.deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand = exports.deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand = exports.deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand = exports.deserializeAws_json1_1DeregisterManagedInstanceCommand = exports.deserializeAws_json1_1DeleteResourceDataSyncCommand = exports.deserializeAws_json1_1DeletePatchBaselineCommand = exports.deserializeAws_json1_1DeleteParametersCommand = exports.deserializeAws_json1_1DeleteParameterCommand = exports.deserializeAws_json1_1DeleteOpsMetadataCommand = exports.deserializeAws_json1_1DeleteMaintenanceWindowCommand = exports.deserializeAws_json1_1DeleteInventoryCommand = exports.deserializeAws_json1_1DeleteDocumentCommand = void 0; +exports.deserializeAws_json1_1StartAssociationsOnceCommand = exports.deserializeAws_json1_1SendCommandCommand = exports.deserializeAws_json1_1SendAutomationSignalCommand = exports.deserializeAws_json1_1ResumeSessionCommand = exports.deserializeAws_json1_1ResetServiceSettingCommand = exports.deserializeAws_json1_1RemoveTagsFromResourceCommand = exports.deserializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand = exports.deserializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand = exports.deserializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand = exports.deserializeAws_json1_1RegisterDefaultPatchBaselineCommand = exports.deserializeAws_json1_1PutParameterCommand = exports.deserializeAws_json1_1PutInventoryCommand = exports.deserializeAws_json1_1PutComplianceItemsCommand = exports.deserializeAws_json1_1ModifyDocumentPermissionCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListResourceDataSyncCommand = exports.deserializeAws_json1_1ListResourceComplianceSummariesCommand = exports.deserializeAws_json1_1ListOpsMetadataCommand = exports.deserializeAws_json1_1ListOpsItemRelatedItemsCommand = exports.deserializeAws_json1_1ListOpsItemEventsCommand = exports.deserializeAws_json1_1ListInventoryEntriesCommand = exports.deserializeAws_json1_1ListDocumentVersionsCommand = exports.deserializeAws_json1_1ListDocumentsCommand = exports.deserializeAws_json1_1ListDocumentMetadataHistoryCommand = exports.deserializeAws_json1_1ListComplianceSummariesCommand = exports.deserializeAws_json1_1ListComplianceItemsCommand = exports.deserializeAws_json1_1ListCommandsCommand = exports.deserializeAws_json1_1ListCommandInvocationsCommand = exports.deserializeAws_json1_1ListAssociationVersionsCommand = exports.deserializeAws_json1_1ListAssociationsCommand = exports.deserializeAws_json1_1LabelParameterVersionCommand = exports.deserializeAws_json1_1GetServiceSettingCommand = exports.deserializeAws_json1_1GetPatchBaselineForPatchGroupCommand = exports.deserializeAws_json1_1GetPatchBaselineCommand = exports.deserializeAws_json1_1GetParametersByPathCommand = exports.deserializeAws_json1_1GetParametersCommand = exports.deserializeAws_json1_1GetParameterHistoryCommand = exports.deserializeAws_json1_1GetParameterCommand = exports.deserializeAws_json1_1GetOpsSummaryCommand = exports.deserializeAws_json1_1GetOpsMetadataCommand = exports.deserializeAws_json1_1GetOpsItemCommand = exports.deserializeAws_json1_1GetMaintenanceWindowTaskCommand = exports.deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand = exports.deserializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand = exports.deserializeAws_json1_1GetMaintenanceWindowExecutionCommand = exports.deserializeAws_json1_1GetMaintenanceWindowCommand = exports.deserializeAws_json1_1GetInventorySchemaCommand = exports.deserializeAws_json1_1GetInventoryCommand = exports.deserializeAws_json1_1GetDocumentCommand = exports.deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand = void 0; +exports.deserializeAws_json1_1UpdateServiceSettingCommand = exports.deserializeAws_json1_1UpdateResourceDataSyncCommand = exports.deserializeAws_json1_1UpdatePatchBaselineCommand = exports.deserializeAws_json1_1UpdateOpsMetadataCommand = exports.deserializeAws_json1_1UpdateOpsItemCommand = exports.deserializeAws_json1_1UpdateManagedInstanceRoleCommand = exports.deserializeAws_json1_1UpdateMaintenanceWindowTaskCommand = exports.deserializeAws_json1_1UpdateMaintenanceWindowTargetCommand = exports.deserializeAws_json1_1UpdateMaintenanceWindowCommand = exports.deserializeAws_json1_1UpdateDocumentMetadataCommand = exports.deserializeAws_json1_1UpdateDocumentDefaultVersionCommand = exports.deserializeAws_json1_1UpdateDocumentCommand = exports.deserializeAws_json1_1UpdateAssociationStatusCommand = exports.deserializeAws_json1_1UpdateAssociationCommand = exports.deserializeAws_json1_1UnlabelParameterVersionCommand = exports.deserializeAws_json1_1TerminateSessionCommand = exports.deserializeAws_json1_1StopAutomationExecutionCommand = exports.deserializeAws_json1_1StartSessionCommand = exports.deserializeAws_json1_1StartChangeRequestExecutionCommand = exports.deserializeAws_json1_1StartAutomationExecutionCommand = void 0; +const protocol_http_1 = __nccwpck_require__(70223); +const smithy_client_1 = __nccwpck_require__(4963); +const uuid_1 = __nccwpck_require__(75840); +const models_0_1 = __nccwpck_require__(82053); +const models_1_1 = __nccwpck_require__(9974); +const models_2_1 = __nccwpck_require__(33439); +const SSMServiceException_1 = __nccwpck_require__(97777); +const serializeAws_json1_1AddTagsToResourceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.AddTagsToResource", + }; + let body; + body = JSON.stringify(serializeAws_json1_1AddTagsToResourceRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1AddTagsToResourceCommand = serializeAws_json1_1AddTagsToResourceCommand; +const serializeAws_json1_1AssociateOpsItemRelatedItemCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.AssociateOpsItemRelatedItem", + }; + let body; + body = JSON.stringify(serializeAws_json1_1AssociateOpsItemRelatedItemRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1AssociateOpsItemRelatedItemCommand = serializeAws_json1_1AssociateOpsItemRelatedItemCommand; +const serializeAws_json1_1CancelCommandCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.CancelCommand", + }; + let body; + body = JSON.stringify(serializeAws_json1_1CancelCommandRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1CancelCommandCommand = serializeAws_json1_1CancelCommandCommand; +const serializeAws_json1_1CancelMaintenanceWindowExecutionCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.CancelMaintenanceWindowExecution", + }; + let body; + body = JSON.stringify(serializeAws_json1_1CancelMaintenanceWindowExecutionRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1CancelMaintenanceWindowExecutionCommand = serializeAws_json1_1CancelMaintenanceWindowExecutionCommand; +const serializeAws_json1_1CreateActivationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.CreateActivation", + }; + let body; + body = JSON.stringify(serializeAws_json1_1CreateActivationRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1CreateActivationCommand = serializeAws_json1_1CreateActivationCommand; +const serializeAws_json1_1CreateAssociationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.CreateAssociation", + }; + let body; + body = JSON.stringify(serializeAws_json1_1CreateAssociationRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1CreateAssociationCommand = serializeAws_json1_1CreateAssociationCommand; +const serializeAws_json1_1CreateAssociationBatchCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.CreateAssociationBatch", + }; + let body; + body = JSON.stringify(serializeAws_json1_1CreateAssociationBatchRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1CreateAssociationBatchCommand = serializeAws_json1_1CreateAssociationBatchCommand; +const serializeAws_json1_1CreateDocumentCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.CreateDocument", + }; + let body; + body = JSON.stringify(serializeAws_json1_1CreateDocumentRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1CreateDocumentCommand = serializeAws_json1_1CreateDocumentCommand; +const serializeAws_json1_1CreateMaintenanceWindowCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.CreateMaintenanceWindow", + }; + let body; + body = JSON.stringify(serializeAws_json1_1CreateMaintenanceWindowRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1CreateMaintenanceWindowCommand = serializeAws_json1_1CreateMaintenanceWindowCommand; +const serializeAws_json1_1CreateOpsItemCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.CreateOpsItem", + }; + let body; + body = JSON.stringify(serializeAws_json1_1CreateOpsItemRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1CreateOpsItemCommand = serializeAws_json1_1CreateOpsItemCommand; +const serializeAws_json1_1CreateOpsMetadataCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.CreateOpsMetadata", + }; + let body; + body = JSON.stringify(serializeAws_json1_1CreateOpsMetadataRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1CreateOpsMetadataCommand = serializeAws_json1_1CreateOpsMetadataCommand; +const serializeAws_json1_1CreatePatchBaselineCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.CreatePatchBaseline", + }; + let body; + body = JSON.stringify(serializeAws_json1_1CreatePatchBaselineRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1CreatePatchBaselineCommand = serializeAws_json1_1CreatePatchBaselineCommand; +const serializeAws_json1_1CreateResourceDataSyncCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.CreateResourceDataSync", + }; + let body; + body = JSON.stringify(serializeAws_json1_1CreateResourceDataSyncRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1CreateResourceDataSyncCommand = serializeAws_json1_1CreateResourceDataSyncCommand; +const serializeAws_json1_1DeleteActivationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DeleteActivation", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteActivationRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DeleteActivationCommand = serializeAws_json1_1DeleteActivationCommand; +const serializeAws_json1_1DeleteAssociationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DeleteAssociation", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteAssociationRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DeleteAssociationCommand = serializeAws_json1_1DeleteAssociationCommand; +const serializeAws_json1_1DeleteDocumentCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DeleteDocument", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteDocumentRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DeleteDocumentCommand = serializeAws_json1_1DeleteDocumentCommand; +const serializeAws_json1_1DeleteInventoryCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DeleteInventory", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteInventoryRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DeleteInventoryCommand = serializeAws_json1_1DeleteInventoryCommand; +const serializeAws_json1_1DeleteMaintenanceWindowCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DeleteMaintenanceWindow", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteMaintenanceWindowRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DeleteMaintenanceWindowCommand = serializeAws_json1_1DeleteMaintenanceWindowCommand; +const serializeAws_json1_1DeleteOpsMetadataCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DeleteOpsMetadata", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteOpsMetadataRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DeleteOpsMetadataCommand = serializeAws_json1_1DeleteOpsMetadataCommand; +const serializeAws_json1_1DeleteParameterCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DeleteParameter", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteParameterRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DeleteParameterCommand = serializeAws_json1_1DeleteParameterCommand; +const serializeAws_json1_1DeleteParametersCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DeleteParameters", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteParametersRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DeleteParametersCommand = serializeAws_json1_1DeleteParametersCommand; +const serializeAws_json1_1DeletePatchBaselineCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DeletePatchBaseline", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeletePatchBaselineRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DeletePatchBaselineCommand = serializeAws_json1_1DeletePatchBaselineCommand; +const serializeAws_json1_1DeleteResourceDataSyncCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DeleteResourceDataSync", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeleteResourceDataSyncRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DeleteResourceDataSyncCommand = serializeAws_json1_1DeleteResourceDataSyncCommand; +const serializeAws_json1_1DeregisterManagedInstanceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DeregisterManagedInstance", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeregisterManagedInstanceRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DeregisterManagedInstanceCommand = serializeAws_json1_1DeregisterManagedInstanceCommand; +const serializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DeregisterPatchBaselineForPatchGroup", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeregisterPatchBaselineForPatchGroupRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand = serializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand; +const serializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DeregisterTargetFromMaintenanceWindow", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeregisterTargetFromMaintenanceWindowRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand = serializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand; +const serializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DeregisterTaskFromMaintenanceWindow", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DeregisterTaskFromMaintenanceWindowRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand = serializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand; +const serializeAws_json1_1DescribeActivationsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeActivations", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeActivationsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeActivationsCommand = serializeAws_json1_1DescribeActivationsCommand; +const serializeAws_json1_1DescribeAssociationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeAssociation", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeAssociationRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeAssociationCommand = serializeAws_json1_1DescribeAssociationCommand; +const serializeAws_json1_1DescribeAssociationExecutionsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeAssociationExecutions", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeAssociationExecutionsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeAssociationExecutionsCommand = serializeAws_json1_1DescribeAssociationExecutionsCommand; +const serializeAws_json1_1DescribeAssociationExecutionTargetsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeAssociationExecutionTargets", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeAssociationExecutionTargetsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeAssociationExecutionTargetsCommand = serializeAws_json1_1DescribeAssociationExecutionTargetsCommand; +const serializeAws_json1_1DescribeAutomationExecutionsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeAutomationExecutions", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeAutomationExecutionsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeAutomationExecutionsCommand = serializeAws_json1_1DescribeAutomationExecutionsCommand; +const serializeAws_json1_1DescribeAutomationStepExecutionsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeAutomationStepExecutions", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeAutomationStepExecutionsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeAutomationStepExecutionsCommand = serializeAws_json1_1DescribeAutomationStepExecutionsCommand; +const serializeAws_json1_1DescribeAvailablePatchesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeAvailablePatches", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeAvailablePatchesRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeAvailablePatchesCommand = serializeAws_json1_1DescribeAvailablePatchesCommand; +const serializeAws_json1_1DescribeDocumentCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeDocument", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeDocumentRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeDocumentCommand = serializeAws_json1_1DescribeDocumentCommand; +const serializeAws_json1_1DescribeDocumentPermissionCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeDocumentPermission", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeDocumentPermissionRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeDocumentPermissionCommand = serializeAws_json1_1DescribeDocumentPermissionCommand; +const serializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeEffectiveInstanceAssociations", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeEffectiveInstanceAssociationsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand = serializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand; +const serializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeEffectivePatchesForPatchBaseline", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeEffectivePatchesForPatchBaselineRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand = serializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand; +const serializeAws_json1_1DescribeInstanceAssociationsStatusCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeInstanceAssociationsStatus", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeInstanceAssociationsStatusRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeInstanceAssociationsStatusCommand = serializeAws_json1_1DescribeInstanceAssociationsStatusCommand; +const serializeAws_json1_1DescribeInstanceInformationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeInstanceInformation", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeInstanceInformationRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeInstanceInformationCommand = serializeAws_json1_1DescribeInstanceInformationCommand; +const serializeAws_json1_1DescribeInstancePatchesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeInstancePatches", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeInstancePatchesRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeInstancePatchesCommand = serializeAws_json1_1DescribeInstancePatchesCommand; +const serializeAws_json1_1DescribeInstancePatchStatesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeInstancePatchStates", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeInstancePatchStatesRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeInstancePatchStatesCommand = serializeAws_json1_1DescribeInstancePatchStatesCommand; +const serializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeInstancePatchStatesForPatchGroup", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeInstancePatchStatesForPatchGroupRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand = serializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand; +const serializeAws_json1_1DescribeInventoryDeletionsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeInventoryDeletions", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeInventoryDeletionsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeInventoryDeletionsCommand = serializeAws_json1_1DescribeInventoryDeletionsCommand; +const serializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowExecutions", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeMaintenanceWindowExecutionsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand = serializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand; +const serializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowExecutionTaskInvocations", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand = serializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand; +const serializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowExecutionTasks", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeMaintenanceWindowExecutionTasksRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand = serializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand; +const serializeAws_json1_1DescribeMaintenanceWindowsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeMaintenanceWindows", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeMaintenanceWindowsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeMaintenanceWindowsCommand = serializeAws_json1_1DescribeMaintenanceWindowsCommand; +const serializeAws_json1_1DescribeMaintenanceWindowScheduleCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowSchedule", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeMaintenanceWindowScheduleRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeMaintenanceWindowScheduleCommand = serializeAws_json1_1DescribeMaintenanceWindowScheduleCommand; +const serializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowsForTarget", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeMaintenanceWindowsForTargetRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand = serializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand; +const serializeAws_json1_1DescribeMaintenanceWindowTargetsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowTargets", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeMaintenanceWindowTargetsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeMaintenanceWindowTargetsCommand = serializeAws_json1_1DescribeMaintenanceWindowTargetsCommand; +const serializeAws_json1_1DescribeMaintenanceWindowTasksCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeMaintenanceWindowTasks", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeMaintenanceWindowTasksRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeMaintenanceWindowTasksCommand = serializeAws_json1_1DescribeMaintenanceWindowTasksCommand; +const serializeAws_json1_1DescribeOpsItemsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeOpsItems", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeOpsItemsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeOpsItemsCommand = serializeAws_json1_1DescribeOpsItemsCommand; +const serializeAws_json1_1DescribeParametersCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeParameters", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeParametersRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeParametersCommand = serializeAws_json1_1DescribeParametersCommand; +const serializeAws_json1_1DescribePatchBaselinesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribePatchBaselines", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribePatchBaselinesRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribePatchBaselinesCommand = serializeAws_json1_1DescribePatchBaselinesCommand; +const serializeAws_json1_1DescribePatchGroupsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribePatchGroups", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribePatchGroupsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribePatchGroupsCommand = serializeAws_json1_1DescribePatchGroupsCommand; +const serializeAws_json1_1DescribePatchGroupStateCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribePatchGroupState", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribePatchGroupStateRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribePatchGroupStateCommand = serializeAws_json1_1DescribePatchGroupStateCommand; +const serializeAws_json1_1DescribePatchPropertiesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribePatchProperties", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribePatchPropertiesRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribePatchPropertiesCommand = serializeAws_json1_1DescribePatchPropertiesCommand; +const serializeAws_json1_1DescribeSessionsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DescribeSessions", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DescribeSessionsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DescribeSessionsCommand = serializeAws_json1_1DescribeSessionsCommand; +const serializeAws_json1_1DisassociateOpsItemRelatedItemCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.DisassociateOpsItemRelatedItem", + }; + let body; + body = JSON.stringify(serializeAws_json1_1DisassociateOpsItemRelatedItemRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1DisassociateOpsItemRelatedItemCommand = serializeAws_json1_1DisassociateOpsItemRelatedItemCommand; +const serializeAws_json1_1GetAutomationExecutionCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetAutomationExecution", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetAutomationExecutionRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetAutomationExecutionCommand = serializeAws_json1_1GetAutomationExecutionCommand; +const serializeAws_json1_1GetCalendarStateCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetCalendarState", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetCalendarStateRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetCalendarStateCommand = serializeAws_json1_1GetCalendarStateCommand; +const serializeAws_json1_1GetCommandInvocationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetCommandInvocation", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetCommandInvocationRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetCommandInvocationCommand = serializeAws_json1_1GetCommandInvocationCommand; +const serializeAws_json1_1GetConnectionStatusCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetConnectionStatus", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetConnectionStatusRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetConnectionStatusCommand = serializeAws_json1_1GetConnectionStatusCommand; +const serializeAws_json1_1GetDefaultPatchBaselineCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetDefaultPatchBaseline", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetDefaultPatchBaselineRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetDefaultPatchBaselineCommand = serializeAws_json1_1GetDefaultPatchBaselineCommand; +const serializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetDeployablePatchSnapshotForInstance", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetDeployablePatchSnapshotForInstanceRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand = serializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand; +const serializeAws_json1_1GetDocumentCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetDocument", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetDocumentRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetDocumentCommand = serializeAws_json1_1GetDocumentCommand; +const serializeAws_json1_1GetInventoryCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetInventory", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetInventoryRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetInventoryCommand = serializeAws_json1_1GetInventoryCommand; +const serializeAws_json1_1GetInventorySchemaCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetInventorySchema", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetInventorySchemaRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetInventorySchemaCommand = serializeAws_json1_1GetInventorySchemaCommand; +const serializeAws_json1_1GetMaintenanceWindowCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetMaintenanceWindow", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetMaintenanceWindowRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetMaintenanceWindowCommand = serializeAws_json1_1GetMaintenanceWindowCommand; +const serializeAws_json1_1GetMaintenanceWindowExecutionCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetMaintenanceWindowExecution", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetMaintenanceWindowExecutionRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetMaintenanceWindowExecutionCommand = serializeAws_json1_1GetMaintenanceWindowExecutionCommand; +const serializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetMaintenanceWindowExecutionTask", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetMaintenanceWindowExecutionTaskRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand = serializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand; +const serializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetMaintenanceWindowExecutionTaskInvocation", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand = serializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand; +const serializeAws_json1_1GetMaintenanceWindowTaskCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetMaintenanceWindowTask", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetMaintenanceWindowTaskRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetMaintenanceWindowTaskCommand = serializeAws_json1_1GetMaintenanceWindowTaskCommand; +const serializeAws_json1_1GetOpsItemCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetOpsItem", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetOpsItemRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetOpsItemCommand = serializeAws_json1_1GetOpsItemCommand; +const serializeAws_json1_1GetOpsMetadataCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetOpsMetadata", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetOpsMetadataRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetOpsMetadataCommand = serializeAws_json1_1GetOpsMetadataCommand; +const serializeAws_json1_1GetOpsSummaryCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetOpsSummary", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetOpsSummaryRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetOpsSummaryCommand = serializeAws_json1_1GetOpsSummaryCommand; +const serializeAws_json1_1GetParameterCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetParameter", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetParameterRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetParameterCommand = serializeAws_json1_1GetParameterCommand; +const serializeAws_json1_1GetParameterHistoryCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetParameterHistory", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetParameterHistoryRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetParameterHistoryCommand = serializeAws_json1_1GetParameterHistoryCommand; +const serializeAws_json1_1GetParametersCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetParameters", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetParametersRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetParametersCommand = serializeAws_json1_1GetParametersCommand; +const serializeAws_json1_1GetParametersByPathCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetParametersByPath", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetParametersByPathRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetParametersByPathCommand = serializeAws_json1_1GetParametersByPathCommand; +const serializeAws_json1_1GetPatchBaselineCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetPatchBaseline", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetPatchBaselineRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetPatchBaselineCommand = serializeAws_json1_1GetPatchBaselineCommand; +const serializeAws_json1_1GetPatchBaselineForPatchGroupCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetPatchBaselineForPatchGroup", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetPatchBaselineForPatchGroupRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetPatchBaselineForPatchGroupCommand = serializeAws_json1_1GetPatchBaselineForPatchGroupCommand; +const serializeAws_json1_1GetServiceSettingCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.GetServiceSetting", + }; + let body; + body = JSON.stringify(serializeAws_json1_1GetServiceSettingRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1GetServiceSettingCommand = serializeAws_json1_1GetServiceSettingCommand; +const serializeAws_json1_1LabelParameterVersionCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.LabelParameterVersion", + }; + let body; + body = JSON.stringify(serializeAws_json1_1LabelParameterVersionRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1LabelParameterVersionCommand = serializeAws_json1_1LabelParameterVersionCommand; +const serializeAws_json1_1ListAssociationsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ListAssociations", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListAssociationsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ListAssociationsCommand = serializeAws_json1_1ListAssociationsCommand; +const serializeAws_json1_1ListAssociationVersionsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ListAssociationVersions", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListAssociationVersionsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ListAssociationVersionsCommand = serializeAws_json1_1ListAssociationVersionsCommand; +const serializeAws_json1_1ListCommandInvocationsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ListCommandInvocations", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListCommandInvocationsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ListCommandInvocationsCommand = serializeAws_json1_1ListCommandInvocationsCommand; +const serializeAws_json1_1ListCommandsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ListCommands", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListCommandsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ListCommandsCommand = serializeAws_json1_1ListCommandsCommand; +const serializeAws_json1_1ListComplianceItemsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ListComplianceItems", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListComplianceItemsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ListComplianceItemsCommand = serializeAws_json1_1ListComplianceItemsCommand; +const serializeAws_json1_1ListComplianceSummariesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ListComplianceSummaries", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListComplianceSummariesRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ListComplianceSummariesCommand = serializeAws_json1_1ListComplianceSummariesCommand; +const serializeAws_json1_1ListDocumentMetadataHistoryCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ListDocumentMetadataHistory", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListDocumentMetadataHistoryRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ListDocumentMetadataHistoryCommand = serializeAws_json1_1ListDocumentMetadataHistoryCommand; +const serializeAws_json1_1ListDocumentsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ListDocuments", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListDocumentsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ListDocumentsCommand = serializeAws_json1_1ListDocumentsCommand; +const serializeAws_json1_1ListDocumentVersionsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ListDocumentVersions", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListDocumentVersionsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ListDocumentVersionsCommand = serializeAws_json1_1ListDocumentVersionsCommand; +const serializeAws_json1_1ListInventoryEntriesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ListInventoryEntries", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListInventoryEntriesRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ListInventoryEntriesCommand = serializeAws_json1_1ListInventoryEntriesCommand; +const serializeAws_json1_1ListOpsItemEventsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ListOpsItemEvents", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListOpsItemEventsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ListOpsItemEventsCommand = serializeAws_json1_1ListOpsItemEventsCommand; +const serializeAws_json1_1ListOpsItemRelatedItemsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ListOpsItemRelatedItems", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListOpsItemRelatedItemsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ListOpsItemRelatedItemsCommand = serializeAws_json1_1ListOpsItemRelatedItemsCommand; +const serializeAws_json1_1ListOpsMetadataCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ListOpsMetadata", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListOpsMetadataRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ListOpsMetadataCommand = serializeAws_json1_1ListOpsMetadataCommand; +const serializeAws_json1_1ListResourceComplianceSummariesCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ListResourceComplianceSummaries", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListResourceComplianceSummariesRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ListResourceComplianceSummariesCommand = serializeAws_json1_1ListResourceComplianceSummariesCommand; +const serializeAws_json1_1ListResourceDataSyncCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ListResourceDataSync", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListResourceDataSyncRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ListResourceDataSyncCommand = serializeAws_json1_1ListResourceDataSyncCommand; +const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ListTagsForResource", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ListTagsForResourceCommand = serializeAws_json1_1ListTagsForResourceCommand; +const serializeAws_json1_1ModifyDocumentPermissionCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ModifyDocumentPermission", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ModifyDocumentPermissionRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ModifyDocumentPermissionCommand = serializeAws_json1_1ModifyDocumentPermissionCommand; +const serializeAws_json1_1PutComplianceItemsCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.PutComplianceItems", + }; + let body; + body = JSON.stringify(serializeAws_json1_1PutComplianceItemsRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1PutComplianceItemsCommand = serializeAws_json1_1PutComplianceItemsCommand; +const serializeAws_json1_1PutInventoryCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.PutInventory", + }; + let body; + body = JSON.stringify(serializeAws_json1_1PutInventoryRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1PutInventoryCommand = serializeAws_json1_1PutInventoryCommand; +const serializeAws_json1_1PutParameterCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.PutParameter", + }; + let body; + body = JSON.stringify(serializeAws_json1_1PutParameterRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1PutParameterCommand = serializeAws_json1_1PutParameterCommand; +const serializeAws_json1_1RegisterDefaultPatchBaselineCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.RegisterDefaultPatchBaseline", + }; + let body; + body = JSON.stringify(serializeAws_json1_1RegisterDefaultPatchBaselineRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1RegisterDefaultPatchBaselineCommand = serializeAws_json1_1RegisterDefaultPatchBaselineCommand; +const serializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.RegisterPatchBaselineForPatchGroup", + }; + let body; + body = JSON.stringify(serializeAws_json1_1RegisterPatchBaselineForPatchGroupRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand = serializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand; +const serializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.RegisterTargetWithMaintenanceWindow", + }; + let body; + body = JSON.stringify(serializeAws_json1_1RegisterTargetWithMaintenanceWindowRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand = serializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand; +const serializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.RegisterTaskWithMaintenanceWindow", + }; + let body; + body = JSON.stringify(serializeAws_json1_1RegisterTaskWithMaintenanceWindowRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand = serializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand; +const serializeAws_json1_1RemoveTagsFromResourceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.RemoveTagsFromResource", + }; + let body; + body = JSON.stringify(serializeAws_json1_1RemoveTagsFromResourceRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1RemoveTagsFromResourceCommand = serializeAws_json1_1RemoveTagsFromResourceCommand; +const serializeAws_json1_1ResetServiceSettingCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ResetServiceSetting", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ResetServiceSettingRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ResetServiceSettingCommand = serializeAws_json1_1ResetServiceSettingCommand; +const serializeAws_json1_1ResumeSessionCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.ResumeSession", + }; + let body; + body = JSON.stringify(serializeAws_json1_1ResumeSessionRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1ResumeSessionCommand = serializeAws_json1_1ResumeSessionCommand; +const serializeAws_json1_1SendAutomationSignalCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.SendAutomationSignal", + }; + let body; + body = JSON.stringify(serializeAws_json1_1SendAutomationSignalRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1SendAutomationSignalCommand = serializeAws_json1_1SendAutomationSignalCommand; +const serializeAws_json1_1SendCommandCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.SendCommand", + }; + let body; + body = JSON.stringify(serializeAws_json1_1SendCommandRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1SendCommandCommand = serializeAws_json1_1SendCommandCommand; +const serializeAws_json1_1StartAssociationsOnceCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.StartAssociationsOnce", + }; + let body; + body = JSON.stringify(serializeAws_json1_1StartAssociationsOnceRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1StartAssociationsOnceCommand = serializeAws_json1_1StartAssociationsOnceCommand; +const serializeAws_json1_1StartAutomationExecutionCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.StartAutomationExecution", + }; + let body; + body = JSON.stringify(serializeAws_json1_1StartAutomationExecutionRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1StartAutomationExecutionCommand = serializeAws_json1_1StartAutomationExecutionCommand; +const serializeAws_json1_1StartChangeRequestExecutionCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.StartChangeRequestExecution", + }; + let body; + body = JSON.stringify(serializeAws_json1_1StartChangeRequestExecutionRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1StartChangeRequestExecutionCommand = serializeAws_json1_1StartChangeRequestExecutionCommand; +const serializeAws_json1_1StartSessionCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.StartSession", + }; + let body; + body = JSON.stringify(serializeAws_json1_1StartSessionRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1StartSessionCommand = serializeAws_json1_1StartSessionCommand; +const serializeAws_json1_1StopAutomationExecutionCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.StopAutomationExecution", + }; + let body; + body = JSON.stringify(serializeAws_json1_1StopAutomationExecutionRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1StopAutomationExecutionCommand = serializeAws_json1_1StopAutomationExecutionCommand; +const serializeAws_json1_1TerminateSessionCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.TerminateSession", + }; + let body; + body = JSON.stringify(serializeAws_json1_1TerminateSessionRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1TerminateSessionCommand = serializeAws_json1_1TerminateSessionCommand; +const serializeAws_json1_1UnlabelParameterVersionCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.UnlabelParameterVersion", + }; + let body; + body = JSON.stringify(serializeAws_json1_1UnlabelParameterVersionRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1UnlabelParameterVersionCommand = serializeAws_json1_1UnlabelParameterVersionCommand; +const serializeAws_json1_1UpdateAssociationCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.UpdateAssociation", + }; + let body; + body = JSON.stringify(serializeAws_json1_1UpdateAssociationRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1UpdateAssociationCommand = serializeAws_json1_1UpdateAssociationCommand; +const serializeAws_json1_1UpdateAssociationStatusCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.UpdateAssociationStatus", + }; + let body; + body = JSON.stringify(serializeAws_json1_1UpdateAssociationStatusRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1UpdateAssociationStatusCommand = serializeAws_json1_1UpdateAssociationStatusCommand; +const serializeAws_json1_1UpdateDocumentCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.UpdateDocument", + }; + let body; + body = JSON.stringify(serializeAws_json1_1UpdateDocumentRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1UpdateDocumentCommand = serializeAws_json1_1UpdateDocumentCommand; +const serializeAws_json1_1UpdateDocumentDefaultVersionCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.UpdateDocumentDefaultVersion", + }; + let body; + body = JSON.stringify(serializeAws_json1_1UpdateDocumentDefaultVersionRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1UpdateDocumentDefaultVersionCommand = serializeAws_json1_1UpdateDocumentDefaultVersionCommand; +const serializeAws_json1_1UpdateDocumentMetadataCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.UpdateDocumentMetadata", + }; + let body; + body = JSON.stringify(serializeAws_json1_1UpdateDocumentMetadataRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1UpdateDocumentMetadataCommand = serializeAws_json1_1UpdateDocumentMetadataCommand; +const serializeAws_json1_1UpdateMaintenanceWindowCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.UpdateMaintenanceWindow", + }; + let body; + body = JSON.stringify(serializeAws_json1_1UpdateMaintenanceWindowRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1UpdateMaintenanceWindowCommand = serializeAws_json1_1UpdateMaintenanceWindowCommand; +const serializeAws_json1_1UpdateMaintenanceWindowTargetCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.UpdateMaintenanceWindowTarget", + }; + let body; + body = JSON.stringify(serializeAws_json1_1UpdateMaintenanceWindowTargetRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1UpdateMaintenanceWindowTargetCommand = serializeAws_json1_1UpdateMaintenanceWindowTargetCommand; +const serializeAws_json1_1UpdateMaintenanceWindowTaskCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.UpdateMaintenanceWindowTask", + }; + let body; + body = JSON.stringify(serializeAws_json1_1UpdateMaintenanceWindowTaskRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1UpdateMaintenanceWindowTaskCommand = serializeAws_json1_1UpdateMaintenanceWindowTaskCommand; +const serializeAws_json1_1UpdateManagedInstanceRoleCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.UpdateManagedInstanceRole", + }; + let body; + body = JSON.stringify(serializeAws_json1_1UpdateManagedInstanceRoleRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1UpdateManagedInstanceRoleCommand = serializeAws_json1_1UpdateManagedInstanceRoleCommand; +const serializeAws_json1_1UpdateOpsItemCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.UpdateOpsItem", + }; + let body; + body = JSON.stringify(serializeAws_json1_1UpdateOpsItemRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1UpdateOpsItemCommand = serializeAws_json1_1UpdateOpsItemCommand; +const serializeAws_json1_1UpdateOpsMetadataCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.UpdateOpsMetadata", + }; + let body; + body = JSON.stringify(serializeAws_json1_1UpdateOpsMetadataRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1UpdateOpsMetadataCommand = serializeAws_json1_1UpdateOpsMetadataCommand; +const serializeAws_json1_1UpdatePatchBaselineCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.UpdatePatchBaseline", + }; + let body; + body = JSON.stringify(serializeAws_json1_1UpdatePatchBaselineRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1UpdatePatchBaselineCommand = serializeAws_json1_1UpdatePatchBaselineCommand; +const serializeAws_json1_1UpdateResourceDataSyncCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.UpdateResourceDataSync", + }; + let body; + body = JSON.stringify(serializeAws_json1_1UpdateResourceDataSyncRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1UpdateResourceDataSyncCommand = serializeAws_json1_1UpdateResourceDataSyncCommand; +const serializeAws_json1_1UpdateServiceSettingCommand = async (input, context) => { + const headers = { + "content-type": "application/x-amz-json-1.1", + "x-amz-target": "AmazonSSM.UpdateServiceSetting", + }; + let body; + body = JSON.stringify(serializeAws_json1_1UpdateServiceSettingRequest(input, context)); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_json1_1UpdateServiceSettingCommand = serializeAws_json1_1UpdateServiceSettingCommand; +const deserializeAws_json1_1AddTagsToResourceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1AddTagsToResourceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1AddTagsToResourceResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1AddTagsToResourceCommand = deserializeAws_json1_1AddTagsToResourceCommand; +const deserializeAws_json1_1AddTagsToResourceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidResourceId": + case "com.amazonaws.ssm#InvalidResourceId": + throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); + case "InvalidResourceType": + case "com.amazonaws.ssm#InvalidResourceType": + throw await deserializeAws_json1_1InvalidResourceTypeResponse(parsedOutput, context); + case "TooManyTagsError": + case "com.amazonaws.ssm#TooManyTagsError": + throw await deserializeAws_json1_1TooManyTagsErrorResponse(parsedOutput, context); + case "TooManyUpdates": + case "com.amazonaws.ssm#TooManyUpdates": + throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1AssociateOpsItemRelatedItemCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1AssociateOpsItemRelatedItemCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1AssociateOpsItemRelatedItemResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1AssociateOpsItemRelatedItemCommand = deserializeAws_json1_1AssociateOpsItemRelatedItemCommand; +const deserializeAws_json1_1AssociateOpsItemRelatedItemCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "OpsItemInvalidParameterException": + case "com.amazonaws.ssm#OpsItemInvalidParameterException": + throw await deserializeAws_json1_1OpsItemInvalidParameterExceptionResponse(parsedOutput, context); + case "OpsItemLimitExceededException": + case "com.amazonaws.ssm#OpsItemLimitExceededException": + throw await deserializeAws_json1_1OpsItemLimitExceededExceptionResponse(parsedOutput, context); + case "OpsItemNotFoundException": + case "com.amazonaws.ssm#OpsItemNotFoundException": + throw await deserializeAws_json1_1OpsItemNotFoundExceptionResponse(parsedOutput, context); + case "OpsItemRelatedItemAlreadyExistsException": + case "com.amazonaws.ssm#OpsItemRelatedItemAlreadyExistsException": + throw await deserializeAws_json1_1OpsItemRelatedItemAlreadyExistsExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1CancelCommandCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CancelCommandCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CancelCommandResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1CancelCommandCommand = deserializeAws_json1_1CancelCommandCommand; +const deserializeAws_json1_1CancelCommandCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DuplicateInstanceId": + case "com.amazonaws.ssm#DuplicateInstanceId": + throw await deserializeAws_json1_1DuplicateInstanceIdResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidCommandId": + case "com.amazonaws.ssm#InvalidCommandId": + throw await deserializeAws_json1_1InvalidCommandIdResponse(parsedOutput, context); + case "InvalidInstanceId": + case "com.amazonaws.ssm#InvalidInstanceId": + throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1CancelMaintenanceWindowExecutionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CancelMaintenanceWindowExecutionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CancelMaintenanceWindowExecutionResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1CancelMaintenanceWindowExecutionCommand = deserializeAws_json1_1CancelMaintenanceWindowExecutionCommand; +const deserializeAws_json1_1CancelMaintenanceWindowExecutionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1CreateActivationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CreateActivationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CreateActivationResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1CreateActivationCommand = deserializeAws_json1_1CreateActivationCommand; +const deserializeAws_json1_1CreateActivationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidParameters": + case "com.amazonaws.ssm#InvalidParameters": + throw await deserializeAws_json1_1InvalidParametersResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1CreateAssociationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CreateAssociationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CreateAssociationResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1CreateAssociationCommand = deserializeAws_json1_1CreateAssociationCommand; +const deserializeAws_json1_1CreateAssociationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AssociationAlreadyExists": + case "com.amazonaws.ssm#AssociationAlreadyExists": + throw await deserializeAws_json1_1AssociationAlreadyExistsResponse(parsedOutput, context); + case "AssociationLimitExceeded": + case "com.amazonaws.ssm#AssociationLimitExceeded": + throw await deserializeAws_json1_1AssociationLimitExceededResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "InvalidDocumentVersion": + case "com.amazonaws.ssm#InvalidDocumentVersion": + throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); + case "InvalidInstanceId": + case "com.amazonaws.ssm#InvalidInstanceId": + throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); + case "InvalidOutputLocation": + case "com.amazonaws.ssm#InvalidOutputLocation": + throw await deserializeAws_json1_1InvalidOutputLocationResponse(parsedOutput, context); + case "InvalidParameters": + case "com.amazonaws.ssm#InvalidParameters": + throw await deserializeAws_json1_1InvalidParametersResponse(parsedOutput, context); + case "InvalidSchedule": + case "com.amazonaws.ssm#InvalidSchedule": + throw await deserializeAws_json1_1InvalidScheduleResponse(parsedOutput, context); + case "InvalidTarget": + case "com.amazonaws.ssm#InvalidTarget": + throw await deserializeAws_json1_1InvalidTargetResponse(parsedOutput, context); + case "InvalidTargetMaps": + case "com.amazonaws.ssm#InvalidTargetMaps": + throw await deserializeAws_json1_1InvalidTargetMapsResponse(parsedOutput, context); + case "UnsupportedPlatformType": + case "com.amazonaws.ssm#UnsupportedPlatformType": + throw await deserializeAws_json1_1UnsupportedPlatformTypeResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1CreateAssociationBatchCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CreateAssociationBatchCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CreateAssociationBatchResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1CreateAssociationBatchCommand = deserializeAws_json1_1CreateAssociationBatchCommand; +const deserializeAws_json1_1CreateAssociationBatchCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AssociationLimitExceeded": + case "com.amazonaws.ssm#AssociationLimitExceeded": + throw await deserializeAws_json1_1AssociationLimitExceededResponse(parsedOutput, context); + case "DuplicateInstanceId": + case "com.amazonaws.ssm#DuplicateInstanceId": + throw await deserializeAws_json1_1DuplicateInstanceIdResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "InvalidDocumentVersion": + case "com.amazonaws.ssm#InvalidDocumentVersion": + throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); + case "InvalidInstanceId": + case "com.amazonaws.ssm#InvalidInstanceId": + throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); + case "InvalidOutputLocation": + case "com.amazonaws.ssm#InvalidOutputLocation": + throw await deserializeAws_json1_1InvalidOutputLocationResponse(parsedOutput, context); + case "InvalidParameters": + case "com.amazonaws.ssm#InvalidParameters": + throw await deserializeAws_json1_1InvalidParametersResponse(parsedOutput, context); + case "InvalidSchedule": + case "com.amazonaws.ssm#InvalidSchedule": + throw await deserializeAws_json1_1InvalidScheduleResponse(parsedOutput, context); + case "InvalidTarget": + case "com.amazonaws.ssm#InvalidTarget": + throw await deserializeAws_json1_1InvalidTargetResponse(parsedOutput, context); + case "InvalidTargetMaps": + case "com.amazonaws.ssm#InvalidTargetMaps": + throw await deserializeAws_json1_1InvalidTargetMapsResponse(parsedOutput, context); + case "UnsupportedPlatformType": + case "com.amazonaws.ssm#UnsupportedPlatformType": + throw await deserializeAws_json1_1UnsupportedPlatformTypeResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1CreateDocumentCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CreateDocumentCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CreateDocumentResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1CreateDocumentCommand = deserializeAws_json1_1CreateDocumentCommand; +const deserializeAws_json1_1CreateDocumentCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DocumentAlreadyExists": + case "com.amazonaws.ssm#DocumentAlreadyExists": + throw await deserializeAws_json1_1DocumentAlreadyExistsResponse(parsedOutput, context); + case "DocumentLimitExceeded": + case "com.amazonaws.ssm#DocumentLimitExceeded": + throw await deserializeAws_json1_1DocumentLimitExceededResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDocumentContent": + case "com.amazonaws.ssm#InvalidDocumentContent": + throw await deserializeAws_json1_1InvalidDocumentContentResponse(parsedOutput, context); + case "InvalidDocumentSchemaVersion": + case "com.amazonaws.ssm#InvalidDocumentSchemaVersion": + throw await deserializeAws_json1_1InvalidDocumentSchemaVersionResponse(parsedOutput, context); + case "MaxDocumentSizeExceeded": + case "com.amazonaws.ssm#MaxDocumentSizeExceeded": + throw await deserializeAws_json1_1MaxDocumentSizeExceededResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1CreateMaintenanceWindowCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CreateMaintenanceWindowCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CreateMaintenanceWindowResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1CreateMaintenanceWindowCommand = deserializeAws_json1_1CreateMaintenanceWindowCommand; +const deserializeAws_json1_1CreateMaintenanceWindowCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "IdempotentParameterMismatch": + case "com.amazonaws.ssm#IdempotentParameterMismatch": + throw await deserializeAws_json1_1IdempotentParameterMismatchResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "ResourceLimitExceededException": + case "com.amazonaws.ssm#ResourceLimitExceededException": + throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1CreateOpsItemCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CreateOpsItemCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CreateOpsItemResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1CreateOpsItemCommand = deserializeAws_json1_1CreateOpsItemCommand; +const deserializeAws_json1_1CreateOpsItemCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "OpsItemAlreadyExistsException": + case "com.amazonaws.ssm#OpsItemAlreadyExistsException": + throw await deserializeAws_json1_1OpsItemAlreadyExistsExceptionResponse(parsedOutput, context); + case "OpsItemInvalidParameterException": + case "com.amazonaws.ssm#OpsItemInvalidParameterException": + throw await deserializeAws_json1_1OpsItemInvalidParameterExceptionResponse(parsedOutput, context); + case "OpsItemLimitExceededException": + case "com.amazonaws.ssm#OpsItemLimitExceededException": + throw await deserializeAws_json1_1OpsItemLimitExceededExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1CreateOpsMetadataCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CreateOpsMetadataCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CreateOpsMetadataResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1CreateOpsMetadataCommand = deserializeAws_json1_1CreateOpsMetadataCommand; +const deserializeAws_json1_1CreateOpsMetadataCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "OpsMetadataAlreadyExistsException": + case "com.amazonaws.ssm#OpsMetadataAlreadyExistsException": + throw await deserializeAws_json1_1OpsMetadataAlreadyExistsExceptionResponse(parsedOutput, context); + case "OpsMetadataInvalidArgumentException": + case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": + throw await deserializeAws_json1_1OpsMetadataInvalidArgumentExceptionResponse(parsedOutput, context); + case "OpsMetadataLimitExceededException": + case "com.amazonaws.ssm#OpsMetadataLimitExceededException": + throw await deserializeAws_json1_1OpsMetadataLimitExceededExceptionResponse(parsedOutput, context); + case "OpsMetadataTooManyUpdatesException": + case "com.amazonaws.ssm#OpsMetadataTooManyUpdatesException": + throw await deserializeAws_json1_1OpsMetadataTooManyUpdatesExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1CreatePatchBaselineCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CreatePatchBaselineCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CreatePatchBaselineResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1CreatePatchBaselineCommand = deserializeAws_json1_1CreatePatchBaselineCommand; +const deserializeAws_json1_1CreatePatchBaselineCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "IdempotentParameterMismatch": + case "com.amazonaws.ssm#IdempotentParameterMismatch": + throw await deserializeAws_json1_1IdempotentParameterMismatchResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "ResourceLimitExceededException": + case "com.amazonaws.ssm#ResourceLimitExceededException": + throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1CreateResourceDataSyncCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1CreateResourceDataSyncCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1CreateResourceDataSyncResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1CreateResourceDataSyncCommand = deserializeAws_json1_1CreateResourceDataSyncCommand; +const deserializeAws_json1_1CreateResourceDataSyncCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "ResourceDataSyncAlreadyExistsException": + case "com.amazonaws.ssm#ResourceDataSyncAlreadyExistsException": + throw await deserializeAws_json1_1ResourceDataSyncAlreadyExistsExceptionResponse(parsedOutput, context); + case "ResourceDataSyncCountExceededException": + case "com.amazonaws.ssm#ResourceDataSyncCountExceededException": + throw await deserializeAws_json1_1ResourceDataSyncCountExceededExceptionResponse(parsedOutput, context); + case "ResourceDataSyncInvalidConfigurationException": + case "com.amazonaws.ssm#ResourceDataSyncInvalidConfigurationException": + throw await deserializeAws_json1_1ResourceDataSyncInvalidConfigurationExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DeleteActivationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteActivationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeleteActivationResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DeleteActivationCommand = deserializeAws_json1_1DeleteActivationCommand; +const deserializeAws_json1_1DeleteActivationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidActivation": + case "com.amazonaws.ssm#InvalidActivation": + throw await deserializeAws_json1_1InvalidActivationResponse(parsedOutput, context); + case "InvalidActivationId": + case "com.amazonaws.ssm#InvalidActivationId": + throw await deserializeAws_json1_1InvalidActivationIdResponse(parsedOutput, context); + case "TooManyUpdates": + case "com.amazonaws.ssm#TooManyUpdates": + throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DeleteAssociationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteAssociationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeleteAssociationResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DeleteAssociationCommand = deserializeAws_json1_1DeleteAssociationCommand; +const deserializeAws_json1_1DeleteAssociationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AssociationDoesNotExist": + case "com.amazonaws.ssm#AssociationDoesNotExist": + throw await deserializeAws_json1_1AssociationDoesNotExistResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "InvalidInstanceId": + case "com.amazonaws.ssm#InvalidInstanceId": + throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); + case "TooManyUpdates": + case "com.amazonaws.ssm#TooManyUpdates": + throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DeleteDocumentCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteDocumentCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeleteDocumentResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DeleteDocumentCommand = deserializeAws_json1_1DeleteDocumentCommand; +const deserializeAws_json1_1DeleteDocumentCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AssociatedInstances": + case "com.amazonaws.ssm#AssociatedInstances": + throw await deserializeAws_json1_1AssociatedInstancesResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "InvalidDocumentOperation": + case "com.amazonaws.ssm#InvalidDocumentOperation": + throw await deserializeAws_json1_1InvalidDocumentOperationResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DeleteInventoryCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteInventoryCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeleteInventoryResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DeleteInventoryCommand = deserializeAws_json1_1DeleteInventoryCommand; +const deserializeAws_json1_1DeleteInventoryCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDeleteInventoryParametersException": + case "com.amazonaws.ssm#InvalidDeleteInventoryParametersException": + throw await deserializeAws_json1_1InvalidDeleteInventoryParametersExceptionResponse(parsedOutput, context); + case "InvalidInventoryRequestException": + case "com.amazonaws.ssm#InvalidInventoryRequestException": + throw await deserializeAws_json1_1InvalidInventoryRequestExceptionResponse(parsedOutput, context); + case "InvalidOptionException": + case "com.amazonaws.ssm#InvalidOptionException": + throw await deserializeAws_json1_1InvalidOptionExceptionResponse(parsedOutput, context); + case "InvalidTypeNameException": + case "com.amazonaws.ssm#InvalidTypeNameException": + throw await deserializeAws_json1_1InvalidTypeNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DeleteMaintenanceWindowCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteMaintenanceWindowCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeleteMaintenanceWindowResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DeleteMaintenanceWindowCommand = deserializeAws_json1_1DeleteMaintenanceWindowCommand; +const deserializeAws_json1_1DeleteMaintenanceWindowCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DeleteOpsMetadataCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteOpsMetadataCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeleteOpsMetadataResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DeleteOpsMetadataCommand = deserializeAws_json1_1DeleteOpsMetadataCommand; +const deserializeAws_json1_1DeleteOpsMetadataCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "OpsMetadataInvalidArgumentException": + case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": + throw await deserializeAws_json1_1OpsMetadataInvalidArgumentExceptionResponse(parsedOutput, context); + case "OpsMetadataNotFoundException": + case "com.amazonaws.ssm#OpsMetadataNotFoundException": + throw await deserializeAws_json1_1OpsMetadataNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DeleteParameterCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteParameterCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeleteParameterResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DeleteParameterCommand = deserializeAws_json1_1DeleteParameterCommand; +const deserializeAws_json1_1DeleteParameterCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "ParameterNotFound": + case "com.amazonaws.ssm#ParameterNotFound": + throw await deserializeAws_json1_1ParameterNotFoundResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DeleteParametersCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteParametersCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeleteParametersResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DeleteParametersCommand = deserializeAws_json1_1DeleteParametersCommand; +const deserializeAws_json1_1DeleteParametersCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DeletePatchBaselineCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeletePatchBaselineCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeletePatchBaselineResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DeletePatchBaselineCommand = deserializeAws_json1_1DeletePatchBaselineCommand; +const deserializeAws_json1_1DeletePatchBaselineCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "ResourceInUseException": + case "com.amazonaws.ssm#ResourceInUseException": + throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DeleteResourceDataSyncCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeleteResourceDataSyncCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeleteResourceDataSyncResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DeleteResourceDataSyncCommand = deserializeAws_json1_1DeleteResourceDataSyncCommand; +const deserializeAws_json1_1DeleteResourceDataSyncCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "ResourceDataSyncInvalidConfigurationException": + case "com.amazonaws.ssm#ResourceDataSyncInvalidConfigurationException": + throw await deserializeAws_json1_1ResourceDataSyncInvalidConfigurationExceptionResponse(parsedOutput, context); + case "ResourceDataSyncNotFoundException": + case "com.amazonaws.ssm#ResourceDataSyncNotFoundException": + throw await deserializeAws_json1_1ResourceDataSyncNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DeregisterManagedInstanceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeregisterManagedInstanceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeregisterManagedInstanceResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DeregisterManagedInstanceCommand = deserializeAws_json1_1DeregisterManagedInstanceCommand; +const deserializeAws_json1_1DeregisterManagedInstanceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidInstanceId": + case "com.amazonaws.ssm#InvalidInstanceId": + throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand = deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand; +const deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidResourceId": + case "com.amazonaws.ssm#InvalidResourceId": + throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand = deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand; +const deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "TargetInUseException": + case "com.amazonaws.ssm#TargetInUseException": + throw await deserializeAws_json1_1TargetInUseExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand = deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand; +const deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeActivationsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeActivationsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeActivationsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeActivationsCommand = deserializeAws_json1_1DescribeActivationsCommand; +const deserializeAws_json1_1DescribeActivationsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidFilter": + case "com.amazonaws.ssm#InvalidFilter": + throw await deserializeAws_json1_1InvalidFilterResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeAssociationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeAssociationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeAssociationResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeAssociationCommand = deserializeAws_json1_1DescribeAssociationCommand; +const deserializeAws_json1_1DescribeAssociationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AssociationDoesNotExist": + case "com.amazonaws.ssm#AssociationDoesNotExist": + throw await deserializeAws_json1_1AssociationDoesNotExistResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidAssociationVersion": + case "com.amazonaws.ssm#InvalidAssociationVersion": + throw await deserializeAws_json1_1InvalidAssociationVersionResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "InvalidInstanceId": + case "com.amazonaws.ssm#InvalidInstanceId": + throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeAssociationExecutionsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeAssociationExecutionsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeAssociationExecutionsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeAssociationExecutionsCommand = deserializeAws_json1_1DescribeAssociationExecutionsCommand; +const deserializeAws_json1_1DescribeAssociationExecutionsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AssociationDoesNotExist": + case "com.amazonaws.ssm#AssociationDoesNotExist": + throw await deserializeAws_json1_1AssociationDoesNotExistResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeAssociationExecutionTargetsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeAssociationExecutionTargetsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeAssociationExecutionTargetsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeAssociationExecutionTargetsCommand = deserializeAws_json1_1DescribeAssociationExecutionTargetsCommand; +const deserializeAws_json1_1DescribeAssociationExecutionTargetsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AssociationDoesNotExist": + case "com.amazonaws.ssm#AssociationDoesNotExist": + throw await deserializeAws_json1_1AssociationDoesNotExistResponse(parsedOutput, context); + case "AssociationExecutionDoesNotExist": + case "com.amazonaws.ssm#AssociationExecutionDoesNotExist": + throw await deserializeAws_json1_1AssociationExecutionDoesNotExistResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeAutomationExecutionsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeAutomationExecutionsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeAutomationExecutionsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeAutomationExecutionsCommand = deserializeAws_json1_1DescribeAutomationExecutionsCommand; +const deserializeAws_json1_1DescribeAutomationExecutionsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidFilterKey": + case "com.amazonaws.ssm#InvalidFilterKey": + throw await deserializeAws_json1_1InvalidFilterKeyResponse(parsedOutput, context); + case "InvalidFilterValue": + case "com.amazonaws.ssm#InvalidFilterValue": + throw await deserializeAws_json1_1InvalidFilterValueResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeAutomationStepExecutionsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeAutomationStepExecutionsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeAutomationStepExecutionsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeAutomationStepExecutionsCommand = deserializeAws_json1_1DescribeAutomationStepExecutionsCommand; +const deserializeAws_json1_1DescribeAutomationStepExecutionsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AutomationExecutionNotFoundException": + case "com.amazonaws.ssm#AutomationExecutionNotFoundException": + throw await deserializeAws_json1_1AutomationExecutionNotFoundExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidFilterKey": + case "com.amazonaws.ssm#InvalidFilterKey": + throw await deserializeAws_json1_1InvalidFilterKeyResponse(parsedOutput, context); + case "InvalidFilterValue": + case "com.amazonaws.ssm#InvalidFilterValue": + throw await deserializeAws_json1_1InvalidFilterValueResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeAvailablePatchesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeAvailablePatchesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeAvailablePatchesResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeAvailablePatchesCommand = deserializeAws_json1_1DescribeAvailablePatchesCommand; +const deserializeAws_json1_1DescribeAvailablePatchesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeDocumentCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeDocumentCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeDocumentResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeDocumentCommand = deserializeAws_json1_1DescribeDocumentCommand; +const deserializeAws_json1_1DescribeDocumentCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "InvalidDocumentVersion": + case "com.amazonaws.ssm#InvalidDocumentVersion": + throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeDocumentPermissionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeDocumentPermissionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeDocumentPermissionResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeDocumentPermissionCommand = deserializeAws_json1_1DescribeDocumentPermissionCommand; +const deserializeAws_json1_1DescribeDocumentPermissionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "InvalidDocumentOperation": + case "com.amazonaws.ssm#InvalidDocumentOperation": + throw await deserializeAws_json1_1InvalidDocumentOperationResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + case "InvalidPermissionType": + case "com.amazonaws.ssm#InvalidPermissionType": + throw await deserializeAws_json1_1InvalidPermissionTypeResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeEffectiveInstanceAssociationsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeEffectiveInstanceAssociationsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand = deserializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand; +const deserializeAws_json1_1DescribeEffectiveInstanceAssociationsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidInstanceId": + case "com.amazonaws.ssm#InvalidInstanceId": + throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand = deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand; +const deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidResourceId": + case "com.amazonaws.ssm#InvalidResourceId": + throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); + case "UnsupportedOperatingSystem": + case "com.amazonaws.ssm#UnsupportedOperatingSystem": + throw await deserializeAws_json1_1UnsupportedOperatingSystemResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeInstanceAssociationsStatusCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeInstanceAssociationsStatusCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeInstanceAssociationsStatusResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeInstanceAssociationsStatusCommand = deserializeAws_json1_1DescribeInstanceAssociationsStatusCommand; +const deserializeAws_json1_1DescribeInstanceAssociationsStatusCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidInstanceId": + case "com.amazonaws.ssm#InvalidInstanceId": + throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeInstanceInformationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeInstanceInformationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeInstanceInformationResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeInstanceInformationCommand = deserializeAws_json1_1DescribeInstanceInformationCommand; +const deserializeAws_json1_1DescribeInstanceInformationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidFilterKey": + case "com.amazonaws.ssm#InvalidFilterKey": + throw await deserializeAws_json1_1InvalidFilterKeyResponse(parsedOutput, context); + case "InvalidInstanceId": + case "com.amazonaws.ssm#InvalidInstanceId": + throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); + case "InvalidInstanceInformationFilterValue": + case "com.amazonaws.ssm#InvalidInstanceInformationFilterValue": + throw await deserializeAws_json1_1InvalidInstanceInformationFilterValueResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeInstancePatchesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeInstancePatchesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeInstancePatchesResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeInstancePatchesCommand = deserializeAws_json1_1DescribeInstancePatchesCommand; +const deserializeAws_json1_1DescribeInstancePatchesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidFilter": + case "com.amazonaws.ssm#InvalidFilter": + throw await deserializeAws_json1_1InvalidFilterResponse(parsedOutput, context); + case "InvalidInstanceId": + case "com.amazonaws.ssm#InvalidInstanceId": + throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeInstancePatchStatesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeInstancePatchStatesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeInstancePatchStatesResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeInstancePatchStatesCommand = deserializeAws_json1_1DescribeInstancePatchStatesCommand; +const deserializeAws_json1_1DescribeInstancePatchStatesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand = deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand; +const deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidFilter": + case "com.amazonaws.ssm#InvalidFilter": + throw await deserializeAws_json1_1InvalidFilterResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeInventoryDeletionsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeInventoryDeletionsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeInventoryDeletionsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeInventoryDeletionsCommand = deserializeAws_json1_1DescribeInventoryDeletionsCommand; +const deserializeAws_json1_1DescribeInventoryDeletionsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDeletionIdException": + case "com.amazonaws.ssm#InvalidDeletionIdException": + throw await deserializeAws_json1_1InvalidDeletionIdExceptionResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeMaintenanceWindowExecutionsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeMaintenanceWindowExecutionsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand = deserializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand; +const deserializeAws_json1_1DescribeMaintenanceWindowExecutionsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand = deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand; +const deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand = deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand; +const deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeMaintenanceWindowsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeMaintenanceWindowsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeMaintenanceWindowsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeMaintenanceWindowsCommand = deserializeAws_json1_1DescribeMaintenanceWindowsCommand; +const deserializeAws_json1_1DescribeMaintenanceWindowsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeMaintenanceWindowScheduleCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeMaintenanceWindowScheduleCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeMaintenanceWindowScheduleResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeMaintenanceWindowScheduleCommand = deserializeAws_json1_1DescribeMaintenanceWindowScheduleCommand; +const deserializeAws_json1_1DescribeMaintenanceWindowScheduleCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeMaintenanceWindowsForTargetCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeMaintenanceWindowsForTargetResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand = deserializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand; +const deserializeAws_json1_1DescribeMaintenanceWindowsForTargetCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeMaintenanceWindowTargetsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeMaintenanceWindowTargetsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeMaintenanceWindowTargetsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeMaintenanceWindowTargetsCommand = deserializeAws_json1_1DescribeMaintenanceWindowTargetsCommand; +const deserializeAws_json1_1DescribeMaintenanceWindowTargetsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeMaintenanceWindowTasksCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeMaintenanceWindowTasksCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeMaintenanceWindowTasksResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeMaintenanceWindowTasksCommand = deserializeAws_json1_1DescribeMaintenanceWindowTasksCommand; +const deserializeAws_json1_1DescribeMaintenanceWindowTasksCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeOpsItemsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeOpsItemsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeOpsItemsResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeOpsItemsCommand = deserializeAws_json1_1DescribeOpsItemsCommand; +const deserializeAws_json1_1DescribeOpsItemsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeParametersCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeParametersCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeParametersResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeParametersCommand = deserializeAws_json1_1DescribeParametersCommand; +const deserializeAws_json1_1DescribeParametersCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidFilterKey": + case "com.amazonaws.ssm#InvalidFilterKey": + throw await deserializeAws_json1_1InvalidFilterKeyResponse(parsedOutput, context); + case "InvalidFilterOption": + case "com.amazonaws.ssm#InvalidFilterOption": + throw await deserializeAws_json1_1InvalidFilterOptionResponse(parsedOutput, context); + case "InvalidFilterValue": + case "com.amazonaws.ssm#InvalidFilterValue": + throw await deserializeAws_json1_1InvalidFilterValueResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribePatchBaselinesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribePatchBaselinesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribePatchBaselinesResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribePatchBaselinesCommand = deserializeAws_json1_1DescribePatchBaselinesCommand; +const deserializeAws_json1_1DescribePatchBaselinesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribePatchGroupsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribePatchGroupsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribePatchGroupsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribePatchGroupsCommand = deserializeAws_json1_1DescribePatchGroupsCommand; +const deserializeAws_json1_1DescribePatchGroupsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribePatchGroupStateCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribePatchGroupStateCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribePatchGroupStateResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribePatchGroupStateCommand = deserializeAws_json1_1DescribePatchGroupStateCommand; +const deserializeAws_json1_1DescribePatchGroupStateCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribePatchPropertiesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribePatchPropertiesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribePatchPropertiesResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribePatchPropertiesCommand = deserializeAws_json1_1DescribePatchPropertiesCommand; +const deserializeAws_json1_1DescribePatchPropertiesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DescribeSessionsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DescribeSessionsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DescribeSessionsResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DescribeSessionsCommand = deserializeAws_json1_1DescribeSessionsCommand; +const deserializeAws_json1_1DescribeSessionsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidFilterKey": + case "com.amazonaws.ssm#InvalidFilterKey": + throw await deserializeAws_json1_1InvalidFilterKeyResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1DisassociateOpsItemRelatedItemCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1DisassociateOpsItemRelatedItemCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1DisassociateOpsItemRelatedItemResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1DisassociateOpsItemRelatedItemCommand = deserializeAws_json1_1DisassociateOpsItemRelatedItemCommand; +const deserializeAws_json1_1DisassociateOpsItemRelatedItemCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "OpsItemInvalidParameterException": + case "com.amazonaws.ssm#OpsItemInvalidParameterException": + throw await deserializeAws_json1_1OpsItemInvalidParameterExceptionResponse(parsedOutput, context); + case "OpsItemNotFoundException": + case "com.amazonaws.ssm#OpsItemNotFoundException": + throw await deserializeAws_json1_1OpsItemNotFoundExceptionResponse(parsedOutput, context); + case "OpsItemRelatedItemAssociationNotFoundException": + case "com.amazonaws.ssm#OpsItemRelatedItemAssociationNotFoundException": + throw await deserializeAws_json1_1OpsItemRelatedItemAssociationNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetAutomationExecutionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetAutomationExecutionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetAutomationExecutionResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetAutomationExecutionCommand = deserializeAws_json1_1GetAutomationExecutionCommand; +const deserializeAws_json1_1GetAutomationExecutionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AutomationExecutionNotFoundException": + case "com.amazonaws.ssm#AutomationExecutionNotFoundException": + throw await deserializeAws_json1_1AutomationExecutionNotFoundExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetCalendarStateCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetCalendarStateCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetCalendarStateResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetCalendarStateCommand = deserializeAws_json1_1GetCalendarStateCommand; +const deserializeAws_json1_1GetCalendarStateCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "InvalidDocumentType": + case "com.amazonaws.ssm#InvalidDocumentType": + throw await deserializeAws_json1_1InvalidDocumentTypeResponse(parsedOutput, context); + case "UnsupportedCalendarException": + case "com.amazonaws.ssm#UnsupportedCalendarException": + throw await deserializeAws_json1_1UnsupportedCalendarExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetCommandInvocationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetCommandInvocationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetCommandInvocationResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetCommandInvocationCommand = deserializeAws_json1_1GetCommandInvocationCommand; +const deserializeAws_json1_1GetCommandInvocationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidCommandId": + case "com.amazonaws.ssm#InvalidCommandId": + throw await deserializeAws_json1_1InvalidCommandIdResponse(parsedOutput, context); + case "InvalidInstanceId": + case "com.amazonaws.ssm#InvalidInstanceId": + throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); + case "InvalidPluginName": + case "com.amazonaws.ssm#InvalidPluginName": + throw await deserializeAws_json1_1InvalidPluginNameResponse(parsedOutput, context); + case "InvocationDoesNotExist": + case "com.amazonaws.ssm#InvocationDoesNotExist": + throw await deserializeAws_json1_1InvocationDoesNotExistResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetConnectionStatusCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetConnectionStatusCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetConnectionStatusResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetConnectionStatusCommand = deserializeAws_json1_1GetConnectionStatusCommand; +const deserializeAws_json1_1GetConnectionStatusCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetDefaultPatchBaselineCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetDefaultPatchBaselineCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetDefaultPatchBaselineResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetDefaultPatchBaselineCommand = deserializeAws_json1_1GetDefaultPatchBaselineCommand; +const deserializeAws_json1_1GetDefaultPatchBaselineCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand = deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand; +const deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "UnsupportedFeatureRequiredException": + case "com.amazonaws.ssm#UnsupportedFeatureRequiredException": + throw await deserializeAws_json1_1UnsupportedFeatureRequiredExceptionResponse(parsedOutput, context); + case "UnsupportedOperatingSystem": + case "com.amazonaws.ssm#UnsupportedOperatingSystem": + throw await deserializeAws_json1_1UnsupportedOperatingSystemResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetDocumentCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetDocumentCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetDocumentResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetDocumentCommand = deserializeAws_json1_1GetDocumentCommand; +const deserializeAws_json1_1GetDocumentCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "InvalidDocumentVersion": + case "com.amazonaws.ssm#InvalidDocumentVersion": + throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetInventoryCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetInventoryCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetInventoryResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetInventoryCommand = deserializeAws_json1_1GetInventoryCommand; +const deserializeAws_json1_1GetInventoryCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidAggregatorException": + case "com.amazonaws.ssm#InvalidAggregatorException": + throw await deserializeAws_json1_1InvalidAggregatorExceptionResponse(parsedOutput, context); + case "InvalidFilter": + case "com.amazonaws.ssm#InvalidFilter": + throw await deserializeAws_json1_1InvalidFilterResponse(parsedOutput, context); + case "InvalidInventoryGroupException": + case "com.amazonaws.ssm#InvalidInventoryGroupException": + throw await deserializeAws_json1_1InvalidInventoryGroupExceptionResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + case "InvalidResultAttributeException": + case "com.amazonaws.ssm#InvalidResultAttributeException": + throw await deserializeAws_json1_1InvalidResultAttributeExceptionResponse(parsedOutput, context); + case "InvalidTypeNameException": + case "com.amazonaws.ssm#InvalidTypeNameException": + throw await deserializeAws_json1_1InvalidTypeNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetInventorySchemaCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetInventorySchemaCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetInventorySchemaResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetInventorySchemaCommand = deserializeAws_json1_1GetInventorySchemaCommand; +const deserializeAws_json1_1GetInventorySchemaCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + case "InvalidTypeNameException": + case "com.amazonaws.ssm#InvalidTypeNameException": + throw await deserializeAws_json1_1InvalidTypeNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetMaintenanceWindowCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetMaintenanceWindowCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetMaintenanceWindowResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetMaintenanceWindowCommand = deserializeAws_json1_1GetMaintenanceWindowCommand; +const deserializeAws_json1_1GetMaintenanceWindowCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetMaintenanceWindowExecutionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetMaintenanceWindowExecutionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetMaintenanceWindowExecutionResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetMaintenanceWindowExecutionCommand = deserializeAws_json1_1GetMaintenanceWindowExecutionCommand; +const deserializeAws_json1_1GetMaintenanceWindowExecutionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetMaintenanceWindowExecutionTaskCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetMaintenanceWindowExecutionTaskResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand = deserializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand; +const deserializeAws_json1_1GetMaintenanceWindowExecutionTaskCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand = deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand; +const deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetMaintenanceWindowTaskCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetMaintenanceWindowTaskCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetMaintenanceWindowTaskResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetMaintenanceWindowTaskCommand = deserializeAws_json1_1GetMaintenanceWindowTaskCommand; +const deserializeAws_json1_1GetMaintenanceWindowTaskCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetOpsItemCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetOpsItemCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetOpsItemResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetOpsItemCommand = deserializeAws_json1_1GetOpsItemCommand; +const deserializeAws_json1_1GetOpsItemCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "OpsItemNotFoundException": + case "com.amazonaws.ssm#OpsItemNotFoundException": + throw await deserializeAws_json1_1OpsItemNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetOpsMetadataCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetOpsMetadataCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetOpsMetadataResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetOpsMetadataCommand = deserializeAws_json1_1GetOpsMetadataCommand; +const deserializeAws_json1_1GetOpsMetadataCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "OpsMetadataInvalidArgumentException": + case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": + throw await deserializeAws_json1_1OpsMetadataInvalidArgumentExceptionResponse(parsedOutput, context); + case "OpsMetadataNotFoundException": + case "com.amazonaws.ssm#OpsMetadataNotFoundException": + throw await deserializeAws_json1_1OpsMetadataNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetOpsSummaryCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetOpsSummaryCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetOpsSummaryResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetOpsSummaryCommand = deserializeAws_json1_1GetOpsSummaryCommand; +const deserializeAws_json1_1GetOpsSummaryCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidAggregatorException": + case "com.amazonaws.ssm#InvalidAggregatorException": + throw await deserializeAws_json1_1InvalidAggregatorExceptionResponse(parsedOutput, context); + case "InvalidFilter": + case "com.amazonaws.ssm#InvalidFilter": + throw await deserializeAws_json1_1InvalidFilterResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + case "InvalidTypeNameException": + case "com.amazonaws.ssm#InvalidTypeNameException": + throw await deserializeAws_json1_1InvalidTypeNameExceptionResponse(parsedOutput, context); + case "ResourceDataSyncNotFoundException": + case "com.amazonaws.ssm#ResourceDataSyncNotFoundException": + throw await deserializeAws_json1_1ResourceDataSyncNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetParameterCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetParameterCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetParameterResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetParameterCommand = deserializeAws_json1_1GetParameterCommand; +const deserializeAws_json1_1GetParameterCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidKeyId": + case "com.amazonaws.ssm#InvalidKeyId": + throw await deserializeAws_json1_1InvalidKeyIdResponse(parsedOutput, context); + case "ParameterNotFound": + case "com.amazonaws.ssm#ParameterNotFound": + throw await deserializeAws_json1_1ParameterNotFoundResponse(parsedOutput, context); + case "ParameterVersionNotFound": + case "com.amazonaws.ssm#ParameterVersionNotFound": + throw await deserializeAws_json1_1ParameterVersionNotFoundResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetParameterHistoryCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetParameterHistoryCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetParameterHistoryResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetParameterHistoryCommand = deserializeAws_json1_1GetParameterHistoryCommand; +const deserializeAws_json1_1GetParameterHistoryCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidKeyId": + case "com.amazonaws.ssm#InvalidKeyId": + throw await deserializeAws_json1_1InvalidKeyIdResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + case "ParameterNotFound": + case "com.amazonaws.ssm#ParameterNotFound": + throw await deserializeAws_json1_1ParameterNotFoundResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetParametersCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetParametersCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetParametersResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetParametersCommand = deserializeAws_json1_1GetParametersCommand; +const deserializeAws_json1_1GetParametersCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidKeyId": + case "com.amazonaws.ssm#InvalidKeyId": + throw await deserializeAws_json1_1InvalidKeyIdResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetParametersByPathCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetParametersByPathCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetParametersByPathResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetParametersByPathCommand = deserializeAws_json1_1GetParametersByPathCommand; +const deserializeAws_json1_1GetParametersByPathCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidFilterKey": + case "com.amazonaws.ssm#InvalidFilterKey": + throw await deserializeAws_json1_1InvalidFilterKeyResponse(parsedOutput, context); + case "InvalidFilterOption": + case "com.amazonaws.ssm#InvalidFilterOption": + throw await deserializeAws_json1_1InvalidFilterOptionResponse(parsedOutput, context); + case "InvalidFilterValue": + case "com.amazonaws.ssm#InvalidFilterValue": + throw await deserializeAws_json1_1InvalidFilterValueResponse(parsedOutput, context); + case "InvalidKeyId": + case "com.amazonaws.ssm#InvalidKeyId": + throw await deserializeAws_json1_1InvalidKeyIdResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetPatchBaselineCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetPatchBaselineCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetPatchBaselineResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetPatchBaselineCommand = deserializeAws_json1_1GetPatchBaselineCommand; +const deserializeAws_json1_1GetPatchBaselineCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidResourceId": + case "com.amazonaws.ssm#InvalidResourceId": + throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetPatchBaselineForPatchGroupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetPatchBaselineForPatchGroupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetPatchBaselineForPatchGroupResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetPatchBaselineForPatchGroupCommand = deserializeAws_json1_1GetPatchBaselineForPatchGroupCommand; +const deserializeAws_json1_1GetPatchBaselineForPatchGroupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1GetServiceSettingCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1GetServiceSettingCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1GetServiceSettingResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1GetServiceSettingCommand = deserializeAws_json1_1GetServiceSettingCommand; +const deserializeAws_json1_1GetServiceSettingCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "ServiceSettingNotFound": + case "com.amazonaws.ssm#ServiceSettingNotFound": + throw await deserializeAws_json1_1ServiceSettingNotFoundResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1LabelParameterVersionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1LabelParameterVersionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1LabelParameterVersionResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1LabelParameterVersionCommand = deserializeAws_json1_1LabelParameterVersionCommand; +const deserializeAws_json1_1LabelParameterVersionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "ParameterNotFound": + case "com.amazonaws.ssm#ParameterNotFound": + throw await deserializeAws_json1_1ParameterNotFoundResponse(parsedOutput, context); + case "ParameterVersionLabelLimitExceeded": + case "com.amazonaws.ssm#ParameterVersionLabelLimitExceeded": + throw await deserializeAws_json1_1ParameterVersionLabelLimitExceededResponse(parsedOutput, context); + case "ParameterVersionNotFound": + case "com.amazonaws.ssm#ParameterVersionNotFound": + throw await deserializeAws_json1_1ParameterVersionNotFoundResponse(parsedOutput, context); + case "TooManyUpdates": + case "com.amazonaws.ssm#TooManyUpdates": + throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ListAssociationsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListAssociationsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListAssociationsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ListAssociationsCommand = deserializeAws_json1_1ListAssociationsCommand; +const deserializeAws_json1_1ListAssociationsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ListAssociationVersionsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListAssociationVersionsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListAssociationVersionsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ListAssociationVersionsCommand = deserializeAws_json1_1ListAssociationVersionsCommand; +const deserializeAws_json1_1ListAssociationVersionsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AssociationDoesNotExist": + case "com.amazonaws.ssm#AssociationDoesNotExist": + throw await deserializeAws_json1_1AssociationDoesNotExistResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ListCommandInvocationsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListCommandInvocationsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListCommandInvocationsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ListCommandInvocationsCommand = deserializeAws_json1_1ListCommandInvocationsCommand; +const deserializeAws_json1_1ListCommandInvocationsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidCommandId": + case "com.amazonaws.ssm#InvalidCommandId": + throw await deserializeAws_json1_1InvalidCommandIdResponse(parsedOutput, context); + case "InvalidFilterKey": + case "com.amazonaws.ssm#InvalidFilterKey": + throw await deserializeAws_json1_1InvalidFilterKeyResponse(parsedOutput, context); + case "InvalidInstanceId": + case "com.amazonaws.ssm#InvalidInstanceId": + throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ListCommandsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListCommandsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListCommandsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ListCommandsCommand = deserializeAws_json1_1ListCommandsCommand; +const deserializeAws_json1_1ListCommandsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidCommandId": + case "com.amazonaws.ssm#InvalidCommandId": + throw await deserializeAws_json1_1InvalidCommandIdResponse(parsedOutput, context); + case "InvalidFilterKey": + case "com.amazonaws.ssm#InvalidFilterKey": + throw await deserializeAws_json1_1InvalidFilterKeyResponse(parsedOutput, context); + case "InvalidInstanceId": + case "com.amazonaws.ssm#InvalidInstanceId": + throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ListComplianceItemsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListComplianceItemsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListComplianceItemsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ListComplianceItemsCommand = deserializeAws_json1_1ListComplianceItemsCommand; +const deserializeAws_json1_1ListComplianceItemsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidFilter": + case "com.amazonaws.ssm#InvalidFilter": + throw await deserializeAws_json1_1InvalidFilterResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + case "InvalidResourceId": + case "com.amazonaws.ssm#InvalidResourceId": + throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); + case "InvalidResourceType": + case "com.amazonaws.ssm#InvalidResourceType": + throw await deserializeAws_json1_1InvalidResourceTypeResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ListComplianceSummariesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListComplianceSummariesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListComplianceSummariesResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ListComplianceSummariesCommand = deserializeAws_json1_1ListComplianceSummariesCommand; +const deserializeAws_json1_1ListComplianceSummariesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidFilter": + case "com.amazonaws.ssm#InvalidFilter": + throw await deserializeAws_json1_1InvalidFilterResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ListDocumentMetadataHistoryCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListDocumentMetadataHistoryCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListDocumentMetadataHistoryResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ListDocumentMetadataHistoryCommand = deserializeAws_json1_1ListDocumentMetadataHistoryCommand; +const deserializeAws_json1_1ListDocumentMetadataHistoryCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "InvalidDocumentVersion": + case "com.amazonaws.ssm#InvalidDocumentVersion": + throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ListDocumentsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListDocumentsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListDocumentsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ListDocumentsCommand = deserializeAws_json1_1ListDocumentsCommand; +const deserializeAws_json1_1ListDocumentsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidFilterKey": + case "com.amazonaws.ssm#InvalidFilterKey": + throw await deserializeAws_json1_1InvalidFilterKeyResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ListDocumentVersionsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListDocumentVersionsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListDocumentVersionsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ListDocumentVersionsCommand = deserializeAws_json1_1ListDocumentVersionsCommand; +const deserializeAws_json1_1ListDocumentVersionsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ListInventoryEntriesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListInventoryEntriesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListInventoryEntriesResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ListInventoryEntriesCommand = deserializeAws_json1_1ListInventoryEntriesCommand; +const deserializeAws_json1_1ListInventoryEntriesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidFilter": + case "com.amazonaws.ssm#InvalidFilter": + throw await deserializeAws_json1_1InvalidFilterResponse(parsedOutput, context); + case "InvalidInstanceId": + case "com.amazonaws.ssm#InvalidInstanceId": + throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + case "InvalidTypeNameException": + case "com.amazonaws.ssm#InvalidTypeNameException": + throw await deserializeAws_json1_1InvalidTypeNameExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ListOpsItemEventsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListOpsItemEventsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListOpsItemEventsResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ListOpsItemEventsCommand = deserializeAws_json1_1ListOpsItemEventsCommand; +const deserializeAws_json1_1ListOpsItemEventsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "OpsItemInvalidParameterException": + case "com.amazonaws.ssm#OpsItemInvalidParameterException": + throw await deserializeAws_json1_1OpsItemInvalidParameterExceptionResponse(parsedOutput, context); + case "OpsItemLimitExceededException": + case "com.amazonaws.ssm#OpsItemLimitExceededException": + throw await deserializeAws_json1_1OpsItemLimitExceededExceptionResponse(parsedOutput, context); + case "OpsItemNotFoundException": + case "com.amazonaws.ssm#OpsItemNotFoundException": + throw await deserializeAws_json1_1OpsItemNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ListOpsItemRelatedItemsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListOpsItemRelatedItemsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListOpsItemRelatedItemsResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ListOpsItemRelatedItemsCommand = deserializeAws_json1_1ListOpsItemRelatedItemsCommand; +const deserializeAws_json1_1ListOpsItemRelatedItemsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "OpsItemInvalidParameterException": + case "com.amazonaws.ssm#OpsItemInvalidParameterException": + throw await deserializeAws_json1_1OpsItemInvalidParameterExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ListOpsMetadataCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListOpsMetadataCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListOpsMetadataResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ListOpsMetadataCommand = deserializeAws_json1_1ListOpsMetadataCommand; +const deserializeAws_json1_1ListOpsMetadataCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "OpsMetadataInvalidArgumentException": + case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": + throw await deserializeAws_json1_1OpsMetadataInvalidArgumentExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ListResourceComplianceSummariesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListResourceComplianceSummariesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListResourceComplianceSummariesResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ListResourceComplianceSummariesCommand = deserializeAws_json1_1ListResourceComplianceSummariesCommand; +const deserializeAws_json1_1ListResourceComplianceSummariesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidFilter": + case "com.amazonaws.ssm#InvalidFilter": + throw await deserializeAws_json1_1InvalidFilterResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ListResourceDataSyncCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListResourceDataSyncCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListResourceDataSyncResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ListResourceDataSyncCommand = deserializeAws_json1_1ListResourceDataSyncCommand; +const deserializeAws_json1_1ListResourceDataSyncCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidNextToken": + case "com.amazonaws.ssm#InvalidNextToken": + throw await deserializeAws_json1_1InvalidNextTokenResponse(parsedOutput, context); + case "ResourceDataSyncInvalidConfigurationException": + case "com.amazonaws.ssm#ResourceDataSyncInvalidConfigurationException": + throw await deserializeAws_json1_1ResourceDataSyncInvalidConfigurationExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ListTagsForResourceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ListTagsForResourceResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_1ListTagsForResourceCommand; +const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidResourceId": + case "com.amazonaws.ssm#InvalidResourceId": + throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); + case "InvalidResourceType": + case "com.amazonaws.ssm#InvalidResourceType": + throw await deserializeAws_json1_1InvalidResourceTypeResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ModifyDocumentPermissionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ModifyDocumentPermissionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ModifyDocumentPermissionResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ModifyDocumentPermissionCommand = deserializeAws_json1_1ModifyDocumentPermissionCommand; +const deserializeAws_json1_1ModifyDocumentPermissionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DocumentLimitExceeded": + case "com.amazonaws.ssm#DocumentLimitExceeded": + throw await deserializeAws_json1_1DocumentLimitExceededResponse(parsedOutput, context); + case "DocumentPermissionLimit": + case "com.amazonaws.ssm#DocumentPermissionLimit": + throw await deserializeAws_json1_1DocumentPermissionLimitResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "InvalidPermissionType": + case "com.amazonaws.ssm#InvalidPermissionType": + throw await deserializeAws_json1_1InvalidPermissionTypeResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1PutComplianceItemsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1PutComplianceItemsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1PutComplianceItemsResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1PutComplianceItemsCommand = deserializeAws_json1_1PutComplianceItemsCommand; +const deserializeAws_json1_1PutComplianceItemsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ComplianceTypeCountLimitExceededException": + case "com.amazonaws.ssm#ComplianceTypeCountLimitExceededException": + throw await deserializeAws_json1_1ComplianceTypeCountLimitExceededExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidItemContentException": + case "com.amazonaws.ssm#InvalidItemContentException": + throw await deserializeAws_json1_1InvalidItemContentExceptionResponse(parsedOutput, context); + case "InvalidResourceId": + case "com.amazonaws.ssm#InvalidResourceId": + throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); + case "InvalidResourceType": + case "com.amazonaws.ssm#InvalidResourceType": + throw await deserializeAws_json1_1InvalidResourceTypeResponse(parsedOutput, context); + case "ItemSizeLimitExceededException": + case "com.amazonaws.ssm#ItemSizeLimitExceededException": + throw await deserializeAws_json1_1ItemSizeLimitExceededExceptionResponse(parsedOutput, context); + case "TotalSizeLimitExceededException": + case "com.amazonaws.ssm#TotalSizeLimitExceededException": + throw await deserializeAws_json1_1TotalSizeLimitExceededExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1PutInventoryCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1PutInventoryCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1PutInventoryResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1PutInventoryCommand = deserializeAws_json1_1PutInventoryCommand; +const deserializeAws_json1_1PutInventoryCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "CustomSchemaCountLimitExceededException": + case "com.amazonaws.ssm#CustomSchemaCountLimitExceededException": + throw await deserializeAws_json1_1CustomSchemaCountLimitExceededExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidInstanceId": + case "com.amazonaws.ssm#InvalidInstanceId": + throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); + case "InvalidInventoryItemContextException": + case "com.amazonaws.ssm#InvalidInventoryItemContextException": + throw await deserializeAws_json1_1InvalidInventoryItemContextExceptionResponse(parsedOutput, context); + case "InvalidItemContentException": + case "com.amazonaws.ssm#InvalidItemContentException": + throw await deserializeAws_json1_1InvalidItemContentExceptionResponse(parsedOutput, context); + case "InvalidTypeNameException": + case "com.amazonaws.ssm#InvalidTypeNameException": + throw await deserializeAws_json1_1InvalidTypeNameExceptionResponse(parsedOutput, context); + case "ItemContentMismatchException": + case "com.amazonaws.ssm#ItemContentMismatchException": + throw await deserializeAws_json1_1ItemContentMismatchExceptionResponse(parsedOutput, context); + case "ItemSizeLimitExceededException": + case "com.amazonaws.ssm#ItemSizeLimitExceededException": + throw await deserializeAws_json1_1ItemSizeLimitExceededExceptionResponse(parsedOutput, context); + case "SubTypeCountLimitExceededException": + case "com.amazonaws.ssm#SubTypeCountLimitExceededException": + throw await deserializeAws_json1_1SubTypeCountLimitExceededExceptionResponse(parsedOutput, context); + case "TotalSizeLimitExceededException": + case "com.amazonaws.ssm#TotalSizeLimitExceededException": + throw await deserializeAws_json1_1TotalSizeLimitExceededExceptionResponse(parsedOutput, context); + case "UnsupportedInventoryItemContextException": + case "com.amazonaws.ssm#UnsupportedInventoryItemContextException": + throw await deserializeAws_json1_1UnsupportedInventoryItemContextExceptionResponse(parsedOutput, context); + case "UnsupportedInventorySchemaVersionException": + case "com.amazonaws.ssm#UnsupportedInventorySchemaVersionException": + throw await deserializeAws_json1_1UnsupportedInventorySchemaVersionExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1PutParameterCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1PutParameterCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1PutParameterResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1PutParameterCommand = deserializeAws_json1_1PutParameterCommand; +const deserializeAws_json1_1PutParameterCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "HierarchyLevelLimitExceededException": + case "com.amazonaws.ssm#HierarchyLevelLimitExceededException": + throw await deserializeAws_json1_1HierarchyLevelLimitExceededExceptionResponse(parsedOutput, context); + case "HierarchyTypeMismatchException": + case "com.amazonaws.ssm#HierarchyTypeMismatchException": + throw await deserializeAws_json1_1HierarchyTypeMismatchExceptionResponse(parsedOutput, context); + case "IncompatiblePolicyException": + case "com.amazonaws.ssm#IncompatiblePolicyException": + throw await deserializeAws_json1_1IncompatiblePolicyExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidAllowedPatternException": + case "com.amazonaws.ssm#InvalidAllowedPatternException": + throw await deserializeAws_json1_1InvalidAllowedPatternExceptionResponse(parsedOutput, context); + case "InvalidKeyId": + case "com.amazonaws.ssm#InvalidKeyId": + throw await deserializeAws_json1_1InvalidKeyIdResponse(parsedOutput, context); + case "InvalidPolicyAttributeException": + case "com.amazonaws.ssm#InvalidPolicyAttributeException": + throw await deserializeAws_json1_1InvalidPolicyAttributeExceptionResponse(parsedOutput, context); + case "InvalidPolicyTypeException": + case "com.amazonaws.ssm#InvalidPolicyTypeException": + throw await deserializeAws_json1_1InvalidPolicyTypeExceptionResponse(parsedOutput, context); + case "ParameterAlreadyExists": + case "com.amazonaws.ssm#ParameterAlreadyExists": + throw await deserializeAws_json1_1ParameterAlreadyExistsResponse(parsedOutput, context); + case "ParameterLimitExceeded": + case "com.amazonaws.ssm#ParameterLimitExceeded": + throw await deserializeAws_json1_1ParameterLimitExceededResponse(parsedOutput, context); + case "ParameterMaxVersionLimitExceeded": + case "com.amazonaws.ssm#ParameterMaxVersionLimitExceeded": + throw await deserializeAws_json1_1ParameterMaxVersionLimitExceededResponse(parsedOutput, context); + case "ParameterPatternMismatchException": + case "com.amazonaws.ssm#ParameterPatternMismatchException": + throw await deserializeAws_json1_1ParameterPatternMismatchExceptionResponse(parsedOutput, context); + case "PoliciesLimitExceededException": + case "com.amazonaws.ssm#PoliciesLimitExceededException": + throw await deserializeAws_json1_1PoliciesLimitExceededExceptionResponse(parsedOutput, context); + case "TooManyUpdates": + case "com.amazonaws.ssm#TooManyUpdates": + throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); + case "UnsupportedParameterType": + case "com.amazonaws.ssm#UnsupportedParameterType": + throw await deserializeAws_json1_1UnsupportedParameterTypeResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1RegisterDefaultPatchBaselineCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1RegisterDefaultPatchBaselineCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1RegisterDefaultPatchBaselineResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1RegisterDefaultPatchBaselineCommand = deserializeAws_json1_1RegisterDefaultPatchBaselineCommand; +const deserializeAws_json1_1RegisterDefaultPatchBaselineCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidResourceId": + case "com.amazonaws.ssm#InvalidResourceId": + throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1RegisterPatchBaselineForPatchGroupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1RegisterPatchBaselineForPatchGroupResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand = deserializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand; +const deserializeAws_json1_1RegisterPatchBaselineForPatchGroupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AlreadyExistsException": + case "com.amazonaws.ssm#AlreadyExistsException": + throw await deserializeAws_json1_1AlreadyExistsExceptionResponse(parsedOutput, context); + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidResourceId": + case "com.amazonaws.ssm#InvalidResourceId": + throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); + case "ResourceLimitExceededException": + case "com.amazonaws.ssm#ResourceLimitExceededException": + throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1RegisterTargetWithMaintenanceWindowCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1RegisterTargetWithMaintenanceWindowResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand = deserializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand; +const deserializeAws_json1_1RegisterTargetWithMaintenanceWindowCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "IdempotentParameterMismatch": + case "com.amazonaws.ssm#IdempotentParameterMismatch": + throw await deserializeAws_json1_1IdempotentParameterMismatchResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "ResourceLimitExceededException": + case "com.amazonaws.ssm#ResourceLimitExceededException": + throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1RegisterTaskWithMaintenanceWindowCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1RegisterTaskWithMaintenanceWindowResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand = deserializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand; +const deserializeAws_json1_1RegisterTaskWithMaintenanceWindowCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "FeatureNotAvailableException": + case "com.amazonaws.ssm#FeatureNotAvailableException": + throw await deserializeAws_json1_1FeatureNotAvailableExceptionResponse(parsedOutput, context); + case "IdempotentParameterMismatch": + case "com.amazonaws.ssm#IdempotentParameterMismatch": + throw await deserializeAws_json1_1IdempotentParameterMismatchResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "ResourceLimitExceededException": + case "com.amazonaws.ssm#ResourceLimitExceededException": + throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1RemoveTagsFromResourceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1RemoveTagsFromResourceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1RemoveTagsFromResourceResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1RemoveTagsFromResourceCommand = deserializeAws_json1_1RemoveTagsFromResourceCommand; +const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidResourceId": + case "com.amazonaws.ssm#InvalidResourceId": + throw await deserializeAws_json1_1InvalidResourceIdResponse(parsedOutput, context); + case "InvalidResourceType": + case "com.amazonaws.ssm#InvalidResourceType": + throw await deserializeAws_json1_1InvalidResourceTypeResponse(parsedOutput, context); + case "TooManyUpdates": + case "com.amazonaws.ssm#TooManyUpdates": + throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ResetServiceSettingCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ResetServiceSettingCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ResetServiceSettingResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ResetServiceSettingCommand = deserializeAws_json1_1ResetServiceSettingCommand; +const deserializeAws_json1_1ResetServiceSettingCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "ServiceSettingNotFound": + case "com.amazonaws.ssm#ServiceSettingNotFound": + throw await deserializeAws_json1_1ServiceSettingNotFoundResponse(parsedOutput, context); + case "TooManyUpdates": + case "com.amazonaws.ssm#TooManyUpdates": + throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1ResumeSessionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1ResumeSessionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1ResumeSessionResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1ResumeSessionCommand = deserializeAws_json1_1ResumeSessionCommand; +const deserializeAws_json1_1ResumeSessionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1SendAutomationSignalCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1SendAutomationSignalCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1SendAutomationSignalResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1SendAutomationSignalCommand = deserializeAws_json1_1SendAutomationSignalCommand; +const deserializeAws_json1_1SendAutomationSignalCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AutomationExecutionNotFoundException": + case "com.amazonaws.ssm#AutomationExecutionNotFoundException": + throw await deserializeAws_json1_1AutomationExecutionNotFoundExceptionResponse(parsedOutput, context); + case "AutomationStepNotFoundException": + case "com.amazonaws.ssm#AutomationStepNotFoundException": + throw await deserializeAws_json1_1AutomationStepNotFoundExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidAutomationSignalException": + case "com.amazonaws.ssm#InvalidAutomationSignalException": + throw await deserializeAws_json1_1InvalidAutomationSignalExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1SendCommandCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1SendCommandCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1SendCommandResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1SendCommandCommand = deserializeAws_json1_1SendCommandCommand; +const deserializeAws_json1_1SendCommandCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DuplicateInstanceId": + case "com.amazonaws.ssm#DuplicateInstanceId": + throw await deserializeAws_json1_1DuplicateInstanceIdResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "InvalidDocumentVersion": + case "com.amazonaws.ssm#InvalidDocumentVersion": + throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); + case "InvalidInstanceId": + case "com.amazonaws.ssm#InvalidInstanceId": + throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); + case "InvalidNotificationConfig": + case "com.amazonaws.ssm#InvalidNotificationConfig": + throw await deserializeAws_json1_1InvalidNotificationConfigResponse(parsedOutput, context); + case "InvalidOutputFolder": + case "com.amazonaws.ssm#InvalidOutputFolder": + throw await deserializeAws_json1_1InvalidOutputFolderResponse(parsedOutput, context); + case "InvalidParameters": + case "com.amazonaws.ssm#InvalidParameters": + throw await deserializeAws_json1_1InvalidParametersResponse(parsedOutput, context); + case "InvalidRole": + case "com.amazonaws.ssm#InvalidRole": + throw await deserializeAws_json1_1InvalidRoleResponse(parsedOutput, context); + case "MaxDocumentSizeExceeded": + case "com.amazonaws.ssm#MaxDocumentSizeExceeded": + throw await deserializeAws_json1_1MaxDocumentSizeExceededResponse(parsedOutput, context); + case "UnsupportedPlatformType": + case "com.amazonaws.ssm#UnsupportedPlatformType": + throw await deserializeAws_json1_1UnsupportedPlatformTypeResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1StartAssociationsOnceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1StartAssociationsOnceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1StartAssociationsOnceResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1StartAssociationsOnceCommand = deserializeAws_json1_1StartAssociationsOnceCommand; +const deserializeAws_json1_1StartAssociationsOnceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AssociationDoesNotExist": + case "com.amazonaws.ssm#AssociationDoesNotExist": + throw await deserializeAws_json1_1AssociationDoesNotExistResponse(parsedOutput, context); + case "InvalidAssociation": + case "com.amazonaws.ssm#InvalidAssociation": + throw await deserializeAws_json1_1InvalidAssociationResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1StartAutomationExecutionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1StartAutomationExecutionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1StartAutomationExecutionResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1StartAutomationExecutionCommand = deserializeAws_json1_1StartAutomationExecutionCommand; +const deserializeAws_json1_1StartAutomationExecutionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AutomationDefinitionNotFoundException": + case "com.amazonaws.ssm#AutomationDefinitionNotFoundException": + throw await deserializeAws_json1_1AutomationDefinitionNotFoundExceptionResponse(parsedOutput, context); + case "AutomationDefinitionVersionNotFoundException": + case "com.amazonaws.ssm#AutomationDefinitionVersionNotFoundException": + throw await deserializeAws_json1_1AutomationDefinitionVersionNotFoundExceptionResponse(parsedOutput, context); + case "AutomationExecutionLimitExceededException": + case "com.amazonaws.ssm#AutomationExecutionLimitExceededException": + throw await deserializeAws_json1_1AutomationExecutionLimitExceededExceptionResponse(parsedOutput, context); + case "IdempotentParameterMismatch": + case "com.amazonaws.ssm#IdempotentParameterMismatch": + throw await deserializeAws_json1_1IdempotentParameterMismatchResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidAutomationExecutionParametersException": + case "com.amazonaws.ssm#InvalidAutomationExecutionParametersException": + throw await deserializeAws_json1_1InvalidAutomationExecutionParametersExceptionResponse(parsedOutput, context); + case "InvalidTarget": + case "com.amazonaws.ssm#InvalidTarget": + throw await deserializeAws_json1_1InvalidTargetResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1StartChangeRequestExecutionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1StartChangeRequestExecutionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1StartChangeRequestExecutionResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1StartChangeRequestExecutionCommand = deserializeAws_json1_1StartChangeRequestExecutionCommand; +const deserializeAws_json1_1StartChangeRequestExecutionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AutomationDefinitionNotApprovedException": + case "com.amazonaws.ssm#AutomationDefinitionNotApprovedException": + throw await deserializeAws_json1_1AutomationDefinitionNotApprovedExceptionResponse(parsedOutput, context); + case "AutomationDefinitionNotFoundException": + case "com.amazonaws.ssm#AutomationDefinitionNotFoundException": + throw await deserializeAws_json1_1AutomationDefinitionNotFoundExceptionResponse(parsedOutput, context); + case "AutomationDefinitionVersionNotFoundException": + case "com.amazonaws.ssm#AutomationDefinitionVersionNotFoundException": + throw await deserializeAws_json1_1AutomationDefinitionVersionNotFoundExceptionResponse(parsedOutput, context); + case "AutomationExecutionLimitExceededException": + case "com.amazonaws.ssm#AutomationExecutionLimitExceededException": + throw await deserializeAws_json1_1AutomationExecutionLimitExceededExceptionResponse(parsedOutput, context); + case "IdempotentParameterMismatch": + case "com.amazonaws.ssm#IdempotentParameterMismatch": + throw await deserializeAws_json1_1IdempotentParameterMismatchResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidAutomationExecutionParametersException": + case "com.amazonaws.ssm#InvalidAutomationExecutionParametersException": + throw await deserializeAws_json1_1InvalidAutomationExecutionParametersExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1StartSessionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1StartSessionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1StartSessionResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1StartSessionCommand = deserializeAws_json1_1StartSessionCommand; +const deserializeAws_json1_1StartSessionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "TargetNotConnected": + case "com.amazonaws.ssm#TargetNotConnected": + throw await deserializeAws_json1_1TargetNotConnectedResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1StopAutomationExecutionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1StopAutomationExecutionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1StopAutomationExecutionResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1StopAutomationExecutionCommand = deserializeAws_json1_1StopAutomationExecutionCommand; +const deserializeAws_json1_1StopAutomationExecutionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AutomationExecutionNotFoundException": + case "com.amazonaws.ssm#AutomationExecutionNotFoundException": + throw await deserializeAws_json1_1AutomationExecutionNotFoundExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidAutomationStatusUpdateException": + case "com.amazonaws.ssm#InvalidAutomationStatusUpdateException": + throw await deserializeAws_json1_1InvalidAutomationStatusUpdateExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1TerminateSessionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1TerminateSessionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1TerminateSessionResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1TerminateSessionCommand = deserializeAws_json1_1TerminateSessionCommand; +const deserializeAws_json1_1TerminateSessionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1UnlabelParameterVersionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UnlabelParameterVersionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UnlabelParameterVersionResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1UnlabelParameterVersionCommand = deserializeAws_json1_1UnlabelParameterVersionCommand; +const deserializeAws_json1_1UnlabelParameterVersionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "ParameterNotFound": + case "com.amazonaws.ssm#ParameterNotFound": + throw await deserializeAws_json1_1ParameterNotFoundResponse(parsedOutput, context); + case "ParameterVersionNotFound": + case "com.amazonaws.ssm#ParameterVersionNotFound": + throw await deserializeAws_json1_1ParameterVersionNotFoundResponse(parsedOutput, context); + case "TooManyUpdates": + case "com.amazonaws.ssm#TooManyUpdates": + throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1UpdateAssociationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UpdateAssociationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UpdateAssociationResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1UpdateAssociationCommand = deserializeAws_json1_1UpdateAssociationCommand; +const deserializeAws_json1_1UpdateAssociationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AssociationDoesNotExist": + case "com.amazonaws.ssm#AssociationDoesNotExist": + throw await deserializeAws_json1_1AssociationDoesNotExistResponse(parsedOutput, context); + case "AssociationVersionLimitExceeded": + case "com.amazonaws.ssm#AssociationVersionLimitExceeded": + throw await deserializeAws_json1_1AssociationVersionLimitExceededResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidAssociationVersion": + case "com.amazonaws.ssm#InvalidAssociationVersion": + throw await deserializeAws_json1_1InvalidAssociationVersionResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "InvalidDocumentVersion": + case "com.amazonaws.ssm#InvalidDocumentVersion": + throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); + case "InvalidOutputLocation": + case "com.amazonaws.ssm#InvalidOutputLocation": + throw await deserializeAws_json1_1InvalidOutputLocationResponse(parsedOutput, context); + case "InvalidParameters": + case "com.amazonaws.ssm#InvalidParameters": + throw await deserializeAws_json1_1InvalidParametersResponse(parsedOutput, context); + case "InvalidSchedule": + case "com.amazonaws.ssm#InvalidSchedule": + throw await deserializeAws_json1_1InvalidScheduleResponse(parsedOutput, context); + case "InvalidTarget": + case "com.amazonaws.ssm#InvalidTarget": + throw await deserializeAws_json1_1InvalidTargetResponse(parsedOutput, context); + case "InvalidTargetMaps": + case "com.amazonaws.ssm#InvalidTargetMaps": + throw await deserializeAws_json1_1InvalidTargetMapsResponse(parsedOutput, context); + case "InvalidUpdate": + case "com.amazonaws.ssm#InvalidUpdate": + throw await deserializeAws_json1_1InvalidUpdateResponse(parsedOutput, context); + case "TooManyUpdates": + case "com.amazonaws.ssm#TooManyUpdates": + throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1UpdateAssociationStatusCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UpdateAssociationStatusCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UpdateAssociationStatusResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1UpdateAssociationStatusCommand = deserializeAws_json1_1UpdateAssociationStatusCommand; +const deserializeAws_json1_1UpdateAssociationStatusCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AssociationDoesNotExist": + case "com.amazonaws.ssm#AssociationDoesNotExist": + throw await deserializeAws_json1_1AssociationDoesNotExistResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "InvalidInstanceId": + case "com.amazonaws.ssm#InvalidInstanceId": + throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); + case "StatusUnchanged": + case "com.amazonaws.ssm#StatusUnchanged": + throw await deserializeAws_json1_1StatusUnchangedResponse(parsedOutput, context); + case "TooManyUpdates": + case "com.amazonaws.ssm#TooManyUpdates": + throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1UpdateDocumentCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UpdateDocumentCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UpdateDocumentResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1UpdateDocumentCommand = deserializeAws_json1_1UpdateDocumentCommand; +const deserializeAws_json1_1UpdateDocumentCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DocumentVersionLimitExceeded": + case "com.amazonaws.ssm#DocumentVersionLimitExceeded": + throw await deserializeAws_json1_1DocumentVersionLimitExceededResponse(parsedOutput, context); + case "DuplicateDocumentContent": + case "com.amazonaws.ssm#DuplicateDocumentContent": + throw await deserializeAws_json1_1DuplicateDocumentContentResponse(parsedOutput, context); + case "DuplicateDocumentVersionName": + case "com.amazonaws.ssm#DuplicateDocumentVersionName": + throw await deserializeAws_json1_1DuplicateDocumentVersionNameResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "InvalidDocumentContent": + case "com.amazonaws.ssm#InvalidDocumentContent": + throw await deserializeAws_json1_1InvalidDocumentContentResponse(parsedOutput, context); + case "InvalidDocumentOperation": + case "com.amazonaws.ssm#InvalidDocumentOperation": + throw await deserializeAws_json1_1InvalidDocumentOperationResponse(parsedOutput, context); + case "InvalidDocumentSchemaVersion": + case "com.amazonaws.ssm#InvalidDocumentSchemaVersion": + throw await deserializeAws_json1_1InvalidDocumentSchemaVersionResponse(parsedOutput, context); + case "InvalidDocumentVersion": + case "com.amazonaws.ssm#InvalidDocumentVersion": + throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); + case "MaxDocumentSizeExceeded": + case "com.amazonaws.ssm#MaxDocumentSizeExceeded": + throw await deserializeAws_json1_1MaxDocumentSizeExceededResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1UpdateDocumentDefaultVersionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UpdateDocumentDefaultVersionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UpdateDocumentDefaultVersionResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1UpdateDocumentDefaultVersionCommand = deserializeAws_json1_1UpdateDocumentDefaultVersionCommand; +const deserializeAws_json1_1UpdateDocumentDefaultVersionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "InvalidDocumentSchemaVersion": + case "com.amazonaws.ssm#InvalidDocumentSchemaVersion": + throw await deserializeAws_json1_1InvalidDocumentSchemaVersionResponse(parsedOutput, context); + case "InvalidDocumentVersion": + case "com.amazonaws.ssm#InvalidDocumentVersion": + throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1UpdateDocumentMetadataCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UpdateDocumentMetadataCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UpdateDocumentMetadataResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1UpdateDocumentMetadataCommand = deserializeAws_json1_1UpdateDocumentMetadataCommand; +const deserializeAws_json1_1UpdateDocumentMetadataCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidDocument": + case "com.amazonaws.ssm#InvalidDocument": + throw await deserializeAws_json1_1InvalidDocumentResponse(parsedOutput, context); + case "InvalidDocumentOperation": + case "com.amazonaws.ssm#InvalidDocumentOperation": + throw await deserializeAws_json1_1InvalidDocumentOperationResponse(parsedOutput, context); + case "InvalidDocumentVersion": + case "com.amazonaws.ssm#InvalidDocumentVersion": + throw await deserializeAws_json1_1InvalidDocumentVersionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1UpdateMaintenanceWindowCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UpdateMaintenanceWindowCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UpdateMaintenanceWindowResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1UpdateMaintenanceWindowCommand = deserializeAws_json1_1UpdateMaintenanceWindowCommand; +const deserializeAws_json1_1UpdateMaintenanceWindowCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1UpdateMaintenanceWindowTargetCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UpdateMaintenanceWindowTargetCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UpdateMaintenanceWindowTargetResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1UpdateMaintenanceWindowTargetCommand = deserializeAws_json1_1UpdateMaintenanceWindowTargetCommand; +const deserializeAws_json1_1UpdateMaintenanceWindowTargetCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1UpdateMaintenanceWindowTaskCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UpdateMaintenanceWindowTaskCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UpdateMaintenanceWindowTaskResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1UpdateMaintenanceWindowTaskCommand = deserializeAws_json1_1UpdateMaintenanceWindowTaskCommand; +const deserializeAws_json1_1UpdateMaintenanceWindowTaskCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1UpdateManagedInstanceRoleCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UpdateManagedInstanceRoleCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UpdateManagedInstanceRoleResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1UpdateManagedInstanceRoleCommand = deserializeAws_json1_1UpdateManagedInstanceRoleCommand; +const deserializeAws_json1_1UpdateManagedInstanceRoleCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "InvalidInstanceId": + case "com.amazonaws.ssm#InvalidInstanceId": + throw await deserializeAws_json1_1InvalidInstanceIdResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1UpdateOpsItemCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UpdateOpsItemCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UpdateOpsItemResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1UpdateOpsItemCommand = deserializeAws_json1_1UpdateOpsItemCommand; +const deserializeAws_json1_1UpdateOpsItemCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "OpsItemAlreadyExistsException": + case "com.amazonaws.ssm#OpsItemAlreadyExistsException": + throw await deserializeAws_json1_1OpsItemAlreadyExistsExceptionResponse(parsedOutput, context); + case "OpsItemInvalidParameterException": + case "com.amazonaws.ssm#OpsItemInvalidParameterException": + throw await deserializeAws_json1_1OpsItemInvalidParameterExceptionResponse(parsedOutput, context); + case "OpsItemLimitExceededException": + case "com.amazonaws.ssm#OpsItemLimitExceededException": + throw await deserializeAws_json1_1OpsItemLimitExceededExceptionResponse(parsedOutput, context); + case "OpsItemNotFoundException": + case "com.amazonaws.ssm#OpsItemNotFoundException": + throw await deserializeAws_json1_1OpsItemNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1UpdateOpsMetadataCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UpdateOpsMetadataCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UpdateOpsMetadataResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1UpdateOpsMetadataCommand = deserializeAws_json1_1UpdateOpsMetadataCommand; +const deserializeAws_json1_1UpdateOpsMetadataCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "OpsMetadataInvalidArgumentException": + case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": + throw await deserializeAws_json1_1OpsMetadataInvalidArgumentExceptionResponse(parsedOutput, context); + case "OpsMetadataKeyLimitExceededException": + case "com.amazonaws.ssm#OpsMetadataKeyLimitExceededException": + throw await deserializeAws_json1_1OpsMetadataKeyLimitExceededExceptionResponse(parsedOutput, context); + case "OpsMetadataNotFoundException": + case "com.amazonaws.ssm#OpsMetadataNotFoundException": + throw await deserializeAws_json1_1OpsMetadataNotFoundExceptionResponse(parsedOutput, context); + case "OpsMetadataTooManyUpdatesException": + case "com.amazonaws.ssm#OpsMetadataTooManyUpdatesException": + throw await deserializeAws_json1_1OpsMetadataTooManyUpdatesExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1UpdatePatchBaselineCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UpdatePatchBaselineCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UpdatePatchBaselineResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1UpdatePatchBaselineCommand = deserializeAws_json1_1UpdatePatchBaselineCommand; +const deserializeAws_json1_1UpdatePatchBaselineCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "DoesNotExistException": + case "com.amazonaws.ssm#DoesNotExistException": + throw await deserializeAws_json1_1DoesNotExistExceptionResponse(parsedOutput, context); + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1UpdateResourceDataSyncCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UpdateResourceDataSyncCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UpdateResourceDataSyncResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1UpdateResourceDataSyncCommand = deserializeAws_json1_1UpdateResourceDataSyncCommand; +const deserializeAws_json1_1UpdateResourceDataSyncCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "ResourceDataSyncConflictException": + case "com.amazonaws.ssm#ResourceDataSyncConflictException": + throw await deserializeAws_json1_1ResourceDataSyncConflictExceptionResponse(parsedOutput, context); + case "ResourceDataSyncInvalidConfigurationException": + case "com.amazonaws.ssm#ResourceDataSyncInvalidConfigurationException": + throw await deserializeAws_json1_1ResourceDataSyncInvalidConfigurationExceptionResponse(parsedOutput, context); + case "ResourceDataSyncNotFoundException": + case "com.amazonaws.ssm#ResourceDataSyncNotFoundException": + throw await deserializeAws_json1_1ResourceDataSyncNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1UpdateServiceSettingCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_1UpdateServiceSettingCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_1UpdateServiceSettingResult(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_json1_1UpdateServiceSettingCommand = deserializeAws_json1_1UpdateServiceSettingCommand; +const deserializeAws_json1_1UpdateServiceSettingCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InternalServerError": + case "com.amazonaws.ssm#InternalServerError": + throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context); + case "ServiceSettingNotFound": + case "com.amazonaws.ssm#ServiceSettingNotFound": + throw await deserializeAws_json1_1ServiceSettingNotFoundResponse(parsedOutput, context); + case "TooManyUpdates": + case "com.amazonaws.ssm#TooManyUpdates": + throw await deserializeAws_json1_1TooManyUpdatesResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSMServiceException_1.SSMServiceException, + errorCode, + }); + } +}; +const deserializeAws_json1_1AlreadyExistsExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1AlreadyExistsException(body, context); + const exception = new models_0_1.AlreadyExistsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1AssociatedInstancesResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1AssociatedInstances(body, context); + const exception = new models_0_1.AssociatedInstances({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1AssociationAlreadyExistsResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1AssociationAlreadyExists(body, context); + const exception = new models_0_1.AssociationAlreadyExists({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1AssociationDoesNotExistResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1AssociationDoesNotExist(body, context); + const exception = new models_0_1.AssociationDoesNotExist({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1AssociationExecutionDoesNotExistResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1AssociationExecutionDoesNotExist(body, context); + const exception = new models_0_1.AssociationExecutionDoesNotExist({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1AssociationLimitExceededResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1AssociationLimitExceeded(body, context); + const exception = new models_0_1.AssociationLimitExceeded({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1AssociationVersionLimitExceededResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1AssociationVersionLimitExceeded(body, context); + const exception = new models_1_1.AssociationVersionLimitExceeded({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1AutomationDefinitionNotApprovedExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1AutomationDefinitionNotApprovedException(body, context); + const exception = new models_1_1.AutomationDefinitionNotApprovedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1AutomationDefinitionNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1AutomationDefinitionNotFoundException(body, context); + const exception = new models_1_1.AutomationDefinitionNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1AutomationDefinitionVersionNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1AutomationDefinitionVersionNotFoundException(body, context); + const exception = new models_1_1.AutomationDefinitionVersionNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1AutomationExecutionLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1AutomationExecutionLimitExceededException(body, context); + const exception = new models_1_1.AutomationExecutionLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1AutomationExecutionNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1AutomationExecutionNotFoundException(body, context); + const exception = new models_0_1.AutomationExecutionNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1AutomationStepNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1AutomationStepNotFoundException(body, context); + const exception = new models_1_1.AutomationStepNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1ComplianceTypeCountLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ComplianceTypeCountLimitExceededException(body, context); + const exception = new models_1_1.ComplianceTypeCountLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1CustomSchemaCountLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1CustomSchemaCountLimitExceededException(body, context); + const exception = new models_1_1.CustomSchemaCountLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1DocumentAlreadyExistsResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DocumentAlreadyExists(body, context); + const exception = new models_0_1.DocumentAlreadyExists({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1DocumentLimitExceededResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DocumentLimitExceeded(body, context); + const exception = new models_0_1.DocumentLimitExceeded({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1DocumentPermissionLimitResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DocumentPermissionLimit(body, context); + const exception = new models_1_1.DocumentPermissionLimit({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1DocumentVersionLimitExceededResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DocumentVersionLimitExceeded(body, context); + const exception = new models_1_1.DocumentVersionLimitExceeded({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1DoesNotExistExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DoesNotExistException(body, context); + const exception = new models_0_1.DoesNotExistException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1DuplicateDocumentContentResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DuplicateDocumentContent(body, context); + const exception = new models_1_1.DuplicateDocumentContent({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1DuplicateDocumentVersionNameResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DuplicateDocumentVersionName(body, context); + const exception = new models_1_1.DuplicateDocumentVersionName({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1DuplicateInstanceIdResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1DuplicateInstanceId(body, context); + const exception = new models_0_1.DuplicateInstanceId({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1FeatureNotAvailableExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1FeatureNotAvailableException(body, context); + const exception = new models_1_1.FeatureNotAvailableException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1HierarchyLevelLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1HierarchyLevelLimitExceededException(body, context); + const exception = new models_1_1.HierarchyLevelLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1HierarchyTypeMismatchExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1HierarchyTypeMismatchException(body, context); + const exception = new models_1_1.HierarchyTypeMismatchException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1IdempotentParameterMismatchResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1IdempotentParameterMismatch(body, context); + const exception = new models_0_1.IdempotentParameterMismatch({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1IncompatiblePolicyExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1IncompatiblePolicyException(body, context); + const exception = new models_1_1.IncompatiblePolicyException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InternalServerErrorResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InternalServerError(body, context); + const exception = new models_0_1.InternalServerError({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidActivationResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidActivation(body, context); + const exception = new models_0_1.InvalidActivation({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidActivationIdResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidActivationId(body, context); + const exception = new models_0_1.InvalidActivationId({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidAggregatorExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidAggregatorException(body, context); + const exception = new models_1_1.InvalidAggregatorException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidAllowedPatternExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidAllowedPatternException(body, context); + const exception = new models_1_1.InvalidAllowedPatternException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidAssociationResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidAssociation(body, context); + const exception = new models_1_1.InvalidAssociation({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidAssociationVersionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidAssociationVersion(body, context); + const exception = new models_0_1.InvalidAssociationVersion({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidAutomationExecutionParametersExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidAutomationExecutionParametersException(body, context); + const exception = new models_1_1.InvalidAutomationExecutionParametersException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidAutomationSignalExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidAutomationSignalException(body, context); + const exception = new models_1_1.InvalidAutomationSignalException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidAutomationStatusUpdateExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidAutomationStatusUpdateException(body, context); + const exception = new models_1_1.InvalidAutomationStatusUpdateException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidCommandIdResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidCommandId(body, context); + const exception = new models_0_1.InvalidCommandId({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidDeleteInventoryParametersExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeleteInventoryParametersException(body, context); + const exception = new models_0_1.InvalidDeleteInventoryParametersException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidDeletionIdExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDeletionIdException(body, context); + const exception = new models_0_1.InvalidDeletionIdException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidDocumentResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDocument(body, context); + const exception = new models_0_1.InvalidDocument({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidDocumentContentResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDocumentContent(body, context); + const exception = new models_0_1.InvalidDocumentContent({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidDocumentOperationResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDocumentOperation(body, context); + const exception = new models_0_1.InvalidDocumentOperation({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidDocumentSchemaVersionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDocumentSchemaVersion(body, context); + const exception = new models_0_1.InvalidDocumentSchemaVersion({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidDocumentTypeResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDocumentType(body, context); + const exception = new models_1_1.InvalidDocumentType({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidDocumentVersionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidDocumentVersion(body, context); + const exception = new models_0_1.InvalidDocumentVersion({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidFilterResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidFilter(body, context); + const exception = new models_0_1.InvalidFilter({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidFilterKeyResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidFilterKey(body, context); + const exception = new models_0_1.InvalidFilterKey({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidFilterOptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidFilterOption(body, context); + const exception = new models_1_1.InvalidFilterOption({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidFilterValueResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidFilterValue(body, context); + const exception = new models_0_1.InvalidFilterValue({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidInstanceIdResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidInstanceId(body, context); + const exception = new models_0_1.InvalidInstanceId({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidInstanceInformationFilterValueResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidInstanceInformationFilterValue(body, context); + const exception = new models_0_1.InvalidInstanceInformationFilterValue({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidInventoryGroupExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidInventoryGroupException(body, context); + const exception = new models_1_1.InvalidInventoryGroupException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidInventoryItemContextExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidInventoryItemContextException(body, context); + const exception = new models_1_1.InvalidInventoryItemContextException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidInventoryRequestExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidInventoryRequestException(body, context); + const exception = new models_0_1.InvalidInventoryRequestException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidItemContentExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidItemContentException(body, context); + const exception = new models_1_1.InvalidItemContentException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidKeyIdResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidKeyId(body, context); + const exception = new models_1_1.InvalidKeyId({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidNextTokenResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidNextToken(body, context); + const exception = new models_0_1.InvalidNextToken({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidNotificationConfigResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidNotificationConfig(body, context); + const exception = new models_1_1.InvalidNotificationConfig({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidOptionExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidOptionException(body, context); + const exception = new models_0_1.InvalidOptionException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidOutputFolderResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidOutputFolder(body, context); + const exception = new models_1_1.InvalidOutputFolder({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidOutputLocationResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidOutputLocation(body, context); + const exception = new models_0_1.InvalidOutputLocation({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidParametersResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidParameters(body, context); + const exception = new models_0_1.InvalidParameters({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidPermissionTypeResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidPermissionType(body, context); + const exception = new models_0_1.InvalidPermissionType({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidPluginNameResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidPluginName(body, context); + const exception = new models_1_1.InvalidPluginName({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidPolicyAttributeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidPolicyAttributeException(body, context); + const exception = new models_1_1.InvalidPolicyAttributeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidPolicyTypeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidPolicyTypeException(body, context); + const exception = new models_1_1.InvalidPolicyTypeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidResourceIdResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidResourceId(body, context); + const exception = new models_0_1.InvalidResourceId({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidResourceTypeResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidResourceType(body, context); + const exception = new models_0_1.InvalidResourceType({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidResultAttributeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidResultAttributeException(body, context); + const exception = new models_1_1.InvalidResultAttributeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidRoleResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidRole(body, context); + const exception = new models_1_1.InvalidRole({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidScheduleResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidSchedule(body, context); + const exception = new models_0_1.InvalidSchedule({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidTargetResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTarget(body, context); + const exception = new models_0_1.InvalidTarget({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidTargetMapsResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTargetMaps(body, context); + const exception = new models_0_1.InvalidTargetMaps({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidTypeNameExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidTypeNameException(body, context); + const exception = new models_0_1.InvalidTypeNameException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvalidUpdateResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvalidUpdate(body, context); + const exception = new models_1_1.InvalidUpdate({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1InvocationDoesNotExistResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1InvocationDoesNotExist(body, context); + const exception = new models_1_1.InvocationDoesNotExist({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1ItemContentMismatchExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ItemContentMismatchException(body, context); + const exception = new models_1_1.ItemContentMismatchException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1ItemSizeLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ItemSizeLimitExceededException(body, context); + const exception = new models_1_1.ItemSizeLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1MaxDocumentSizeExceededResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1MaxDocumentSizeExceeded(body, context); + const exception = new models_0_1.MaxDocumentSizeExceeded({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1OpsItemAlreadyExistsExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1OpsItemAlreadyExistsException(body, context); + const exception = new models_0_1.OpsItemAlreadyExistsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1OpsItemInvalidParameterExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1OpsItemInvalidParameterException(body, context); + const exception = new models_0_1.OpsItemInvalidParameterException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1OpsItemLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1OpsItemLimitExceededException(body, context); + const exception = new models_0_1.OpsItemLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1OpsItemNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1OpsItemNotFoundException(body, context); + const exception = new models_0_1.OpsItemNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1OpsItemRelatedItemAlreadyExistsExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1OpsItemRelatedItemAlreadyExistsException(body, context); + const exception = new models_0_1.OpsItemRelatedItemAlreadyExistsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1OpsItemRelatedItemAssociationNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1OpsItemRelatedItemAssociationNotFoundException(body, context); + const exception = new models_1_1.OpsItemRelatedItemAssociationNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1OpsMetadataAlreadyExistsExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1OpsMetadataAlreadyExistsException(body, context); + const exception = new models_0_1.OpsMetadataAlreadyExistsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1OpsMetadataInvalidArgumentExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1OpsMetadataInvalidArgumentException(body, context); + const exception = new models_0_1.OpsMetadataInvalidArgumentException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1OpsMetadataKeyLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1OpsMetadataKeyLimitExceededException(body, context); + const exception = new models_2_1.OpsMetadataKeyLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1OpsMetadataLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1OpsMetadataLimitExceededException(body, context); + const exception = new models_0_1.OpsMetadataLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1OpsMetadataNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1OpsMetadataNotFoundException(body, context); + const exception = new models_0_1.OpsMetadataNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1OpsMetadataTooManyUpdatesExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1OpsMetadataTooManyUpdatesException(body, context); + const exception = new models_0_1.OpsMetadataTooManyUpdatesException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1ParameterAlreadyExistsResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ParameterAlreadyExists(body, context); + const exception = new models_1_1.ParameterAlreadyExists({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1ParameterLimitExceededResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ParameterLimitExceeded(body, context); + const exception = new models_1_1.ParameterLimitExceeded({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1ParameterMaxVersionLimitExceededResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ParameterMaxVersionLimitExceeded(body, context); + const exception = new models_1_1.ParameterMaxVersionLimitExceeded({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1ParameterNotFoundResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ParameterNotFound(body, context); + const exception = new models_0_1.ParameterNotFound({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1ParameterPatternMismatchExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ParameterPatternMismatchException(body, context); + const exception = new models_1_1.ParameterPatternMismatchException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1ParameterVersionLabelLimitExceededResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ParameterVersionLabelLimitExceeded(body, context); + const exception = new models_1_1.ParameterVersionLabelLimitExceeded({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1ParameterVersionNotFoundResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ParameterVersionNotFound(body, context); + const exception = new models_1_1.ParameterVersionNotFound({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1PoliciesLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1PoliciesLimitExceededException(body, context); + const exception = new models_1_1.PoliciesLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1ResourceDataSyncAlreadyExistsExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ResourceDataSyncAlreadyExistsException(body, context); + const exception = new models_0_1.ResourceDataSyncAlreadyExistsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1ResourceDataSyncConflictExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ResourceDataSyncConflictException(body, context); + const exception = new models_2_1.ResourceDataSyncConflictException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1ResourceDataSyncCountExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ResourceDataSyncCountExceededException(body, context); + const exception = new models_0_1.ResourceDataSyncCountExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1ResourceDataSyncInvalidConfigurationExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ResourceDataSyncInvalidConfigurationException(body, context); + const exception = new models_0_1.ResourceDataSyncInvalidConfigurationException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1ResourceDataSyncNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ResourceDataSyncNotFoundException(body, context); + const exception = new models_0_1.ResourceDataSyncNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1ResourceInUseExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ResourceInUseException(body, context); + const exception = new models_0_1.ResourceInUseException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1ResourceLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ResourceLimitExceededException(body, context); + const exception = new models_0_1.ResourceLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1ServiceSettingNotFoundResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1ServiceSettingNotFound(body, context); + const exception = new models_1_1.ServiceSettingNotFound({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1StatusUnchangedResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1StatusUnchanged(body, context); + const exception = new models_1_1.StatusUnchanged({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1SubTypeCountLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1SubTypeCountLimitExceededException(body, context); + const exception = new models_1_1.SubTypeCountLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1TargetInUseExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1TargetInUseException(body, context); + const exception = new models_0_1.TargetInUseException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1TargetNotConnectedResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1TargetNotConnected(body, context); + const exception = new models_1_1.TargetNotConnected({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1TooManyTagsErrorResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1TooManyTagsError(body, context); + const exception = new models_0_1.TooManyTagsError({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1TooManyUpdatesResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1TooManyUpdates(body, context); + const exception = new models_0_1.TooManyUpdates({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1TotalSizeLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1TotalSizeLimitExceededException(body, context); + const exception = new models_1_1.TotalSizeLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1UnsupportedCalendarExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1UnsupportedCalendarException(body, context); + const exception = new models_1_1.UnsupportedCalendarException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1UnsupportedFeatureRequiredExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1UnsupportedFeatureRequiredException(body, context); + const exception = new models_1_1.UnsupportedFeatureRequiredException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1UnsupportedInventoryItemContextExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1UnsupportedInventoryItemContextException(body, context); + const exception = new models_1_1.UnsupportedInventoryItemContextException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1UnsupportedInventorySchemaVersionExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1UnsupportedInventorySchemaVersionException(body, context); + const exception = new models_1_1.UnsupportedInventorySchemaVersionException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1UnsupportedOperatingSystemResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1UnsupportedOperatingSystem(body, context); + const exception = new models_0_1.UnsupportedOperatingSystem({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1UnsupportedParameterTypeResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1UnsupportedParameterType(body, context); + const exception = new models_1_1.UnsupportedParameterType({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_json1_1UnsupportedPlatformTypeResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_1UnsupportedPlatformType(body, context); + const exception = new models_0_1.UnsupportedPlatformType({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const serializeAws_json1_1AccountIdList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1Accounts = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1AddTagsToResourceRequest = (input, context) => { + return { + ...(input.ResourceId != null && { ResourceId: input.ResourceId }), + ...(input.ResourceType != null && { ResourceType: input.ResourceType }), + ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), + }; +}; +const serializeAws_json1_1AssociateOpsItemRelatedItemRequest = (input, context) => { + return { + ...(input.AssociationType != null && { AssociationType: input.AssociationType }), + ...(input.OpsItemId != null && { OpsItemId: input.OpsItemId }), + ...(input.ResourceType != null && { ResourceType: input.ResourceType }), + ...(input.ResourceUri != null && { ResourceUri: input.ResourceUri }), + }; +}; +const serializeAws_json1_1AssociationExecutionFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Type != null && { Type: input.Type }), + ...(input.Value != null && { Value: input.Value }), + }; +}; +const serializeAws_json1_1AssociationExecutionFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1AssociationExecutionFilter(entry, context); + }); +}; +const serializeAws_json1_1AssociationExecutionTargetsFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Value != null && { Value: input.Value }), + }; +}; +const serializeAws_json1_1AssociationExecutionTargetsFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1AssociationExecutionTargetsFilter(entry, context); + }); +}; +const serializeAws_json1_1AssociationFilter = (input, context) => { + return { + ...(input.key != null && { key: input.key }), + ...(input.value != null && { value: input.value }), + }; +}; +const serializeAws_json1_1AssociationFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1AssociationFilter(entry, context); + }); +}; +const serializeAws_json1_1AssociationIdList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1AssociationStatus = (input, context) => { + return { + ...(input.AdditionalInfo != null && { AdditionalInfo: input.AdditionalInfo }), + ...(input.Date != null && { Date: Math.round(input.Date.getTime() / 1000) }), + ...(input.Message != null && { Message: input.Message }), + ...(input.Name != null && { Name: input.Name }), + }; +}; +const serializeAws_json1_1AttachmentsSource = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Name != null && { Name: input.Name }), + ...(input.Values != null && { Values: serializeAws_json1_1AttachmentsSourceValues(input.Values, context) }), + }; +}; +const serializeAws_json1_1AttachmentsSourceList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1AttachmentsSource(entry, context); + }); +}; +const serializeAws_json1_1AttachmentsSourceValues = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1AutomationExecutionFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Values != null && { + Values: serializeAws_json1_1AutomationExecutionFilterValueList(input.Values, context), + }), + }; +}; +const serializeAws_json1_1AutomationExecutionFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1AutomationExecutionFilter(entry, context); + }); +}; +const serializeAws_json1_1AutomationExecutionFilterValueList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1AutomationParameterMap = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_1AutomationParameterValueList(value, context), + }; + }, {}); +}; +const serializeAws_json1_1AutomationParameterValueList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1BaselineOverride = (input, context) => { + return { + ...(input.ApprovalRules != null && { + ApprovalRules: serializeAws_json1_1PatchRuleGroup(input.ApprovalRules, context), + }), + ...(input.ApprovedPatches != null && { + ApprovedPatches: serializeAws_json1_1PatchIdList(input.ApprovedPatches, context), + }), + ...(input.ApprovedPatchesComplianceLevel != null && { + ApprovedPatchesComplianceLevel: input.ApprovedPatchesComplianceLevel, + }), + ...(input.ApprovedPatchesEnableNonSecurity != null && { + ApprovedPatchesEnableNonSecurity: input.ApprovedPatchesEnableNonSecurity, + }), + ...(input.GlobalFilters != null && { + GlobalFilters: serializeAws_json1_1PatchFilterGroup(input.GlobalFilters, context), + }), + ...(input.OperatingSystem != null && { OperatingSystem: input.OperatingSystem }), + ...(input.RejectedPatches != null && { + RejectedPatches: serializeAws_json1_1PatchIdList(input.RejectedPatches, context), + }), + ...(input.RejectedPatchesAction != null && { RejectedPatchesAction: input.RejectedPatchesAction }), + ...(input.Sources != null && { Sources: serializeAws_json1_1PatchSourceList(input.Sources, context) }), + }; +}; +const serializeAws_json1_1CalendarNameOrARNList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1CancelCommandRequest = (input, context) => { + return { + ...(input.CommandId != null && { CommandId: input.CommandId }), + ...(input.InstanceIds != null && { InstanceIds: serializeAws_json1_1InstanceIdList(input.InstanceIds, context) }), + }; +}; +const serializeAws_json1_1CancelMaintenanceWindowExecutionRequest = (input, context) => { + return { + ...(input.WindowExecutionId != null && { WindowExecutionId: input.WindowExecutionId }), + }; +}; +const serializeAws_json1_1CloudWatchOutputConfig = (input, context) => { + return { + ...(input.CloudWatchLogGroupName != null && { CloudWatchLogGroupName: input.CloudWatchLogGroupName }), + ...(input.CloudWatchOutputEnabled != null && { CloudWatchOutputEnabled: input.CloudWatchOutputEnabled }), + }; +}; +const serializeAws_json1_1CommandFilter = (input, context) => { + return { + ...(input.key != null && { key: input.key }), + ...(input.value != null && { value: input.value }), + }; +}; +const serializeAws_json1_1CommandFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1CommandFilter(entry, context); + }); +}; +const serializeAws_json1_1ComplianceExecutionSummary = (input, context) => { + return { + ...(input.ExecutionId != null && { ExecutionId: input.ExecutionId }), + ...(input.ExecutionTime != null && { ExecutionTime: Math.round(input.ExecutionTime.getTime() / 1000) }), + ...(input.ExecutionType != null && { ExecutionType: input.ExecutionType }), + }; +}; +const serializeAws_json1_1ComplianceItemDetails = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: value, + }; + }, {}); +}; +const serializeAws_json1_1ComplianceItemEntry = (input, context) => { + return { + ...(input.Details != null && { Details: serializeAws_json1_1ComplianceItemDetails(input.Details, context) }), + ...(input.Id != null && { Id: input.Id }), + ...(input.Severity != null && { Severity: input.Severity }), + ...(input.Status != null && { Status: input.Status }), + ...(input.Title != null && { Title: input.Title }), + }; +}; +const serializeAws_json1_1ComplianceItemEntryList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1ComplianceItemEntry(entry, context); + }); +}; +const serializeAws_json1_1ComplianceResourceIdList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1ComplianceResourceTypeList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1ComplianceStringFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Type != null && { Type: input.Type }), + ...(input.Values != null && { Values: serializeAws_json1_1ComplianceStringFilterValueList(input.Values, context) }), + }; +}; +const serializeAws_json1_1ComplianceStringFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1ComplianceStringFilter(entry, context); + }); +}; +const serializeAws_json1_1ComplianceStringFilterValueList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1CreateActivationRequest = (input, context) => { + return { + ...(input.DefaultInstanceName != null && { DefaultInstanceName: input.DefaultInstanceName }), + ...(input.Description != null && { Description: input.Description }), + ...(input.ExpirationDate != null && { ExpirationDate: Math.round(input.ExpirationDate.getTime() / 1000) }), + ...(input.IamRole != null && { IamRole: input.IamRole }), + ...(input.RegistrationLimit != null && { RegistrationLimit: input.RegistrationLimit }), + ...(input.RegistrationMetadata != null && { + RegistrationMetadata: serializeAws_json1_1RegistrationMetadataList(input.RegistrationMetadata, context), + }), + ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), + }; +}; +const serializeAws_json1_1CreateAssociationBatchRequest = (input, context) => { + return { + ...(input.Entries != null && { + Entries: serializeAws_json1_1CreateAssociationBatchRequestEntries(input.Entries, context), + }), + }; +}; +const serializeAws_json1_1CreateAssociationBatchRequestEntries = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1CreateAssociationBatchRequestEntry(entry, context); + }); +}; +const serializeAws_json1_1CreateAssociationBatchRequestEntry = (input, context) => { + return { + ...(input.ApplyOnlyAtCronInterval != null && { ApplyOnlyAtCronInterval: input.ApplyOnlyAtCronInterval }), + ...(input.AssociationName != null && { AssociationName: input.AssociationName }), + ...(input.AutomationTargetParameterName != null && { + AutomationTargetParameterName: input.AutomationTargetParameterName, + }), + ...(input.CalendarNames != null && { + CalendarNames: serializeAws_json1_1CalendarNameOrARNList(input.CalendarNames, context), + }), + ...(input.ComplianceSeverity != null && { ComplianceSeverity: input.ComplianceSeverity }), + ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), + ...(input.InstanceId != null && { InstanceId: input.InstanceId }), + ...(input.MaxConcurrency != null && { MaxConcurrency: input.MaxConcurrency }), + ...(input.MaxErrors != null && { MaxErrors: input.MaxErrors }), + ...(input.Name != null && { Name: input.Name }), + ...(input.OutputLocation != null && { + OutputLocation: serializeAws_json1_1InstanceAssociationOutputLocation(input.OutputLocation, context), + }), + ...(input.Parameters != null && { Parameters: serializeAws_json1_1Parameters(input.Parameters, context) }), + ...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }), + ...(input.ScheduleOffset != null && { ScheduleOffset: input.ScheduleOffset }), + ...(input.SyncCompliance != null && { SyncCompliance: input.SyncCompliance }), + ...(input.TargetLocations != null && { + TargetLocations: serializeAws_json1_1TargetLocations(input.TargetLocations, context), + }), + ...(input.TargetMaps != null && { TargetMaps: serializeAws_json1_1TargetMaps(input.TargetMaps, context) }), + ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), + }; +}; +const serializeAws_json1_1CreateAssociationRequest = (input, context) => { + return { + ...(input.ApplyOnlyAtCronInterval != null && { ApplyOnlyAtCronInterval: input.ApplyOnlyAtCronInterval }), + ...(input.AssociationName != null && { AssociationName: input.AssociationName }), + ...(input.AutomationTargetParameterName != null && { + AutomationTargetParameterName: input.AutomationTargetParameterName, + }), + ...(input.CalendarNames != null && { + CalendarNames: serializeAws_json1_1CalendarNameOrARNList(input.CalendarNames, context), + }), + ...(input.ComplianceSeverity != null && { ComplianceSeverity: input.ComplianceSeverity }), + ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), + ...(input.InstanceId != null && { InstanceId: input.InstanceId }), + ...(input.MaxConcurrency != null && { MaxConcurrency: input.MaxConcurrency }), + ...(input.MaxErrors != null && { MaxErrors: input.MaxErrors }), + ...(input.Name != null && { Name: input.Name }), + ...(input.OutputLocation != null && { + OutputLocation: serializeAws_json1_1InstanceAssociationOutputLocation(input.OutputLocation, context), + }), + ...(input.Parameters != null && { Parameters: serializeAws_json1_1Parameters(input.Parameters, context) }), + ...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }), + ...(input.ScheduleOffset != null && { ScheduleOffset: input.ScheduleOffset }), + ...(input.SyncCompliance != null && { SyncCompliance: input.SyncCompliance }), + ...(input.TargetLocations != null && { + TargetLocations: serializeAws_json1_1TargetLocations(input.TargetLocations, context), + }), + ...(input.TargetMaps != null && { TargetMaps: serializeAws_json1_1TargetMaps(input.TargetMaps, context) }), + ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), + }; +}; +const serializeAws_json1_1CreateDocumentRequest = (input, context) => { + return { + ...(input.Attachments != null && { + Attachments: serializeAws_json1_1AttachmentsSourceList(input.Attachments, context), + }), + ...(input.Content != null && { Content: input.Content }), + ...(input.DisplayName != null && { DisplayName: input.DisplayName }), + ...(input.DocumentFormat != null && { DocumentFormat: input.DocumentFormat }), + ...(input.DocumentType != null && { DocumentType: input.DocumentType }), + ...(input.Name != null && { Name: input.Name }), + ...(input.Requires != null && { Requires: serializeAws_json1_1DocumentRequiresList(input.Requires, context) }), + ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), + ...(input.TargetType != null && { TargetType: input.TargetType }), + ...(input.VersionName != null && { VersionName: input.VersionName }), + }; +}; +const serializeAws_json1_1CreateMaintenanceWindowRequest = (input, context) => { + var _a; + return { + ...(input.AllowUnassociatedTargets != null && { AllowUnassociatedTargets: input.AllowUnassociatedTargets }), + ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), + ...(input.Cutoff != null && { Cutoff: input.Cutoff }), + ...(input.Description != null && { Description: input.Description }), + ...(input.Duration != null && { Duration: input.Duration }), + ...(input.EndDate != null && { EndDate: input.EndDate }), + ...(input.Name != null && { Name: input.Name }), + ...(input.Schedule != null && { Schedule: input.Schedule }), + ...(input.ScheduleOffset != null && { ScheduleOffset: input.ScheduleOffset }), + ...(input.ScheduleTimezone != null && { ScheduleTimezone: input.ScheduleTimezone }), + ...(input.StartDate != null && { StartDate: input.StartDate }), + ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), + }; +}; +const serializeAws_json1_1CreateOpsItemRequest = (input, context) => { + return { + ...(input.ActualEndTime != null && { ActualEndTime: Math.round(input.ActualEndTime.getTime() / 1000) }), + ...(input.ActualStartTime != null && { ActualStartTime: Math.round(input.ActualStartTime.getTime() / 1000) }), + ...(input.Category != null && { Category: input.Category }), + ...(input.Description != null && { Description: input.Description }), + ...(input.Notifications != null && { + Notifications: serializeAws_json1_1OpsItemNotifications(input.Notifications, context), + }), + ...(input.OperationalData != null && { + OperationalData: serializeAws_json1_1OpsItemOperationalData(input.OperationalData, context), + }), + ...(input.OpsItemType != null && { OpsItemType: input.OpsItemType }), + ...(input.PlannedEndTime != null && { PlannedEndTime: Math.round(input.PlannedEndTime.getTime() / 1000) }), + ...(input.PlannedStartTime != null && { PlannedStartTime: Math.round(input.PlannedStartTime.getTime() / 1000) }), + ...(input.Priority != null && { Priority: input.Priority }), + ...(input.RelatedOpsItems != null && { + RelatedOpsItems: serializeAws_json1_1RelatedOpsItems(input.RelatedOpsItems, context), + }), + ...(input.Severity != null && { Severity: input.Severity }), + ...(input.Source != null && { Source: input.Source }), + ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), + ...(input.Title != null && { Title: input.Title }), + }; +}; +const serializeAws_json1_1CreateOpsMetadataRequest = (input, context) => { + return { + ...(input.Metadata != null && { Metadata: serializeAws_json1_1MetadataMap(input.Metadata, context) }), + ...(input.ResourceId != null && { ResourceId: input.ResourceId }), + ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), + }; +}; +const serializeAws_json1_1CreatePatchBaselineRequest = (input, context) => { + var _a; + return { + ...(input.ApprovalRules != null && { + ApprovalRules: serializeAws_json1_1PatchRuleGroup(input.ApprovalRules, context), + }), + ...(input.ApprovedPatches != null && { + ApprovedPatches: serializeAws_json1_1PatchIdList(input.ApprovedPatches, context), + }), + ...(input.ApprovedPatchesComplianceLevel != null && { + ApprovedPatchesComplianceLevel: input.ApprovedPatchesComplianceLevel, + }), + ...(input.ApprovedPatchesEnableNonSecurity != null && { + ApprovedPatchesEnableNonSecurity: input.ApprovedPatchesEnableNonSecurity, + }), + ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), + ...(input.Description != null && { Description: input.Description }), + ...(input.GlobalFilters != null && { + GlobalFilters: serializeAws_json1_1PatchFilterGroup(input.GlobalFilters, context), + }), + ...(input.Name != null && { Name: input.Name }), + ...(input.OperatingSystem != null && { OperatingSystem: input.OperatingSystem }), + ...(input.RejectedPatches != null && { + RejectedPatches: serializeAws_json1_1PatchIdList(input.RejectedPatches, context), + }), + ...(input.RejectedPatchesAction != null && { RejectedPatchesAction: input.RejectedPatchesAction }), + ...(input.Sources != null && { Sources: serializeAws_json1_1PatchSourceList(input.Sources, context) }), + ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), + }; +}; +const serializeAws_json1_1CreateResourceDataSyncRequest = (input, context) => { + return { + ...(input.S3Destination != null && { + S3Destination: serializeAws_json1_1ResourceDataSyncS3Destination(input.S3Destination, context), + }), + ...(input.SyncName != null && { SyncName: input.SyncName }), + ...(input.SyncSource != null && { + SyncSource: serializeAws_json1_1ResourceDataSyncSource(input.SyncSource, context), + }), + ...(input.SyncType != null && { SyncType: input.SyncType }), + }; +}; +const serializeAws_json1_1DeleteActivationRequest = (input, context) => { + return { + ...(input.ActivationId != null && { ActivationId: input.ActivationId }), + }; +}; +const serializeAws_json1_1DeleteAssociationRequest = (input, context) => { + return { + ...(input.AssociationId != null && { AssociationId: input.AssociationId }), + ...(input.InstanceId != null && { InstanceId: input.InstanceId }), + ...(input.Name != null && { Name: input.Name }), + }; +}; +const serializeAws_json1_1DeleteDocumentRequest = (input, context) => { + return { + ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), + ...(input.Force != null && { Force: input.Force }), + ...(input.Name != null && { Name: input.Name }), + ...(input.VersionName != null && { VersionName: input.VersionName }), + }; +}; +const serializeAws_json1_1DeleteInventoryRequest = (input, context) => { + var _a; + return { + ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), + ...(input.DryRun != null && { DryRun: input.DryRun }), + ...(input.SchemaDeleteOption != null && { SchemaDeleteOption: input.SchemaDeleteOption }), + ...(input.TypeName != null && { TypeName: input.TypeName }), + }; +}; +const serializeAws_json1_1DeleteMaintenanceWindowRequest = (input, context) => { + return { + ...(input.WindowId != null && { WindowId: input.WindowId }), + }; +}; +const serializeAws_json1_1DeleteOpsMetadataRequest = (input, context) => { + return { + ...(input.OpsMetadataArn != null && { OpsMetadataArn: input.OpsMetadataArn }), + }; +}; +const serializeAws_json1_1DeleteParameterRequest = (input, context) => { + return { + ...(input.Name != null && { Name: input.Name }), + }; +}; +const serializeAws_json1_1DeleteParametersRequest = (input, context) => { + return { + ...(input.Names != null && { Names: serializeAws_json1_1ParameterNameList(input.Names, context) }), + }; +}; +const serializeAws_json1_1DeletePatchBaselineRequest = (input, context) => { + return { + ...(input.BaselineId != null && { BaselineId: input.BaselineId }), + }; +}; +const serializeAws_json1_1DeleteResourceDataSyncRequest = (input, context) => { + return { + ...(input.SyncName != null && { SyncName: input.SyncName }), + ...(input.SyncType != null && { SyncType: input.SyncType }), + }; +}; +const serializeAws_json1_1DeregisterManagedInstanceRequest = (input, context) => { + return { + ...(input.InstanceId != null && { InstanceId: input.InstanceId }), + }; +}; +const serializeAws_json1_1DeregisterPatchBaselineForPatchGroupRequest = (input, context) => { + return { + ...(input.BaselineId != null && { BaselineId: input.BaselineId }), + ...(input.PatchGroup != null && { PatchGroup: input.PatchGroup }), + }; +}; +const serializeAws_json1_1DeregisterTargetFromMaintenanceWindowRequest = (input, context) => { + return { + ...(input.Safe != null && { Safe: input.Safe }), + ...(input.WindowId != null && { WindowId: input.WindowId }), + ...(input.WindowTargetId != null && { WindowTargetId: input.WindowTargetId }), + }; +}; +const serializeAws_json1_1DeregisterTaskFromMaintenanceWindowRequest = (input, context) => { + return { + ...(input.WindowId != null && { WindowId: input.WindowId }), + ...(input.WindowTaskId != null && { WindowTaskId: input.WindowTaskId }), + }; +}; +const serializeAws_json1_1DescribeActivationsFilter = (input, context) => { + return { + ...(input.FilterKey != null && { FilterKey: input.FilterKey }), + ...(input.FilterValues != null && { FilterValues: serializeAws_json1_1StringList(input.FilterValues, context) }), + }; +}; +const serializeAws_json1_1DescribeActivationsFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1DescribeActivationsFilter(entry, context); + }); +}; +const serializeAws_json1_1DescribeActivationsRequest = (input, context) => { + return { + ...(input.Filters != null && { + Filters: serializeAws_json1_1DescribeActivationsFilterList(input.Filters, context), + }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1DescribeAssociationExecutionsRequest = (input, context) => { + return { + ...(input.AssociationId != null && { AssociationId: input.AssociationId }), + ...(input.Filters != null && { + Filters: serializeAws_json1_1AssociationExecutionFilterList(input.Filters, context), + }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1DescribeAssociationExecutionTargetsRequest = (input, context) => { + return { + ...(input.AssociationId != null && { AssociationId: input.AssociationId }), + ...(input.ExecutionId != null && { ExecutionId: input.ExecutionId }), + ...(input.Filters != null && { + Filters: serializeAws_json1_1AssociationExecutionTargetsFilterList(input.Filters, context), + }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1DescribeAssociationRequest = (input, context) => { + return { + ...(input.AssociationId != null && { AssociationId: input.AssociationId }), + ...(input.AssociationVersion != null && { AssociationVersion: input.AssociationVersion }), + ...(input.InstanceId != null && { InstanceId: input.InstanceId }), + ...(input.Name != null && { Name: input.Name }), + }; +}; +const serializeAws_json1_1DescribeAutomationExecutionsRequest = (input, context) => { + return { + ...(input.Filters != null && { + Filters: serializeAws_json1_1AutomationExecutionFilterList(input.Filters, context), + }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1DescribeAutomationStepExecutionsRequest = (input, context) => { + return { + ...(input.AutomationExecutionId != null && { AutomationExecutionId: input.AutomationExecutionId }), + ...(input.Filters != null && { Filters: serializeAws_json1_1StepExecutionFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.ReverseOrder != null && { ReverseOrder: input.ReverseOrder }), + }; +}; +const serializeAws_json1_1DescribeAvailablePatchesRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1PatchOrchestratorFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1DescribeDocumentPermissionRequest = (input, context) => { + return { + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.Name != null && { Name: input.Name }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.PermissionType != null && { PermissionType: input.PermissionType }), + }; +}; +const serializeAws_json1_1DescribeDocumentRequest = (input, context) => { + return { + ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), + ...(input.Name != null && { Name: input.Name }), + ...(input.VersionName != null && { VersionName: input.VersionName }), + }; +}; +const serializeAws_json1_1DescribeEffectiveInstanceAssociationsRequest = (input, context) => { + return { + ...(input.InstanceId != null && { InstanceId: input.InstanceId }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1DescribeEffectivePatchesForPatchBaselineRequest = (input, context) => { + return { + ...(input.BaselineId != null && { BaselineId: input.BaselineId }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1DescribeInstanceAssociationsStatusRequest = (input, context) => { + return { + ...(input.InstanceId != null && { InstanceId: input.InstanceId }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1DescribeInstanceInformationRequest = (input, context) => { + return { + ...(input.Filters != null && { + Filters: serializeAws_json1_1InstanceInformationStringFilterList(input.Filters, context), + }), + ...(input.InstanceInformationFilterList != null && { + InstanceInformationFilterList: serializeAws_json1_1InstanceInformationFilterList(input.InstanceInformationFilterList, context), + }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1DescribeInstancePatchesRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1PatchOrchestratorFilterList(input.Filters, context) }), + ...(input.InstanceId != null && { InstanceId: input.InstanceId }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1DescribeInstancePatchStatesForPatchGroupRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1InstancePatchStateFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.PatchGroup != null && { PatchGroup: input.PatchGroup }), + }; +}; +const serializeAws_json1_1DescribeInstancePatchStatesRequest = (input, context) => { + return { + ...(input.InstanceIds != null && { InstanceIds: serializeAws_json1_1InstanceIdList(input.InstanceIds, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1DescribeInventoryDeletionsRequest = (input, context) => { + return { + ...(input.DeletionId != null && { DeletionId: input.DeletionId }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1DescribeMaintenanceWindowExecutionsRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1MaintenanceWindowFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.WindowId != null && { WindowId: input.WindowId }), + }; +}; +const serializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1MaintenanceWindowFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.TaskId != null && { TaskId: input.TaskId }), + ...(input.WindowExecutionId != null && { WindowExecutionId: input.WindowExecutionId }), + }; +}; +const serializeAws_json1_1DescribeMaintenanceWindowExecutionTasksRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1MaintenanceWindowFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.WindowExecutionId != null && { WindowExecutionId: input.WindowExecutionId }), + }; +}; +const serializeAws_json1_1DescribeMaintenanceWindowScheduleRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1PatchOrchestratorFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.ResourceType != null && { ResourceType: input.ResourceType }), + ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), + ...(input.WindowId != null && { WindowId: input.WindowId }), + }; +}; +const serializeAws_json1_1DescribeMaintenanceWindowsForTargetRequest = (input, context) => { + return { + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.ResourceType != null && { ResourceType: input.ResourceType }), + ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), + }; +}; +const serializeAws_json1_1DescribeMaintenanceWindowsRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1MaintenanceWindowFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1DescribeMaintenanceWindowTargetsRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1MaintenanceWindowFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.WindowId != null && { WindowId: input.WindowId }), + }; +}; +const serializeAws_json1_1DescribeMaintenanceWindowTasksRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1MaintenanceWindowFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.WindowId != null && { WindowId: input.WindowId }), + }; +}; +const serializeAws_json1_1DescribeOpsItemsRequest = (input, context) => { + return { + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.OpsItemFilters != null && { + OpsItemFilters: serializeAws_json1_1OpsItemFilters(input.OpsItemFilters, context), + }), + }; +}; +const serializeAws_json1_1DescribeParametersRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1ParametersFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.ParameterFilters != null && { + ParameterFilters: serializeAws_json1_1ParameterStringFilterList(input.ParameterFilters, context), + }), + }; +}; +const serializeAws_json1_1DescribePatchBaselinesRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1PatchOrchestratorFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1DescribePatchGroupsRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1PatchOrchestratorFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1DescribePatchGroupStateRequest = (input, context) => { + return { + ...(input.PatchGroup != null && { PatchGroup: input.PatchGroup }), + }; +}; +const serializeAws_json1_1DescribePatchPropertiesRequest = (input, context) => { + return { + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.OperatingSystem != null && { OperatingSystem: input.OperatingSystem }), + ...(input.PatchSet != null && { PatchSet: input.PatchSet }), + ...(input.Property != null && { Property: input.Property }), + }; +}; +const serializeAws_json1_1DescribeSessionsRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1SessionFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.State != null && { State: input.State }), + }; +}; +const serializeAws_json1_1DisassociateOpsItemRelatedItemRequest = (input, context) => { + return { + ...(input.AssociationId != null && { AssociationId: input.AssociationId }), + ...(input.OpsItemId != null && { OpsItemId: input.OpsItemId }), + }; +}; +const serializeAws_json1_1DocumentFilter = (input, context) => { + return { + ...(input.key != null && { key: input.key }), + ...(input.value != null && { value: input.value }), + }; +}; +const serializeAws_json1_1DocumentFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1DocumentFilter(entry, context); + }); +}; +const serializeAws_json1_1DocumentKeyValuesFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Values != null && { Values: serializeAws_json1_1DocumentKeyValuesFilterValues(input.Values, context) }), + }; +}; +const serializeAws_json1_1DocumentKeyValuesFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1DocumentKeyValuesFilter(entry, context); + }); +}; +const serializeAws_json1_1DocumentKeyValuesFilterValues = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1DocumentRequires = (input, context) => { + return { + ...(input.Name != null && { Name: input.Name }), + ...(input.Version != null && { Version: input.Version }), + }; +}; +const serializeAws_json1_1DocumentRequiresList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1DocumentRequires(entry, context); + }); +}; +const serializeAws_json1_1DocumentReviewCommentList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1DocumentReviewCommentSource(entry, context); + }); +}; +const serializeAws_json1_1DocumentReviewCommentSource = (input, context) => { + return { + ...(input.Content != null && { Content: input.Content }), + ...(input.Type != null && { Type: input.Type }), + }; +}; +const serializeAws_json1_1DocumentReviews = (input, context) => { + return { + ...(input.Action != null && { Action: input.Action }), + ...(input.Comment != null && { Comment: serializeAws_json1_1DocumentReviewCommentList(input.Comment, context) }), + }; +}; +const serializeAws_json1_1GetAutomationExecutionRequest = (input, context) => { + return { + ...(input.AutomationExecutionId != null && { AutomationExecutionId: input.AutomationExecutionId }), + }; +}; +const serializeAws_json1_1GetCalendarStateRequest = (input, context) => { + return { + ...(input.AtTime != null && { AtTime: input.AtTime }), + ...(input.CalendarNames != null && { + CalendarNames: serializeAws_json1_1CalendarNameOrARNList(input.CalendarNames, context), + }), + }; +}; +const serializeAws_json1_1GetCommandInvocationRequest = (input, context) => { + return { + ...(input.CommandId != null && { CommandId: input.CommandId }), + ...(input.InstanceId != null && { InstanceId: input.InstanceId }), + ...(input.PluginName != null && { PluginName: input.PluginName }), + }; +}; +const serializeAws_json1_1GetConnectionStatusRequest = (input, context) => { + return { + ...(input.Target != null && { Target: input.Target }), + }; +}; +const serializeAws_json1_1GetDefaultPatchBaselineRequest = (input, context) => { + return { + ...(input.OperatingSystem != null && { OperatingSystem: input.OperatingSystem }), + }; +}; +const serializeAws_json1_1GetDeployablePatchSnapshotForInstanceRequest = (input, context) => { + return { + ...(input.BaselineOverride != null && { + BaselineOverride: serializeAws_json1_1BaselineOverride(input.BaselineOverride, context), + }), + ...(input.InstanceId != null && { InstanceId: input.InstanceId }), + ...(input.SnapshotId != null && { SnapshotId: input.SnapshotId }), + }; +}; +const serializeAws_json1_1GetDocumentRequest = (input, context) => { + return { + ...(input.DocumentFormat != null && { DocumentFormat: input.DocumentFormat }), + ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), + ...(input.Name != null && { Name: input.Name }), + ...(input.VersionName != null && { VersionName: input.VersionName }), + }; +}; +const serializeAws_json1_1GetInventoryRequest = (input, context) => { + return { + ...(input.Aggregators != null && { + Aggregators: serializeAws_json1_1InventoryAggregatorList(input.Aggregators, context), + }), + ...(input.Filters != null && { Filters: serializeAws_json1_1InventoryFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.ResultAttributes != null && { + ResultAttributes: serializeAws_json1_1ResultAttributeList(input.ResultAttributes, context), + }), + }; +}; +const serializeAws_json1_1GetInventorySchemaRequest = (input, context) => { + return { + ...(input.Aggregator != null && { Aggregator: input.Aggregator }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.SubType != null && { SubType: input.SubType }), + ...(input.TypeName != null && { TypeName: input.TypeName }), + }; +}; +const serializeAws_json1_1GetMaintenanceWindowExecutionRequest = (input, context) => { + return { + ...(input.WindowExecutionId != null && { WindowExecutionId: input.WindowExecutionId }), + }; +}; +const serializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationRequest = (input, context) => { + return { + ...(input.InvocationId != null && { InvocationId: input.InvocationId }), + ...(input.TaskId != null && { TaskId: input.TaskId }), + ...(input.WindowExecutionId != null && { WindowExecutionId: input.WindowExecutionId }), + }; +}; +const serializeAws_json1_1GetMaintenanceWindowExecutionTaskRequest = (input, context) => { + return { + ...(input.TaskId != null && { TaskId: input.TaskId }), + ...(input.WindowExecutionId != null && { WindowExecutionId: input.WindowExecutionId }), + }; +}; +const serializeAws_json1_1GetMaintenanceWindowRequest = (input, context) => { + return { + ...(input.WindowId != null && { WindowId: input.WindowId }), + }; +}; +const serializeAws_json1_1GetMaintenanceWindowTaskRequest = (input, context) => { + return { + ...(input.WindowId != null && { WindowId: input.WindowId }), + ...(input.WindowTaskId != null && { WindowTaskId: input.WindowTaskId }), + }; +}; +const serializeAws_json1_1GetOpsItemRequest = (input, context) => { + return { + ...(input.OpsItemId != null && { OpsItemId: input.OpsItemId }), + }; +}; +const serializeAws_json1_1GetOpsMetadataRequest = (input, context) => { + return { + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.OpsMetadataArn != null && { OpsMetadataArn: input.OpsMetadataArn }), + }; +}; +const serializeAws_json1_1GetOpsSummaryRequest = (input, context) => { + return { + ...(input.Aggregators != null && { + Aggregators: serializeAws_json1_1OpsAggregatorList(input.Aggregators, context), + }), + ...(input.Filters != null && { Filters: serializeAws_json1_1OpsFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.ResultAttributes != null && { + ResultAttributes: serializeAws_json1_1OpsResultAttributeList(input.ResultAttributes, context), + }), + ...(input.SyncName != null && { SyncName: input.SyncName }), + }; +}; +const serializeAws_json1_1GetParameterHistoryRequest = (input, context) => { + return { + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.Name != null && { Name: input.Name }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.WithDecryption != null && { WithDecryption: input.WithDecryption }), + }; +}; +const serializeAws_json1_1GetParameterRequest = (input, context) => { + return { + ...(input.Name != null && { Name: input.Name }), + ...(input.WithDecryption != null && { WithDecryption: input.WithDecryption }), + }; +}; +const serializeAws_json1_1GetParametersByPathRequest = (input, context) => { + return { + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.ParameterFilters != null && { + ParameterFilters: serializeAws_json1_1ParameterStringFilterList(input.ParameterFilters, context), + }), + ...(input.Path != null && { Path: input.Path }), + ...(input.Recursive != null && { Recursive: input.Recursive }), + ...(input.WithDecryption != null && { WithDecryption: input.WithDecryption }), + }; +}; +const serializeAws_json1_1GetParametersRequest = (input, context) => { + return { + ...(input.Names != null && { Names: serializeAws_json1_1ParameterNameList(input.Names, context) }), + ...(input.WithDecryption != null && { WithDecryption: input.WithDecryption }), + }; +}; +const serializeAws_json1_1GetPatchBaselineForPatchGroupRequest = (input, context) => { + return { + ...(input.OperatingSystem != null && { OperatingSystem: input.OperatingSystem }), + ...(input.PatchGroup != null && { PatchGroup: input.PatchGroup }), + }; +}; +const serializeAws_json1_1GetPatchBaselineRequest = (input, context) => { + return { + ...(input.BaselineId != null && { BaselineId: input.BaselineId }), + }; +}; +const serializeAws_json1_1GetServiceSettingRequest = (input, context) => { + return { + ...(input.SettingId != null && { SettingId: input.SettingId }), + }; +}; +const serializeAws_json1_1InstanceAssociationOutputLocation = (input, context) => { + return { + ...(input.S3Location != null && { S3Location: serializeAws_json1_1S3OutputLocation(input.S3Location, context) }), + }; +}; +const serializeAws_json1_1InstanceIdList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1InstanceInformationFilter = (input, context) => { + return { + ...(input.key != null && { key: input.key }), + ...(input.valueSet != null && { + valueSet: serializeAws_json1_1InstanceInformationFilterValueSet(input.valueSet, context), + }), + }; +}; +const serializeAws_json1_1InstanceInformationFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1InstanceInformationFilter(entry, context); + }); +}; +const serializeAws_json1_1InstanceInformationFilterValueSet = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1InstanceInformationStringFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Values != null && { + Values: serializeAws_json1_1InstanceInformationFilterValueSet(input.Values, context), + }), + }; +}; +const serializeAws_json1_1InstanceInformationStringFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1InstanceInformationStringFilter(entry, context); + }); +}; +const serializeAws_json1_1InstancePatchStateFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Type != null && { Type: input.Type }), + ...(input.Values != null && { Values: serializeAws_json1_1InstancePatchStateFilterValues(input.Values, context) }), + }; +}; +const serializeAws_json1_1InstancePatchStateFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1InstancePatchStateFilter(entry, context); + }); +}; +const serializeAws_json1_1InstancePatchStateFilterValues = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1InventoryAggregator = (input, context) => { + return { + ...(input.Aggregators != null && { + Aggregators: serializeAws_json1_1InventoryAggregatorList(input.Aggregators, context), + }), + ...(input.Expression != null && { Expression: input.Expression }), + ...(input.Groups != null && { Groups: serializeAws_json1_1InventoryGroupList(input.Groups, context) }), + }; +}; +const serializeAws_json1_1InventoryAggregatorList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1InventoryAggregator(entry, context); + }); +}; +const serializeAws_json1_1InventoryFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Type != null && { Type: input.Type }), + ...(input.Values != null && { Values: serializeAws_json1_1InventoryFilterValueList(input.Values, context) }), + }; +}; +const serializeAws_json1_1InventoryFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1InventoryFilter(entry, context); + }); +}; +const serializeAws_json1_1InventoryFilterValueList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1InventoryGroup = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1InventoryFilterList(input.Filters, context) }), + ...(input.Name != null && { Name: input.Name }), + }; +}; +const serializeAws_json1_1InventoryGroupList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1InventoryGroup(entry, context); + }); +}; +const serializeAws_json1_1InventoryItem = (input, context) => { + return { + ...(input.CaptureTime != null && { CaptureTime: input.CaptureTime }), + ...(input.Content != null && { Content: serializeAws_json1_1InventoryItemEntryList(input.Content, context) }), + ...(input.ContentHash != null && { ContentHash: input.ContentHash }), + ...(input.Context != null && { Context: serializeAws_json1_1InventoryItemContentContext(input.Context, context) }), + ...(input.SchemaVersion != null && { SchemaVersion: input.SchemaVersion }), + ...(input.TypeName != null && { TypeName: input.TypeName }), + }; +}; +const serializeAws_json1_1InventoryItemContentContext = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: value, + }; + }, {}); +}; +const serializeAws_json1_1InventoryItemEntry = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: value, + }; + }, {}); +}; +const serializeAws_json1_1InventoryItemEntryList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1InventoryItemEntry(entry, context); + }); +}; +const serializeAws_json1_1InventoryItemList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1InventoryItem(entry, context); + }); +}; +const serializeAws_json1_1KeyList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1LabelParameterVersionRequest = (input, context) => { + return { + ...(input.Labels != null && { Labels: serializeAws_json1_1ParameterLabelList(input.Labels, context) }), + ...(input.Name != null && { Name: input.Name }), + ...(input.ParameterVersion != null && { ParameterVersion: input.ParameterVersion }), + }; +}; +const serializeAws_json1_1ListAssociationsRequest = (input, context) => { + return { + ...(input.AssociationFilterList != null && { + AssociationFilterList: serializeAws_json1_1AssociationFilterList(input.AssociationFilterList, context), + }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1ListAssociationVersionsRequest = (input, context) => { + return { + ...(input.AssociationId != null && { AssociationId: input.AssociationId }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1ListCommandInvocationsRequest = (input, context) => { + return { + ...(input.CommandId != null && { CommandId: input.CommandId }), + ...(input.Details != null && { Details: input.Details }), + ...(input.Filters != null && { Filters: serializeAws_json1_1CommandFilterList(input.Filters, context) }), + ...(input.InstanceId != null && { InstanceId: input.InstanceId }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1ListCommandsRequest = (input, context) => { + return { + ...(input.CommandId != null && { CommandId: input.CommandId }), + ...(input.Filters != null && { Filters: serializeAws_json1_1CommandFilterList(input.Filters, context) }), + ...(input.InstanceId != null && { InstanceId: input.InstanceId }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1ListComplianceItemsRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1ComplianceStringFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.ResourceIds != null && { + ResourceIds: serializeAws_json1_1ComplianceResourceIdList(input.ResourceIds, context), + }), + ...(input.ResourceTypes != null && { + ResourceTypes: serializeAws_json1_1ComplianceResourceTypeList(input.ResourceTypes, context), + }), + }; +}; +const serializeAws_json1_1ListComplianceSummariesRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1ComplianceStringFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1ListDocumentMetadataHistoryRequest = (input, context) => { + return { + ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.Metadata != null && { Metadata: input.Metadata }), + ...(input.Name != null && { Name: input.Name }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1ListDocumentsRequest = (input, context) => { + return { + ...(input.DocumentFilterList != null && { + DocumentFilterList: serializeAws_json1_1DocumentFilterList(input.DocumentFilterList, context), + }), + ...(input.Filters != null && { Filters: serializeAws_json1_1DocumentKeyValuesFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1ListDocumentVersionsRequest = (input, context) => { + return { + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.Name != null && { Name: input.Name }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1ListInventoryEntriesRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1InventoryFilterList(input.Filters, context) }), + ...(input.InstanceId != null && { InstanceId: input.InstanceId }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.TypeName != null && { TypeName: input.TypeName }), + }; +}; +const serializeAws_json1_1ListOpsItemEventsRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1OpsItemEventFilters(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1ListOpsItemRelatedItemsRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1OpsItemRelatedItemsFilters(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.OpsItemId != null && { OpsItemId: input.OpsItemId }), + }; +}; +const serializeAws_json1_1ListOpsMetadataRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1OpsMetadataFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1ListResourceComplianceSummariesRequest = (input, context) => { + return { + ...(input.Filters != null && { Filters: serializeAws_json1_1ComplianceStringFilterList(input.Filters, context) }), + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + }; +}; +const serializeAws_json1_1ListResourceDataSyncRequest = (input, context) => { + return { + ...(input.MaxResults != null && { MaxResults: input.MaxResults }), + ...(input.NextToken != null && { NextToken: input.NextToken }), + ...(input.SyncType != null && { SyncType: input.SyncType }), + }; +}; +const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => { + return { + ...(input.ResourceId != null && { ResourceId: input.ResourceId }), + ...(input.ResourceType != null && { ResourceType: input.ResourceType }), + }; +}; +const serializeAws_json1_1LoggingInfo = (input, context) => { + return { + ...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }), + ...(input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }), + ...(input.S3Region != null && { S3Region: input.S3Region }), + }; +}; +const serializeAws_json1_1MaintenanceWindowAutomationParameters = (input, context) => { + return { + ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), + ...(input.Parameters != null && { + Parameters: serializeAws_json1_1AutomationParameterMap(input.Parameters, context), + }), + }; +}; +const serializeAws_json1_1MaintenanceWindowFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Values != null && { Values: serializeAws_json1_1MaintenanceWindowFilterValues(input.Values, context) }), + }; +}; +const serializeAws_json1_1MaintenanceWindowFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1MaintenanceWindowFilter(entry, context); + }); +}; +const serializeAws_json1_1MaintenanceWindowFilterValues = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1MaintenanceWindowLambdaParameters = (input, context) => { + return { + ...(input.ClientContext != null && { ClientContext: input.ClientContext }), + ...(input.Payload != null && { Payload: context.base64Encoder(input.Payload) }), + ...(input.Qualifier != null && { Qualifier: input.Qualifier }), + }; +}; +const serializeAws_json1_1MaintenanceWindowRunCommandParameters = (input, context) => { + return { + ...(input.CloudWatchOutputConfig != null && { + CloudWatchOutputConfig: serializeAws_json1_1CloudWatchOutputConfig(input.CloudWatchOutputConfig, context), + }), + ...(input.Comment != null && { Comment: input.Comment }), + ...(input.DocumentHash != null && { DocumentHash: input.DocumentHash }), + ...(input.DocumentHashType != null && { DocumentHashType: input.DocumentHashType }), + ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), + ...(input.NotificationConfig != null && { + NotificationConfig: serializeAws_json1_1NotificationConfig(input.NotificationConfig, context), + }), + ...(input.OutputS3BucketName != null && { OutputS3BucketName: input.OutputS3BucketName }), + ...(input.OutputS3KeyPrefix != null && { OutputS3KeyPrefix: input.OutputS3KeyPrefix }), + ...(input.Parameters != null && { Parameters: serializeAws_json1_1Parameters(input.Parameters, context) }), + ...(input.ServiceRoleArn != null && { ServiceRoleArn: input.ServiceRoleArn }), + ...(input.TimeoutSeconds != null && { TimeoutSeconds: input.TimeoutSeconds }), + }; +}; +const serializeAws_json1_1MaintenanceWindowStepFunctionsParameters = (input, context) => { + return { + ...(input.Input != null && { Input: input.Input }), + ...(input.Name != null && { Name: input.Name }), + }; +}; +const serializeAws_json1_1MaintenanceWindowTaskInvocationParameters = (input, context) => { + return { + ...(input.Automation != null && { + Automation: serializeAws_json1_1MaintenanceWindowAutomationParameters(input.Automation, context), + }), + ...(input.Lambda != null && { + Lambda: serializeAws_json1_1MaintenanceWindowLambdaParameters(input.Lambda, context), + }), + ...(input.RunCommand != null && { + RunCommand: serializeAws_json1_1MaintenanceWindowRunCommandParameters(input.RunCommand, context), + }), + ...(input.StepFunctions != null && { + StepFunctions: serializeAws_json1_1MaintenanceWindowStepFunctionsParameters(input.StepFunctions, context), + }), + }; +}; +const serializeAws_json1_1MaintenanceWindowTaskParameters = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_1MaintenanceWindowTaskParameterValueExpression(value, context), + }; + }, {}); +}; +const serializeAws_json1_1MaintenanceWindowTaskParameterValueExpression = (input, context) => { + return { + ...(input.Values != null && { + Values: serializeAws_json1_1MaintenanceWindowTaskParameterValueList(input.Values, context), + }), + }; +}; +const serializeAws_json1_1MaintenanceWindowTaskParameterValueList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1MetadataKeysToDeleteList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1MetadataMap = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_1MetadataValue(value, context), + }; + }, {}); +}; +const serializeAws_json1_1MetadataValue = (input, context) => { + return { + ...(input.Value != null && { Value: input.Value }), + }; +}; +const serializeAws_json1_1ModifyDocumentPermissionRequest = (input, context) => { + return { + ...(input.AccountIdsToAdd != null && { + AccountIdsToAdd: serializeAws_json1_1AccountIdList(input.AccountIdsToAdd, context), + }), + ...(input.AccountIdsToRemove != null && { + AccountIdsToRemove: serializeAws_json1_1AccountIdList(input.AccountIdsToRemove, context), + }), + ...(input.Name != null && { Name: input.Name }), + ...(input.PermissionType != null && { PermissionType: input.PermissionType }), + ...(input.SharedDocumentVersion != null && { SharedDocumentVersion: input.SharedDocumentVersion }), + }; +}; +const serializeAws_json1_1NotificationConfig = (input, context) => { + return { + ...(input.NotificationArn != null && { NotificationArn: input.NotificationArn }), + ...(input.NotificationEvents != null && { + NotificationEvents: serializeAws_json1_1NotificationEventList(input.NotificationEvents, context), + }), + ...(input.NotificationType != null && { NotificationType: input.NotificationType }), + }; +}; +const serializeAws_json1_1NotificationEventList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1OpsAggregator = (input, context) => { + return { + ...(input.AggregatorType != null && { AggregatorType: input.AggregatorType }), + ...(input.Aggregators != null && { + Aggregators: serializeAws_json1_1OpsAggregatorList(input.Aggregators, context), + }), + ...(input.AttributeName != null && { AttributeName: input.AttributeName }), + ...(input.Filters != null && { Filters: serializeAws_json1_1OpsFilterList(input.Filters, context) }), + ...(input.TypeName != null && { TypeName: input.TypeName }), + ...(input.Values != null && { Values: serializeAws_json1_1OpsAggregatorValueMap(input.Values, context) }), + }; +}; +const serializeAws_json1_1OpsAggregatorList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1OpsAggregator(entry, context); + }); +}; +const serializeAws_json1_1OpsAggregatorValueMap = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: value, + }; + }, {}); +}; +const serializeAws_json1_1OpsFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Type != null && { Type: input.Type }), + ...(input.Values != null && { Values: serializeAws_json1_1OpsFilterValueList(input.Values, context) }), + }; +}; +const serializeAws_json1_1OpsFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1OpsFilter(entry, context); + }); +}; +const serializeAws_json1_1OpsFilterValueList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1OpsItemDataValue = (input, context) => { + return { + ...(input.Type != null && { Type: input.Type }), + ...(input.Value != null && { Value: input.Value }), + }; +}; +const serializeAws_json1_1OpsItemEventFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Operator != null && { Operator: input.Operator }), + ...(input.Values != null && { Values: serializeAws_json1_1OpsItemEventFilterValues(input.Values, context) }), + }; +}; +const serializeAws_json1_1OpsItemEventFilters = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1OpsItemEventFilter(entry, context); + }); +}; +const serializeAws_json1_1OpsItemEventFilterValues = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1OpsItemFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Operator != null && { Operator: input.Operator }), + ...(input.Values != null && { Values: serializeAws_json1_1OpsItemFilterValues(input.Values, context) }), + }; +}; +const serializeAws_json1_1OpsItemFilters = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1OpsItemFilter(entry, context); + }); +}; +const serializeAws_json1_1OpsItemFilterValues = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1OpsItemNotification = (input, context) => { + return { + ...(input.Arn != null && { Arn: input.Arn }), + }; +}; +const serializeAws_json1_1OpsItemNotifications = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1OpsItemNotification(entry, context); + }); +}; +const serializeAws_json1_1OpsItemOperationalData = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_1OpsItemDataValue(value, context), + }; + }, {}); +}; +const serializeAws_json1_1OpsItemOpsDataKeysList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1OpsItemRelatedItemsFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Operator != null && { Operator: input.Operator }), + ...(input.Values != null && { Values: serializeAws_json1_1OpsItemRelatedItemsFilterValues(input.Values, context) }), + }; +}; +const serializeAws_json1_1OpsItemRelatedItemsFilters = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1OpsItemRelatedItemsFilter(entry, context); + }); +}; +const serializeAws_json1_1OpsItemRelatedItemsFilterValues = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1OpsMetadataFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Values != null && { Values: serializeAws_json1_1OpsMetadataFilterValueList(input.Values, context) }), + }; +}; +const serializeAws_json1_1OpsMetadataFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1OpsMetadataFilter(entry, context); + }); +}; +const serializeAws_json1_1OpsMetadataFilterValueList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1OpsResultAttribute = (input, context) => { + return { + ...(input.TypeName != null && { TypeName: input.TypeName }), + }; +}; +const serializeAws_json1_1OpsResultAttributeList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1OpsResultAttribute(entry, context); + }); +}; +const serializeAws_json1_1ParameterLabelList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1ParameterNameList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1Parameters = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_1ParameterValueList(value, context), + }; + }, {}); +}; +const serializeAws_json1_1ParametersFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Values != null && { Values: serializeAws_json1_1ParametersFilterValueList(input.Values, context) }), + }; +}; +const serializeAws_json1_1ParametersFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1ParametersFilter(entry, context); + }); +}; +const serializeAws_json1_1ParametersFilterValueList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1ParameterStringFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Option != null && { Option: input.Option }), + ...(input.Values != null && { Values: serializeAws_json1_1ParameterStringFilterValueList(input.Values, context) }), + }; +}; +const serializeAws_json1_1ParameterStringFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1ParameterStringFilter(entry, context); + }); +}; +const serializeAws_json1_1ParameterStringFilterValueList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1ParameterValueList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1PatchFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Values != null && { Values: serializeAws_json1_1PatchFilterValueList(input.Values, context) }), + }; +}; +const serializeAws_json1_1PatchFilterGroup = (input, context) => { + return { + ...(input.PatchFilters != null && { + PatchFilters: serializeAws_json1_1PatchFilterList(input.PatchFilters, context), + }), + }; +}; +const serializeAws_json1_1PatchFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1PatchFilter(entry, context); + }); +}; +const serializeAws_json1_1PatchFilterValueList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1PatchIdList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1PatchOrchestratorFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Values != null && { Values: serializeAws_json1_1PatchOrchestratorFilterValues(input.Values, context) }), + }; +}; +const serializeAws_json1_1PatchOrchestratorFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1PatchOrchestratorFilter(entry, context); + }); +}; +const serializeAws_json1_1PatchOrchestratorFilterValues = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1PatchRule = (input, context) => { + return { + ...(input.ApproveAfterDays != null && { ApproveAfterDays: input.ApproveAfterDays }), + ...(input.ApproveUntilDate != null && { ApproveUntilDate: input.ApproveUntilDate }), + ...(input.ComplianceLevel != null && { ComplianceLevel: input.ComplianceLevel }), + ...(input.EnableNonSecurity != null && { EnableNonSecurity: input.EnableNonSecurity }), + ...(input.PatchFilterGroup != null && { + PatchFilterGroup: serializeAws_json1_1PatchFilterGroup(input.PatchFilterGroup, context), + }), + }; +}; +const serializeAws_json1_1PatchRuleGroup = (input, context) => { + return { + ...(input.PatchRules != null && { PatchRules: serializeAws_json1_1PatchRuleList(input.PatchRules, context) }), + }; +}; +const serializeAws_json1_1PatchRuleList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1PatchRule(entry, context); + }); +}; +const serializeAws_json1_1PatchSource = (input, context) => { + return { + ...(input.Configuration != null && { Configuration: input.Configuration }), + ...(input.Name != null && { Name: input.Name }), + ...(input.Products != null && { Products: serializeAws_json1_1PatchSourceProductList(input.Products, context) }), + }; +}; +const serializeAws_json1_1PatchSourceList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1PatchSource(entry, context); + }); +}; +const serializeAws_json1_1PatchSourceProductList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1PutComplianceItemsRequest = (input, context) => { + return { + ...(input.ComplianceType != null && { ComplianceType: input.ComplianceType }), + ...(input.ExecutionSummary != null && { + ExecutionSummary: serializeAws_json1_1ComplianceExecutionSummary(input.ExecutionSummary, context), + }), + ...(input.ItemContentHash != null && { ItemContentHash: input.ItemContentHash }), + ...(input.Items != null && { Items: serializeAws_json1_1ComplianceItemEntryList(input.Items, context) }), + ...(input.ResourceId != null && { ResourceId: input.ResourceId }), + ...(input.ResourceType != null && { ResourceType: input.ResourceType }), + ...(input.UploadType != null && { UploadType: input.UploadType }), + }; +}; +const serializeAws_json1_1PutInventoryRequest = (input, context) => { + return { + ...(input.InstanceId != null && { InstanceId: input.InstanceId }), + ...(input.Items != null && { Items: serializeAws_json1_1InventoryItemList(input.Items, context) }), + }; +}; +const serializeAws_json1_1PutParameterRequest = (input, context) => { + return { + ...(input.AllowedPattern != null && { AllowedPattern: input.AllowedPattern }), + ...(input.DataType != null && { DataType: input.DataType }), + ...(input.Description != null && { Description: input.Description }), + ...(input.KeyId != null && { KeyId: input.KeyId }), + ...(input.Name != null && { Name: input.Name }), + ...(input.Overwrite != null && { Overwrite: input.Overwrite }), + ...(input.Policies != null && { Policies: input.Policies }), + ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), + ...(input.Tier != null && { Tier: input.Tier }), + ...(input.Type != null && { Type: input.Type }), + ...(input.Value != null && { Value: input.Value }), + }; +}; +const serializeAws_json1_1Regions = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1RegisterDefaultPatchBaselineRequest = (input, context) => { + return { + ...(input.BaselineId != null && { BaselineId: input.BaselineId }), + }; +}; +const serializeAws_json1_1RegisterPatchBaselineForPatchGroupRequest = (input, context) => { + return { + ...(input.BaselineId != null && { BaselineId: input.BaselineId }), + ...(input.PatchGroup != null && { PatchGroup: input.PatchGroup }), + }; +}; +const serializeAws_json1_1RegisterTargetWithMaintenanceWindowRequest = (input, context) => { + var _a; + return { + ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), + ...(input.Description != null && { Description: input.Description }), + ...(input.Name != null && { Name: input.Name }), + ...(input.OwnerInformation != null && { OwnerInformation: input.OwnerInformation }), + ...(input.ResourceType != null && { ResourceType: input.ResourceType }), + ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), + ...(input.WindowId != null && { WindowId: input.WindowId }), + }; +}; +const serializeAws_json1_1RegisterTaskWithMaintenanceWindowRequest = (input, context) => { + var _a; + return { + ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), + ...(input.CutoffBehavior != null && { CutoffBehavior: input.CutoffBehavior }), + ...(input.Description != null && { Description: input.Description }), + ...(input.LoggingInfo != null && { LoggingInfo: serializeAws_json1_1LoggingInfo(input.LoggingInfo, context) }), + ...(input.MaxConcurrency != null && { MaxConcurrency: input.MaxConcurrency }), + ...(input.MaxErrors != null && { MaxErrors: input.MaxErrors }), + ...(input.Name != null && { Name: input.Name }), + ...(input.Priority != null && { Priority: input.Priority }), + ...(input.ServiceRoleArn != null && { ServiceRoleArn: input.ServiceRoleArn }), + ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), + ...(input.TaskArn != null && { TaskArn: input.TaskArn }), + ...(input.TaskInvocationParameters != null && { + TaskInvocationParameters: serializeAws_json1_1MaintenanceWindowTaskInvocationParameters(input.TaskInvocationParameters, context), + }), + ...(input.TaskParameters != null && { + TaskParameters: serializeAws_json1_1MaintenanceWindowTaskParameters(input.TaskParameters, context), + }), + ...(input.TaskType != null && { TaskType: input.TaskType }), + ...(input.WindowId != null && { WindowId: input.WindowId }), + }; +}; +const serializeAws_json1_1RegistrationMetadataItem = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Value != null && { Value: input.Value }), + }; +}; +const serializeAws_json1_1RegistrationMetadataList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1RegistrationMetadataItem(entry, context); + }); +}; +const serializeAws_json1_1RelatedOpsItem = (input, context) => { + return { + ...(input.OpsItemId != null && { OpsItemId: input.OpsItemId }), + }; +}; +const serializeAws_json1_1RelatedOpsItems = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1RelatedOpsItem(entry, context); + }); +}; +const serializeAws_json1_1RemoveTagsFromResourceRequest = (input, context) => { + return { + ...(input.ResourceId != null && { ResourceId: input.ResourceId }), + ...(input.ResourceType != null && { ResourceType: input.ResourceType }), + ...(input.TagKeys != null && { TagKeys: serializeAws_json1_1KeyList(input.TagKeys, context) }), + }; +}; +const serializeAws_json1_1ResetServiceSettingRequest = (input, context) => { + return { + ...(input.SettingId != null && { SettingId: input.SettingId }), + }; +}; +const serializeAws_json1_1ResourceDataSyncAwsOrganizationsSource = (input, context) => { + return { + ...(input.OrganizationSourceType != null && { OrganizationSourceType: input.OrganizationSourceType }), + ...(input.OrganizationalUnits != null && { + OrganizationalUnits: serializeAws_json1_1ResourceDataSyncOrganizationalUnitList(input.OrganizationalUnits, context), + }), + }; +}; +const serializeAws_json1_1ResourceDataSyncDestinationDataSharing = (input, context) => { + return { + ...(input.DestinationDataSharingType != null && { DestinationDataSharingType: input.DestinationDataSharingType }), + }; +}; +const serializeAws_json1_1ResourceDataSyncOrganizationalUnit = (input, context) => { + return { + ...(input.OrganizationalUnitId != null && { OrganizationalUnitId: input.OrganizationalUnitId }), + }; +}; +const serializeAws_json1_1ResourceDataSyncOrganizationalUnitList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1ResourceDataSyncOrganizationalUnit(entry, context); + }); +}; +const serializeAws_json1_1ResourceDataSyncS3Destination = (input, context) => { + return { + ...(input.AWSKMSKeyARN != null && { AWSKMSKeyARN: input.AWSKMSKeyARN }), + ...(input.BucketName != null && { BucketName: input.BucketName }), + ...(input.DestinationDataSharing != null && { + DestinationDataSharing: serializeAws_json1_1ResourceDataSyncDestinationDataSharing(input.DestinationDataSharing, context), + }), + ...(input.Prefix != null && { Prefix: input.Prefix }), + ...(input.Region != null && { Region: input.Region }), + ...(input.SyncFormat != null && { SyncFormat: input.SyncFormat }), + }; +}; +const serializeAws_json1_1ResourceDataSyncSource = (input, context) => { + return { + ...(input.AwsOrganizationsSource != null && { + AwsOrganizationsSource: serializeAws_json1_1ResourceDataSyncAwsOrganizationsSource(input.AwsOrganizationsSource, context), + }), + ...(input.EnableAllOpsDataSources != null && { EnableAllOpsDataSources: input.EnableAllOpsDataSources }), + ...(input.IncludeFutureRegions != null && { IncludeFutureRegions: input.IncludeFutureRegions }), + ...(input.SourceRegions != null && { + SourceRegions: serializeAws_json1_1ResourceDataSyncSourceRegionList(input.SourceRegions, context), + }), + ...(input.SourceType != null && { SourceType: input.SourceType }), + }; +}; +const serializeAws_json1_1ResourceDataSyncSourceRegionList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1ResultAttribute = (input, context) => { + return { + ...(input.TypeName != null && { TypeName: input.TypeName }), + }; +}; +const serializeAws_json1_1ResultAttributeList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1ResultAttribute(entry, context); + }); +}; +const serializeAws_json1_1ResumeSessionRequest = (input, context) => { + return { + ...(input.SessionId != null && { SessionId: input.SessionId }), + }; +}; +const serializeAws_json1_1Runbook = (input, context) => { + return { + ...(input.DocumentName != null && { DocumentName: input.DocumentName }), + ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), + ...(input.MaxConcurrency != null && { MaxConcurrency: input.MaxConcurrency }), + ...(input.MaxErrors != null && { MaxErrors: input.MaxErrors }), + ...(input.Parameters != null && { + Parameters: serializeAws_json1_1AutomationParameterMap(input.Parameters, context), + }), + ...(input.TargetLocations != null && { + TargetLocations: serializeAws_json1_1TargetLocations(input.TargetLocations, context), + }), + ...(input.TargetMaps != null && { TargetMaps: serializeAws_json1_1TargetMaps(input.TargetMaps, context) }), + ...(input.TargetParameterName != null && { TargetParameterName: input.TargetParameterName }), + ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), + }; +}; +const serializeAws_json1_1Runbooks = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1Runbook(entry, context); + }); +}; +const serializeAws_json1_1S3OutputLocation = (input, context) => { + return { + ...(input.OutputS3BucketName != null && { OutputS3BucketName: input.OutputS3BucketName }), + ...(input.OutputS3KeyPrefix != null && { OutputS3KeyPrefix: input.OutputS3KeyPrefix }), + ...(input.OutputS3Region != null && { OutputS3Region: input.OutputS3Region }), + }; +}; +const serializeAws_json1_1SendAutomationSignalRequest = (input, context) => { + return { + ...(input.AutomationExecutionId != null && { AutomationExecutionId: input.AutomationExecutionId }), + ...(input.Payload != null && { Payload: serializeAws_json1_1AutomationParameterMap(input.Payload, context) }), + ...(input.SignalType != null && { SignalType: input.SignalType }), + }; +}; +const serializeAws_json1_1SendCommandRequest = (input, context) => { + return { + ...(input.CloudWatchOutputConfig != null && { + CloudWatchOutputConfig: serializeAws_json1_1CloudWatchOutputConfig(input.CloudWatchOutputConfig, context), + }), + ...(input.Comment != null && { Comment: input.Comment }), + ...(input.DocumentHash != null && { DocumentHash: input.DocumentHash }), + ...(input.DocumentHashType != null && { DocumentHashType: input.DocumentHashType }), + ...(input.DocumentName != null && { DocumentName: input.DocumentName }), + ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), + ...(input.InstanceIds != null && { InstanceIds: serializeAws_json1_1InstanceIdList(input.InstanceIds, context) }), + ...(input.MaxConcurrency != null && { MaxConcurrency: input.MaxConcurrency }), + ...(input.MaxErrors != null && { MaxErrors: input.MaxErrors }), + ...(input.NotificationConfig != null && { + NotificationConfig: serializeAws_json1_1NotificationConfig(input.NotificationConfig, context), + }), + ...(input.OutputS3BucketName != null && { OutputS3BucketName: input.OutputS3BucketName }), + ...(input.OutputS3KeyPrefix != null && { OutputS3KeyPrefix: input.OutputS3KeyPrefix }), + ...(input.OutputS3Region != null && { OutputS3Region: input.OutputS3Region }), + ...(input.Parameters != null && { Parameters: serializeAws_json1_1Parameters(input.Parameters, context) }), + ...(input.ServiceRoleArn != null && { ServiceRoleArn: input.ServiceRoleArn }), + ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), + ...(input.TimeoutSeconds != null && { TimeoutSeconds: input.TimeoutSeconds }), + }; +}; +const serializeAws_json1_1SessionFilter = (input, context) => { + return { + ...(input.key != null && { key: input.key }), + ...(input.value != null && { value: input.value }), + }; +}; +const serializeAws_json1_1SessionFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1SessionFilter(entry, context); + }); +}; +const serializeAws_json1_1SessionManagerParameters = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_1SessionManagerParameterValueList(value, context), + }; + }, {}); +}; +const serializeAws_json1_1SessionManagerParameterValueList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1StartAssociationsOnceRequest = (input, context) => { + return { + ...(input.AssociationIds != null && { + AssociationIds: serializeAws_json1_1AssociationIdList(input.AssociationIds, context), + }), + }; +}; +const serializeAws_json1_1StartAutomationExecutionRequest = (input, context) => { + return { + ...(input.ClientToken != null && { ClientToken: input.ClientToken }), + ...(input.DocumentName != null && { DocumentName: input.DocumentName }), + ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), + ...(input.MaxConcurrency != null && { MaxConcurrency: input.MaxConcurrency }), + ...(input.MaxErrors != null && { MaxErrors: input.MaxErrors }), + ...(input.Mode != null && { Mode: input.Mode }), + ...(input.Parameters != null && { + Parameters: serializeAws_json1_1AutomationParameterMap(input.Parameters, context), + }), + ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), + ...(input.TargetLocations != null && { + TargetLocations: serializeAws_json1_1TargetLocations(input.TargetLocations, context), + }), + ...(input.TargetMaps != null && { TargetMaps: serializeAws_json1_1TargetMaps(input.TargetMaps, context) }), + ...(input.TargetParameterName != null && { TargetParameterName: input.TargetParameterName }), + ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), + }; +}; +const serializeAws_json1_1StartChangeRequestExecutionRequest = (input, context) => { + return { + ...(input.AutoApprove != null && { AutoApprove: input.AutoApprove }), + ...(input.ChangeDetails != null && { ChangeDetails: input.ChangeDetails }), + ...(input.ChangeRequestName != null && { ChangeRequestName: input.ChangeRequestName }), + ...(input.ClientToken != null && { ClientToken: input.ClientToken }), + ...(input.DocumentName != null && { DocumentName: input.DocumentName }), + ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), + ...(input.Parameters != null && { + Parameters: serializeAws_json1_1AutomationParameterMap(input.Parameters, context), + }), + ...(input.Runbooks != null && { Runbooks: serializeAws_json1_1Runbooks(input.Runbooks, context) }), + ...(input.ScheduledEndTime != null && { ScheduledEndTime: Math.round(input.ScheduledEndTime.getTime() / 1000) }), + ...(input.ScheduledTime != null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) }), + ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }), + }; +}; +const serializeAws_json1_1StartSessionRequest = (input, context) => { + return { + ...(input.DocumentName != null && { DocumentName: input.DocumentName }), + ...(input.Parameters != null && { + Parameters: serializeAws_json1_1SessionManagerParameters(input.Parameters, context), + }), + ...(input.Reason != null && { Reason: input.Reason }), + ...(input.Target != null && { Target: input.Target }), + }; +}; +const serializeAws_json1_1StepExecutionFilter = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Values != null && { Values: serializeAws_json1_1StepExecutionFilterValueList(input.Values, context) }), + }; +}; +const serializeAws_json1_1StepExecutionFilterList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1StepExecutionFilter(entry, context); + }); +}; +const serializeAws_json1_1StepExecutionFilterValueList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1StopAutomationExecutionRequest = (input, context) => { + return { + ...(input.AutomationExecutionId != null && { AutomationExecutionId: input.AutomationExecutionId }), + ...(input.Type != null && { Type: input.Type }), + }; +}; +const serializeAws_json1_1StringList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1Tag = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Value != null && { Value: input.Value }), + }; +}; +const serializeAws_json1_1TagList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1Tag(entry, context); + }); +}; +const serializeAws_json1_1Target = (input, context) => { + return { + ...(input.Key != null && { Key: input.Key }), + ...(input.Values != null && { Values: serializeAws_json1_1TargetValues(input.Values, context) }), + }; +}; +const serializeAws_json1_1TargetLocation = (input, context) => { + return { + ...(input.Accounts != null && { Accounts: serializeAws_json1_1Accounts(input.Accounts, context) }), + ...(input.ExecutionRoleName != null && { ExecutionRoleName: input.ExecutionRoleName }), + ...(input.Regions != null && { Regions: serializeAws_json1_1Regions(input.Regions, context) }), + ...(input.TargetLocationMaxConcurrency != null && { + TargetLocationMaxConcurrency: input.TargetLocationMaxConcurrency, + }), + ...(input.TargetLocationMaxErrors != null && { TargetLocationMaxErrors: input.TargetLocationMaxErrors }), + }; +}; +const serializeAws_json1_1TargetLocations = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1TargetLocation(entry, context); + }); +}; +const serializeAws_json1_1TargetMap = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_1TargetMapValueList(value, context), + }; + }, {}); +}; +const serializeAws_json1_1TargetMaps = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1TargetMap(entry, context); + }); +}; +const serializeAws_json1_1TargetMapValueList = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1Targets = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return serializeAws_json1_1Target(entry, context); + }); +}; +const serializeAws_json1_1TargetValues = (input, context) => { + return input + .filter((e) => e != null) + .map((entry) => { + return entry; + }); +}; +const serializeAws_json1_1TerminateSessionRequest = (input, context) => { + return { + ...(input.SessionId != null && { SessionId: input.SessionId }), + }; +}; +const serializeAws_json1_1UnlabelParameterVersionRequest = (input, context) => { + return { + ...(input.Labels != null && { Labels: serializeAws_json1_1ParameterLabelList(input.Labels, context) }), + ...(input.Name != null && { Name: input.Name }), + ...(input.ParameterVersion != null && { ParameterVersion: input.ParameterVersion }), + }; +}; +const serializeAws_json1_1UpdateAssociationRequest = (input, context) => { + return { + ...(input.ApplyOnlyAtCronInterval != null && { ApplyOnlyAtCronInterval: input.ApplyOnlyAtCronInterval }), + ...(input.AssociationId != null && { AssociationId: input.AssociationId }), + ...(input.AssociationName != null && { AssociationName: input.AssociationName }), + ...(input.AssociationVersion != null && { AssociationVersion: input.AssociationVersion }), + ...(input.AutomationTargetParameterName != null && { + AutomationTargetParameterName: input.AutomationTargetParameterName, + }), + ...(input.CalendarNames != null && { + CalendarNames: serializeAws_json1_1CalendarNameOrARNList(input.CalendarNames, context), + }), + ...(input.ComplianceSeverity != null && { ComplianceSeverity: input.ComplianceSeverity }), + ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), + ...(input.MaxConcurrency != null && { MaxConcurrency: input.MaxConcurrency }), + ...(input.MaxErrors != null && { MaxErrors: input.MaxErrors }), + ...(input.Name != null && { Name: input.Name }), + ...(input.OutputLocation != null && { + OutputLocation: serializeAws_json1_1InstanceAssociationOutputLocation(input.OutputLocation, context), + }), + ...(input.Parameters != null && { Parameters: serializeAws_json1_1Parameters(input.Parameters, context) }), + ...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }), + ...(input.ScheduleOffset != null && { ScheduleOffset: input.ScheduleOffset }), + ...(input.SyncCompliance != null && { SyncCompliance: input.SyncCompliance }), + ...(input.TargetLocations != null && { + TargetLocations: serializeAws_json1_1TargetLocations(input.TargetLocations, context), + }), + ...(input.TargetMaps != null && { TargetMaps: serializeAws_json1_1TargetMaps(input.TargetMaps, context) }), + ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), + }; +}; +const serializeAws_json1_1UpdateAssociationStatusRequest = (input, context) => { + return { + ...(input.AssociationStatus != null && { + AssociationStatus: serializeAws_json1_1AssociationStatus(input.AssociationStatus, context), + }), + ...(input.InstanceId != null && { InstanceId: input.InstanceId }), + ...(input.Name != null && { Name: input.Name }), + }; +}; +const serializeAws_json1_1UpdateDocumentDefaultVersionRequest = (input, context) => { + return { + ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), + ...(input.Name != null && { Name: input.Name }), + }; +}; +const serializeAws_json1_1UpdateDocumentMetadataRequest = (input, context) => { + return { + ...(input.DocumentReviews != null && { + DocumentReviews: serializeAws_json1_1DocumentReviews(input.DocumentReviews, context), + }), + ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), + ...(input.Name != null && { Name: input.Name }), + }; +}; +const serializeAws_json1_1UpdateDocumentRequest = (input, context) => { + return { + ...(input.Attachments != null && { + Attachments: serializeAws_json1_1AttachmentsSourceList(input.Attachments, context), + }), + ...(input.Content != null && { Content: input.Content }), + ...(input.DisplayName != null && { DisplayName: input.DisplayName }), + ...(input.DocumentFormat != null && { DocumentFormat: input.DocumentFormat }), + ...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }), + ...(input.Name != null && { Name: input.Name }), + ...(input.TargetType != null && { TargetType: input.TargetType }), + ...(input.VersionName != null && { VersionName: input.VersionName }), + }; +}; +const serializeAws_json1_1UpdateMaintenanceWindowRequest = (input, context) => { + return { + ...(input.AllowUnassociatedTargets != null && { AllowUnassociatedTargets: input.AllowUnassociatedTargets }), + ...(input.Cutoff != null && { Cutoff: input.Cutoff }), + ...(input.Description != null && { Description: input.Description }), + ...(input.Duration != null && { Duration: input.Duration }), + ...(input.Enabled != null && { Enabled: input.Enabled }), + ...(input.EndDate != null && { EndDate: input.EndDate }), + ...(input.Name != null && { Name: input.Name }), + ...(input.Replace != null && { Replace: input.Replace }), + ...(input.Schedule != null && { Schedule: input.Schedule }), + ...(input.ScheduleOffset != null && { ScheduleOffset: input.ScheduleOffset }), + ...(input.ScheduleTimezone != null && { ScheduleTimezone: input.ScheduleTimezone }), + ...(input.StartDate != null && { StartDate: input.StartDate }), + ...(input.WindowId != null && { WindowId: input.WindowId }), + }; +}; +const serializeAws_json1_1UpdateMaintenanceWindowTargetRequest = (input, context) => { + return { + ...(input.Description != null && { Description: input.Description }), + ...(input.Name != null && { Name: input.Name }), + ...(input.OwnerInformation != null && { OwnerInformation: input.OwnerInformation }), + ...(input.Replace != null && { Replace: input.Replace }), + ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), + ...(input.WindowId != null && { WindowId: input.WindowId }), + ...(input.WindowTargetId != null && { WindowTargetId: input.WindowTargetId }), + }; +}; +const serializeAws_json1_1UpdateMaintenanceWindowTaskRequest = (input, context) => { + return { + ...(input.CutoffBehavior != null && { CutoffBehavior: input.CutoffBehavior }), + ...(input.Description != null && { Description: input.Description }), + ...(input.LoggingInfo != null && { LoggingInfo: serializeAws_json1_1LoggingInfo(input.LoggingInfo, context) }), + ...(input.MaxConcurrency != null && { MaxConcurrency: input.MaxConcurrency }), + ...(input.MaxErrors != null && { MaxErrors: input.MaxErrors }), + ...(input.Name != null && { Name: input.Name }), + ...(input.Priority != null && { Priority: input.Priority }), + ...(input.Replace != null && { Replace: input.Replace }), + ...(input.ServiceRoleArn != null && { ServiceRoleArn: input.ServiceRoleArn }), + ...(input.Targets != null && { Targets: serializeAws_json1_1Targets(input.Targets, context) }), + ...(input.TaskArn != null && { TaskArn: input.TaskArn }), + ...(input.TaskInvocationParameters != null && { + TaskInvocationParameters: serializeAws_json1_1MaintenanceWindowTaskInvocationParameters(input.TaskInvocationParameters, context), + }), + ...(input.TaskParameters != null && { + TaskParameters: serializeAws_json1_1MaintenanceWindowTaskParameters(input.TaskParameters, context), + }), + ...(input.WindowId != null && { WindowId: input.WindowId }), + ...(input.WindowTaskId != null && { WindowTaskId: input.WindowTaskId }), + }; +}; +const serializeAws_json1_1UpdateManagedInstanceRoleRequest = (input, context) => { + return { + ...(input.IamRole != null && { IamRole: input.IamRole }), + ...(input.InstanceId != null && { InstanceId: input.InstanceId }), + }; +}; +const serializeAws_json1_1UpdateOpsItemRequest = (input, context) => { + return { + ...(input.ActualEndTime != null && { ActualEndTime: Math.round(input.ActualEndTime.getTime() / 1000) }), + ...(input.ActualStartTime != null && { ActualStartTime: Math.round(input.ActualStartTime.getTime() / 1000) }), + ...(input.Category != null && { Category: input.Category }), + ...(input.Description != null && { Description: input.Description }), + ...(input.Notifications != null && { + Notifications: serializeAws_json1_1OpsItemNotifications(input.Notifications, context), + }), + ...(input.OperationalData != null && { + OperationalData: serializeAws_json1_1OpsItemOperationalData(input.OperationalData, context), + }), + ...(input.OperationalDataToDelete != null && { + OperationalDataToDelete: serializeAws_json1_1OpsItemOpsDataKeysList(input.OperationalDataToDelete, context), + }), + ...(input.OpsItemId != null && { OpsItemId: input.OpsItemId }), + ...(input.PlannedEndTime != null && { PlannedEndTime: Math.round(input.PlannedEndTime.getTime() / 1000) }), + ...(input.PlannedStartTime != null && { PlannedStartTime: Math.round(input.PlannedStartTime.getTime() / 1000) }), + ...(input.Priority != null && { Priority: input.Priority }), + ...(input.RelatedOpsItems != null && { + RelatedOpsItems: serializeAws_json1_1RelatedOpsItems(input.RelatedOpsItems, context), + }), + ...(input.Severity != null && { Severity: input.Severity }), + ...(input.Status != null && { Status: input.Status }), + ...(input.Title != null && { Title: input.Title }), + }; +}; +const serializeAws_json1_1UpdateOpsMetadataRequest = (input, context) => { + return { + ...(input.KeysToDelete != null && { + KeysToDelete: serializeAws_json1_1MetadataKeysToDeleteList(input.KeysToDelete, context), + }), + ...(input.MetadataToUpdate != null && { + MetadataToUpdate: serializeAws_json1_1MetadataMap(input.MetadataToUpdate, context), + }), + ...(input.OpsMetadataArn != null && { OpsMetadataArn: input.OpsMetadataArn }), + }; +}; +const serializeAws_json1_1UpdatePatchBaselineRequest = (input, context) => { + return { + ...(input.ApprovalRules != null && { + ApprovalRules: serializeAws_json1_1PatchRuleGroup(input.ApprovalRules, context), + }), + ...(input.ApprovedPatches != null && { + ApprovedPatches: serializeAws_json1_1PatchIdList(input.ApprovedPatches, context), + }), + ...(input.ApprovedPatchesComplianceLevel != null && { + ApprovedPatchesComplianceLevel: input.ApprovedPatchesComplianceLevel, + }), + ...(input.ApprovedPatchesEnableNonSecurity != null && { + ApprovedPatchesEnableNonSecurity: input.ApprovedPatchesEnableNonSecurity, + }), + ...(input.BaselineId != null && { BaselineId: input.BaselineId }), + ...(input.Description != null && { Description: input.Description }), + ...(input.GlobalFilters != null && { + GlobalFilters: serializeAws_json1_1PatchFilterGroup(input.GlobalFilters, context), + }), + ...(input.Name != null && { Name: input.Name }), + ...(input.RejectedPatches != null && { + RejectedPatches: serializeAws_json1_1PatchIdList(input.RejectedPatches, context), + }), + ...(input.RejectedPatchesAction != null && { RejectedPatchesAction: input.RejectedPatchesAction }), + ...(input.Replace != null && { Replace: input.Replace }), + ...(input.Sources != null && { Sources: serializeAws_json1_1PatchSourceList(input.Sources, context) }), + }; +}; +const serializeAws_json1_1UpdateResourceDataSyncRequest = (input, context) => { + return { + ...(input.SyncName != null && { SyncName: input.SyncName }), + ...(input.SyncSource != null && { + SyncSource: serializeAws_json1_1ResourceDataSyncSource(input.SyncSource, context), + }), + ...(input.SyncType != null && { SyncType: input.SyncType }), + }; +}; +const serializeAws_json1_1UpdateServiceSettingRequest = (input, context) => { + return { + ...(input.SettingId != null && { SettingId: input.SettingId }), + ...(input.SettingValue != null && { SettingValue: input.SettingValue }), + }; +}; +const deserializeAws_json1_1AccountIdList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1Accounts = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1AccountSharingInfo = (output, context) => { + return { + AccountId: (0, smithy_client_1.expectString)(output.AccountId), + SharedDocumentVersion: (0, smithy_client_1.expectString)(output.SharedDocumentVersion), + }; +}; +const deserializeAws_json1_1AccountSharingInfoList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1AccountSharingInfo(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1Activation = (output, context) => { + return { + ActivationId: (0, smithy_client_1.expectString)(output.ActivationId), + CreatedDate: output.CreatedDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate))) + : undefined, + DefaultInstanceName: (0, smithy_client_1.expectString)(output.DefaultInstanceName), + Description: (0, smithy_client_1.expectString)(output.Description), + ExpirationDate: output.ExpirationDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpirationDate))) + : undefined, + Expired: (0, smithy_client_1.expectBoolean)(output.Expired), + IamRole: (0, smithy_client_1.expectString)(output.IamRole), + RegistrationLimit: (0, smithy_client_1.expectInt32)(output.RegistrationLimit), + RegistrationsCount: (0, smithy_client_1.expectInt32)(output.RegistrationsCount), + Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined, + }; +}; +const deserializeAws_json1_1ActivationList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1Activation(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1AddTagsToResourceResult = (output, context) => { + return {}; +}; +const deserializeAws_json1_1AlreadyExistsException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1AssociatedInstances = (output, context) => { + return {}; +}; +const deserializeAws_json1_1AssociateOpsItemRelatedItemResponse = (output, context) => { + return { + AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), + }; +}; +const deserializeAws_json1_1Association = (output, context) => { + return { + AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), + AssociationName: (0, smithy_client_1.expectString)(output.AssociationName), + AssociationVersion: (0, smithy_client_1.expectString)(output.AssociationVersion), + DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), + InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), + LastExecutionDate: output.LastExecutionDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastExecutionDate))) + : undefined, + Name: (0, smithy_client_1.expectString)(output.Name), + Overview: output.Overview != null ? deserializeAws_json1_1AssociationOverview(output.Overview, context) : undefined, + ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression), + ScheduleOffset: (0, smithy_client_1.expectInt32)(output.ScheduleOffset), + TargetMaps: output.TargetMaps != null ? deserializeAws_json1_1TargetMaps(output.TargetMaps, context) : undefined, + Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, + }; +}; +const deserializeAws_json1_1AssociationAlreadyExists = (output, context) => { + return {}; +}; +const deserializeAws_json1_1AssociationDescription = (output, context) => { + return { + ApplyOnlyAtCronInterval: (0, smithy_client_1.expectBoolean)(output.ApplyOnlyAtCronInterval), + AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), + AssociationName: (0, smithy_client_1.expectString)(output.AssociationName), + AssociationVersion: (0, smithy_client_1.expectString)(output.AssociationVersion), + AutomationTargetParameterName: (0, smithy_client_1.expectString)(output.AutomationTargetParameterName), + CalendarNames: output.CalendarNames != null + ? deserializeAws_json1_1CalendarNameOrARNList(output.CalendarNames, context) + : undefined, + ComplianceSeverity: (0, smithy_client_1.expectString)(output.ComplianceSeverity), + Date: output.Date != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Date))) : undefined, + DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), + InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), + LastExecutionDate: output.LastExecutionDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastExecutionDate))) + : undefined, + LastSuccessfulExecutionDate: output.LastSuccessfulExecutionDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastSuccessfulExecutionDate))) + : undefined, + LastUpdateAssociationDate: output.LastUpdateAssociationDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateAssociationDate))) + : undefined, + MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), + MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), + Name: (0, smithy_client_1.expectString)(output.Name), + OutputLocation: output.OutputLocation != null + ? deserializeAws_json1_1InstanceAssociationOutputLocation(output.OutputLocation, context) + : undefined, + Overview: output.Overview != null ? deserializeAws_json1_1AssociationOverview(output.Overview, context) : undefined, + Parameters: output.Parameters != null ? deserializeAws_json1_1Parameters(output.Parameters, context) : undefined, + ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression), + ScheduleOffset: (0, smithy_client_1.expectInt32)(output.ScheduleOffset), + Status: output.Status != null ? deserializeAws_json1_1AssociationStatus(output.Status, context) : undefined, + SyncCompliance: (0, smithy_client_1.expectString)(output.SyncCompliance), + TargetLocations: output.TargetLocations != null + ? deserializeAws_json1_1TargetLocations(output.TargetLocations, context) + : undefined, + TargetMaps: output.TargetMaps != null ? deserializeAws_json1_1TargetMaps(output.TargetMaps, context) : undefined, + Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, + }; +}; +const deserializeAws_json1_1AssociationDescriptionList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1AssociationDescription(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1AssociationDoesNotExist = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1AssociationExecution = (output, context) => { + return { + AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), + AssociationVersion: (0, smithy_client_1.expectString)(output.AssociationVersion), + CreatedTime: output.CreatedTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime))) + : undefined, + DetailedStatus: (0, smithy_client_1.expectString)(output.DetailedStatus), + ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId), + LastExecutionDate: output.LastExecutionDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastExecutionDate))) + : undefined, + ResourceCountByStatus: (0, smithy_client_1.expectString)(output.ResourceCountByStatus), + Status: (0, smithy_client_1.expectString)(output.Status), + }; +}; +const deserializeAws_json1_1AssociationExecutionDoesNotExist = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1AssociationExecutionsList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1AssociationExecution(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1AssociationExecutionTarget = (output, context) => { + return { + AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), + AssociationVersion: (0, smithy_client_1.expectString)(output.AssociationVersion), + DetailedStatus: (0, smithy_client_1.expectString)(output.DetailedStatus), + ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId), + LastExecutionDate: output.LastExecutionDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastExecutionDate))) + : undefined, + OutputSource: output.OutputSource != null ? deserializeAws_json1_1OutputSource(output.OutputSource, context) : undefined, + ResourceId: (0, smithy_client_1.expectString)(output.ResourceId), + ResourceType: (0, smithy_client_1.expectString)(output.ResourceType), + Status: (0, smithy_client_1.expectString)(output.Status), + }; +}; +const deserializeAws_json1_1AssociationExecutionTargetsList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1AssociationExecutionTarget(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1AssociationLimitExceeded = (output, context) => { + return {}; +}; +const deserializeAws_json1_1AssociationList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1Association(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1AssociationOverview = (output, context) => { + return { + AssociationStatusAggregatedCount: output.AssociationStatusAggregatedCount != null + ? deserializeAws_json1_1AssociationStatusAggregatedCount(output.AssociationStatusAggregatedCount, context) + : undefined, + DetailedStatus: (0, smithy_client_1.expectString)(output.DetailedStatus), + Status: (0, smithy_client_1.expectString)(output.Status), + }; +}; +const deserializeAws_json1_1AssociationStatus = (output, context) => { + return { + AdditionalInfo: (0, smithy_client_1.expectString)(output.AdditionalInfo), + Date: output.Date != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Date))) : undefined, + Message: (0, smithy_client_1.expectString)(output.Message), + Name: (0, smithy_client_1.expectString)(output.Name), + }; +}; +const deserializeAws_json1_1AssociationStatusAggregatedCount = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: (0, smithy_client_1.expectInt32)(value), + }; + }, {}); +}; +const deserializeAws_json1_1AssociationVersionInfo = (output, context) => { + return { + ApplyOnlyAtCronInterval: (0, smithy_client_1.expectBoolean)(output.ApplyOnlyAtCronInterval), + AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), + AssociationName: (0, smithy_client_1.expectString)(output.AssociationName), + AssociationVersion: (0, smithy_client_1.expectString)(output.AssociationVersion), + CalendarNames: output.CalendarNames != null + ? deserializeAws_json1_1CalendarNameOrARNList(output.CalendarNames, context) + : undefined, + ComplianceSeverity: (0, smithy_client_1.expectString)(output.ComplianceSeverity), + CreatedDate: output.CreatedDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate))) + : undefined, + DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), + MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), + MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), + Name: (0, smithy_client_1.expectString)(output.Name), + OutputLocation: output.OutputLocation != null + ? deserializeAws_json1_1InstanceAssociationOutputLocation(output.OutputLocation, context) + : undefined, + Parameters: output.Parameters != null ? deserializeAws_json1_1Parameters(output.Parameters, context) : undefined, + ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression), + ScheduleOffset: (0, smithy_client_1.expectInt32)(output.ScheduleOffset), + SyncCompliance: (0, smithy_client_1.expectString)(output.SyncCompliance), + TargetLocations: output.TargetLocations != null + ? deserializeAws_json1_1TargetLocations(output.TargetLocations, context) + : undefined, + TargetMaps: output.TargetMaps != null ? deserializeAws_json1_1TargetMaps(output.TargetMaps, context) : undefined, + Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, + }; +}; +const deserializeAws_json1_1AssociationVersionLimitExceeded = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1AssociationVersionList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1AssociationVersionInfo(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1AttachmentContent = (output, context) => { + return { + Hash: (0, smithy_client_1.expectString)(output.Hash), + HashType: (0, smithy_client_1.expectString)(output.HashType), + Name: (0, smithy_client_1.expectString)(output.Name), + Size: (0, smithy_client_1.expectLong)(output.Size), + Url: (0, smithy_client_1.expectString)(output.Url), + }; +}; +const deserializeAws_json1_1AttachmentContentList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1AttachmentContent(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1AttachmentInformation = (output, context) => { + return { + Name: (0, smithy_client_1.expectString)(output.Name), + }; +}; +const deserializeAws_json1_1AttachmentInformationList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1AttachmentInformation(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1AutomationDefinitionNotApprovedException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1AutomationDefinitionNotFoundException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1AutomationDefinitionVersionNotFoundException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1AutomationExecution = (output, context) => { + return { + AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), + AutomationExecutionId: (0, smithy_client_1.expectString)(output.AutomationExecutionId), + AutomationExecutionStatus: (0, smithy_client_1.expectString)(output.AutomationExecutionStatus), + AutomationSubtype: (0, smithy_client_1.expectString)(output.AutomationSubtype), + ChangeRequestName: (0, smithy_client_1.expectString)(output.ChangeRequestName), + CurrentAction: (0, smithy_client_1.expectString)(output.CurrentAction), + CurrentStepName: (0, smithy_client_1.expectString)(output.CurrentStepName), + DocumentName: (0, smithy_client_1.expectString)(output.DocumentName), + DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), + ExecutedBy: (0, smithy_client_1.expectString)(output.ExecutedBy), + ExecutionEndTime: output.ExecutionEndTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExecutionEndTime))) + : undefined, + ExecutionStartTime: output.ExecutionStartTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExecutionStartTime))) + : undefined, + FailureMessage: (0, smithy_client_1.expectString)(output.FailureMessage), + MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), + MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), + Mode: (0, smithy_client_1.expectString)(output.Mode), + OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), + Outputs: output.Outputs != null ? deserializeAws_json1_1AutomationParameterMap(output.Outputs, context) : undefined, + Parameters: output.Parameters != null ? deserializeAws_json1_1AutomationParameterMap(output.Parameters, context) : undefined, + ParentAutomationExecutionId: (0, smithy_client_1.expectString)(output.ParentAutomationExecutionId), + ProgressCounters: output.ProgressCounters != null + ? deserializeAws_json1_1ProgressCounters(output.ProgressCounters, context) + : undefined, + ResolvedTargets: output.ResolvedTargets != null + ? deserializeAws_json1_1ResolvedTargets(output.ResolvedTargets, context) + : undefined, + Runbooks: output.Runbooks != null ? deserializeAws_json1_1Runbooks(output.Runbooks, context) : undefined, + ScheduledTime: output.ScheduledTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ScheduledTime))) + : undefined, + StepExecutions: output.StepExecutions != null + ? deserializeAws_json1_1StepExecutionList(output.StepExecutions, context) + : undefined, + StepExecutionsTruncated: (0, smithy_client_1.expectBoolean)(output.StepExecutionsTruncated), + Target: (0, smithy_client_1.expectString)(output.Target), + TargetLocations: output.TargetLocations != null + ? deserializeAws_json1_1TargetLocations(output.TargetLocations, context) + : undefined, + TargetMaps: output.TargetMaps != null ? deserializeAws_json1_1TargetMaps(output.TargetMaps, context) : undefined, + TargetParameterName: (0, smithy_client_1.expectString)(output.TargetParameterName), + Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, + }; +}; +const deserializeAws_json1_1AutomationExecutionLimitExceededException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1AutomationExecutionMetadata = (output, context) => { + return { + AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), + AutomationExecutionId: (0, smithy_client_1.expectString)(output.AutomationExecutionId), + AutomationExecutionStatus: (0, smithy_client_1.expectString)(output.AutomationExecutionStatus), + AutomationSubtype: (0, smithy_client_1.expectString)(output.AutomationSubtype), + AutomationType: (0, smithy_client_1.expectString)(output.AutomationType), + ChangeRequestName: (0, smithy_client_1.expectString)(output.ChangeRequestName), + CurrentAction: (0, smithy_client_1.expectString)(output.CurrentAction), + CurrentStepName: (0, smithy_client_1.expectString)(output.CurrentStepName), + DocumentName: (0, smithy_client_1.expectString)(output.DocumentName), + DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), + ExecutedBy: (0, smithy_client_1.expectString)(output.ExecutedBy), + ExecutionEndTime: output.ExecutionEndTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExecutionEndTime))) + : undefined, + ExecutionStartTime: output.ExecutionStartTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExecutionStartTime))) + : undefined, + FailureMessage: (0, smithy_client_1.expectString)(output.FailureMessage), + LogFile: (0, smithy_client_1.expectString)(output.LogFile), + MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), + MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), + Mode: (0, smithy_client_1.expectString)(output.Mode), + OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), + Outputs: output.Outputs != null ? deserializeAws_json1_1AutomationParameterMap(output.Outputs, context) : undefined, + ParentAutomationExecutionId: (0, smithy_client_1.expectString)(output.ParentAutomationExecutionId), + ResolvedTargets: output.ResolvedTargets != null + ? deserializeAws_json1_1ResolvedTargets(output.ResolvedTargets, context) + : undefined, + Runbooks: output.Runbooks != null ? deserializeAws_json1_1Runbooks(output.Runbooks, context) : undefined, + ScheduledTime: output.ScheduledTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ScheduledTime))) + : undefined, + Target: (0, smithy_client_1.expectString)(output.Target), + TargetMaps: output.TargetMaps != null ? deserializeAws_json1_1TargetMaps(output.TargetMaps, context) : undefined, + TargetParameterName: (0, smithy_client_1.expectString)(output.TargetParameterName), + Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, + }; +}; +const deserializeAws_json1_1AutomationExecutionMetadataList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1AutomationExecutionMetadata(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1AutomationExecutionNotFoundException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1AutomationParameterMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_1AutomationParameterValueList(value, context), + }; + }, {}); +}; +const deserializeAws_json1_1AutomationParameterValueList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1AutomationStepNotFoundException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1CalendarNameOrARNList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1CancelCommandResult = (output, context) => { + return {}; +}; +const deserializeAws_json1_1CancelMaintenanceWindowExecutionResult = (output, context) => { + return { + WindowExecutionId: (0, smithy_client_1.expectString)(output.WindowExecutionId), + }; +}; +const deserializeAws_json1_1CategoryEnumList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1CategoryList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1CloudWatchOutputConfig = (output, context) => { + return { + CloudWatchLogGroupName: (0, smithy_client_1.expectString)(output.CloudWatchLogGroupName), + CloudWatchOutputEnabled: (0, smithy_client_1.expectBoolean)(output.CloudWatchOutputEnabled), + }; +}; +const deserializeAws_json1_1Command = (output, context) => { + return { + CloudWatchOutputConfig: output.CloudWatchOutputConfig != null + ? deserializeAws_json1_1CloudWatchOutputConfig(output.CloudWatchOutputConfig, context) + : undefined, + CommandId: (0, smithy_client_1.expectString)(output.CommandId), + Comment: (0, smithy_client_1.expectString)(output.Comment), + CompletedCount: (0, smithy_client_1.expectInt32)(output.CompletedCount), + DeliveryTimedOutCount: (0, smithy_client_1.expectInt32)(output.DeliveryTimedOutCount), + DocumentName: (0, smithy_client_1.expectString)(output.DocumentName), + DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), + ErrorCount: (0, smithy_client_1.expectInt32)(output.ErrorCount), + ExpiresAfter: output.ExpiresAfter != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpiresAfter))) + : undefined, + InstanceIds: output.InstanceIds != null ? deserializeAws_json1_1InstanceIdList(output.InstanceIds, context) : undefined, + MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), + MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), + NotificationConfig: output.NotificationConfig != null + ? deserializeAws_json1_1NotificationConfig(output.NotificationConfig, context) + : undefined, + OutputS3BucketName: (0, smithy_client_1.expectString)(output.OutputS3BucketName), + OutputS3KeyPrefix: (0, smithy_client_1.expectString)(output.OutputS3KeyPrefix), + OutputS3Region: (0, smithy_client_1.expectString)(output.OutputS3Region), + Parameters: output.Parameters != null ? deserializeAws_json1_1Parameters(output.Parameters, context) : undefined, + RequestedDateTime: output.RequestedDateTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RequestedDateTime))) + : undefined, + ServiceRole: (0, smithy_client_1.expectString)(output.ServiceRole), + Status: (0, smithy_client_1.expectString)(output.Status), + StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), + TargetCount: (0, smithy_client_1.expectInt32)(output.TargetCount), + Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, + TimeoutSeconds: (0, smithy_client_1.expectInt32)(output.TimeoutSeconds), + }; +}; +const deserializeAws_json1_1CommandInvocation = (output, context) => { + return { + CloudWatchOutputConfig: output.CloudWatchOutputConfig != null + ? deserializeAws_json1_1CloudWatchOutputConfig(output.CloudWatchOutputConfig, context) + : undefined, + CommandId: (0, smithy_client_1.expectString)(output.CommandId), + CommandPlugins: output.CommandPlugins != null + ? deserializeAws_json1_1CommandPluginList(output.CommandPlugins, context) + : undefined, + Comment: (0, smithy_client_1.expectString)(output.Comment), + DocumentName: (0, smithy_client_1.expectString)(output.DocumentName), + DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), + InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), + InstanceName: (0, smithy_client_1.expectString)(output.InstanceName), + NotificationConfig: output.NotificationConfig != null + ? deserializeAws_json1_1NotificationConfig(output.NotificationConfig, context) + : undefined, + RequestedDateTime: output.RequestedDateTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RequestedDateTime))) + : undefined, + ServiceRole: (0, smithy_client_1.expectString)(output.ServiceRole), + StandardErrorUrl: (0, smithy_client_1.expectString)(output.StandardErrorUrl), + StandardOutputUrl: (0, smithy_client_1.expectString)(output.StandardOutputUrl), + Status: (0, smithy_client_1.expectString)(output.Status), + StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), + TraceOutput: (0, smithy_client_1.expectString)(output.TraceOutput), + }; +}; +const deserializeAws_json1_1CommandInvocationList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1CommandInvocation(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1CommandList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1Command(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1CommandPlugin = (output, context) => { + return { + Name: (0, smithy_client_1.expectString)(output.Name), + Output: (0, smithy_client_1.expectString)(output.Output), + OutputS3BucketName: (0, smithy_client_1.expectString)(output.OutputS3BucketName), + OutputS3KeyPrefix: (0, smithy_client_1.expectString)(output.OutputS3KeyPrefix), + OutputS3Region: (0, smithy_client_1.expectString)(output.OutputS3Region), + ResponseCode: (0, smithy_client_1.expectInt32)(output.ResponseCode), + ResponseFinishDateTime: output.ResponseFinishDateTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ResponseFinishDateTime))) + : undefined, + ResponseStartDateTime: output.ResponseStartDateTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ResponseStartDateTime))) + : undefined, + StandardErrorUrl: (0, smithy_client_1.expectString)(output.StandardErrorUrl), + StandardOutputUrl: (0, smithy_client_1.expectString)(output.StandardOutputUrl), + Status: (0, smithy_client_1.expectString)(output.Status), + StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), + }; +}; +const deserializeAws_json1_1CommandPluginList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1CommandPlugin(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1ComplianceExecutionSummary = (output, context) => { + return { + ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId), + ExecutionTime: output.ExecutionTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExecutionTime))) + : undefined, + ExecutionType: (0, smithy_client_1.expectString)(output.ExecutionType), + }; +}; +const deserializeAws_json1_1ComplianceItem = (output, context) => { + return { + ComplianceType: (0, smithy_client_1.expectString)(output.ComplianceType), + Details: output.Details != null ? deserializeAws_json1_1ComplianceItemDetails(output.Details, context) : undefined, + ExecutionSummary: output.ExecutionSummary != null + ? deserializeAws_json1_1ComplianceExecutionSummary(output.ExecutionSummary, context) + : undefined, + Id: (0, smithy_client_1.expectString)(output.Id), + ResourceId: (0, smithy_client_1.expectString)(output.ResourceId), + ResourceType: (0, smithy_client_1.expectString)(output.ResourceType), + Severity: (0, smithy_client_1.expectString)(output.Severity), + Status: (0, smithy_client_1.expectString)(output.Status), + Title: (0, smithy_client_1.expectString)(output.Title), + }; +}; +const deserializeAws_json1_1ComplianceItemDetails = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: (0, smithy_client_1.expectString)(value), + }; + }, {}); +}; +const deserializeAws_json1_1ComplianceItemList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1ComplianceItem(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1ComplianceSummaryItem = (output, context) => { + return { + ComplianceType: (0, smithy_client_1.expectString)(output.ComplianceType), + CompliantSummary: output.CompliantSummary != null + ? deserializeAws_json1_1CompliantSummary(output.CompliantSummary, context) + : undefined, + NonCompliantSummary: output.NonCompliantSummary != null + ? deserializeAws_json1_1NonCompliantSummary(output.NonCompliantSummary, context) + : undefined, + }; +}; +const deserializeAws_json1_1ComplianceSummaryItemList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1ComplianceSummaryItem(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1ComplianceTypeCountLimitExceededException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1CompliantSummary = (output, context) => { + return { + CompliantCount: (0, smithy_client_1.expectInt32)(output.CompliantCount), + SeveritySummary: output.SeveritySummary != null + ? deserializeAws_json1_1SeveritySummary(output.SeveritySummary, context) + : undefined, + }; +}; +const deserializeAws_json1_1CreateActivationResult = (output, context) => { + return { + ActivationCode: (0, smithy_client_1.expectString)(output.ActivationCode), + ActivationId: (0, smithy_client_1.expectString)(output.ActivationId), + }; +}; +const deserializeAws_json1_1CreateAssociationBatchRequestEntry = (output, context) => { + return { + ApplyOnlyAtCronInterval: (0, smithy_client_1.expectBoolean)(output.ApplyOnlyAtCronInterval), + AssociationName: (0, smithy_client_1.expectString)(output.AssociationName), + AutomationTargetParameterName: (0, smithy_client_1.expectString)(output.AutomationTargetParameterName), + CalendarNames: output.CalendarNames != null + ? deserializeAws_json1_1CalendarNameOrARNList(output.CalendarNames, context) + : undefined, + ComplianceSeverity: (0, smithy_client_1.expectString)(output.ComplianceSeverity), + DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), + InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), + MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), + MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), + Name: (0, smithy_client_1.expectString)(output.Name), + OutputLocation: output.OutputLocation != null + ? deserializeAws_json1_1InstanceAssociationOutputLocation(output.OutputLocation, context) + : undefined, + Parameters: output.Parameters != null ? deserializeAws_json1_1Parameters(output.Parameters, context) : undefined, + ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression), + ScheduleOffset: (0, smithy_client_1.expectInt32)(output.ScheduleOffset), + SyncCompliance: (0, smithy_client_1.expectString)(output.SyncCompliance), + TargetLocations: output.TargetLocations != null + ? deserializeAws_json1_1TargetLocations(output.TargetLocations, context) + : undefined, + TargetMaps: output.TargetMaps != null ? deserializeAws_json1_1TargetMaps(output.TargetMaps, context) : undefined, + Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, + }; +}; +const deserializeAws_json1_1CreateAssociationBatchResult = (output, context) => { + return { + Failed: output.Failed != null ? deserializeAws_json1_1FailedCreateAssociationList(output.Failed, context) : undefined, + Successful: output.Successful != null + ? deserializeAws_json1_1AssociationDescriptionList(output.Successful, context) + : undefined, + }; +}; +const deserializeAws_json1_1CreateAssociationResult = (output, context) => { + return { + AssociationDescription: output.AssociationDescription != null + ? deserializeAws_json1_1AssociationDescription(output.AssociationDescription, context) + : undefined, + }; +}; +const deserializeAws_json1_1CreateDocumentResult = (output, context) => { + return { + DocumentDescription: output.DocumentDescription != null + ? deserializeAws_json1_1DocumentDescription(output.DocumentDescription, context) + : undefined, + }; +}; +const deserializeAws_json1_1CreateMaintenanceWindowResult = (output, context) => { + return { + WindowId: (0, smithy_client_1.expectString)(output.WindowId), + }; +}; +const deserializeAws_json1_1CreateOpsItemResponse = (output, context) => { + return { + OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), + }; +}; +const deserializeAws_json1_1CreateOpsMetadataResult = (output, context) => { + return { + OpsMetadataArn: (0, smithy_client_1.expectString)(output.OpsMetadataArn), + }; +}; +const deserializeAws_json1_1CreatePatchBaselineResult = (output, context) => { + return { + BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), + }; +}; +const deserializeAws_json1_1CreateResourceDataSyncResult = (output, context) => { + return {}; +}; +const deserializeAws_json1_1CustomSchemaCountLimitExceededException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1DeleteActivationResult = (output, context) => { + return {}; +}; +const deserializeAws_json1_1DeleteAssociationResult = (output, context) => { + return {}; +}; +const deserializeAws_json1_1DeleteDocumentResult = (output, context) => { + return {}; +}; +const deserializeAws_json1_1DeleteInventoryResult = (output, context) => { + return { + DeletionId: (0, smithy_client_1.expectString)(output.DeletionId), + DeletionSummary: output.DeletionSummary != null + ? deserializeAws_json1_1InventoryDeletionSummary(output.DeletionSummary, context) + : undefined, + TypeName: (0, smithy_client_1.expectString)(output.TypeName), + }; +}; +const deserializeAws_json1_1DeleteMaintenanceWindowResult = (output, context) => { + return { + WindowId: (0, smithy_client_1.expectString)(output.WindowId), + }; +}; +const deserializeAws_json1_1DeleteOpsMetadataResult = (output, context) => { + return {}; +}; +const deserializeAws_json1_1DeleteParameterResult = (output, context) => { + return {}; +}; +const deserializeAws_json1_1DeleteParametersResult = (output, context) => { + return { + DeletedParameters: output.DeletedParameters != null + ? deserializeAws_json1_1ParameterNameList(output.DeletedParameters, context) + : undefined, + InvalidParameters: output.InvalidParameters != null + ? deserializeAws_json1_1ParameterNameList(output.InvalidParameters, context) + : undefined, + }; +}; +const deserializeAws_json1_1DeletePatchBaselineResult = (output, context) => { + return { + BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), + }; +}; +const deserializeAws_json1_1DeleteResourceDataSyncResult = (output, context) => { + return {}; +}; +const deserializeAws_json1_1DeregisterManagedInstanceResult = (output, context) => { + return {}; +}; +const deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupResult = (output, context) => { + return { + BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), + PatchGroup: (0, smithy_client_1.expectString)(output.PatchGroup), + }; +}; +const deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowResult = (output, context) => { + return { + WindowId: (0, smithy_client_1.expectString)(output.WindowId), + WindowTargetId: (0, smithy_client_1.expectString)(output.WindowTargetId), + }; +}; +const deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowResult = (output, context) => { + return { + WindowId: (0, smithy_client_1.expectString)(output.WindowId), + WindowTaskId: (0, smithy_client_1.expectString)(output.WindowTaskId), + }; +}; +const deserializeAws_json1_1DescribeActivationsResult = (output, context) => { + return { + ActivationList: output.ActivationList != null ? deserializeAws_json1_1ActivationList(output.ActivationList, context) : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1DescribeAssociationExecutionsResult = (output, context) => { + return { + AssociationExecutions: output.AssociationExecutions != null + ? deserializeAws_json1_1AssociationExecutionsList(output.AssociationExecutions, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1DescribeAssociationExecutionTargetsResult = (output, context) => { + return { + AssociationExecutionTargets: output.AssociationExecutionTargets != null + ? deserializeAws_json1_1AssociationExecutionTargetsList(output.AssociationExecutionTargets, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1DescribeAssociationResult = (output, context) => { + return { + AssociationDescription: output.AssociationDescription != null + ? deserializeAws_json1_1AssociationDescription(output.AssociationDescription, context) + : undefined, + }; +}; +const deserializeAws_json1_1DescribeAutomationExecutionsResult = (output, context) => { + return { + AutomationExecutionMetadataList: output.AutomationExecutionMetadataList != null + ? deserializeAws_json1_1AutomationExecutionMetadataList(output.AutomationExecutionMetadataList, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1DescribeAutomationStepExecutionsResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + StepExecutions: output.StepExecutions != null + ? deserializeAws_json1_1StepExecutionList(output.StepExecutions, context) + : undefined, + }; +}; +const deserializeAws_json1_1DescribeAvailablePatchesResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + Patches: output.Patches != null ? deserializeAws_json1_1PatchList(output.Patches, context) : undefined, + }; +}; +const deserializeAws_json1_1DescribeDocumentPermissionResponse = (output, context) => { + return { + AccountIds: output.AccountIds != null ? deserializeAws_json1_1AccountIdList(output.AccountIds, context) : undefined, + AccountSharingInfoList: output.AccountSharingInfoList != null + ? deserializeAws_json1_1AccountSharingInfoList(output.AccountSharingInfoList, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1DescribeDocumentResult = (output, context) => { + return { + Document: output.Document != null ? deserializeAws_json1_1DocumentDescription(output.Document, context) : undefined, + }; +}; +const deserializeAws_json1_1DescribeEffectiveInstanceAssociationsResult = (output, context) => { + return { + Associations: output.Associations != null + ? deserializeAws_json1_1InstanceAssociationList(output.Associations, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineResult = (output, context) => { + return { + EffectivePatches: output.EffectivePatches != null + ? deserializeAws_json1_1EffectivePatchList(output.EffectivePatches, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1DescribeInstanceAssociationsStatusResult = (output, context) => { + return { + InstanceAssociationStatusInfos: output.InstanceAssociationStatusInfos != null + ? deserializeAws_json1_1InstanceAssociationStatusInfos(output.InstanceAssociationStatusInfos, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1DescribeInstanceInformationResult = (output, context) => { + return { + InstanceInformationList: output.InstanceInformationList != null + ? deserializeAws_json1_1InstanceInformationList(output.InstanceInformationList, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1DescribeInstancePatchesResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + Patches: output.Patches != null ? deserializeAws_json1_1PatchComplianceDataList(output.Patches, context) : undefined, + }; +}; +const deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupResult = (output, context) => { + return { + InstancePatchStates: output.InstancePatchStates != null + ? deserializeAws_json1_1InstancePatchStatesList(output.InstancePatchStates, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1DescribeInstancePatchStatesResult = (output, context) => { + return { + InstancePatchStates: output.InstancePatchStates != null + ? deserializeAws_json1_1InstancePatchStateList(output.InstancePatchStates, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1DescribeInventoryDeletionsResult = (output, context) => { + return { + InventoryDeletions: output.InventoryDeletions != null + ? deserializeAws_json1_1InventoryDeletionsList(output.InventoryDeletions, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1DescribeMaintenanceWindowExecutionsResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + WindowExecutions: output.WindowExecutions != null + ? deserializeAws_json1_1MaintenanceWindowExecutionList(output.WindowExecutions, context) + : undefined, + }; +}; +const deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + WindowExecutionTaskInvocationIdentities: output.WindowExecutionTaskInvocationIdentities != null + ? deserializeAws_json1_1MaintenanceWindowExecutionTaskInvocationIdentityList(output.WindowExecutionTaskInvocationIdentities, context) + : undefined, + }; +}; +const deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + WindowExecutionTaskIdentities: output.WindowExecutionTaskIdentities != null + ? deserializeAws_json1_1MaintenanceWindowExecutionTaskIdentityList(output.WindowExecutionTaskIdentities, context) + : undefined, + }; +}; +const deserializeAws_json1_1DescribeMaintenanceWindowScheduleResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + ScheduledWindowExecutions: output.ScheduledWindowExecutions != null + ? deserializeAws_json1_1ScheduledWindowExecutionList(output.ScheduledWindowExecutions, context) + : undefined, + }; +}; +const deserializeAws_json1_1DescribeMaintenanceWindowsForTargetResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + WindowIdentities: output.WindowIdentities != null + ? deserializeAws_json1_1MaintenanceWindowsForTargetList(output.WindowIdentities, context) + : undefined, + }; +}; +const deserializeAws_json1_1DescribeMaintenanceWindowsResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + WindowIdentities: output.WindowIdentities != null + ? deserializeAws_json1_1MaintenanceWindowIdentityList(output.WindowIdentities, context) + : undefined, + }; +}; +const deserializeAws_json1_1DescribeMaintenanceWindowTargetsResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + Targets: output.Targets != null ? deserializeAws_json1_1MaintenanceWindowTargetList(output.Targets, context) : undefined, + }; +}; +const deserializeAws_json1_1DescribeMaintenanceWindowTasksResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + Tasks: output.Tasks != null ? deserializeAws_json1_1MaintenanceWindowTaskList(output.Tasks, context) : undefined, + }; +}; +const deserializeAws_json1_1DescribeOpsItemsResponse = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + OpsItemSummaries: output.OpsItemSummaries != null + ? deserializeAws_json1_1OpsItemSummaries(output.OpsItemSummaries, context) + : undefined, + }; +}; +const deserializeAws_json1_1DescribeParametersResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + Parameters: output.Parameters != null ? deserializeAws_json1_1ParameterMetadataList(output.Parameters, context) : undefined, + }; +}; +const deserializeAws_json1_1DescribePatchBaselinesResult = (output, context) => { + return { + BaselineIdentities: output.BaselineIdentities != null + ? deserializeAws_json1_1PatchBaselineIdentityList(output.BaselineIdentities, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1DescribePatchGroupsResult = (output, context) => { + return { + Mappings: output.Mappings != null + ? deserializeAws_json1_1PatchGroupPatchBaselineMappingList(output.Mappings, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1DescribePatchGroupStateResult = (output, context) => { + return { + Instances: (0, smithy_client_1.expectInt32)(output.Instances), + InstancesWithCriticalNonCompliantPatches: (0, smithy_client_1.expectInt32)(output.InstancesWithCriticalNonCompliantPatches), + InstancesWithFailedPatches: (0, smithy_client_1.expectInt32)(output.InstancesWithFailedPatches), + InstancesWithInstalledOtherPatches: (0, smithy_client_1.expectInt32)(output.InstancesWithInstalledOtherPatches), + InstancesWithInstalledPatches: (0, smithy_client_1.expectInt32)(output.InstancesWithInstalledPatches), + InstancesWithInstalledPendingRebootPatches: (0, smithy_client_1.expectInt32)(output.InstancesWithInstalledPendingRebootPatches), + InstancesWithInstalledRejectedPatches: (0, smithy_client_1.expectInt32)(output.InstancesWithInstalledRejectedPatches), + InstancesWithMissingPatches: (0, smithy_client_1.expectInt32)(output.InstancesWithMissingPatches), + InstancesWithNotApplicablePatches: (0, smithy_client_1.expectInt32)(output.InstancesWithNotApplicablePatches), + InstancesWithOtherNonCompliantPatches: (0, smithy_client_1.expectInt32)(output.InstancesWithOtherNonCompliantPatches), + InstancesWithSecurityNonCompliantPatches: (0, smithy_client_1.expectInt32)(output.InstancesWithSecurityNonCompliantPatches), + InstancesWithUnreportedNotApplicablePatches: (0, smithy_client_1.expectInt32)(output.InstancesWithUnreportedNotApplicablePatches), + }; +}; +const deserializeAws_json1_1DescribePatchPropertiesResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + Properties: output.Properties != null ? deserializeAws_json1_1PatchPropertiesList(output.Properties, context) : undefined, + }; +}; +const deserializeAws_json1_1DescribeSessionsResponse = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + Sessions: output.Sessions != null ? deserializeAws_json1_1SessionList(output.Sessions, context) : undefined, + }; +}; +const deserializeAws_json1_1DisassociateOpsItemRelatedItemResponse = (output, context) => { + return {}; +}; +const deserializeAws_json1_1DocumentAlreadyExists = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1DocumentDefaultVersionDescription = (output, context) => { + return { + DefaultVersion: (0, smithy_client_1.expectString)(output.DefaultVersion), + DefaultVersionName: (0, smithy_client_1.expectString)(output.DefaultVersionName), + Name: (0, smithy_client_1.expectString)(output.Name), + }; +}; +const deserializeAws_json1_1DocumentDescription = (output, context) => { + return { + ApprovedVersion: (0, smithy_client_1.expectString)(output.ApprovedVersion), + AttachmentsInformation: output.AttachmentsInformation != null + ? deserializeAws_json1_1AttachmentInformationList(output.AttachmentsInformation, context) + : undefined, + Author: (0, smithy_client_1.expectString)(output.Author), + Category: output.Category != null ? deserializeAws_json1_1CategoryList(output.Category, context) : undefined, + CategoryEnum: output.CategoryEnum != null ? deserializeAws_json1_1CategoryEnumList(output.CategoryEnum, context) : undefined, + CreatedDate: output.CreatedDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate))) + : undefined, + DefaultVersion: (0, smithy_client_1.expectString)(output.DefaultVersion), + Description: (0, smithy_client_1.expectString)(output.Description), + DisplayName: (0, smithy_client_1.expectString)(output.DisplayName), + DocumentFormat: (0, smithy_client_1.expectString)(output.DocumentFormat), + DocumentType: (0, smithy_client_1.expectString)(output.DocumentType), + DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), + Hash: (0, smithy_client_1.expectString)(output.Hash), + HashType: (0, smithy_client_1.expectString)(output.HashType), + LatestVersion: (0, smithy_client_1.expectString)(output.LatestVersion), + Name: (0, smithy_client_1.expectString)(output.Name), + Owner: (0, smithy_client_1.expectString)(output.Owner), + Parameters: output.Parameters != null ? deserializeAws_json1_1DocumentParameterList(output.Parameters, context) : undefined, + PendingReviewVersion: (0, smithy_client_1.expectString)(output.PendingReviewVersion), + PlatformTypes: output.PlatformTypes != null ? deserializeAws_json1_1PlatformTypeList(output.PlatformTypes, context) : undefined, + Requires: output.Requires != null ? deserializeAws_json1_1DocumentRequiresList(output.Requires, context) : undefined, + ReviewInformation: output.ReviewInformation != null + ? deserializeAws_json1_1ReviewInformationList(output.ReviewInformation, context) + : undefined, + ReviewStatus: (0, smithy_client_1.expectString)(output.ReviewStatus), + SchemaVersion: (0, smithy_client_1.expectString)(output.SchemaVersion), + Sha1: (0, smithy_client_1.expectString)(output.Sha1), + Status: (0, smithy_client_1.expectString)(output.Status), + StatusInformation: (0, smithy_client_1.expectString)(output.StatusInformation), + Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined, + TargetType: (0, smithy_client_1.expectString)(output.TargetType), + VersionName: (0, smithy_client_1.expectString)(output.VersionName), + }; +}; +const deserializeAws_json1_1DocumentIdentifier = (output, context) => { + return { + Author: (0, smithy_client_1.expectString)(output.Author), + CreatedDate: output.CreatedDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate))) + : undefined, + DisplayName: (0, smithy_client_1.expectString)(output.DisplayName), + DocumentFormat: (0, smithy_client_1.expectString)(output.DocumentFormat), + DocumentType: (0, smithy_client_1.expectString)(output.DocumentType), + DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), + Name: (0, smithy_client_1.expectString)(output.Name), + Owner: (0, smithy_client_1.expectString)(output.Owner), + PlatformTypes: output.PlatformTypes != null ? deserializeAws_json1_1PlatformTypeList(output.PlatformTypes, context) : undefined, + Requires: output.Requires != null ? deserializeAws_json1_1DocumentRequiresList(output.Requires, context) : undefined, + ReviewStatus: (0, smithy_client_1.expectString)(output.ReviewStatus), + SchemaVersion: (0, smithy_client_1.expectString)(output.SchemaVersion), + Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined, + TargetType: (0, smithy_client_1.expectString)(output.TargetType), + VersionName: (0, smithy_client_1.expectString)(output.VersionName), + }; +}; +const deserializeAws_json1_1DocumentIdentifierList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1DocumentIdentifier(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1DocumentLimitExceeded = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1DocumentMetadataResponseInfo = (output, context) => { + return { + ReviewerResponse: output.ReviewerResponse != null + ? deserializeAws_json1_1DocumentReviewerResponseList(output.ReviewerResponse, context) + : undefined, + }; +}; +const deserializeAws_json1_1DocumentParameter = (output, context) => { + return { + DefaultValue: (0, smithy_client_1.expectString)(output.DefaultValue), + Description: (0, smithy_client_1.expectString)(output.Description), + Name: (0, smithy_client_1.expectString)(output.Name), + Type: (0, smithy_client_1.expectString)(output.Type), + }; +}; +const deserializeAws_json1_1DocumentParameterList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1DocumentParameter(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1DocumentPermissionLimit = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1DocumentRequires = (output, context) => { + return { + Name: (0, smithy_client_1.expectString)(output.Name), + Version: (0, smithy_client_1.expectString)(output.Version), + }; +}; +const deserializeAws_json1_1DocumentRequiresList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1DocumentRequires(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1DocumentReviewCommentList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1DocumentReviewCommentSource(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1DocumentReviewCommentSource = (output, context) => { + return { + Content: (0, smithy_client_1.expectString)(output.Content), + Type: (0, smithy_client_1.expectString)(output.Type), + }; +}; +const deserializeAws_json1_1DocumentReviewerResponseList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1DocumentReviewerResponseSource(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1DocumentReviewerResponseSource = (output, context) => { + return { + Comment: output.Comment != null ? deserializeAws_json1_1DocumentReviewCommentList(output.Comment, context) : undefined, + CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTime))) : undefined, + ReviewStatus: (0, smithy_client_1.expectString)(output.ReviewStatus), + Reviewer: (0, smithy_client_1.expectString)(output.Reviewer), + UpdatedTime: output.UpdatedTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedTime))) + : undefined, + }; +}; +const deserializeAws_json1_1DocumentVersionInfo = (output, context) => { + return { + CreatedDate: output.CreatedDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate))) + : undefined, + DisplayName: (0, smithy_client_1.expectString)(output.DisplayName), + DocumentFormat: (0, smithy_client_1.expectString)(output.DocumentFormat), + DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), + IsDefaultVersion: (0, smithy_client_1.expectBoolean)(output.IsDefaultVersion), + Name: (0, smithy_client_1.expectString)(output.Name), + ReviewStatus: (0, smithy_client_1.expectString)(output.ReviewStatus), + Status: (0, smithy_client_1.expectString)(output.Status), + StatusInformation: (0, smithy_client_1.expectString)(output.StatusInformation), + VersionName: (0, smithy_client_1.expectString)(output.VersionName), + }; +}; +const deserializeAws_json1_1DocumentVersionLimitExceeded = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1DocumentVersionList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1DocumentVersionInfo(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1DoesNotExistException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1DuplicateDocumentContent = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1DuplicateDocumentVersionName = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1DuplicateInstanceId = (output, context) => { + return {}; +}; +const deserializeAws_json1_1EffectivePatch = (output, context) => { + return { + Patch: output.Patch != null ? deserializeAws_json1_1Patch(output.Patch, context) : undefined, + PatchStatus: output.PatchStatus != null ? deserializeAws_json1_1PatchStatus(output.PatchStatus, context) : undefined, + }; +}; +const deserializeAws_json1_1EffectivePatchList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1EffectivePatch(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1FailedCreateAssociation = (output, context) => { + return { + Entry: output.Entry != null + ? deserializeAws_json1_1CreateAssociationBatchRequestEntry(output.Entry, context) + : undefined, + Fault: (0, smithy_client_1.expectString)(output.Fault), + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1FailedCreateAssociationList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1FailedCreateAssociation(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1FailureDetails = (output, context) => { + return { + Details: output.Details != null ? deserializeAws_json1_1AutomationParameterMap(output.Details, context) : undefined, + FailureStage: (0, smithy_client_1.expectString)(output.FailureStage), + FailureType: (0, smithy_client_1.expectString)(output.FailureType), + }; +}; +const deserializeAws_json1_1FeatureNotAvailableException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1GetAutomationExecutionResult = (output, context) => { + return { + AutomationExecution: output.AutomationExecution != null + ? deserializeAws_json1_1AutomationExecution(output.AutomationExecution, context) + : undefined, + }; +}; +const deserializeAws_json1_1GetCalendarStateResponse = (output, context) => { + return { + AtTime: (0, smithy_client_1.expectString)(output.AtTime), + NextTransitionTime: (0, smithy_client_1.expectString)(output.NextTransitionTime), + State: (0, smithy_client_1.expectString)(output.State), + }; +}; +const deserializeAws_json1_1GetCommandInvocationResult = (output, context) => { + return { + CloudWatchOutputConfig: output.CloudWatchOutputConfig != null + ? deserializeAws_json1_1CloudWatchOutputConfig(output.CloudWatchOutputConfig, context) + : undefined, + CommandId: (0, smithy_client_1.expectString)(output.CommandId), + Comment: (0, smithy_client_1.expectString)(output.Comment), + DocumentName: (0, smithy_client_1.expectString)(output.DocumentName), + DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), + ExecutionElapsedTime: (0, smithy_client_1.expectString)(output.ExecutionElapsedTime), + ExecutionEndDateTime: (0, smithy_client_1.expectString)(output.ExecutionEndDateTime), + ExecutionStartDateTime: (0, smithy_client_1.expectString)(output.ExecutionStartDateTime), + InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), + PluginName: (0, smithy_client_1.expectString)(output.PluginName), + ResponseCode: (0, smithy_client_1.expectInt32)(output.ResponseCode), + StandardErrorContent: (0, smithy_client_1.expectString)(output.StandardErrorContent), + StandardErrorUrl: (0, smithy_client_1.expectString)(output.StandardErrorUrl), + StandardOutputContent: (0, smithy_client_1.expectString)(output.StandardOutputContent), + StandardOutputUrl: (0, smithy_client_1.expectString)(output.StandardOutputUrl), + Status: (0, smithy_client_1.expectString)(output.Status), + StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), + }; +}; +const deserializeAws_json1_1GetConnectionStatusResponse = (output, context) => { + return { + Status: (0, smithy_client_1.expectString)(output.Status), + Target: (0, smithy_client_1.expectString)(output.Target), + }; +}; +const deserializeAws_json1_1GetDefaultPatchBaselineResult = (output, context) => { + return { + BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), + OperatingSystem: (0, smithy_client_1.expectString)(output.OperatingSystem), + }; +}; +const deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceResult = (output, context) => { + return { + InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), + Product: (0, smithy_client_1.expectString)(output.Product), + SnapshotDownloadUrl: (0, smithy_client_1.expectString)(output.SnapshotDownloadUrl), + SnapshotId: (0, smithy_client_1.expectString)(output.SnapshotId), + }; +}; +const deserializeAws_json1_1GetDocumentResult = (output, context) => { + return { + AttachmentsContent: output.AttachmentsContent != null + ? deserializeAws_json1_1AttachmentContentList(output.AttachmentsContent, context) + : undefined, + Content: (0, smithy_client_1.expectString)(output.Content), + CreatedDate: output.CreatedDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate))) + : undefined, + DisplayName: (0, smithy_client_1.expectString)(output.DisplayName), + DocumentFormat: (0, smithy_client_1.expectString)(output.DocumentFormat), + DocumentType: (0, smithy_client_1.expectString)(output.DocumentType), + DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), + Name: (0, smithy_client_1.expectString)(output.Name), + Requires: output.Requires != null ? deserializeAws_json1_1DocumentRequiresList(output.Requires, context) : undefined, + ReviewStatus: (0, smithy_client_1.expectString)(output.ReviewStatus), + Status: (0, smithy_client_1.expectString)(output.Status), + StatusInformation: (0, smithy_client_1.expectString)(output.StatusInformation), + VersionName: (0, smithy_client_1.expectString)(output.VersionName), + }; +}; +const deserializeAws_json1_1GetInventoryResult = (output, context) => { + return { + Entities: output.Entities != null ? deserializeAws_json1_1InventoryResultEntityList(output.Entities, context) : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1GetInventorySchemaResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + Schemas: output.Schemas != null ? deserializeAws_json1_1InventoryItemSchemaResultList(output.Schemas, context) : undefined, + }; +}; +const deserializeAws_json1_1GetMaintenanceWindowExecutionResult = (output, context) => { + return { + EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined, + StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined, + Status: (0, smithy_client_1.expectString)(output.Status), + StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), + TaskIds: output.TaskIds != null + ? deserializeAws_json1_1MaintenanceWindowExecutionTaskIdList(output.TaskIds, context) + : undefined, + WindowExecutionId: (0, smithy_client_1.expectString)(output.WindowExecutionId), + }; +}; +const deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationResult = (output, context) => { + return { + EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined, + ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId), + InvocationId: (0, smithy_client_1.expectString)(output.InvocationId), + OwnerInformation: (0, smithy_client_1.expectString)(output.OwnerInformation), + Parameters: (0, smithy_client_1.expectString)(output.Parameters), + StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined, + Status: (0, smithy_client_1.expectString)(output.Status), + StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), + TaskExecutionId: (0, smithy_client_1.expectString)(output.TaskExecutionId), + TaskType: (0, smithy_client_1.expectString)(output.TaskType), + WindowExecutionId: (0, smithy_client_1.expectString)(output.WindowExecutionId), + WindowTargetId: (0, smithy_client_1.expectString)(output.WindowTargetId), + }; +}; +const deserializeAws_json1_1GetMaintenanceWindowExecutionTaskResult = (output, context) => { + return { + EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined, + MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), + MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), + Priority: (0, smithy_client_1.expectInt32)(output.Priority), + ServiceRole: (0, smithy_client_1.expectString)(output.ServiceRole), + StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined, + Status: (0, smithy_client_1.expectString)(output.Status), + StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), + TaskArn: (0, smithy_client_1.expectString)(output.TaskArn), + TaskExecutionId: (0, smithy_client_1.expectString)(output.TaskExecutionId), + TaskParameters: output.TaskParameters != null + ? deserializeAws_json1_1MaintenanceWindowTaskParametersList(output.TaskParameters, context) + : undefined, + Type: (0, smithy_client_1.expectString)(output.Type), + WindowExecutionId: (0, smithy_client_1.expectString)(output.WindowExecutionId), + }; +}; +const deserializeAws_json1_1GetMaintenanceWindowResult = (output, context) => { + return { + AllowUnassociatedTargets: (0, smithy_client_1.expectBoolean)(output.AllowUnassociatedTargets), + CreatedDate: output.CreatedDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate))) + : undefined, + Cutoff: (0, smithy_client_1.expectInt32)(output.Cutoff), + Description: (0, smithy_client_1.expectString)(output.Description), + Duration: (0, smithy_client_1.expectInt32)(output.Duration), + Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled), + EndDate: (0, smithy_client_1.expectString)(output.EndDate), + ModifiedDate: output.ModifiedDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ModifiedDate))) + : undefined, + Name: (0, smithy_client_1.expectString)(output.Name), + NextExecutionTime: (0, smithy_client_1.expectString)(output.NextExecutionTime), + Schedule: (0, smithy_client_1.expectString)(output.Schedule), + ScheduleOffset: (0, smithy_client_1.expectInt32)(output.ScheduleOffset), + ScheduleTimezone: (0, smithy_client_1.expectString)(output.ScheduleTimezone), + StartDate: (0, smithy_client_1.expectString)(output.StartDate), + WindowId: (0, smithy_client_1.expectString)(output.WindowId), + }; +}; +const deserializeAws_json1_1GetMaintenanceWindowTaskResult = (output, context) => { + return { + CutoffBehavior: (0, smithy_client_1.expectString)(output.CutoffBehavior), + Description: (0, smithy_client_1.expectString)(output.Description), + LoggingInfo: output.LoggingInfo != null ? deserializeAws_json1_1LoggingInfo(output.LoggingInfo, context) : undefined, + MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), + MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), + Name: (0, smithy_client_1.expectString)(output.Name), + Priority: (0, smithy_client_1.expectInt32)(output.Priority), + ServiceRoleArn: (0, smithy_client_1.expectString)(output.ServiceRoleArn), + Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, + TaskArn: (0, smithy_client_1.expectString)(output.TaskArn), + TaskInvocationParameters: output.TaskInvocationParameters != null + ? deserializeAws_json1_1MaintenanceWindowTaskInvocationParameters(output.TaskInvocationParameters, context) + : undefined, + TaskParameters: output.TaskParameters != null + ? deserializeAws_json1_1MaintenanceWindowTaskParameters(output.TaskParameters, context) + : undefined, + TaskType: (0, smithy_client_1.expectString)(output.TaskType), + WindowId: (0, smithy_client_1.expectString)(output.WindowId), + WindowTaskId: (0, smithy_client_1.expectString)(output.WindowTaskId), + }; +}; +const deserializeAws_json1_1GetOpsItemResponse = (output, context) => { + return { + OpsItem: output.OpsItem != null ? deserializeAws_json1_1OpsItem(output.OpsItem, context) : undefined, + }; +}; +const deserializeAws_json1_1GetOpsMetadataResult = (output, context) => { + return { + Metadata: output.Metadata != null ? deserializeAws_json1_1MetadataMap(output.Metadata, context) : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + ResourceId: (0, smithy_client_1.expectString)(output.ResourceId), + }; +}; +const deserializeAws_json1_1GetOpsSummaryResult = (output, context) => { + return { + Entities: output.Entities != null ? deserializeAws_json1_1OpsEntityList(output.Entities, context) : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1GetParameterHistoryResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + Parameters: output.Parameters != null ? deserializeAws_json1_1ParameterHistoryList(output.Parameters, context) : undefined, + }; +}; +const deserializeAws_json1_1GetParameterResult = (output, context) => { + return { + Parameter: output.Parameter != null ? deserializeAws_json1_1Parameter(output.Parameter, context) : undefined, + }; +}; +const deserializeAws_json1_1GetParametersByPathResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + Parameters: output.Parameters != null ? deserializeAws_json1_1ParameterList(output.Parameters, context) : undefined, + }; +}; +const deserializeAws_json1_1GetParametersResult = (output, context) => { + return { + InvalidParameters: output.InvalidParameters != null + ? deserializeAws_json1_1ParameterNameList(output.InvalidParameters, context) + : undefined, + Parameters: output.Parameters != null ? deserializeAws_json1_1ParameterList(output.Parameters, context) : undefined, + }; +}; +const deserializeAws_json1_1GetPatchBaselineForPatchGroupResult = (output, context) => { + return { + BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), + OperatingSystem: (0, smithy_client_1.expectString)(output.OperatingSystem), + PatchGroup: (0, smithy_client_1.expectString)(output.PatchGroup), + }; +}; +const deserializeAws_json1_1GetPatchBaselineResult = (output, context) => { + return { + ApprovalRules: output.ApprovalRules != null ? deserializeAws_json1_1PatchRuleGroup(output.ApprovalRules, context) : undefined, + ApprovedPatches: output.ApprovedPatches != null ? deserializeAws_json1_1PatchIdList(output.ApprovedPatches, context) : undefined, + ApprovedPatchesComplianceLevel: (0, smithy_client_1.expectString)(output.ApprovedPatchesComplianceLevel), + ApprovedPatchesEnableNonSecurity: (0, smithy_client_1.expectBoolean)(output.ApprovedPatchesEnableNonSecurity), + BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), + CreatedDate: output.CreatedDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate))) + : undefined, + Description: (0, smithy_client_1.expectString)(output.Description), + GlobalFilters: output.GlobalFilters != null ? deserializeAws_json1_1PatchFilterGroup(output.GlobalFilters, context) : undefined, + ModifiedDate: output.ModifiedDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ModifiedDate))) + : undefined, + Name: (0, smithy_client_1.expectString)(output.Name), + OperatingSystem: (0, smithy_client_1.expectString)(output.OperatingSystem), + PatchGroups: output.PatchGroups != null ? deserializeAws_json1_1PatchGroupList(output.PatchGroups, context) : undefined, + RejectedPatches: output.RejectedPatches != null ? deserializeAws_json1_1PatchIdList(output.RejectedPatches, context) : undefined, + RejectedPatchesAction: (0, smithy_client_1.expectString)(output.RejectedPatchesAction), + Sources: output.Sources != null ? deserializeAws_json1_1PatchSourceList(output.Sources, context) : undefined, + }; +}; +const deserializeAws_json1_1GetServiceSettingResult = (output, context) => { + return { + ServiceSetting: output.ServiceSetting != null ? deserializeAws_json1_1ServiceSetting(output.ServiceSetting, context) : undefined, + }; +}; +const deserializeAws_json1_1HierarchyLevelLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1HierarchyTypeMismatchException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1IdempotentParameterMismatch = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1IncompatiblePolicyException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1InstanceAggregatedAssociationOverview = (output, context) => { + return { + DetailedStatus: (0, smithy_client_1.expectString)(output.DetailedStatus), + InstanceAssociationStatusAggregatedCount: output.InstanceAssociationStatusAggregatedCount != null + ? deserializeAws_json1_1InstanceAssociationStatusAggregatedCount(output.InstanceAssociationStatusAggregatedCount, context) + : undefined, + }; +}; +const deserializeAws_json1_1InstanceAssociation = (output, context) => { + return { + AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), + AssociationVersion: (0, smithy_client_1.expectString)(output.AssociationVersion), + Content: (0, smithy_client_1.expectString)(output.Content), + InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), + }; +}; +const deserializeAws_json1_1InstanceAssociationList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1InstanceAssociation(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1InstanceAssociationOutputLocation = (output, context) => { + return { + S3Location: output.S3Location != null ? deserializeAws_json1_1S3OutputLocation(output.S3Location, context) : undefined, + }; +}; +const deserializeAws_json1_1InstanceAssociationOutputUrl = (output, context) => { + return { + S3OutputUrl: output.S3OutputUrl != null ? deserializeAws_json1_1S3OutputUrl(output.S3OutputUrl, context) : undefined, + }; +}; +const deserializeAws_json1_1InstanceAssociationStatusAggregatedCount = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: (0, smithy_client_1.expectInt32)(value), + }; + }, {}); +}; +const deserializeAws_json1_1InstanceAssociationStatusInfo = (output, context) => { + return { + AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), + AssociationName: (0, smithy_client_1.expectString)(output.AssociationName), + AssociationVersion: (0, smithy_client_1.expectString)(output.AssociationVersion), + DetailedStatus: (0, smithy_client_1.expectString)(output.DetailedStatus), + DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), + ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode), + ExecutionDate: output.ExecutionDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExecutionDate))) + : undefined, + ExecutionSummary: (0, smithy_client_1.expectString)(output.ExecutionSummary), + InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), + Name: (0, smithy_client_1.expectString)(output.Name), + OutputUrl: output.OutputUrl != null + ? deserializeAws_json1_1InstanceAssociationOutputUrl(output.OutputUrl, context) + : undefined, + Status: (0, smithy_client_1.expectString)(output.Status), + }; +}; +const deserializeAws_json1_1InstanceAssociationStatusInfos = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1InstanceAssociationStatusInfo(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1InstanceIdList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1InstanceInformation = (output, context) => { + return { + ActivationId: (0, smithy_client_1.expectString)(output.ActivationId), + AgentVersion: (0, smithy_client_1.expectString)(output.AgentVersion), + AssociationOverview: output.AssociationOverview != null + ? deserializeAws_json1_1InstanceAggregatedAssociationOverview(output.AssociationOverview, context) + : undefined, + AssociationStatus: (0, smithy_client_1.expectString)(output.AssociationStatus), + ComputerName: (0, smithy_client_1.expectString)(output.ComputerName), + IPAddress: (0, smithy_client_1.expectString)(output.IPAddress), + IamRole: (0, smithy_client_1.expectString)(output.IamRole), + InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), + IsLatestVersion: (0, smithy_client_1.expectBoolean)(output.IsLatestVersion), + LastAssociationExecutionDate: output.LastAssociationExecutionDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAssociationExecutionDate))) + : undefined, + LastPingDateTime: output.LastPingDateTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastPingDateTime))) + : undefined, + LastSuccessfulAssociationExecutionDate: output.LastSuccessfulAssociationExecutionDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastSuccessfulAssociationExecutionDate))) + : undefined, + Name: (0, smithy_client_1.expectString)(output.Name), + PingStatus: (0, smithy_client_1.expectString)(output.PingStatus), + PlatformName: (0, smithy_client_1.expectString)(output.PlatformName), + PlatformType: (0, smithy_client_1.expectString)(output.PlatformType), + PlatformVersion: (0, smithy_client_1.expectString)(output.PlatformVersion), + RegistrationDate: output.RegistrationDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RegistrationDate))) + : undefined, + ResourceType: (0, smithy_client_1.expectString)(output.ResourceType), + SourceId: (0, smithy_client_1.expectString)(output.SourceId), + SourceType: (0, smithy_client_1.expectString)(output.SourceType), + }; +}; +const deserializeAws_json1_1InstanceInformationList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1InstanceInformation(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1InstancePatchState = (output, context) => { + return { + BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), + CriticalNonCompliantCount: (0, smithy_client_1.expectInt32)(output.CriticalNonCompliantCount), + FailedCount: (0, smithy_client_1.expectInt32)(output.FailedCount), + InstallOverrideList: (0, smithy_client_1.expectString)(output.InstallOverrideList), + InstalledCount: (0, smithy_client_1.expectInt32)(output.InstalledCount), + InstalledOtherCount: (0, smithy_client_1.expectInt32)(output.InstalledOtherCount), + InstalledPendingRebootCount: (0, smithy_client_1.expectInt32)(output.InstalledPendingRebootCount), + InstalledRejectedCount: (0, smithy_client_1.expectInt32)(output.InstalledRejectedCount), + InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), + LastNoRebootInstallOperationTime: output.LastNoRebootInstallOperationTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastNoRebootInstallOperationTime))) + : undefined, + MissingCount: (0, smithy_client_1.expectInt32)(output.MissingCount), + NotApplicableCount: (0, smithy_client_1.expectInt32)(output.NotApplicableCount), + Operation: (0, smithy_client_1.expectString)(output.Operation), + OperationEndTime: output.OperationEndTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OperationEndTime))) + : undefined, + OperationStartTime: output.OperationStartTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OperationStartTime))) + : undefined, + OtherNonCompliantCount: (0, smithy_client_1.expectInt32)(output.OtherNonCompliantCount), + OwnerInformation: (0, smithy_client_1.expectString)(output.OwnerInformation), + PatchGroup: (0, smithy_client_1.expectString)(output.PatchGroup), + RebootOption: (0, smithy_client_1.expectString)(output.RebootOption), + SecurityNonCompliantCount: (0, smithy_client_1.expectInt32)(output.SecurityNonCompliantCount), + SnapshotId: (0, smithy_client_1.expectString)(output.SnapshotId), + UnreportedNotApplicableCount: (0, smithy_client_1.expectInt32)(output.UnreportedNotApplicableCount), + }; +}; +const deserializeAws_json1_1InstancePatchStateList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1InstancePatchState(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1InstancePatchStatesList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1InstancePatchState(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1InternalServerError = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidActivation = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidActivationId = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidAggregatorException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidAllowedPatternException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1InvalidAssociation = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidAssociationVersion = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidAutomationExecutionParametersException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidAutomationSignalException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidAutomationStatusUpdateException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidCommandId = (output, context) => { + return {}; +}; +const deserializeAws_json1_1InvalidDeleteInventoryParametersException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidDeletionIdException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidDocument = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidDocumentContent = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidDocumentOperation = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidDocumentSchemaVersion = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidDocumentType = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidDocumentVersion = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidFilter = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidFilterKey = (output, context) => { + return {}; +}; +const deserializeAws_json1_1InvalidFilterOption = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1InvalidFilterValue = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidInstanceId = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidInstanceInformationFilterValue = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1InvalidInventoryGroupException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidInventoryItemContextException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidInventoryRequestException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidItemContentException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + TypeName: (0, smithy_client_1.expectString)(output.TypeName), + }; +}; +const deserializeAws_json1_1InvalidKeyId = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1InvalidNextToken = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidNotificationConfig = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidOptionException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidOutputFolder = (output, context) => { + return {}; +}; +const deserializeAws_json1_1InvalidOutputLocation = (output, context) => { + return {}; +}; +const deserializeAws_json1_1InvalidParameters = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidPermissionType = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidPluginName = (output, context) => { + return {}; +}; +const deserializeAws_json1_1InvalidPolicyAttributeException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1InvalidPolicyTypeException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1InvalidResourceId = (output, context) => { + return {}; +}; +const deserializeAws_json1_1InvalidResourceType = (output, context) => { + return {}; +}; +const deserializeAws_json1_1InvalidResultAttributeException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidRole = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidSchedule = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidTarget = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidTargetMaps = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidTypeNameException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InvalidUpdate = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1InventoryDeletionsList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1InventoryDeletionStatusItem(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1InventoryDeletionStatusItem = (output, context) => { + return { + DeletionId: (0, smithy_client_1.expectString)(output.DeletionId), + DeletionStartTime: output.DeletionStartTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeletionStartTime))) + : undefined, + DeletionSummary: output.DeletionSummary != null + ? deserializeAws_json1_1InventoryDeletionSummary(output.DeletionSummary, context) + : undefined, + LastStatus: (0, smithy_client_1.expectString)(output.LastStatus), + LastStatusMessage: (0, smithy_client_1.expectString)(output.LastStatusMessage), + LastStatusUpdateTime: output.LastStatusUpdateTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastStatusUpdateTime))) + : undefined, + TypeName: (0, smithy_client_1.expectString)(output.TypeName), + }; +}; +const deserializeAws_json1_1InventoryDeletionSummary = (output, context) => { + return { + RemainingCount: (0, smithy_client_1.expectInt32)(output.RemainingCount), + SummaryItems: output.SummaryItems != null + ? deserializeAws_json1_1InventoryDeletionSummaryItems(output.SummaryItems, context) + : undefined, + TotalCount: (0, smithy_client_1.expectInt32)(output.TotalCount), + }; +}; +const deserializeAws_json1_1InventoryDeletionSummaryItem = (output, context) => { + return { + Count: (0, smithy_client_1.expectInt32)(output.Count), + RemainingCount: (0, smithy_client_1.expectInt32)(output.RemainingCount), + Version: (0, smithy_client_1.expectString)(output.Version), + }; +}; +const deserializeAws_json1_1InventoryDeletionSummaryItems = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1InventoryDeletionSummaryItem(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1InventoryItemAttribute = (output, context) => { + return { + DataType: (0, smithy_client_1.expectString)(output.DataType), + Name: (0, smithy_client_1.expectString)(output.Name), + }; +}; +const deserializeAws_json1_1InventoryItemAttributeList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1InventoryItemAttribute(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1InventoryItemEntry = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: (0, smithy_client_1.expectString)(value), + }; + }, {}); +}; +const deserializeAws_json1_1InventoryItemEntryList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1InventoryItemEntry(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1InventoryItemSchema = (output, context) => { + return { + Attributes: output.Attributes != null + ? deserializeAws_json1_1InventoryItemAttributeList(output.Attributes, context) + : undefined, + DisplayName: (0, smithy_client_1.expectString)(output.DisplayName), + TypeName: (0, smithy_client_1.expectString)(output.TypeName), + Version: (0, smithy_client_1.expectString)(output.Version), + }; +}; +const deserializeAws_json1_1InventoryItemSchemaResultList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1InventoryItemSchema(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1InventoryResultEntity = (output, context) => { + return { + Data: output.Data != null ? deserializeAws_json1_1InventoryResultItemMap(output.Data, context) : undefined, + Id: (0, smithy_client_1.expectString)(output.Id), + }; +}; +const deserializeAws_json1_1InventoryResultEntityList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1InventoryResultEntity(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1InventoryResultItem = (output, context) => { + return { + CaptureTime: (0, smithy_client_1.expectString)(output.CaptureTime), + Content: output.Content != null ? deserializeAws_json1_1InventoryItemEntryList(output.Content, context) : undefined, + ContentHash: (0, smithy_client_1.expectString)(output.ContentHash), + SchemaVersion: (0, smithy_client_1.expectString)(output.SchemaVersion), + TypeName: (0, smithy_client_1.expectString)(output.TypeName), + }; +}; +const deserializeAws_json1_1InventoryResultItemMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_1InventoryResultItem(value, context), + }; + }, {}); +}; +const deserializeAws_json1_1InvocationDoesNotExist = (output, context) => { + return {}; +}; +const deserializeAws_json1_1ItemContentMismatchException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + TypeName: (0, smithy_client_1.expectString)(output.TypeName), + }; +}; +const deserializeAws_json1_1ItemSizeLimitExceededException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + TypeName: (0, smithy_client_1.expectString)(output.TypeName), + }; +}; +const deserializeAws_json1_1LabelParameterVersionResult = (output, context) => { + return { + InvalidLabels: output.InvalidLabels != null + ? deserializeAws_json1_1ParameterLabelList(output.InvalidLabels, context) + : undefined, + ParameterVersion: (0, smithy_client_1.expectLong)(output.ParameterVersion), + }; +}; +const deserializeAws_json1_1ListAssociationsResult = (output, context) => { + return { + Associations: output.Associations != null ? deserializeAws_json1_1AssociationList(output.Associations, context) : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1ListAssociationVersionsResult = (output, context) => { + return { + AssociationVersions: output.AssociationVersions != null + ? deserializeAws_json1_1AssociationVersionList(output.AssociationVersions, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1ListCommandInvocationsResult = (output, context) => { + return { + CommandInvocations: output.CommandInvocations != null + ? deserializeAws_json1_1CommandInvocationList(output.CommandInvocations, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1ListCommandsResult = (output, context) => { + return { + Commands: output.Commands != null ? deserializeAws_json1_1CommandList(output.Commands, context) : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1ListComplianceItemsResult = (output, context) => { + return { + ComplianceItems: output.ComplianceItems != null + ? deserializeAws_json1_1ComplianceItemList(output.ComplianceItems, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1ListComplianceSummariesResult = (output, context) => { + return { + ComplianceSummaryItems: output.ComplianceSummaryItems != null + ? deserializeAws_json1_1ComplianceSummaryItemList(output.ComplianceSummaryItems, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1ListDocumentMetadataHistoryResponse = (output, context) => { + return { + Author: (0, smithy_client_1.expectString)(output.Author), + DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), + Metadata: output.Metadata != null + ? deserializeAws_json1_1DocumentMetadataResponseInfo(output.Metadata, context) + : undefined, + Name: (0, smithy_client_1.expectString)(output.Name), + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1ListDocumentsResult = (output, context) => { + return { + DocumentIdentifiers: output.DocumentIdentifiers != null + ? deserializeAws_json1_1DocumentIdentifierList(output.DocumentIdentifiers, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1ListDocumentVersionsResult = (output, context) => { + return { + DocumentVersions: output.DocumentVersions != null + ? deserializeAws_json1_1DocumentVersionList(output.DocumentVersions, context) + : undefined, + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + }; +}; +const deserializeAws_json1_1ListInventoryEntriesResult = (output, context) => { + return { + CaptureTime: (0, smithy_client_1.expectString)(output.CaptureTime), + Entries: output.Entries != null ? deserializeAws_json1_1InventoryItemEntryList(output.Entries, context) : undefined, + InstanceId: (0, smithy_client_1.expectString)(output.InstanceId), + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + SchemaVersion: (0, smithy_client_1.expectString)(output.SchemaVersion), + TypeName: (0, smithy_client_1.expectString)(output.TypeName), + }; +}; +const deserializeAws_json1_1ListOpsItemEventsResponse = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + Summaries: output.Summaries != null ? deserializeAws_json1_1OpsItemEventSummaries(output.Summaries, context) : undefined, + }; +}; +const deserializeAws_json1_1ListOpsItemRelatedItemsResponse = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + Summaries: output.Summaries != null + ? deserializeAws_json1_1OpsItemRelatedItemSummaries(output.Summaries, context) + : undefined, + }; +}; +const deserializeAws_json1_1ListOpsMetadataResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + OpsMetadataList: output.OpsMetadataList != null + ? deserializeAws_json1_1OpsMetadataList(output.OpsMetadataList, context) + : undefined, + }; +}; +const deserializeAws_json1_1ListResourceComplianceSummariesResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + ResourceComplianceSummaryItems: output.ResourceComplianceSummaryItems != null + ? deserializeAws_json1_1ResourceComplianceSummaryItemList(output.ResourceComplianceSummaryItems, context) + : undefined, + }; +}; +const deserializeAws_json1_1ListResourceDataSyncResult = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + ResourceDataSyncItems: output.ResourceDataSyncItems != null + ? deserializeAws_json1_1ResourceDataSyncItemList(output.ResourceDataSyncItems, context) + : undefined, + }; +}; +const deserializeAws_json1_1ListTagsForResourceResult = (output, context) => { + return { + TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined, + }; +}; +const deserializeAws_json1_1LoggingInfo = (output, context) => { + return { + S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName), + S3KeyPrefix: (0, smithy_client_1.expectString)(output.S3KeyPrefix), + S3Region: (0, smithy_client_1.expectString)(output.S3Region), + }; +}; +const deserializeAws_json1_1MaintenanceWindowAutomationParameters = (output, context) => { + return { + DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), + Parameters: output.Parameters != null ? deserializeAws_json1_1AutomationParameterMap(output.Parameters, context) : undefined, + }; +}; +const deserializeAws_json1_1MaintenanceWindowExecution = (output, context) => { + return { + EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined, + StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined, + Status: (0, smithy_client_1.expectString)(output.Status), + StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), + WindowExecutionId: (0, smithy_client_1.expectString)(output.WindowExecutionId), + WindowId: (0, smithy_client_1.expectString)(output.WindowId), + }; +}; +const deserializeAws_json1_1MaintenanceWindowExecutionList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1MaintenanceWindowExecution(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1MaintenanceWindowExecutionTaskIdentity = (output, context) => { + return { + EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined, + StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined, + Status: (0, smithy_client_1.expectString)(output.Status), + StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), + TaskArn: (0, smithy_client_1.expectString)(output.TaskArn), + TaskExecutionId: (0, smithy_client_1.expectString)(output.TaskExecutionId), + TaskType: (0, smithy_client_1.expectString)(output.TaskType), + WindowExecutionId: (0, smithy_client_1.expectString)(output.WindowExecutionId), + }; +}; +const deserializeAws_json1_1MaintenanceWindowExecutionTaskIdentityList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1MaintenanceWindowExecutionTaskIdentity(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1MaintenanceWindowExecutionTaskIdList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1MaintenanceWindowExecutionTaskInvocationIdentity = (output, context) => { + return { + EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined, + ExecutionId: (0, smithy_client_1.expectString)(output.ExecutionId), + InvocationId: (0, smithy_client_1.expectString)(output.InvocationId), + OwnerInformation: (0, smithy_client_1.expectString)(output.OwnerInformation), + Parameters: (0, smithy_client_1.expectString)(output.Parameters), + StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined, + Status: (0, smithy_client_1.expectString)(output.Status), + StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails), + TaskExecutionId: (0, smithy_client_1.expectString)(output.TaskExecutionId), + TaskType: (0, smithy_client_1.expectString)(output.TaskType), + WindowExecutionId: (0, smithy_client_1.expectString)(output.WindowExecutionId), + WindowTargetId: (0, smithy_client_1.expectString)(output.WindowTargetId), + }; +}; +const deserializeAws_json1_1MaintenanceWindowExecutionTaskInvocationIdentityList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1MaintenanceWindowExecutionTaskInvocationIdentity(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1MaintenanceWindowIdentity = (output, context) => { + return { + Cutoff: (0, smithy_client_1.expectInt32)(output.Cutoff), + Description: (0, smithy_client_1.expectString)(output.Description), + Duration: (0, smithy_client_1.expectInt32)(output.Duration), + Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled), + EndDate: (0, smithy_client_1.expectString)(output.EndDate), + Name: (0, smithy_client_1.expectString)(output.Name), + NextExecutionTime: (0, smithy_client_1.expectString)(output.NextExecutionTime), + Schedule: (0, smithy_client_1.expectString)(output.Schedule), + ScheduleOffset: (0, smithy_client_1.expectInt32)(output.ScheduleOffset), + ScheduleTimezone: (0, smithy_client_1.expectString)(output.ScheduleTimezone), + StartDate: (0, smithy_client_1.expectString)(output.StartDate), + WindowId: (0, smithy_client_1.expectString)(output.WindowId), + }; +}; +const deserializeAws_json1_1MaintenanceWindowIdentityForTarget = (output, context) => { + return { + Name: (0, smithy_client_1.expectString)(output.Name), + WindowId: (0, smithy_client_1.expectString)(output.WindowId), + }; +}; +const deserializeAws_json1_1MaintenanceWindowIdentityList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1MaintenanceWindowIdentity(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1MaintenanceWindowLambdaParameters = (output, context) => { + return { + ClientContext: (0, smithy_client_1.expectString)(output.ClientContext), + Payload: output.Payload != null ? context.base64Decoder(output.Payload) : undefined, + Qualifier: (0, smithy_client_1.expectString)(output.Qualifier), + }; +}; +const deserializeAws_json1_1MaintenanceWindowRunCommandParameters = (output, context) => { + return { + CloudWatchOutputConfig: output.CloudWatchOutputConfig != null + ? deserializeAws_json1_1CloudWatchOutputConfig(output.CloudWatchOutputConfig, context) + : undefined, + Comment: (0, smithy_client_1.expectString)(output.Comment), + DocumentHash: (0, smithy_client_1.expectString)(output.DocumentHash), + DocumentHashType: (0, smithy_client_1.expectString)(output.DocumentHashType), + DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), + NotificationConfig: output.NotificationConfig != null + ? deserializeAws_json1_1NotificationConfig(output.NotificationConfig, context) + : undefined, + OutputS3BucketName: (0, smithy_client_1.expectString)(output.OutputS3BucketName), + OutputS3KeyPrefix: (0, smithy_client_1.expectString)(output.OutputS3KeyPrefix), + Parameters: output.Parameters != null ? deserializeAws_json1_1Parameters(output.Parameters, context) : undefined, + ServiceRoleArn: (0, smithy_client_1.expectString)(output.ServiceRoleArn), + TimeoutSeconds: (0, smithy_client_1.expectInt32)(output.TimeoutSeconds), + }; +}; +const deserializeAws_json1_1MaintenanceWindowsForTargetList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1MaintenanceWindowIdentityForTarget(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1MaintenanceWindowStepFunctionsParameters = (output, context) => { + return { + Input: (0, smithy_client_1.expectString)(output.Input), + Name: (0, smithy_client_1.expectString)(output.Name), + }; +}; +const deserializeAws_json1_1MaintenanceWindowTarget = (output, context) => { + return { + Description: (0, smithy_client_1.expectString)(output.Description), + Name: (0, smithy_client_1.expectString)(output.Name), + OwnerInformation: (0, smithy_client_1.expectString)(output.OwnerInformation), + ResourceType: (0, smithy_client_1.expectString)(output.ResourceType), + Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, + WindowId: (0, smithy_client_1.expectString)(output.WindowId), + WindowTargetId: (0, smithy_client_1.expectString)(output.WindowTargetId), + }; +}; +const deserializeAws_json1_1MaintenanceWindowTargetList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1MaintenanceWindowTarget(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1MaintenanceWindowTask = (output, context) => { + return { + CutoffBehavior: (0, smithy_client_1.expectString)(output.CutoffBehavior), + Description: (0, smithy_client_1.expectString)(output.Description), + LoggingInfo: output.LoggingInfo != null ? deserializeAws_json1_1LoggingInfo(output.LoggingInfo, context) : undefined, + MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), + MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), + Name: (0, smithy_client_1.expectString)(output.Name), + Priority: (0, smithy_client_1.expectInt32)(output.Priority), + ServiceRoleArn: (0, smithy_client_1.expectString)(output.ServiceRoleArn), + Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, + TaskArn: (0, smithy_client_1.expectString)(output.TaskArn), + TaskParameters: output.TaskParameters != null + ? deserializeAws_json1_1MaintenanceWindowTaskParameters(output.TaskParameters, context) + : undefined, + Type: (0, smithy_client_1.expectString)(output.Type), + WindowId: (0, smithy_client_1.expectString)(output.WindowId), + WindowTaskId: (0, smithy_client_1.expectString)(output.WindowTaskId), + }; +}; +const deserializeAws_json1_1MaintenanceWindowTaskInvocationParameters = (output, context) => { + return { + Automation: output.Automation != null + ? deserializeAws_json1_1MaintenanceWindowAutomationParameters(output.Automation, context) + : undefined, + Lambda: output.Lambda != null + ? deserializeAws_json1_1MaintenanceWindowLambdaParameters(output.Lambda, context) + : undefined, + RunCommand: output.RunCommand != null + ? deserializeAws_json1_1MaintenanceWindowRunCommandParameters(output.RunCommand, context) + : undefined, + StepFunctions: output.StepFunctions != null + ? deserializeAws_json1_1MaintenanceWindowStepFunctionsParameters(output.StepFunctions, context) + : undefined, + }; +}; +const deserializeAws_json1_1MaintenanceWindowTaskList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1MaintenanceWindowTask(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1MaintenanceWindowTaskParameters = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_1MaintenanceWindowTaskParameterValueExpression(value, context), + }; + }, {}); +}; +const deserializeAws_json1_1MaintenanceWindowTaskParametersList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1MaintenanceWindowTaskParameters(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1MaintenanceWindowTaskParameterValueExpression = (output, context) => { + return { + Values: output.Values != null + ? deserializeAws_json1_1MaintenanceWindowTaskParameterValueList(output.Values, context) + : undefined, + }; +}; +const deserializeAws_json1_1MaintenanceWindowTaskParameterValueList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1MaxDocumentSizeExceeded = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1MetadataMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_1MetadataValue(value, context), + }; + }, {}); +}; +const deserializeAws_json1_1MetadataValue = (output, context) => { + return { + Value: (0, smithy_client_1.expectString)(output.Value), + }; +}; +const deserializeAws_json1_1ModifyDocumentPermissionResponse = (output, context) => { + return {}; +}; +const deserializeAws_json1_1NonCompliantSummary = (output, context) => { + return { + NonCompliantCount: (0, smithy_client_1.expectInt32)(output.NonCompliantCount), + SeveritySummary: output.SeveritySummary != null + ? deserializeAws_json1_1SeveritySummary(output.SeveritySummary, context) + : undefined, + }; +}; +const deserializeAws_json1_1NormalStringMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: (0, smithy_client_1.expectString)(value), + }; + }, {}); +}; +const deserializeAws_json1_1NotificationConfig = (output, context) => { + return { + NotificationArn: (0, smithy_client_1.expectString)(output.NotificationArn), + NotificationEvents: output.NotificationEvents != null + ? deserializeAws_json1_1NotificationEventList(output.NotificationEvents, context) + : undefined, + NotificationType: (0, smithy_client_1.expectString)(output.NotificationType), + }; +}; +const deserializeAws_json1_1NotificationEventList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1OpsEntity = (output, context) => { + return { + Data: output.Data != null ? deserializeAws_json1_1OpsEntityItemMap(output.Data, context) : undefined, + Id: (0, smithy_client_1.expectString)(output.Id), + }; +}; +const deserializeAws_json1_1OpsEntityItem = (output, context) => { + return { + CaptureTime: (0, smithy_client_1.expectString)(output.CaptureTime), + Content: output.Content != null ? deserializeAws_json1_1OpsEntityItemEntryList(output.Content, context) : undefined, + }; +}; +const deserializeAws_json1_1OpsEntityItemEntry = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: (0, smithy_client_1.expectString)(value), + }; + }, {}); +}; +const deserializeAws_json1_1OpsEntityItemEntryList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1OpsEntityItemEntry(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1OpsEntityItemMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_1OpsEntityItem(value, context), + }; + }, {}); +}; +const deserializeAws_json1_1OpsEntityList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1OpsEntity(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1OpsItem = (output, context) => { + return { + ActualEndTime: output.ActualEndTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ActualEndTime))) + : undefined, + ActualStartTime: output.ActualStartTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ActualStartTime))) + : undefined, + Category: (0, smithy_client_1.expectString)(output.Category), + CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy), + CreatedTime: output.CreatedTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime))) + : undefined, + Description: (0, smithy_client_1.expectString)(output.Description), + LastModifiedBy: (0, smithy_client_1.expectString)(output.LastModifiedBy), + LastModifiedTime: output.LastModifiedTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime))) + : undefined, + Notifications: output.Notifications != null + ? deserializeAws_json1_1OpsItemNotifications(output.Notifications, context) + : undefined, + OperationalData: output.OperationalData != null + ? deserializeAws_json1_1OpsItemOperationalData(output.OperationalData, context) + : undefined, + OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), + OpsItemType: (0, smithy_client_1.expectString)(output.OpsItemType), + PlannedEndTime: output.PlannedEndTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.PlannedEndTime))) + : undefined, + PlannedStartTime: output.PlannedStartTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.PlannedStartTime))) + : undefined, + Priority: (0, smithy_client_1.expectInt32)(output.Priority), + RelatedOpsItems: output.RelatedOpsItems != null + ? deserializeAws_json1_1RelatedOpsItems(output.RelatedOpsItems, context) + : undefined, + Severity: (0, smithy_client_1.expectString)(output.Severity), + Source: (0, smithy_client_1.expectString)(output.Source), + Status: (0, smithy_client_1.expectString)(output.Status), + Title: (0, smithy_client_1.expectString)(output.Title), + Version: (0, smithy_client_1.expectString)(output.Version), + }; +}; +const deserializeAws_json1_1OpsItemAlreadyExistsException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), + }; +}; +const deserializeAws_json1_1OpsItemDataValue = (output, context) => { + return { + Type: (0, smithy_client_1.expectString)(output.Type), + Value: (0, smithy_client_1.expectString)(output.Value), + }; +}; +const deserializeAws_json1_1OpsItemEventSummaries = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1OpsItemEventSummary(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1OpsItemEventSummary = (output, context) => { + return { + CreatedBy: output.CreatedBy != null ? deserializeAws_json1_1OpsItemIdentity(output.CreatedBy, context) : undefined, + CreatedTime: output.CreatedTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime))) + : undefined, + Detail: (0, smithy_client_1.expectString)(output.Detail), + DetailType: (0, smithy_client_1.expectString)(output.DetailType), + EventId: (0, smithy_client_1.expectString)(output.EventId), + OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), + Source: (0, smithy_client_1.expectString)(output.Source), + }; +}; +const deserializeAws_json1_1OpsItemIdentity = (output, context) => { + return { + Arn: (0, smithy_client_1.expectString)(output.Arn), + }; +}; +const deserializeAws_json1_1OpsItemInvalidParameterException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + ParameterNames: output.ParameterNames != null + ? deserializeAws_json1_1OpsItemParameterNamesList(output.ParameterNames, context) + : undefined, + }; +}; +const deserializeAws_json1_1OpsItemLimitExceededException = (output, context) => { + return { + Limit: (0, smithy_client_1.expectInt32)(output.Limit), + LimitType: (0, smithy_client_1.expectString)(output.LimitType), + Message: (0, smithy_client_1.expectString)(output.Message), + ResourceTypes: output.ResourceTypes != null + ? deserializeAws_json1_1OpsItemParameterNamesList(output.ResourceTypes, context) + : undefined, + }; +}; +const deserializeAws_json1_1OpsItemNotFoundException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1OpsItemNotification = (output, context) => { + return { + Arn: (0, smithy_client_1.expectString)(output.Arn), + }; +}; +const deserializeAws_json1_1OpsItemNotifications = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1OpsItemNotification(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1OpsItemOperationalData = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_1OpsItemDataValue(value, context), + }; + }, {}); +}; +const deserializeAws_json1_1OpsItemParameterNamesList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1OpsItemRelatedItemAlreadyExistsException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), + ResourceUri: (0, smithy_client_1.expectString)(output.ResourceUri), + }; +}; +const deserializeAws_json1_1OpsItemRelatedItemAssociationNotFoundException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1OpsItemRelatedItemSummaries = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1OpsItemRelatedItemSummary(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1OpsItemRelatedItemSummary = (output, context) => { + return { + AssociationId: (0, smithy_client_1.expectString)(output.AssociationId), + AssociationType: (0, smithy_client_1.expectString)(output.AssociationType), + CreatedBy: output.CreatedBy != null ? deserializeAws_json1_1OpsItemIdentity(output.CreatedBy, context) : undefined, + CreatedTime: output.CreatedTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime))) + : undefined, + LastModifiedBy: output.LastModifiedBy != null ? deserializeAws_json1_1OpsItemIdentity(output.LastModifiedBy, context) : undefined, + LastModifiedTime: output.LastModifiedTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime))) + : undefined, + OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), + ResourceType: (0, smithy_client_1.expectString)(output.ResourceType), + ResourceUri: (0, smithy_client_1.expectString)(output.ResourceUri), + }; +}; +const deserializeAws_json1_1OpsItemSummaries = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1OpsItemSummary(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1OpsItemSummary = (output, context) => { + return { + ActualEndTime: output.ActualEndTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ActualEndTime))) + : undefined, + ActualStartTime: output.ActualStartTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ActualStartTime))) + : undefined, + Category: (0, smithy_client_1.expectString)(output.Category), + CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy), + CreatedTime: output.CreatedTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime))) + : undefined, + LastModifiedBy: (0, smithy_client_1.expectString)(output.LastModifiedBy), + LastModifiedTime: output.LastModifiedTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime))) + : undefined, + OperationalData: output.OperationalData != null + ? deserializeAws_json1_1OpsItemOperationalData(output.OperationalData, context) + : undefined, + OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), + OpsItemType: (0, smithy_client_1.expectString)(output.OpsItemType), + PlannedEndTime: output.PlannedEndTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.PlannedEndTime))) + : undefined, + PlannedStartTime: output.PlannedStartTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.PlannedStartTime))) + : undefined, + Priority: (0, smithy_client_1.expectInt32)(output.Priority), + Severity: (0, smithy_client_1.expectString)(output.Severity), + Source: (0, smithy_client_1.expectString)(output.Source), + Status: (0, smithy_client_1.expectString)(output.Status), + Title: (0, smithy_client_1.expectString)(output.Title), + }; +}; +const deserializeAws_json1_1OpsMetadata = (output, context) => { + return { + CreationDate: output.CreationDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate))) + : undefined, + LastModifiedDate: output.LastModifiedDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate))) + : undefined, + LastModifiedUser: (0, smithy_client_1.expectString)(output.LastModifiedUser), + OpsMetadataArn: (0, smithy_client_1.expectString)(output.OpsMetadataArn), + ResourceId: (0, smithy_client_1.expectString)(output.ResourceId), + }; +}; +const deserializeAws_json1_1OpsMetadataAlreadyExistsException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1OpsMetadataInvalidArgumentException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1OpsMetadataKeyLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1OpsMetadataLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1OpsMetadataList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1OpsMetadata(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1OpsMetadataNotFoundException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1OpsMetadataTooManyUpdatesException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1OutputSource = (output, context) => { + return { + OutputSourceId: (0, smithy_client_1.expectString)(output.OutputSourceId), + OutputSourceType: (0, smithy_client_1.expectString)(output.OutputSourceType), + }; +}; +const deserializeAws_json1_1Parameter = (output, context) => { + return { + ARN: (0, smithy_client_1.expectString)(output.ARN), + DataType: (0, smithy_client_1.expectString)(output.DataType), + LastModifiedDate: output.LastModifiedDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate))) + : undefined, + Name: (0, smithy_client_1.expectString)(output.Name), + Selector: (0, smithy_client_1.expectString)(output.Selector), + SourceResult: (0, smithy_client_1.expectString)(output.SourceResult), + Type: (0, smithy_client_1.expectString)(output.Type), + Value: (0, smithy_client_1.expectString)(output.Value), + Version: (0, smithy_client_1.expectLong)(output.Version), + }; +}; +const deserializeAws_json1_1ParameterAlreadyExists = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1ParameterHistory = (output, context) => { + return { + AllowedPattern: (0, smithy_client_1.expectString)(output.AllowedPattern), + DataType: (0, smithy_client_1.expectString)(output.DataType), + Description: (0, smithy_client_1.expectString)(output.Description), + KeyId: (0, smithy_client_1.expectString)(output.KeyId), + Labels: output.Labels != null ? deserializeAws_json1_1ParameterLabelList(output.Labels, context) : undefined, + LastModifiedDate: output.LastModifiedDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate))) + : undefined, + LastModifiedUser: (0, smithy_client_1.expectString)(output.LastModifiedUser), + Name: (0, smithy_client_1.expectString)(output.Name), + Policies: output.Policies != null ? deserializeAws_json1_1ParameterPolicyList(output.Policies, context) : undefined, + Tier: (0, smithy_client_1.expectString)(output.Tier), + Type: (0, smithy_client_1.expectString)(output.Type), + Value: (0, smithy_client_1.expectString)(output.Value), + Version: (0, smithy_client_1.expectLong)(output.Version), + }; +}; +const deserializeAws_json1_1ParameterHistoryList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1ParameterHistory(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1ParameterInlinePolicy = (output, context) => { + return { + PolicyStatus: (0, smithy_client_1.expectString)(output.PolicyStatus), + PolicyText: (0, smithy_client_1.expectString)(output.PolicyText), + PolicyType: (0, smithy_client_1.expectString)(output.PolicyType), + }; +}; +const deserializeAws_json1_1ParameterLabelList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1ParameterLimitExceeded = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1ParameterList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1Parameter(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1ParameterMaxVersionLimitExceeded = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1ParameterMetadata = (output, context) => { + return { + AllowedPattern: (0, smithy_client_1.expectString)(output.AllowedPattern), + DataType: (0, smithy_client_1.expectString)(output.DataType), + Description: (0, smithy_client_1.expectString)(output.Description), + KeyId: (0, smithy_client_1.expectString)(output.KeyId), + LastModifiedDate: output.LastModifiedDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate))) + : undefined, + LastModifiedUser: (0, smithy_client_1.expectString)(output.LastModifiedUser), + Name: (0, smithy_client_1.expectString)(output.Name), + Policies: output.Policies != null ? deserializeAws_json1_1ParameterPolicyList(output.Policies, context) : undefined, + Tier: (0, smithy_client_1.expectString)(output.Tier), + Type: (0, smithy_client_1.expectString)(output.Type), + Version: (0, smithy_client_1.expectLong)(output.Version), + }; +}; +const deserializeAws_json1_1ParameterMetadataList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1ParameterMetadata(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1ParameterNameList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1ParameterNotFound = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1ParameterPatternMismatchException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1ParameterPolicyList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1ParameterInlinePolicy(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1Parameters = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_1ParameterValueList(value, context), + }; + }, {}); +}; +const deserializeAws_json1_1ParameterValueList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1ParameterVersionLabelLimitExceeded = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1ParameterVersionNotFound = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1Patch = (output, context) => { + return { + AdvisoryIds: output.AdvisoryIds != null ? deserializeAws_json1_1PatchAdvisoryIdList(output.AdvisoryIds, context) : undefined, + Arch: (0, smithy_client_1.expectString)(output.Arch), + BugzillaIds: output.BugzillaIds != null ? deserializeAws_json1_1PatchBugzillaIdList(output.BugzillaIds, context) : undefined, + CVEIds: output.CVEIds != null ? deserializeAws_json1_1PatchCVEIdList(output.CVEIds, context) : undefined, + Classification: (0, smithy_client_1.expectString)(output.Classification), + ContentUrl: (0, smithy_client_1.expectString)(output.ContentUrl), + Description: (0, smithy_client_1.expectString)(output.Description), + Epoch: (0, smithy_client_1.expectInt32)(output.Epoch), + Id: (0, smithy_client_1.expectString)(output.Id), + KbNumber: (0, smithy_client_1.expectString)(output.KbNumber), + Language: (0, smithy_client_1.expectString)(output.Language), + MsrcNumber: (0, smithy_client_1.expectString)(output.MsrcNumber), + MsrcSeverity: (0, smithy_client_1.expectString)(output.MsrcSeverity), + Name: (0, smithy_client_1.expectString)(output.Name), + Product: (0, smithy_client_1.expectString)(output.Product), + ProductFamily: (0, smithy_client_1.expectString)(output.ProductFamily), + Release: (0, smithy_client_1.expectString)(output.Release), + ReleaseDate: output.ReleaseDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReleaseDate))) + : undefined, + Repository: (0, smithy_client_1.expectString)(output.Repository), + Severity: (0, smithy_client_1.expectString)(output.Severity), + Title: (0, smithy_client_1.expectString)(output.Title), + Vendor: (0, smithy_client_1.expectString)(output.Vendor), + Version: (0, smithy_client_1.expectString)(output.Version), + }; +}; +const deserializeAws_json1_1PatchAdvisoryIdList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1PatchBaselineIdentity = (output, context) => { + return { + BaselineDescription: (0, smithy_client_1.expectString)(output.BaselineDescription), + BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), + BaselineName: (0, smithy_client_1.expectString)(output.BaselineName), + DefaultBaseline: (0, smithy_client_1.expectBoolean)(output.DefaultBaseline), + OperatingSystem: (0, smithy_client_1.expectString)(output.OperatingSystem), + }; +}; +const deserializeAws_json1_1PatchBaselineIdentityList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1PatchBaselineIdentity(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1PatchBugzillaIdList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1PatchComplianceData = (output, context) => { + return { + CVEIds: (0, smithy_client_1.expectString)(output.CVEIds), + Classification: (0, smithy_client_1.expectString)(output.Classification), + InstalledTime: output.InstalledTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.InstalledTime))) + : undefined, + KBId: (0, smithy_client_1.expectString)(output.KBId), + Severity: (0, smithy_client_1.expectString)(output.Severity), + State: (0, smithy_client_1.expectString)(output.State), + Title: (0, smithy_client_1.expectString)(output.Title), + }; +}; +const deserializeAws_json1_1PatchComplianceDataList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1PatchComplianceData(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1PatchCVEIdList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1PatchFilter = (output, context) => { + return { + Key: (0, smithy_client_1.expectString)(output.Key), + Values: output.Values != null ? deserializeAws_json1_1PatchFilterValueList(output.Values, context) : undefined, + }; +}; +const deserializeAws_json1_1PatchFilterGroup = (output, context) => { + return { + PatchFilters: output.PatchFilters != null ? deserializeAws_json1_1PatchFilterList(output.PatchFilters, context) : undefined, + }; +}; +const deserializeAws_json1_1PatchFilterList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1PatchFilter(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1PatchFilterValueList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1PatchGroupList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1PatchGroupPatchBaselineMapping = (output, context) => { + return { + BaselineIdentity: output.BaselineIdentity != null + ? deserializeAws_json1_1PatchBaselineIdentity(output.BaselineIdentity, context) + : undefined, + PatchGroup: (0, smithy_client_1.expectString)(output.PatchGroup), + }; +}; +const deserializeAws_json1_1PatchGroupPatchBaselineMappingList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1PatchGroupPatchBaselineMapping(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1PatchIdList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1PatchList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1Patch(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1PatchPropertiesList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1PatchPropertyEntry(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1PatchPropertyEntry = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: (0, smithy_client_1.expectString)(value), + }; + }, {}); +}; +const deserializeAws_json1_1PatchRule = (output, context) => { + return { + ApproveAfterDays: (0, smithy_client_1.expectInt32)(output.ApproveAfterDays), + ApproveUntilDate: (0, smithy_client_1.expectString)(output.ApproveUntilDate), + ComplianceLevel: (0, smithy_client_1.expectString)(output.ComplianceLevel), + EnableNonSecurity: (0, smithy_client_1.expectBoolean)(output.EnableNonSecurity), + PatchFilterGroup: output.PatchFilterGroup != null + ? deserializeAws_json1_1PatchFilterGroup(output.PatchFilterGroup, context) + : undefined, + }; +}; +const deserializeAws_json1_1PatchRuleGroup = (output, context) => { + return { + PatchRules: output.PatchRules != null ? deserializeAws_json1_1PatchRuleList(output.PatchRules, context) : undefined, + }; +}; +const deserializeAws_json1_1PatchRuleList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1PatchRule(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1PatchSource = (output, context) => { + return { + Configuration: (0, smithy_client_1.expectString)(output.Configuration), + Name: (0, smithy_client_1.expectString)(output.Name), + Products: output.Products != null ? deserializeAws_json1_1PatchSourceProductList(output.Products, context) : undefined, + }; +}; +const deserializeAws_json1_1PatchSourceList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1PatchSource(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1PatchSourceProductList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1PatchStatus = (output, context) => { + return { + ApprovalDate: output.ApprovalDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ApprovalDate))) + : undefined, + ComplianceLevel: (0, smithy_client_1.expectString)(output.ComplianceLevel), + DeploymentStatus: (0, smithy_client_1.expectString)(output.DeploymentStatus), + }; +}; +const deserializeAws_json1_1PlatformTypeList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1PoliciesLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1ProgressCounters = (output, context) => { + return { + CancelledSteps: (0, smithy_client_1.expectInt32)(output.CancelledSteps), + FailedSteps: (0, smithy_client_1.expectInt32)(output.FailedSteps), + SuccessSteps: (0, smithy_client_1.expectInt32)(output.SuccessSteps), + TimedOutSteps: (0, smithy_client_1.expectInt32)(output.TimedOutSteps), + TotalSteps: (0, smithy_client_1.expectInt32)(output.TotalSteps), + }; +}; +const deserializeAws_json1_1PutComplianceItemsResult = (output, context) => { + return {}; +}; +const deserializeAws_json1_1PutInventoryResult = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1PutParameterResult = (output, context) => { + return { + Tier: (0, smithy_client_1.expectString)(output.Tier), + Version: (0, smithy_client_1.expectLong)(output.Version), + }; +}; +const deserializeAws_json1_1Regions = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1RegisterDefaultPatchBaselineResult = (output, context) => { + return { + BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), + }; +}; +const deserializeAws_json1_1RegisterPatchBaselineForPatchGroupResult = (output, context) => { + return { + BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), + PatchGroup: (0, smithy_client_1.expectString)(output.PatchGroup), + }; +}; +const deserializeAws_json1_1RegisterTargetWithMaintenanceWindowResult = (output, context) => { + return { + WindowTargetId: (0, smithy_client_1.expectString)(output.WindowTargetId), + }; +}; +const deserializeAws_json1_1RegisterTaskWithMaintenanceWindowResult = (output, context) => { + return { + WindowTaskId: (0, smithy_client_1.expectString)(output.WindowTaskId), + }; +}; +const deserializeAws_json1_1RelatedOpsItem = (output, context) => { + return { + OpsItemId: (0, smithy_client_1.expectString)(output.OpsItemId), + }; +}; +const deserializeAws_json1_1RelatedOpsItems = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1RelatedOpsItem(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1RemoveTagsFromResourceResult = (output, context) => { + return {}; +}; +const deserializeAws_json1_1ResetServiceSettingResult = (output, context) => { + return { + ServiceSetting: output.ServiceSetting != null ? deserializeAws_json1_1ServiceSetting(output.ServiceSetting, context) : undefined, + }; +}; +const deserializeAws_json1_1ResolvedTargets = (output, context) => { + return { + ParameterValues: output.ParameterValues != null + ? deserializeAws_json1_1TargetParameterList(output.ParameterValues, context) + : undefined, + Truncated: (0, smithy_client_1.expectBoolean)(output.Truncated), + }; +}; +const deserializeAws_json1_1ResourceComplianceSummaryItem = (output, context) => { + return { + ComplianceType: (0, smithy_client_1.expectString)(output.ComplianceType), + CompliantSummary: output.CompliantSummary != null + ? deserializeAws_json1_1CompliantSummary(output.CompliantSummary, context) + : undefined, + ExecutionSummary: output.ExecutionSummary != null + ? deserializeAws_json1_1ComplianceExecutionSummary(output.ExecutionSummary, context) + : undefined, + NonCompliantSummary: output.NonCompliantSummary != null + ? deserializeAws_json1_1NonCompliantSummary(output.NonCompliantSummary, context) + : undefined, + OverallSeverity: (0, smithy_client_1.expectString)(output.OverallSeverity), + ResourceId: (0, smithy_client_1.expectString)(output.ResourceId), + ResourceType: (0, smithy_client_1.expectString)(output.ResourceType), + Status: (0, smithy_client_1.expectString)(output.Status), + }; +}; +const deserializeAws_json1_1ResourceComplianceSummaryItemList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1ResourceComplianceSummaryItem(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1ResourceDataSyncAlreadyExistsException = (output, context) => { + return { + SyncName: (0, smithy_client_1.expectString)(output.SyncName), + }; +}; +const deserializeAws_json1_1ResourceDataSyncAwsOrganizationsSource = (output, context) => { + return { + OrganizationSourceType: (0, smithy_client_1.expectString)(output.OrganizationSourceType), + OrganizationalUnits: output.OrganizationalUnits != null + ? deserializeAws_json1_1ResourceDataSyncOrganizationalUnitList(output.OrganizationalUnits, context) + : undefined, + }; +}; +const deserializeAws_json1_1ResourceDataSyncConflictException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1ResourceDataSyncCountExceededException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1ResourceDataSyncDestinationDataSharing = (output, context) => { + return { + DestinationDataSharingType: (0, smithy_client_1.expectString)(output.DestinationDataSharingType), + }; +}; +const deserializeAws_json1_1ResourceDataSyncInvalidConfigurationException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1ResourceDataSyncItem = (output, context) => { + return { + LastStatus: (0, smithy_client_1.expectString)(output.LastStatus), + LastSuccessfulSyncTime: output.LastSuccessfulSyncTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastSuccessfulSyncTime))) + : undefined, + LastSyncStatusMessage: (0, smithy_client_1.expectString)(output.LastSyncStatusMessage), + LastSyncTime: output.LastSyncTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastSyncTime))) + : undefined, + S3Destination: output.S3Destination != null + ? deserializeAws_json1_1ResourceDataSyncS3Destination(output.S3Destination, context) + : undefined, + SyncCreatedTime: output.SyncCreatedTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SyncCreatedTime))) + : undefined, + SyncLastModifiedTime: output.SyncLastModifiedTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SyncLastModifiedTime))) + : undefined, + SyncName: (0, smithy_client_1.expectString)(output.SyncName), + SyncSource: output.SyncSource != null + ? deserializeAws_json1_1ResourceDataSyncSourceWithState(output.SyncSource, context) + : undefined, + SyncType: (0, smithy_client_1.expectString)(output.SyncType), + }; +}; +const deserializeAws_json1_1ResourceDataSyncItemList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1ResourceDataSyncItem(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1ResourceDataSyncNotFoundException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + SyncName: (0, smithy_client_1.expectString)(output.SyncName), + SyncType: (0, smithy_client_1.expectString)(output.SyncType), + }; +}; +const deserializeAws_json1_1ResourceDataSyncOrganizationalUnit = (output, context) => { + return { + OrganizationalUnitId: (0, smithy_client_1.expectString)(output.OrganizationalUnitId), + }; +}; +const deserializeAws_json1_1ResourceDataSyncOrganizationalUnitList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1ResourceDataSyncOrganizationalUnit(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1ResourceDataSyncS3Destination = (output, context) => { + return { + AWSKMSKeyARN: (0, smithy_client_1.expectString)(output.AWSKMSKeyARN), + BucketName: (0, smithy_client_1.expectString)(output.BucketName), + DestinationDataSharing: output.DestinationDataSharing != null + ? deserializeAws_json1_1ResourceDataSyncDestinationDataSharing(output.DestinationDataSharing, context) + : undefined, + Prefix: (0, smithy_client_1.expectString)(output.Prefix), + Region: (0, smithy_client_1.expectString)(output.Region), + SyncFormat: (0, smithy_client_1.expectString)(output.SyncFormat), + }; +}; +const deserializeAws_json1_1ResourceDataSyncSourceRegionList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1ResourceDataSyncSourceWithState = (output, context) => { + return { + AwsOrganizationsSource: output.AwsOrganizationsSource != null + ? deserializeAws_json1_1ResourceDataSyncAwsOrganizationsSource(output.AwsOrganizationsSource, context) + : undefined, + EnableAllOpsDataSources: (0, smithy_client_1.expectBoolean)(output.EnableAllOpsDataSources), + IncludeFutureRegions: (0, smithy_client_1.expectBoolean)(output.IncludeFutureRegions), + SourceRegions: output.SourceRegions != null + ? deserializeAws_json1_1ResourceDataSyncSourceRegionList(output.SourceRegions, context) + : undefined, + SourceType: (0, smithy_client_1.expectString)(output.SourceType), + State: (0, smithy_client_1.expectString)(output.State), + }; +}; +const deserializeAws_json1_1ResourceInUseException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1ResourceLimitExceededException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1ResumeSessionResponse = (output, context) => { + return { + SessionId: (0, smithy_client_1.expectString)(output.SessionId), + StreamUrl: (0, smithy_client_1.expectString)(output.StreamUrl), + TokenValue: (0, smithy_client_1.expectString)(output.TokenValue), + }; +}; +const deserializeAws_json1_1ReviewInformation = (output, context) => { + return { + ReviewedTime: output.ReviewedTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReviewedTime))) + : undefined, + Reviewer: (0, smithy_client_1.expectString)(output.Reviewer), + Status: (0, smithy_client_1.expectString)(output.Status), + }; +}; +const deserializeAws_json1_1ReviewInformationList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1ReviewInformation(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1Runbook = (output, context) => { + return { + DocumentName: (0, smithy_client_1.expectString)(output.DocumentName), + DocumentVersion: (0, smithy_client_1.expectString)(output.DocumentVersion), + MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), + MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), + Parameters: output.Parameters != null ? deserializeAws_json1_1AutomationParameterMap(output.Parameters, context) : undefined, + TargetLocations: output.TargetLocations != null + ? deserializeAws_json1_1TargetLocations(output.TargetLocations, context) + : undefined, + TargetMaps: output.TargetMaps != null ? deserializeAws_json1_1TargetMaps(output.TargetMaps, context) : undefined, + TargetParameterName: (0, smithy_client_1.expectString)(output.TargetParameterName), + Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, + }; +}; +const deserializeAws_json1_1Runbooks = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1Runbook(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1S3OutputLocation = (output, context) => { + return { + OutputS3BucketName: (0, smithy_client_1.expectString)(output.OutputS3BucketName), + OutputS3KeyPrefix: (0, smithy_client_1.expectString)(output.OutputS3KeyPrefix), + OutputS3Region: (0, smithy_client_1.expectString)(output.OutputS3Region), + }; +}; +const deserializeAws_json1_1S3OutputUrl = (output, context) => { + return { + OutputUrl: (0, smithy_client_1.expectString)(output.OutputUrl), + }; +}; +const deserializeAws_json1_1ScheduledWindowExecution = (output, context) => { + return { + ExecutionTime: (0, smithy_client_1.expectString)(output.ExecutionTime), + Name: (0, smithy_client_1.expectString)(output.Name), + WindowId: (0, smithy_client_1.expectString)(output.WindowId), + }; +}; +const deserializeAws_json1_1ScheduledWindowExecutionList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1ScheduledWindowExecution(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1SendAutomationSignalResult = (output, context) => { + return {}; +}; +const deserializeAws_json1_1SendCommandResult = (output, context) => { + return { + Command: output.Command != null ? deserializeAws_json1_1Command(output.Command, context) : undefined, + }; +}; +const deserializeAws_json1_1ServiceSetting = (output, context) => { + return { + ARN: (0, smithy_client_1.expectString)(output.ARN), + LastModifiedDate: output.LastModifiedDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate))) + : undefined, + LastModifiedUser: (0, smithy_client_1.expectString)(output.LastModifiedUser), + SettingId: (0, smithy_client_1.expectString)(output.SettingId), + SettingValue: (0, smithy_client_1.expectString)(output.SettingValue), + Status: (0, smithy_client_1.expectString)(output.Status), + }; +}; +const deserializeAws_json1_1ServiceSettingNotFound = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1Session = (output, context) => { + return { + Details: (0, smithy_client_1.expectString)(output.Details), + DocumentName: (0, smithy_client_1.expectString)(output.DocumentName), + EndDate: output.EndDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndDate))) : undefined, + MaxSessionDuration: (0, smithy_client_1.expectString)(output.MaxSessionDuration), + OutputUrl: output.OutputUrl != null ? deserializeAws_json1_1SessionManagerOutputUrl(output.OutputUrl, context) : undefined, + Owner: (0, smithy_client_1.expectString)(output.Owner), + Reason: (0, smithy_client_1.expectString)(output.Reason), + SessionId: (0, smithy_client_1.expectString)(output.SessionId), + StartDate: output.StartDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartDate))) : undefined, + Status: (0, smithy_client_1.expectString)(output.Status), + Target: (0, smithy_client_1.expectString)(output.Target), + }; +}; +const deserializeAws_json1_1SessionList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1Session(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1SessionManagerOutputUrl = (output, context) => { + return { + CloudWatchOutputUrl: (0, smithy_client_1.expectString)(output.CloudWatchOutputUrl), + S3OutputUrl: (0, smithy_client_1.expectString)(output.S3OutputUrl), + }; +}; +const deserializeAws_json1_1SeveritySummary = (output, context) => { + return { + CriticalCount: (0, smithy_client_1.expectInt32)(output.CriticalCount), + HighCount: (0, smithy_client_1.expectInt32)(output.HighCount), + InformationalCount: (0, smithy_client_1.expectInt32)(output.InformationalCount), + LowCount: (0, smithy_client_1.expectInt32)(output.LowCount), + MediumCount: (0, smithy_client_1.expectInt32)(output.MediumCount), + UnspecifiedCount: (0, smithy_client_1.expectInt32)(output.UnspecifiedCount), + }; +}; +const deserializeAws_json1_1StartAssociationsOnceResult = (output, context) => { + return {}; +}; +const deserializeAws_json1_1StartAutomationExecutionResult = (output, context) => { + return { + AutomationExecutionId: (0, smithy_client_1.expectString)(output.AutomationExecutionId), + }; +}; +const deserializeAws_json1_1StartChangeRequestExecutionResult = (output, context) => { + return { + AutomationExecutionId: (0, smithy_client_1.expectString)(output.AutomationExecutionId), + }; +}; +const deserializeAws_json1_1StartSessionResponse = (output, context) => { + return { + SessionId: (0, smithy_client_1.expectString)(output.SessionId), + StreamUrl: (0, smithy_client_1.expectString)(output.StreamUrl), + TokenValue: (0, smithy_client_1.expectString)(output.TokenValue), + }; +}; +const deserializeAws_json1_1StatusUnchanged = (output, context) => { + return {}; +}; +const deserializeAws_json1_1StepExecution = (output, context) => { + return { + Action: (0, smithy_client_1.expectString)(output.Action), + ExecutionEndTime: output.ExecutionEndTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExecutionEndTime))) + : undefined, + ExecutionStartTime: output.ExecutionStartTime != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExecutionStartTime))) + : undefined, + FailureDetails: output.FailureDetails != null ? deserializeAws_json1_1FailureDetails(output.FailureDetails, context) : undefined, + FailureMessage: (0, smithy_client_1.expectString)(output.FailureMessage), + Inputs: output.Inputs != null ? deserializeAws_json1_1NormalStringMap(output.Inputs, context) : undefined, + IsCritical: (0, smithy_client_1.expectBoolean)(output.IsCritical), + IsEnd: (0, smithy_client_1.expectBoolean)(output.IsEnd), + MaxAttempts: (0, smithy_client_1.expectInt32)(output.MaxAttempts), + NextStep: (0, smithy_client_1.expectString)(output.NextStep), + OnFailure: (0, smithy_client_1.expectString)(output.OnFailure), + Outputs: output.Outputs != null ? deserializeAws_json1_1AutomationParameterMap(output.Outputs, context) : undefined, + OverriddenParameters: output.OverriddenParameters != null + ? deserializeAws_json1_1AutomationParameterMap(output.OverriddenParameters, context) + : undefined, + Response: (0, smithy_client_1.expectString)(output.Response), + ResponseCode: (0, smithy_client_1.expectString)(output.ResponseCode), + StepExecutionId: (0, smithy_client_1.expectString)(output.StepExecutionId), + StepName: (0, smithy_client_1.expectString)(output.StepName), + StepStatus: (0, smithy_client_1.expectString)(output.StepStatus), + TargetLocation: output.TargetLocation != null ? deserializeAws_json1_1TargetLocation(output.TargetLocation, context) : undefined, + Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, + TimeoutSeconds: (0, smithy_client_1.expectLong)(output.TimeoutSeconds), + ValidNextSteps: output.ValidNextSteps != null + ? deserializeAws_json1_1ValidNextStepList(output.ValidNextSteps, context) + : undefined, + }; +}; +const deserializeAws_json1_1StepExecutionList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1StepExecution(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1StopAutomationExecutionResult = (output, context) => { + return {}; +}; +const deserializeAws_json1_1SubTypeCountLimitExceededException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1Tag = (output, context) => { + return { + Key: (0, smithy_client_1.expectString)(output.Key), + Value: (0, smithy_client_1.expectString)(output.Value), + }; +}; +const deserializeAws_json1_1TagList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1Tag(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1Target = (output, context) => { + return { + Key: (0, smithy_client_1.expectString)(output.Key), + Values: output.Values != null ? deserializeAws_json1_1TargetValues(output.Values, context) : undefined, + }; +}; +const deserializeAws_json1_1TargetInUseException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1TargetLocation = (output, context) => { + return { + Accounts: output.Accounts != null ? deserializeAws_json1_1Accounts(output.Accounts, context) : undefined, + ExecutionRoleName: (0, smithy_client_1.expectString)(output.ExecutionRoleName), + Regions: output.Regions != null ? deserializeAws_json1_1Regions(output.Regions, context) : undefined, + TargetLocationMaxConcurrency: (0, smithy_client_1.expectString)(output.TargetLocationMaxConcurrency), + TargetLocationMaxErrors: (0, smithy_client_1.expectString)(output.TargetLocationMaxErrors), + }; +}; +const deserializeAws_json1_1TargetLocations = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1TargetLocation(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1TargetMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_1TargetMapValueList(value, context), + }; + }, {}); +}; +const deserializeAws_json1_1TargetMaps = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1TargetMap(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1TargetMapValueList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1TargetNotConnected = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1TargetParameterList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1Targets = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_1Target(entry, context); + }); + return retVal; +}; +const deserializeAws_json1_1TargetValues = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeAws_json1_1TerminateSessionResponse = (output, context) => { + return { + SessionId: (0, smithy_client_1.expectString)(output.SessionId), + }; +}; +const deserializeAws_json1_1TooManyTagsError = (output, context) => { + return {}; +}; +const deserializeAws_json1_1TooManyUpdates = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1TotalSizeLimitExceededException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1UnlabelParameterVersionResult = (output, context) => { + return { + InvalidLabels: output.InvalidLabels != null + ? deserializeAws_json1_1ParameterLabelList(output.InvalidLabels, context) + : undefined, + RemovedLabels: output.RemovedLabels != null + ? deserializeAws_json1_1ParameterLabelList(output.RemovedLabels, context) + : undefined, + }; +}; +const deserializeAws_json1_1UnsupportedCalendarException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1UnsupportedFeatureRequiredException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1UnsupportedInventoryItemContextException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + TypeName: (0, smithy_client_1.expectString)(output.TypeName), + }; +}; +const deserializeAws_json1_1UnsupportedInventorySchemaVersionException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1UnsupportedOperatingSystem = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1UnsupportedParameterType = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message), + }; +}; +const deserializeAws_json1_1UnsupportedPlatformType = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message), + }; +}; +const deserializeAws_json1_1UpdateAssociationResult = (output, context) => { + return { + AssociationDescription: output.AssociationDescription != null + ? deserializeAws_json1_1AssociationDescription(output.AssociationDescription, context) + : undefined, + }; +}; +const deserializeAws_json1_1UpdateAssociationStatusResult = (output, context) => { + return { + AssociationDescription: output.AssociationDescription != null + ? deserializeAws_json1_1AssociationDescription(output.AssociationDescription, context) + : undefined, + }; +}; +const deserializeAws_json1_1UpdateDocumentDefaultVersionResult = (output, context) => { + return { + Description: output.Description != null + ? deserializeAws_json1_1DocumentDefaultVersionDescription(output.Description, context) + : undefined, + }; +}; +const deserializeAws_json1_1UpdateDocumentMetadataResponse = (output, context) => { + return {}; +}; +const deserializeAws_json1_1UpdateDocumentResult = (output, context) => { + return { + DocumentDescription: output.DocumentDescription != null + ? deserializeAws_json1_1DocumentDescription(output.DocumentDescription, context) + : undefined, + }; +}; +const deserializeAws_json1_1UpdateMaintenanceWindowResult = (output, context) => { + return { + AllowUnassociatedTargets: (0, smithy_client_1.expectBoolean)(output.AllowUnassociatedTargets), + Cutoff: (0, smithy_client_1.expectInt32)(output.Cutoff), + Description: (0, smithy_client_1.expectString)(output.Description), + Duration: (0, smithy_client_1.expectInt32)(output.Duration), + Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled), + EndDate: (0, smithy_client_1.expectString)(output.EndDate), + Name: (0, smithy_client_1.expectString)(output.Name), + Schedule: (0, smithy_client_1.expectString)(output.Schedule), + ScheduleOffset: (0, smithy_client_1.expectInt32)(output.ScheduleOffset), + ScheduleTimezone: (0, smithy_client_1.expectString)(output.ScheduleTimezone), + StartDate: (0, smithy_client_1.expectString)(output.StartDate), + WindowId: (0, smithy_client_1.expectString)(output.WindowId), + }; +}; +const deserializeAws_json1_1UpdateMaintenanceWindowTargetResult = (output, context) => { + return { + Description: (0, smithy_client_1.expectString)(output.Description), + Name: (0, smithy_client_1.expectString)(output.Name), + OwnerInformation: (0, smithy_client_1.expectString)(output.OwnerInformation), + Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, + WindowId: (0, smithy_client_1.expectString)(output.WindowId), + WindowTargetId: (0, smithy_client_1.expectString)(output.WindowTargetId), + }; +}; +const deserializeAws_json1_1UpdateMaintenanceWindowTaskResult = (output, context) => { + return { + CutoffBehavior: (0, smithy_client_1.expectString)(output.CutoffBehavior), + Description: (0, smithy_client_1.expectString)(output.Description), + LoggingInfo: output.LoggingInfo != null ? deserializeAws_json1_1LoggingInfo(output.LoggingInfo, context) : undefined, + MaxConcurrency: (0, smithy_client_1.expectString)(output.MaxConcurrency), + MaxErrors: (0, smithy_client_1.expectString)(output.MaxErrors), + Name: (0, smithy_client_1.expectString)(output.Name), + Priority: (0, smithy_client_1.expectInt32)(output.Priority), + ServiceRoleArn: (0, smithy_client_1.expectString)(output.ServiceRoleArn), + Targets: output.Targets != null ? deserializeAws_json1_1Targets(output.Targets, context) : undefined, + TaskArn: (0, smithy_client_1.expectString)(output.TaskArn), + TaskInvocationParameters: output.TaskInvocationParameters != null + ? deserializeAws_json1_1MaintenanceWindowTaskInvocationParameters(output.TaskInvocationParameters, context) + : undefined, + TaskParameters: output.TaskParameters != null + ? deserializeAws_json1_1MaintenanceWindowTaskParameters(output.TaskParameters, context) + : undefined, + WindowId: (0, smithy_client_1.expectString)(output.WindowId), + WindowTaskId: (0, smithy_client_1.expectString)(output.WindowTaskId), + }; +}; +const deserializeAws_json1_1UpdateManagedInstanceRoleResult = (output, context) => { + return {}; +}; +const deserializeAws_json1_1UpdateOpsItemResponse = (output, context) => { + return {}; +}; +const deserializeAws_json1_1UpdateOpsMetadataResult = (output, context) => { + return { + OpsMetadataArn: (0, smithy_client_1.expectString)(output.OpsMetadataArn), + }; +}; +const deserializeAws_json1_1UpdatePatchBaselineResult = (output, context) => { + return { + ApprovalRules: output.ApprovalRules != null ? deserializeAws_json1_1PatchRuleGroup(output.ApprovalRules, context) : undefined, + ApprovedPatches: output.ApprovedPatches != null ? deserializeAws_json1_1PatchIdList(output.ApprovedPatches, context) : undefined, + ApprovedPatchesComplianceLevel: (0, smithy_client_1.expectString)(output.ApprovedPatchesComplianceLevel), + ApprovedPatchesEnableNonSecurity: (0, smithy_client_1.expectBoolean)(output.ApprovedPatchesEnableNonSecurity), + BaselineId: (0, smithy_client_1.expectString)(output.BaselineId), + CreatedDate: output.CreatedDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate))) + : undefined, + Description: (0, smithy_client_1.expectString)(output.Description), + GlobalFilters: output.GlobalFilters != null ? deserializeAws_json1_1PatchFilterGroup(output.GlobalFilters, context) : undefined, + ModifiedDate: output.ModifiedDate != null + ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ModifiedDate))) + : undefined, + Name: (0, smithy_client_1.expectString)(output.Name), + OperatingSystem: (0, smithy_client_1.expectString)(output.OperatingSystem), + RejectedPatches: output.RejectedPatches != null ? deserializeAws_json1_1PatchIdList(output.RejectedPatches, context) : undefined, + RejectedPatchesAction: (0, smithy_client_1.expectString)(output.RejectedPatchesAction), + Sources: output.Sources != null ? deserializeAws_json1_1PatchSourceList(output.Sources, context) : undefined, + }; +}; +const deserializeAws_json1_1UpdateResourceDataSyncResult = (output, context) => { + return {}; +}; +const deserializeAws_json1_1UpdateServiceSettingResult = (output, context) => { + return {}; +}; +const deserializeAws_json1_1ValidNextStepList = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; +}; +const deserializeMetadata = (output) => { + var _a; + return ({ + httpStatusCode: output.statusCode, + requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"], + extendedRequestId: output.headers["x-amz-id-2"], + cfId: output.headers["x-amz-cf-id"], + }); +}; +const collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); +}; +const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); +const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const contents = { + protocol, + hostname, + port, + method: "POST", + path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, + headers, + }; + if (resolvedHostname !== undefined) { + contents.hostname = resolvedHostname; + } + if (body !== undefined) { + contents.body = body; + } + return new protocol_http_1.HttpRequest(contents); +}; +const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + return JSON.parse(encoded); + } + return {}; +}); +const loadRestJsonErrorCode = (output, data) => { + const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); + const sanitizeErrorCode = (rawValue) => { + let cleanValue = rawValue; + if (typeof cleanValue === "number") { + cleanValue = cleanValue.toString(); + } + if (cleanValue.indexOf(":") >= 0) { + cleanValue = cleanValue.split(":")[0]; + } + if (cleanValue.indexOf("#") >= 0) { + cleanValue = cleanValue.split("#")[1]; + } + return cleanValue; + }; + const headerKey = findKey(output.headers, "x-amzn-errortype"); + if (headerKey !== undefined) { + return sanitizeErrorCode(output.headers[headerKey]); + } + if (data.code !== undefined) { + return sanitizeErrorCode(data.code); + } + if (data["__type"] !== undefined) { + return sanitizeErrorCode(data["__type"]); + } +}; + + +/***/ }), + +/***/ 78509: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getRuntimeConfig = void 0; +const tslib_1 = __nccwpck_require__(4351); +const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(50466)); +const client_sts_1 = __nccwpck_require__(52209); +const config_resolver_1 = __nccwpck_require__(56153); +const credential_provider_node_1 = __nccwpck_require__(75531); +const hash_node_1 = __nccwpck_require__(97442); +const middleware_retry_1 = __nccwpck_require__(96064); +const node_config_provider_1 = __nccwpck_require__(87684); +const node_http_handler_1 = __nccwpck_require__(68805); +const util_base64_node_1 = __nccwpck_require__(18588); +const util_body_length_node_1 = __nccwpck_require__(74147); +const util_user_agent_node_1 = __nccwpck_require__(98095); +const util_utf8_node_1 = __nccwpck_require__(66278); +const runtimeConfig_shared_1 = __nccwpck_require__(52214); +const smithy_client_1 = __nccwpck_require__(4963); +const util_defaults_mode_node_1 = __nccwpck_require__(74243); +const smithy_client_2 = __nccwpck_require__(4963); +const getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; + (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); + const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); + const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); + const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, + base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, + bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, + credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), + defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), + maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), + retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({ + ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE, + }), + sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"), + streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, + useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, + utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8, + }; +}; +exports.getRuntimeConfig = getRuntimeConfig; + + +/***/ }), + +/***/ 52214: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getRuntimeConfig = void 0; +const url_parser_1 = __nccwpck_require__(2992); +const endpoints_1 = __nccwpck_require__(57499); +const getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e; + return ({ + apiVersion: "2014-11-06", + disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, + logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, + regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, + serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "SSM", + urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl, + }); +}; +exports.getRuntimeConfig = getRuntimeConfig; + + +/***/ }), + +/***/ 88981: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(65697), exports); + + +/***/ }), + +/***/ 65697: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.waitUntilCommandExecuted = exports.waitForCommandExecuted = void 0; +const util_waiter_1 = __nccwpck_require__(21627); +const GetCommandInvocationCommand_1 = __nccwpck_require__(93305); +const checkState = async (client, input) => { + let reason; + try { + const result = await client.send(new GetCommandInvocationCommand_1.GetCommandInvocationCommand(input)); + reason = result; + try { + const returnComparator = () => { + return result.Status; + }; + if (returnComparator() === "Pending") { + return { state: util_waiter_1.WaiterState.RETRY, reason }; + } + } + catch (e) { } + try { + const returnComparator = () => { + return result.Status; + }; + if (returnComparator() === "InProgress") { + return { state: util_waiter_1.WaiterState.RETRY, reason }; + } + } + catch (e) { } + try { + const returnComparator = () => { + return result.Status; + }; + if (returnComparator() === "Delayed") { + return { state: util_waiter_1.WaiterState.RETRY, reason }; + } + } + catch (e) { } + try { + const returnComparator = () => { + return result.Status; + }; + if (returnComparator() === "Success") { + return { state: util_waiter_1.WaiterState.SUCCESS, reason }; + } + } + catch (e) { } + try { + const returnComparator = () => { + return result.Status; + }; + if (returnComparator() === "Cancelled") { + return { state: util_waiter_1.WaiterState.FAILURE, reason }; + } + } + catch (e) { } + try { + const returnComparator = () => { + return result.Status; + }; + if (returnComparator() === "TimedOut") { + return { state: util_waiter_1.WaiterState.FAILURE, reason }; + } + } + catch (e) { } + try { + const returnComparator = () => { + return result.Status; + }; + if (returnComparator() === "Failed") { + return { state: util_waiter_1.WaiterState.FAILURE, reason }; + } + } + catch (e) { } + try { + const returnComparator = () => { + return result.Status; + }; + if (returnComparator() === "Cancelling") { + return { state: util_waiter_1.WaiterState.FAILURE, reason }; + } + } + catch (e) { } + } + catch (exception) { + reason = exception; + if (exception.name && exception.name == "InvocationDoesNotExist") { + return { state: util_waiter_1.WaiterState.RETRY, reason }; + } + } + return { state: util_waiter_1.WaiterState.RETRY, reason }; +}; +const waitForCommandExecuted = async (params, input) => { + const serviceDefaults = { minDelay: 5, maxDelay: 120 }; + return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); +}; +exports.waitForCommandExecuted = waitForCommandExecuted; +const waitUntilCommandExecuted = async (params, input) => { + const serviceDefaults = { minDelay: 5, maxDelay: 120 }; + const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + return (0, util_waiter_1.checkExceptions)(result); +}; +exports.waitUntilCommandExecuted = waitUntilCommandExecuted; + + +/***/ }), + +/***/ 69838: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SSO = void 0; +const GetRoleCredentialsCommand_1 = __nccwpck_require__(18972); +const ListAccountRolesCommand_1 = __nccwpck_require__(1513); +const ListAccountsCommand_1 = __nccwpck_require__(64296); +const LogoutCommand_1 = __nccwpck_require__(12586); +const SSOClient_1 = __nccwpck_require__(71057); +class SSO extends SSOClient_1.SSOClient { + getRoleCredentials(args, optionsOrCb, cb) { + const command = new GetRoleCredentialsCommand_1.GetRoleCredentialsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + listAccountRoles(args, optionsOrCb, cb) { + const command = new ListAccountRolesCommand_1.ListAccountRolesCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + listAccounts(args, optionsOrCb, cb) { + const command = new ListAccountsCommand_1.ListAccountsCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + logout(args, optionsOrCb, cb) { + const command = new LogoutCommand_1.LogoutCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } +} +exports.SSO = SSO; + + +/***/ }), + +/***/ 71057: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SSOClient = void 0; +const config_resolver_1 = __nccwpck_require__(56153); +const middleware_content_length_1 = __nccwpck_require__(42245); +const middleware_host_header_1 = __nccwpck_require__(22545); +const middleware_logger_1 = __nccwpck_require__(20014); +const middleware_recursion_detection_1 = __nccwpck_require__(85525); +const middleware_retry_1 = __nccwpck_require__(96064); +const middleware_user_agent_1 = __nccwpck_require__(64688); +const smithy_client_1 = __nccwpck_require__(4963); +const runtimeConfig_1 = __nccwpck_require__(19756); +class SSOClient extends smithy_client_1.Client { + constructor(configuration) { + const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); + const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); + const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); + const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); + const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); + const _config_5 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_4); + super(_config_5); + this.config = _config_5; + this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); + } + destroy() { + super.destroy(); + } +} +exports.SSOClient = SSOClient; + + +/***/ }), + +/***/ 18972: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetRoleCredentialsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(66390); +const Aws_restJson1_1 = __nccwpck_require__(98507); +class GetRoleCredentialsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSOClient"; + const commandName = "GetRoleCredentialsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1GetRoleCredentialsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1GetRoleCredentialsCommand)(output, context); + } +} +exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand; + + +/***/ }), + +/***/ 1513: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListAccountRolesCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(66390); +const Aws_restJson1_1 = __nccwpck_require__(98507); +class ListAccountRolesCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSOClient"; + const commandName = "ListAccountRolesCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListAccountRolesResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1ListAccountRolesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1ListAccountRolesCommand)(output, context); + } +} +exports.ListAccountRolesCommand = ListAccountRolesCommand; + + +/***/ }), + +/***/ 64296: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ListAccountsCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(66390); +const Aws_restJson1_1 = __nccwpck_require__(98507); +class ListAccountsCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSOClient"; + const commandName = "ListAccountsCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListAccountsResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1ListAccountsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1ListAccountsCommand)(output, context); + } +} +exports.ListAccountsCommand = ListAccountsCommand; + + +/***/ }), + +/***/ 12586: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogoutCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(66390); +const Aws_restJson1_1 = __nccwpck_require__(98507); +class LogoutCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "SSOClient"; + const commandName = "LogoutCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1LogoutCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1LogoutCommand)(output, context); + } +} +exports.LogoutCommand = LogoutCommand; + + +/***/ }), + +/***/ 65706: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(18972), exports); +tslib_1.__exportStar(__nccwpck_require__(1513), exports); +tslib_1.__exportStar(__nccwpck_require__(64296), exports); +tslib_1.__exportStar(__nccwpck_require__(12586), exports); + + +/***/ }), + +/***/ 33546: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.defaultRegionInfoProvider = void 0; +const config_resolver_1 = __nccwpck_require__(56153); +const regionHash = { + "ap-east-1": { + variants: [ + { + hostname: "portal.sso.ap-east-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ap-east-1", + }, + "ap-northeast-1": { + variants: [ + { + hostname: "portal.sso.ap-northeast-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ap-northeast-1", + }, + "ap-northeast-2": { + variants: [ + { + hostname: "portal.sso.ap-northeast-2.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ap-northeast-2", + }, + "ap-northeast-3": { + variants: [ + { + hostname: "portal.sso.ap-northeast-3.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ap-northeast-3", + }, + "ap-south-1": { + variants: [ + { + hostname: "portal.sso.ap-south-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ap-south-1", + }, + "ap-southeast-1": { + variants: [ + { + hostname: "portal.sso.ap-southeast-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ap-southeast-1", + }, + "ap-southeast-2": { + variants: [ + { + hostname: "portal.sso.ap-southeast-2.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ap-southeast-2", + }, + "ca-central-1": { + variants: [ + { + hostname: "portal.sso.ca-central-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "ca-central-1", + }, + "eu-central-1": { + variants: [ + { + hostname: "portal.sso.eu-central-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "eu-central-1", + }, + "eu-north-1": { + variants: [ + { + hostname: "portal.sso.eu-north-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "eu-north-1", + }, + "eu-south-1": { + variants: [ + { + hostname: "portal.sso.eu-south-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "eu-south-1", + }, + "eu-west-1": { + variants: [ + { + hostname: "portal.sso.eu-west-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "eu-west-1", + }, + "eu-west-2": { + variants: [ + { + hostname: "portal.sso.eu-west-2.amazonaws.com", + tags: [], + }, + ], + signingRegion: "eu-west-2", + }, + "eu-west-3": { + variants: [ + { + hostname: "portal.sso.eu-west-3.amazonaws.com", + tags: [], + }, + ], + signingRegion: "eu-west-3", + }, + "me-south-1": { + variants: [ + { + hostname: "portal.sso.me-south-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "me-south-1", + }, + "sa-east-1": { + variants: [ + { + hostname: "portal.sso.sa-east-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "sa-east-1", + }, + "us-east-1": { + variants: [ + { + hostname: "portal.sso.us-east-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-east-1", + }, + "us-east-2": { + variants: [ + { + hostname: "portal.sso.us-east-2.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-east-2", + }, + "us-gov-east-1": { + variants: [ + { + hostname: "portal.sso.us-gov-east-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-gov-east-1", + }, + "us-gov-west-1": { + variants: [ + { + hostname: "portal.sso.us-gov-west-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-gov-west-1", + }, + "us-west-2": { + variants: [ + { + hostname: "portal.sso.us-west-2.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-west-2", + }, +}; +const partitionHash = { + aws: { + regions: [ + "af-south-1", + "ap-east-1", + "ap-northeast-1", + "ap-northeast-2", + "ap-northeast-3", + "ap-south-1", + "ap-southeast-1", + "ap-southeast-2", + "ap-southeast-3", + "ca-central-1", + "eu-central-1", + "eu-north-1", + "eu-south-1", + "eu-west-1", + "eu-west-2", + "eu-west-3", + "me-south-1", + "sa-east-1", + "us-east-1", + "us-east-2", + "us-west-1", + "us-west-2", + ], + regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.amazonaws.com", + tags: [], + }, + { + hostname: "portal.sso-fips.{region}.amazonaws.com", + tags: ["fips"], + }, + { + hostname: "portal.sso-fips.{region}.api.aws", + tags: ["dualstack", "fips"], + }, + { + hostname: "portal.sso.{region}.api.aws", + tags: ["dualstack"], + }, + ], + }, + "aws-cn": { + regions: ["cn-north-1", "cn-northwest-1"], + regionRegex: "^cn\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.amazonaws.com.cn", + tags: [], + }, + { + hostname: "portal.sso-fips.{region}.amazonaws.com.cn", + tags: ["fips"], + }, + { + hostname: "portal.sso-fips.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack", "fips"], + }, + { + hostname: "portal.sso.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack"], + }, + ], + }, + "aws-iso": { + regions: ["us-iso-east-1", "us-iso-west-1"], + regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.c2s.ic.gov", + tags: [], + }, + { + hostname: "portal.sso-fips.{region}.c2s.ic.gov", + tags: ["fips"], + }, + ], + }, + "aws-iso-b": { + regions: ["us-isob-east-1"], + regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.sc2s.sgov.gov", + tags: [], + }, + { + hostname: "portal.sso-fips.{region}.sc2s.sgov.gov", + tags: ["fips"], + }, + ], + }, + "aws-us-gov": { + regions: ["us-gov-east-1", "us-gov-west-1"], + regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "portal.sso.{region}.amazonaws.com", + tags: [], + }, + { + hostname: "portal.sso-fips.{region}.amazonaws.com", + tags: ["fips"], + }, + { + hostname: "portal.sso-fips.{region}.api.aws", + tags: ["dualstack", "fips"], + }, + { + hostname: "portal.sso.{region}.api.aws", + tags: ["dualstack"], + }, + ], + }, +}; +const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { + ...options, + signingService: "awsssoportal", + regionHash, + partitionHash, +}); +exports.defaultRegionInfoProvider = defaultRegionInfoProvider; + + +/***/ }), + +/***/ 82666: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SSOServiceException = void 0; +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(69838), exports); +tslib_1.__exportStar(__nccwpck_require__(71057), exports); +tslib_1.__exportStar(__nccwpck_require__(65706), exports); +tslib_1.__exportStar(__nccwpck_require__(14952), exports); +tslib_1.__exportStar(__nccwpck_require__(36773), exports); +var SSOServiceException_1 = __nccwpck_require__(81517); +Object.defineProperty(exports, "SSOServiceException", ({ enumerable: true, get: function () { return SSOServiceException_1.SSOServiceException; } })); + + +/***/ }), + +/***/ 81517: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SSOServiceException = void 0; +const smithy_client_1 = __nccwpck_require__(4963); +class SSOServiceException extends smithy_client_1.ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, SSOServiceException.prototype); + } +} +exports.SSOServiceException = SSOServiceException; + + +/***/ }), + +/***/ 14952: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(66390), exports); + + +/***/ }), + +/***/ 66390: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LogoutRequestFilterSensitiveLog = exports.ListAccountsResponseFilterSensitiveLog = exports.ListAccountsRequestFilterSensitiveLog = exports.ListAccountRolesResponseFilterSensitiveLog = exports.RoleInfoFilterSensitiveLog = exports.ListAccountRolesRequestFilterSensitiveLog = exports.GetRoleCredentialsResponseFilterSensitiveLog = exports.RoleCredentialsFilterSensitiveLog = exports.GetRoleCredentialsRequestFilterSensitiveLog = exports.AccountInfoFilterSensitiveLog = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = void 0; +const smithy_client_1 = __nccwpck_require__(4963); +const SSOServiceException_1 = __nccwpck_require__(81517); +class InvalidRequestException extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: "InvalidRequestException", + $fault: "client", + ...opts, + }); + this.name = "InvalidRequestException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidRequestException.prototype); + } +} +exports.InvalidRequestException = InvalidRequestException; +class ResourceNotFoundException extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: "ResourceNotFoundException", + $fault: "client", + ...opts, + }); + this.name = "ResourceNotFoundException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ResourceNotFoundException.prototype); + } +} +exports.ResourceNotFoundException = ResourceNotFoundException; +class TooManyRequestsException extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: "TooManyRequestsException", + $fault: "client", + ...opts, + }); + this.name = "TooManyRequestsException"; + this.$fault = "client"; + Object.setPrototypeOf(this, TooManyRequestsException.prototype); + } +} +exports.TooManyRequestsException = TooManyRequestsException; +class UnauthorizedException extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: "UnauthorizedException", + $fault: "client", + ...opts, + }); + this.name = "UnauthorizedException"; + this.$fault = "client"; + Object.setPrototypeOf(this, UnauthorizedException.prototype); + } +} +exports.UnauthorizedException = UnauthorizedException; +const AccountInfoFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AccountInfoFilterSensitiveLog = AccountInfoFilterSensitiveLog; +const GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), +}); +exports.GetRoleCredentialsRequestFilterSensitiveLog = GetRoleCredentialsRequestFilterSensitiveLog; +const RoleCredentialsFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.secretAccessKey && { secretAccessKey: smithy_client_1.SENSITIVE_STRING }), + ...(obj.sessionToken && { sessionToken: smithy_client_1.SENSITIVE_STRING }), +}); +exports.RoleCredentialsFilterSensitiveLog = RoleCredentialsFilterSensitiveLog; +const GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.roleCredentials && { roleCredentials: (0, exports.RoleCredentialsFilterSensitiveLog)(obj.roleCredentials) }), +}); +exports.GetRoleCredentialsResponseFilterSensitiveLog = GetRoleCredentialsResponseFilterSensitiveLog; +const ListAccountRolesRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), +}); +exports.ListAccountRolesRequestFilterSensitiveLog = ListAccountRolesRequestFilterSensitiveLog; +const RoleInfoFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.RoleInfoFilterSensitiveLog = RoleInfoFilterSensitiveLog; +const ListAccountRolesResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListAccountRolesResponseFilterSensitiveLog = ListAccountRolesResponseFilterSensitiveLog; +const ListAccountsRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), +}); +exports.ListAccountsRequestFilterSensitiveLog = ListAccountsRequestFilterSensitiveLog; +const ListAccountsResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.ListAccountsResponseFilterSensitiveLog = ListAccountsResponseFilterSensitiveLog; +const LogoutRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), +}); +exports.LogoutRequestFilterSensitiveLog = LogoutRequestFilterSensitiveLog; + + +/***/ }), + +/***/ 80849: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); + + +/***/ }), + +/***/ 88460: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateListAccountRoles = void 0; +const ListAccountRolesCommand_1 = __nccwpck_require__(1513); +const SSO_1 = __nccwpck_require__(69838); +const SSOClient_1 = __nccwpck_require__(71057); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListAccountRolesCommand_1.ListAccountRolesCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.listAccountRoles(input, ...args); +}; +async function* paginateListAccountRoles(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof SSO_1.SSO) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSOClient_1.SSOClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSO | SSOClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListAccountRoles = paginateListAccountRoles; + + +/***/ }), + +/***/ 50938: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.paginateListAccounts = void 0; +const ListAccountsCommand_1 = __nccwpck_require__(64296); +const SSO_1 = __nccwpck_require__(69838); +const SSOClient_1 = __nccwpck_require__(71057); +const makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListAccountsCommand_1.ListAccountsCommand(input), ...args); +}; +const makePagedRequest = async (client, input, ...args) => { + return await client.listAccounts(input, ...args); +}; +async function* paginateListAccounts(config, input, ...additionalArguments) { + let token = config.startingToken || undefined; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input["maxResults"] = config.pageSize; + if (config.client instanceof SSO_1.SSO) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } + else if (config.client instanceof SSOClient_1.SSOClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } + else { + throw new Error("Invalid client, expected SSO | SSOClient"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return undefined; +} +exports.paginateListAccounts = paginateListAccounts; + + +/***/ }), + +/***/ 36773: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(80849), exports); +tslib_1.__exportStar(__nccwpck_require__(88460), exports); +tslib_1.__exportStar(__nccwpck_require__(50938), exports); + + +/***/ }), + +/***/ 98507: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.deserializeAws_restJson1LogoutCommand = exports.deserializeAws_restJson1ListAccountsCommand = exports.deserializeAws_restJson1ListAccountRolesCommand = exports.deserializeAws_restJson1GetRoleCredentialsCommand = exports.serializeAws_restJson1LogoutCommand = exports.serializeAws_restJson1ListAccountsCommand = exports.serializeAws_restJson1ListAccountRolesCommand = exports.serializeAws_restJson1GetRoleCredentialsCommand = void 0; +const protocol_http_1 = __nccwpck_require__(70223); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(66390); +const SSOServiceException_1 = __nccwpck_require__(81517); +const serializeAws_restJson1GetRoleCredentialsCommand = async (input, context) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + "x-amz-sso_bearer_token": input.accessToken, + }); + const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/federation/credentials"; + const query = map({ + role_name: [, input.roleName], + account_id: [, input.accountId], + }); + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; +exports.serializeAws_restJson1GetRoleCredentialsCommand = serializeAws_restJson1GetRoleCredentialsCommand; +const serializeAws_restJson1ListAccountRolesCommand = async (input, context) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + "x-amz-sso_bearer_token": input.accessToken, + }); + const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assignment/roles"; + const query = map({ + next_token: [, input.nextToken], + max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()], + account_id: [, input.accountId], + }); + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; +exports.serializeAws_restJson1ListAccountRolesCommand = serializeAws_restJson1ListAccountRolesCommand; +const serializeAws_restJson1ListAccountsCommand = async (input, context) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + "x-amz-sso_bearer_token": input.accessToken, + }); + const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assignment/accounts"; + const query = map({ + next_token: [, input.nextToken], + max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()], + }); + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; +exports.serializeAws_restJson1ListAccountsCommand = serializeAws_restJson1ListAccountsCommand; +const serializeAws_restJson1LogoutCommand = async (input, context) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + "x-amz-sso_bearer_token": input.accessToken, + }); + const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/logout"; + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; +exports.serializeAws_restJson1LogoutCommand = serializeAws_restJson1LogoutCommand; +const deserializeAws_restJson1GetRoleCredentialsCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1GetRoleCredentialsCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output), + }); + const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); + if (data.roleCredentials != null) { + contents.roleCredentials = deserializeAws_restJson1RoleCredentials(data.roleCredentials, context); + } + return contents; +}; +exports.deserializeAws_restJson1GetRoleCredentialsCommand = deserializeAws_restJson1GetRoleCredentialsCommand; +const deserializeAws_restJson1GetRoleCredentialsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidRequestException": + case "com.amazonaws.sso#InvalidRequestException": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.sso#ResourceNotFoundException": + throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.sso#TooManyRequestsException": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case "UnauthorizedException": + case "com.amazonaws.sso#UnauthorizedException": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode, + }); + } +}; +const deserializeAws_restJson1ListAccountRolesCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1ListAccountRolesCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output), + }); + const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); + if (data.nextToken != null) { + contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken); + } + if (data.roleList != null) { + contents.roleList = deserializeAws_restJson1RoleListType(data.roleList, context); + } + return contents; +}; +exports.deserializeAws_restJson1ListAccountRolesCommand = deserializeAws_restJson1ListAccountRolesCommand; +const deserializeAws_restJson1ListAccountRolesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidRequestException": + case "com.amazonaws.sso#InvalidRequestException": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.sso#ResourceNotFoundException": + throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.sso#TooManyRequestsException": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case "UnauthorizedException": + case "com.amazonaws.sso#UnauthorizedException": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode, + }); + } +}; +const deserializeAws_restJson1ListAccountsCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1ListAccountsCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output), + }); + const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); + if (data.accountList != null) { + contents.accountList = deserializeAws_restJson1AccountListType(data.accountList, context); + } + if (data.nextToken != null) { + contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken); + } + return contents; +}; +exports.deserializeAws_restJson1ListAccountsCommand = deserializeAws_restJson1ListAccountsCommand; +const deserializeAws_restJson1ListAccountsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidRequestException": + case "com.amazonaws.sso#InvalidRequestException": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case "ResourceNotFoundException": + case "com.amazonaws.sso#ResourceNotFoundException": + throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.sso#TooManyRequestsException": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case "UnauthorizedException": + case "com.amazonaws.sso#UnauthorizedException": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode, + }); + } +}; +const deserializeAws_restJson1LogoutCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1LogoutCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output), + }); + await collectBody(output.body, context); + return contents; +}; +exports.deserializeAws_restJson1LogoutCommand = deserializeAws_restJson1LogoutCommand; +const deserializeAws_restJson1LogoutCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidRequestException": + case "com.amazonaws.sso#InvalidRequestException": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.sso#TooManyRequestsException": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case "UnauthorizedException": + case "com.amazonaws.sso#UnauthorizedException": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode, + }); + } +}; +const map = smithy_client_1.map; +const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.InvalidRequestException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); +}; +const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.ResourceNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); +}; +const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.TooManyRequestsException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); +}; +const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.UnauthorizedException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); +}; +const deserializeAws_restJson1AccountInfo = (output, context) => { + return { + accountId: (0, smithy_client_1.expectString)(output.accountId), + accountName: (0, smithy_client_1.expectString)(output.accountName), + emailAddress: (0, smithy_client_1.expectString)(output.emailAddress), + }; +}; +const deserializeAws_restJson1AccountListType = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_restJson1AccountInfo(entry, context); + }); + return retVal; +}; +const deserializeAws_restJson1RoleCredentials = (output, context) => { + return { + accessKeyId: (0, smithy_client_1.expectString)(output.accessKeyId), + expiration: (0, smithy_client_1.expectLong)(output.expiration), + secretAccessKey: (0, smithy_client_1.expectString)(output.secretAccessKey), + sessionToken: (0, smithy_client_1.expectString)(output.sessionToken), + }; +}; +const deserializeAws_restJson1RoleInfo = (output, context) => { + return { + accountId: (0, smithy_client_1.expectString)(output.accountId), + roleName: (0, smithy_client_1.expectString)(output.roleName), + }; +}; +const deserializeAws_restJson1RoleListType = (output, context) => { + const retVal = (output || []) + .filter((e) => e != null) + .map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_restJson1RoleInfo(entry, context); + }); + return retVal; +}; +const deserializeMetadata = (output) => { + var _a; + return ({ + httpStatusCode: output.statusCode, + requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"], + extendedRequestId: output.headers["x-amz-id-2"], + cfId: output.headers["x-amz-cf-id"], + }); +}; +const collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); +}; +const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); +const isSerializableHeaderValue = (value) => value !== undefined && + value !== null && + value !== "" && + (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && + (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); +const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + return JSON.parse(encoded); + } + return {}; +}); +const loadRestJsonErrorCode = (output, data) => { + const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); + const sanitizeErrorCode = (rawValue) => { + let cleanValue = rawValue; + if (typeof cleanValue === "number") { + cleanValue = cleanValue.toString(); + } + if (cleanValue.indexOf(":") >= 0) { + cleanValue = cleanValue.split(":")[0]; + } + if (cleanValue.indexOf("#") >= 0) { + cleanValue = cleanValue.split("#")[1]; + } + return cleanValue; + }; + const headerKey = findKey(output.headers, "x-amzn-errortype"); + if (headerKey !== undefined) { + return sanitizeErrorCode(output.headers[headerKey]); + } + if (data.code !== undefined) { + return sanitizeErrorCode(data.code); + } + if (data["__type"] !== undefined) { + return sanitizeErrorCode(data["__type"]); + } +}; + + +/***/ }), + +/***/ 19756: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getRuntimeConfig = void 0; +const tslib_1 = __nccwpck_require__(4351); +const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(91092)); +const config_resolver_1 = __nccwpck_require__(56153); +const hash_node_1 = __nccwpck_require__(97442); +const middleware_retry_1 = __nccwpck_require__(96064); +const node_config_provider_1 = __nccwpck_require__(87684); +const node_http_handler_1 = __nccwpck_require__(68805); +const util_base64_node_1 = __nccwpck_require__(18588); +const util_body_length_node_1 = __nccwpck_require__(74147); +const util_user_agent_node_1 = __nccwpck_require__(98095); +const util_utf8_node_1 = __nccwpck_require__(66278); +const runtimeConfig_shared_1 = __nccwpck_require__(44809); +const smithy_client_1 = __nccwpck_require__(4963); +const util_defaults_mode_node_1 = __nccwpck_require__(74243); +const smithy_client_2 = __nccwpck_require__(4963); +const getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; + (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); + const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); + const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); + const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, + base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, + bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, + defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), + maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), + retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)({ + ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE, + }), + sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : hash_node_1.Hash.bind(null, "sha256"), + streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : node_http_handler_1.streamCollector, + useDualstackEndpoint: (_l = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _l !== void 0 ? _l : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.fromUtf8, + utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.toUtf8, + }; +}; +exports.getRuntimeConfig = getRuntimeConfig; + + +/***/ }), + +/***/ 44809: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getRuntimeConfig = void 0; +const url_parser_1 = __nccwpck_require__(2992); +const endpoints_1 = __nccwpck_require__(33546); +const getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e; + return ({ + apiVersion: "2019-06-10", + disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, + logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, + regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, + serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "SSO", + urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl, + }); +}; +exports.getRuntimeConfig = getRuntimeConfig; + + +/***/ }), + +/***/ 32605: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.STS = void 0; +const AssumeRoleCommand_1 = __nccwpck_require__(59802); +const AssumeRoleWithSAMLCommand_1 = __nccwpck_require__(72865); +const AssumeRoleWithWebIdentityCommand_1 = __nccwpck_require__(37451); +const DecodeAuthorizationMessageCommand_1 = __nccwpck_require__(74150); +const GetAccessKeyInfoCommand_1 = __nccwpck_require__(49804); +const GetCallerIdentityCommand_1 = __nccwpck_require__(24278); +const GetFederationTokenCommand_1 = __nccwpck_require__(57552); +const GetSessionTokenCommand_1 = __nccwpck_require__(43285); +const STSClient_1 = __nccwpck_require__(64195); +class STS extends STSClient_1.STSClient { + assumeRole(args, optionsOrCb, cb) { + const command = new AssumeRoleCommand_1.AssumeRoleCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + assumeRoleWithSAML(args, optionsOrCb, cb) { + const command = new AssumeRoleWithSAMLCommand_1.AssumeRoleWithSAMLCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + assumeRoleWithWebIdentity(args, optionsOrCb, cb) { + const command = new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + decodeAuthorizationMessage(args, optionsOrCb, cb) { + const command = new DecodeAuthorizationMessageCommand_1.DecodeAuthorizationMessageCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getAccessKeyInfo(args, optionsOrCb, cb) { + const command = new GetAccessKeyInfoCommand_1.GetAccessKeyInfoCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getCallerIdentity(args, optionsOrCb, cb) { + const command = new GetCallerIdentityCommand_1.GetCallerIdentityCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getFederationToken(args, optionsOrCb, cb) { + const command = new GetFederationTokenCommand_1.GetFederationTokenCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } + getSessionToken(args, optionsOrCb, cb) { + const command = new GetSessionTokenCommand_1.GetSessionTokenCommand(args); + if (typeof optionsOrCb === "function") { + this.send(command, optionsOrCb); + } + else if (typeof cb === "function") { + if (typeof optionsOrCb !== "object") + throw new Error(`Expect http options but get ${typeof optionsOrCb}`); + this.send(command, optionsOrCb || {}, cb); + } + else { + return this.send(command, optionsOrCb); + } + } +} +exports.STS = STS; + + +/***/ }), + +/***/ 64195: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.STSClient = void 0; +const config_resolver_1 = __nccwpck_require__(56153); +const middleware_content_length_1 = __nccwpck_require__(42245); +const middleware_host_header_1 = __nccwpck_require__(22545); +const middleware_logger_1 = __nccwpck_require__(20014); +const middleware_recursion_detection_1 = __nccwpck_require__(85525); +const middleware_retry_1 = __nccwpck_require__(96064); +const middleware_sdk_sts_1 = __nccwpck_require__(55959); +const middleware_user_agent_1 = __nccwpck_require__(64688); +const smithy_client_1 = __nccwpck_require__(4963); +const runtimeConfig_1 = __nccwpck_require__(83405); +class STSClient extends smithy_client_1.Client { + constructor(configuration) { + const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); + const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); + const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); + const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); + const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); + const _config_5 = (0, middleware_sdk_sts_1.resolveStsAuthConfig)(_config_4, { stsClientCtor: STSClient }); + const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); + super(_config_6); + this.config = _config_6; + this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); + } + destroy() { + super.destroy(); + } +} +exports.STSClient = STSClient; + + +/***/ }), + +/***/ 59802: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AssumeRoleCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const middleware_signing_1 = __nccwpck_require__(14935); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(21780); +const Aws_query_1 = __nccwpck_require__(10740); +class AssumeRoleCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "STSClient"; + const commandName = "AssumeRoleCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AssumeRoleRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryAssumeRoleCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryAssumeRoleCommand)(output, context); + } +} +exports.AssumeRoleCommand = AssumeRoleCommand; + + +/***/ }), + +/***/ 72865: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AssumeRoleWithSAMLCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(21780); +const Aws_query_1 = __nccwpck_require__(10740); +class AssumeRoleWithSAMLCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "STSClient"; + const commandName = "AssumeRoleWithSAMLCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryAssumeRoleWithSAMLCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryAssumeRoleWithSAMLCommand)(output, context); + } +} +exports.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand; + + +/***/ }), + +/***/ 37451: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AssumeRoleWithWebIdentityCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(21780); +const Aws_query_1 = __nccwpck_require__(10740); +class AssumeRoleWithWebIdentityCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "STSClient"; + const commandName = "AssumeRoleWithWebIdentityCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryAssumeRoleWithWebIdentityCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(output, context); + } +} +exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; + + +/***/ }), + +/***/ 74150: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DecodeAuthorizationMessageCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const middleware_signing_1 = __nccwpck_require__(14935); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(21780); +const Aws_query_1 = __nccwpck_require__(10740); +class DecodeAuthorizationMessageCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "STSClient"; + const commandName = "DecodeAuthorizationMessageCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryDecodeAuthorizationMessageCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryDecodeAuthorizationMessageCommand)(output, context); + } +} +exports.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand; + + +/***/ }), + +/***/ 49804: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetAccessKeyInfoCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const middleware_signing_1 = __nccwpck_require__(14935); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(21780); +const Aws_query_1 = __nccwpck_require__(10740); +class GetAccessKeyInfoCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "STSClient"; + const commandName = "GetAccessKeyInfoCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetAccessKeyInfoRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetAccessKeyInfoResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetAccessKeyInfoCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetAccessKeyInfoCommand)(output, context); + } +} +exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand; + + +/***/ }), + +/***/ 24278: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetCallerIdentityCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const middleware_signing_1 = __nccwpck_require__(14935); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(21780); +const Aws_query_1 = __nccwpck_require__(10740); +class GetCallerIdentityCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "STSClient"; + const commandName = "GetCallerIdentityCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetCallerIdentityRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetCallerIdentityResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetCallerIdentityCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetCallerIdentityCommand)(output, context); + } +} +exports.GetCallerIdentityCommand = GetCallerIdentityCommand; + + +/***/ }), + +/***/ 57552: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetFederationTokenCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const middleware_signing_1 = __nccwpck_require__(14935); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(21780); +const Aws_query_1 = __nccwpck_require__(10740); +class GetFederationTokenCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "STSClient"; + const commandName = "GetFederationTokenCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetFederationTokenRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetFederationTokenResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetFederationTokenCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetFederationTokenCommand)(output, context); + } +} +exports.GetFederationTokenCommand = GetFederationTokenCommand; + + +/***/ }), + +/***/ 43285: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetSessionTokenCommand = void 0; +const middleware_serde_1 = __nccwpck_require__(93631); +const middleware_signing_1 = __nccwpck_require__(14935); +const smithy_client_1 = __nccwpck_require__(4963); +const models_0_1 = __nccwpck_require__(21780); +const Aws_query_1 = __nccwpck_require__(10740); +class GetSessionTokenCommand extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = "STSClient"; + const commandName = "GetSessionTokenCommand"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetSessionTokenRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetSessionTokenResponseFilterSensitiveLog, + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetSessionTokenCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetSessionTokenCommand)(output, context); + } +} +exports.GetSessionTokenCommand = GetSessionTokenCommand; + + +/***/ }), + +/***/ 55716: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(59802), exports); +tslib_1.__exportStar(__nccwpck_require__(72865), exports); +tslib_1.__exportStar(__nccwpck_require__(37451), exports); +tslib_1.__exportStar(__nccwpck_require__(74150), exports); +tslib_1.__exportStar(__nccwpck_require__(49804), exports); +tslib_1.__exportStar(__nccwpck_require__(24278), exports); +tslib_1.__exportStar(__nccwpck_require__(57552), exports); +tslib_1.__exportStar(__nccwpck_require__(43285), exports); + + +/***/ }), + +/***/ 88028: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; +const defaultStsRoleAssumers_1 = __nccwpck_require__(90048); +const STSClient_1 = __nccwpck_require__(64195); +const getDefaultRoleAssumer = (stsOptions = {}) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumer)(stsOptions, STSClient_1.STSClient); +exports.getDefaultRoleAssumer = getDefaultRoleAssumer; +const getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumerWithWebIdentity)(stsOptions, STSClient_1.STSClient); +exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; +const decorateDefaultCredentialProvider = (provider) => (input) => provider({ + roleAssumer: (0, exports.getDefaultRoleAssumer)(input), + roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input), + ...input, +}); +exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; + + +/***/ }), + +/***/ 90048: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; +const AssumeRoleCommand_1 = __nccwpck_require__(59802); +const AssumeRoleWithWebIdentityCommand_1 = __nccwpck_require__(37451); +const ASSUME_ROLE_DEFAULT_REGION = "us-east-1"; +const decorateDefaultRegion = (region) => { + if (typeof region !== "function") { + return region === undefined ? ASSUME_ROLE_DEFAULT_REGION : region; + } + return async () => { + try { + return await region(); + } + catch (e) { + return ASSUME_ROLE_DEFAULT_REGION; + } + }; +}; +const getDefaultRoleAssumer = (stsOptions, stsClientCtor) => { + let stsClient; + let closureSourceCreds; + return async (sourceCreds, params) => { + closureSourceCreds = sourceCreds; + if (!stsClient) { + const { logger, region, requestHandler } = stsOptions; + stsClient = new stsClientCtor({ + logger, + credentialDefaultProvider: () => async () => closureSourceCreds, + region: decorateDefaultRegion(region || stsOptions.region), + ...(requestHandler ? { requestHandler } : {}), + }); + } + const { Credentials } = await stsClient.send(new AssumeRoleCommand_1.AssumeRoleCommand(params)); + if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`); + } + return { + accessKeyId: Credentials.AccessKeyId, + secretAccessKey: Credentials.SecretAccessKey, + sessionToken: Credentials.SessionToken, + expiration: Credentials.Expiration, + }; + }; +}; +exports.getDefaultRoleAssumer = getDefaultRoleAssumer; +const getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => { + let stsClient; + return async (params) => { + if (!stsClient) { + const { logger, region, requestHandler } = stsOptions; + stsClient = new stsClientCtor({ + logger, + region: decorateDefaultRegion(region || stsOptions.region), + ...(requestHandler ? { requestHandler } : {}), + }); + } + const { Credentials } = await stsClient.send(new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(params)); + if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`); + } + return { + accessKeyId: Credentials.AccessKeyId, + secretAccessKey: Credentials.SecretAccessKey, + sessionToken: Credentials.SessionToken, + expiration: Credentials.Expiration, + }; + }; +}; +exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; +const decorateDefaultCredentialProvider = (provider) => (input) => provider({ + roleAssumer: (0, exports.getDefaultRoleAssumer)(input, input.stsClientCtor), + roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input, input.stsClientCtor), + ...input, +}); +exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; + + +/***/ }), + +/***/ 3571: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.defaultRegionInfoProvider = void 0; +const config_resolver_1 = __nccwpck_require__(56153); +const regionHash = { + "aws-global": { + variants: [ + { + hostname: "sts.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-east-1", + }, + "us-east-1": { + variants: [ + { + hostname: "sts-fips.us-east-1.amazonaws.com", + tags: ["fips"], + }, + ], + }, + "us-east-2": { + variants: [ + { + hostname: "sts-fips.us-east-2.amazonaws.com", + tags: ["fips"], + }, + ], + }, + "us-gov-east-1": { + variants: [ + { + hostname: "sts.us-gov-east-1.amazonaws.com", + tags: ["fips"], + }, + ], + }, + "us-gov-west-1": { + variants: [ + { + hostname: "sts.us-gov-west-1.amazonaws.com", + tags: ["fips"], + }, + ], + }, + "us-west-1": { + variants: [ + { + hostname: "sts-fips.us-west-1.amazonaws.com", + tags: ["fips"], + }, + ], + }, + "us-west-2": { + variants: [ + { + hostname: "sts-fips.us-west-2.amazonaws.com", + tags: ["fips"], + }, + ], + }, +}; +const partitionHash = { + aws: { + regions: [ + "af-south-1", + "ap-east-1", + "ap-northeast-1", + "ap-northeast-2", + "ap-northeast-3", + "ap-south-1", + "ap-southeast-1", + "ap-southeast-2", + "ap-southeast-3", + "aws-global", + "ca-central-1", + "eu-central-1", + "eu-north-1", + "eu-south-1", + "eu-west-1", + "eu-west-2", + "eu-west-3", + "me-south-1", + "sa-east-1", + "us-east-1", + "us-east-1-fips", + "us-east-2", + "us-east-2-fips", + "us-west-1", + "us-west-1-fips", + "us-west-2", + "us-west-2-fips", + ], + regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "sts.{region}.amazonaws.com", + tags: [], + }, + { + hostname: "sts-fips.{region}.amazonaws.com", + tags: ["fips"], + }, + { + hostname: "sts-fips.{region}.api.aws", + tags: ["dualstack", "fips"], + }, + { + hostname: "sts.{region}.api.aws", + tags: ["dualstack"], + }, + ], + }, + "aws-cn": { + regions: ["cn-north-1", "cn-northwest-1"], + regionRegex: "^cn\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "sts.{region}.amazonaws.com.cn", + tags: [], + }, + { + hostname: "sts-fips.{region}.amazonaws.com.cn", + tags: ["fips"], + }, + { + hostname: "sts-fips.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack", "fips"], + }, + { + hostname: "sts.{region}.api.amazonwebservices.com.cn", + tags: ["dualstack"], + }, + ], + }, + "aws-iso": { + regions: ["us-iso-east-1", "us-iso-west-1"], + regionRegex: "^us\\-iso\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "sts.{region}.c2s.ic.gov", + tags: [], + }, + { + hostname: "sts-fips.{region}.c2s.ic.gov", + tags: ["fips"], + }, + ], + }, + "aws-iso-b": { + regions: ["us-isob-east-1"], + regionRegex: "^us\\-isob\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "sts.{region}.sc2s.sgov.gov", + tags: [], + }, + { + hostname: "sts-fips.{region}.sc2s.sgov.gov", + tags: ["fips"], + }, + ], + }, + "aws-us-gov": { + regions: ["us-gov-east-1", "us-gov-east-1-fips", "us-gov-west-1", "us-gov-west-1-fips"], + regionRegex: "^us\\-gov\\-\\w+\\-\\d+$", + variants: [ + { + hostname: "sts.{region}.amazonaws.com", + tags: [], + }, + { + hostname: "sts.{region}.amazonaws.com", + tags: ["fips"], + }, + { + hostname: "sts-fips.{region}.api.aws", + tags: ["dualstack", "fips"], + }, + { + hostname: "sts.{region}.api.aws", + tags: ["dualstack"], + }, + ], + }, +}; +const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { + ...options, + signingService: "sts", + regionHash, + partitionHash, +}); +exports.defaultRegionInfoProvider = defaultRegionInfoProvider; + + +/***/ }), + +/***/ 52209: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.STSServiceException = void 0; +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(32605), exports); +tslib_1.__exportStar(__nccwpck_require__(64195), exports); +tslib_1.__exportStar(__nccwpck_require__(55716), exports); +tslib_1.__exportStar(__nccwpck_require__(88028), exports); +tslib_1.__exportStar(__nccwpck_require__(20106), exports); +var STSServiceException_1 = __nccwpck_require__(26450); +Object.defineProperty(exports, "STSServiceException", ({ enumerable: true, get: function () { return STSServiceException_1.STSServiceException; } })); + + +/***/ }), + +/***/ 26450: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.STSServiceException = void 0; +const smithy_client_1 = __nccwpck_require__(4963); +class STSServiceException extends smithy_client_1.ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, STSServiceException.prototype); + } +} +exports.STSServiceException = STSServiceException; + + +/***/ }), + +/***/ 20106: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(21780), exports); + + +/***/ }), + +/***/ 21780: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GetSessionTokenResponseFilterSensitiveLog = exports.GetSessionTokenRequestFilterSensitiveLog = exports.GetFederationTokenResponseFilterSensitiveLog = exports.FederatedUserFilterSensitiveLog = exports.GetFederationTokenRequestFilterSensitiveLog = exports.GetCallerIdentityResponseFilterSensitiveLog = exports.GetCallerIdentityRequestFilterSensitiveLog = exports.GetAccessKeyInfoResponseFilterSensitiveLog = exports.GetAccessKeyInfoRequestFilterSensitiveLog = exports.DecodeAuthorizationMessageResponseFilterSensitiveLog = exports.DecodeAuthorizationMessageRequestFilterSensitiveLog = exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = exports.AssumeRoleResponseFilterSensitiveLog = exports.CredentialsFilterSensitiveLog = exports.AssumeRoleRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.PolicyDescriptorTypeFilterSensitiveLog = exports.AssumedRoleUserFilterSensitiveLog = exports.InvalidAuthorizationMessageException = exports.IDPCommunicationErrorException = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = void 0; +const STSServiceException_1 = __nccwpck_require__(26450); +class ExpiredTokenException extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "ExpiredTokenException", + $fault: "client", + ...opts, + }); + this.name = "ExpiredTokenException"; + this.$fault = "client"; + Object.setPrototypeOf(this, ExpiredTokenException.prototype); + } +} +exports.ExpiredTokenException = ExpiredTokenException; +class MalformedPolicyDocumentException extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "MalformedPolicyDocumentException", + $fault: "client", + ...opts, + }); + this.name = "MalformedPolicyDocumentException"; + this.$fault = "client"; + Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); + } +} +exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException; +class PackedPolicyTooLargeException extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "PackedPolicyTooLargeException", + $fault: "client", + ...opts, + }); + this.name = "PackedPolicyTooLargeException"; + this.$fault = "client"; + Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); + } +} +exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException; +class RegionDisabledException extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "RegionDisabledException", + $fault: "client", + ...opts, + }); + this.name = "RegionDisabledException"; + this.$fault = "client"; + Object.setPrototypeOf(this, RegionDisabledException.prototype); + } +} +exports.RegionDisabledException = RegionDisabledException; +class IDPRejectedClaimException extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "IDPRejectedClaimException", + $fault: "client", + ...opts, + }); + this.name = "IDPRejectedClaimException"; + this.$fault = "client"; + Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); + } +} +exports.IDPRejectedClaimException = IDPRejectedClaimException; +class InvalidIdentityTokenException extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "InvalidIdentityTokenException", + $fault: "client", + ...opts, + }); + this.name = "InvalidIdentityTokenException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); + } +} +exports.InvalidIdentityTokenException = InvalidIdentityTokenException; +class IDPCommunicationErrorException extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "IDPCommunicationErrorException", + $fault: "client", + ...opts, + }); + this.name = "IDPCommunicationErrorException"; + this.$fault = "client"; + Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); + } +} +exports.IDPCommunicationErrorException = IDPCommunicationErrorException; +class InvalidAuthorizationMessageException extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: "InvalidAuthorizationMessageException", + $fault: "client", + ...opts, + }); + this.name = "InvalidAuthorizationMessageException"; + this.$fault = "client"; + Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype); + } +} +exports.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException; +const AssumedRoleUserFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AssumedRoleUserFilterSensitiveLog = AssumedRoleUserFilterSensitiveLog; +const PolicyDescriptorTypeFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.PolicyDescriptorTypeFilterSensitiveLog = PolicyDescriptorTypeFilterSensitiveLog; +const TagFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.TagFilterSensitiveLog = TagFilterSensitiveLog; +const AssumeRoleRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AssumeRoleRequestFilterSensitiveLog = AssumeRoleRequestFilterSensitiveLog; +const CredentialsFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog; +const AssumeRoleResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AssumeRoleResponseFilterSensitiveLog = AssumeRoleResponseFilterSensitiveLog; +const AssumeRoleWithSAMLRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = AssumeRoleWithSAMLRequestFilterSensitiveLog; +const AssumeRoleWithSAMLResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = AssumeRoleWithSAMLResponseFilterSensitiveLog; +const AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = AssumeRoleWithWebIdentityRequestFilterSensitiveLog; +const AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = AssumeRoleWithWebIdentityResponseFilterSensitiveLog; +const DecodeAuthorizationMessageRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DecodeAuthorizationMessageRequestFilterSensitiveLog = DecodeAuthorizationMessageRequestFilterSensitiveLog; +const DecodeAuthorizationMessageResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.DecodeAuthorizationMessageResponseFilterSensitiveLog = DecodeAuthorizationMessageResponseFilterSensitiveLog; +const GetAccessKeyInfoRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetAccessKeyInfoRequestFilterSensitiveLog = GetAccessKeyInfoRequestFilterSensitiveLog; +const GetAccessKeyInfoResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetAccessKeyInfoResponseFilterSensitiveLog = GetAccessKeyInfoResponseFilterSensitiveLog; +const GetCallerIdentityRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetCallerIdentityRequestFilterSensitiveLog = GetCallerIdentityRequestFilterSensitiveLog; +const GetCallerIdentityResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetCallerIdentityResponseFilterSensitiveLog = GetCallerIdentityResponseFilterSensitiveLog; +const GetFederationTokenRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetFederationTokenRequestFilterSensitiveLog = GetFederationTokenRequestFilterSensitiveLog; +const FederatedUserFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.FederatedUserFilterSensitiveLog = FederatedUserFilterSensitiveLog; +const GetFederationTokenResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetFederationTokenResponseFilterSensitiveLog = GetFederationTokenResponseFilterSensitiveLog; +const GetSessionTokenRequestFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetSessionTokenRequestFilterSensitiveLog = GetSessionTokenRequestFilterSensitiveLog; +const GetSessionTokenResponseFilterSensitiveLog = (obj) => ({ + ...obj, +}); +exports.GetSessionTokenResponseFilterSensitiveLog = GetSessionTokenResponseFilterSensitiveLog; + + +/***/ }), + +/***/ 10740: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.deserializeAws_queryGetSessionTokenCommand = exports.deserializeAws_queryGetFederationTokenCommand = exports.deserializeAws_queryGetCallerIdentityCommand = exports.deserializeAws_queryGetAccessKeyInfoCommand = exports.deserializeAws_queryDecodeAuthorizationMessageCommand = exports.deserializeAws_queryAssumeRoleWithWebIdentityCommand = exports.deserializeAws_queryAssumeRoleWithSAMLCommand = exports.deserializeAws_queryAssumeRoleCommand = exports.serializeAws_queryGetSessionTokenCommand = exports.serializeAws_queryGetFederationTokenCommand = exports.serializeAws_queryGetCallerIdentityCommand = exports.serializeAws_queryGetAccessKeyInfoCommand = exports.serializeAws_queryDecodeAuthorizationMessageCommand = exports.serializeAws_queryAssumeRoleWithWebIdentityCommand = exports.serializeAws_queryAssumeRoleWithSAMLCommand = exports.serializeAws_queryAssumeRoleCommand = void 0; +const protocol_http_1 = __nccwpck_require__(70223); +const smithy_client_1 = __nccwpck_require__(4963); +const entities_1 = __nccwpck_require__(3000); +const fast_xml_parser_1 = __nccwpck_require__(27448); +const models_0_1 = __nccwpck_require__(21780); +const STSServiceException_1 = __nccwpck_require__(26450); +const serializeAws_queryAssumeRoleCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded", + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryAssumeRoleRequest(input, context), + Action: "AssumeRole", + Version: "2011-06-15", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_queryAssumeRoleCommand = serializeAws_queryAssumeRoleCommand; +const serializeAws_queryAssumeRoleWithSAMLCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded", + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryAssumeRoleWithSAMLRequest(input, context), + Action: "AssumeRoleWithSAML", + Version: "2011-06-15", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_queryAssumeRoleWithSAMLCommand = serializeAws_queryAssumeRoleWithSAMLCommand; +const serializeAws_queryAssumeRoleWithWebIdentityCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded", + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryAssumeRoleWithWebIdentityRequest(input, context), + Action: "AssumeRoleWithWebIdentity", + Version: "2011-06-15", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_queryAssumeRoleWithWebIdentityCommand = serializeAws_queryAssumeRoleWithWebIdentityCommand; +const serializeAws_queryDecodeAuthorizationMessageCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded", + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryDecodeAuthorizationMessageRequest(input, context), + Action: "DecodeAuthorizationMessage", + Version: "2011-06-15", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_queryDecodeAuthorizationMessageCommand = serializeAws_queryDecodeAuthorizationMessageCommand; +const serializeAws_queryGetAccessKeyInfoCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded", + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetAccessKeyInfoRequest(input, context), + Action: "GetAccessKeyInfo", + Version: "2011-06-15", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_queryGetAccessKeyInfoCommand = serializeAws_queryGetAccessKeyInfoCommand; +const serializeAws_queryGetCallerIdentityCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded", + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetCallerIdentityRequest(input, context), + Action: "GetCallerIdentity", + Version: "2011-06-15", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_queryGetCallerIdentityCommand = serializeAws_queryGetCallerIdentityCommand; +const serializeAws_queryGetFederationTokenCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded", + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetFederationTokenRequest(input, context), + Action: "GetFederationToken", + Version: "2011-06-15", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_queryGetFederationTokenCommand = serializeAws_queryGetFederationTokenCommand; +const serializeAws_queryGetSessionTokenCommand = async (input, context) => { + const headers = { + "content-type": "application/x-www-form-urlencoded", + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetSessionTokenRequest(input, context), + Action: "GetSessionToken", + Version: "2011-06-15", + }); + return buildHttpRpcRequest(context, headers, "/", undefined, body); +}; +exports.serializeAws_queryGetSessionTokenCommand = serializeAws_queryGetSessionTokenCommand; +const deserializeAws_queryAssumeRoleCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryAssumeRoleCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryAssumeRoleResponse(data.AssumeRoleResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_queryAssumeRoleCommand = deserializeAws_queryAssumeRoleCommand; +const deserializeAws_queryAssumeRoleCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ExpiredTokenException": + case "com.amazonaws.sts#ExpiredTokenException": + throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); + case "MalformedPolicyDocumentException": + case "com.amazonaws.sts#MalformedPolicyDocumentException": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case "PackedPolicyTooLargeException": + case "com.amazonaws.sts#PackedPolicyTooLargeException": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case "RegionDisabledException": + case "com.amazonaws.sts#RegionDisabledException": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode, + }); + } +}; +const deserializeAws_queryAssumeRoleWithSAMLCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryAssumeRoleWithSAMLCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryAssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_queryAssumeRoleWithSAMLCommand = deserializeAws_queryAssumeRoleWithSAMLCommand; +const deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ExpiredTokenException": + case "com.amazonaws.sts#ExpiredTokenException": + throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); + case "IDPRejectedClaimException": + case "com.amazonaws.sts#IDPRejectedClaimException": + throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context); + case "InvalidIdentityTokenException": + case "com.amazonaws.sts#InvalidIdentityTokenException": + throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context); + case "MalformedPolicyDocumentException": + case "com.amazonaws.sts#MalformedPolicyDocumentException": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case "PackedPolicyTooLargeException": + case "com.amazonaws.sts#PackedPolicyTooLargeException": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case "RegionDisabledException": + case "com.amazonaws.sts#RegionDisabledException": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode, + }); + } +}; +const deserializeAws_queryAssumeRoleWithWebIdentityCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryAssumeRoleWithWebIdentityCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryAssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_queryAssumeRoleWithWebIdentityCommand = deserializeAws_queryAssumeRoleWithWebIdentityCommand; +const deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ExpiredTokenException": + case "com.amazonaws.sts#ExpiredTokenException": + throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); + case "IDPCommunicationErrorException": + case "com.amazonaws.sts#IDPCommunicationErrorException": + throw await deserializeAws_queryIDPCommunicationErrorExceptionResponse(parsedOutput, context); + case "IDPRejectedClaimException": + case "com.amazonaws.sts#IDPRejectedClaimException": + throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context); + case "InvalidIdentityTokenException": + case "com.amazonaws.sts#InvalidIdentityTokenException": + throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context); + case "MalformedPolicyDocumentException": + case "com.amazonaws.sts#MalformedPolicyDocumentException": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case "PackedPolicyTooLargeException": + case "com.amazonaws.sts#PackedPolicyTooLargeException": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case "RegionDisabledException": + case "com.amazonaws.sts#RegionDisabledException": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode, + }); + } +}; +const deserializeAws_queryDecodeAuthorizationMessageCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryDecodeAuthorizationMessageCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryDecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_queryDecodeAuthorizationMessageCommand = deserializeAws_queryDecodeAuthorizationMessageCommand; +const deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "InvalidAuthorizationMessageException": + case "com.amazonaws.sts#InvalidAuthorizationMessageException": + throw await deserializeAws_queryInvalidAuthorizationMessageExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode, + }); + } +}; +const deserializeAws_queryGetAccessKeyInfoCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetAccessKeyInfoCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_queryGetAccessKeyInfoCommand = deserializeAws_queryGetAccessKeyInfoCommand; +const deserializeAws_queryGetAccessKeyInfoCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode, + }); +}; +const deserializeAws_queryGetCallerIdentityCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetCallerIdentityCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetCallerIdentityResponse(data.GetCallerIdentityResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_queryGetCallerIdentityCommand = deserializeAws_queryGetCallerIdentityCommand; +const deserializeAws_queryGetCallerIdentityCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode, + }); +}; +const deserializeAws_queryGetFederationTokenCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetFederationTokenCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetFederationTokenResponse(data.GetFederationTokenResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_queryGetFederationTokenCommand = deserializeAws_queryGetFederationTokenCommand; +const deserializeAws_queryGetFederationTokenCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "MalformedPolicyDocumentException": + case "com.amazonaws.sts#MalformedPolicyDocumentException": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case "PackedPolicyTooLargeException": + case "com.amazonaws.sts#PackedPolicyTooLargeException": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case "RegionDisabledException": + case "com.amazonaws.sts#RegionDisabledException": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode, + }); + } +}; +const deserializeAws_queryGetSessionTokenCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetSessionTokenCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetSessionTokenResponse(data.GetSessionTokenResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents, + }; + return Promise.resolve(response); +}; +exports.deserializeAws_queryGetSessionTokenCommand = deserializeAws_queryGetSessionTokenCommand; +const deserializeAws_queryGetSessionTokenCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context), + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "RegionDisabledException": + case "com.amazonaws.sts#RegionDisabledException": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode, + }); + } +}; +const deserializeAws_queryExpiredTokenExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryExpiredTokenException(body.Error, context); + const exception = new models_0_1.ExpiredTokenException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_queryIDPCommunicationErrorExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryIDPCommunicationErrorException(body.Error, context); + const exception = new models_0_1.IDPCommunicationErrorException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_queryIDPRejectedClaimExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryIDPRejectedClaimException(body.Error, context); + const exception = new models_0_1.IDPRejectedClaimException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_queryInvalidAuthorizationMessageExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryInvalidAuthorizationMessageException(body.Error, context); + const exception = new models_0_1.InvalidAuthorizationMessageException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_queryInvalidIdentityTokenExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryInvalidIdentityTokenException(body.Error, context); + const exception = new models_0_1.InvalidIdentityTokenException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_queryMalformedPolicyDocumentExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryMalformedPolicyDocumentException(body.Error, context); + const exception = new models_0_1.MalformedPolicyDocumentException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_queryPackedPolicyTooLargeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryPackedPolicyTooLargeException(body.Error, context); + const exception = new models_0_1.PackedPolicyTooLargeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const deserializeAws_queryRegionDisabledExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryRegionDisabledException(body.Error, context); + const exception = new models_0_1.RegionDisabledException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized, + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); +}; +const serializeAws_queryAssumeRoleRequest = (input, context) => { + const entries = {}; + if (input.RoleArn != null) { + entries["RoleArn"] = input.RoleArn; + } + if (input.RoleSessionName != null) { + entries["RoleSessionName"] = input.RoleSessionName; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `PolicyArns.${key}`; + entries[loc] = value; + }); + } + if (input.Policy != null) { + entries["Policy"] = input.Policy; + } + if (input.DurationSeconds != null) { + entries["DurationSeconds"] = input.DurationSeconds; + } + if (input.Tags != null) { + const memberEntries = serializeAws_querytagListType(input.Tags, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Tags.${key}`; + entries[loc] = value; + }); + } + if (input.TransitiveTagKeys != null) { + const memberEntries = serializeAws_querytagKeyListType(input.TransitiveTagKeys, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `TransitiveTagKeys.${key}`; + entries[loc] = value; + }); + } + if (input.ExternalId != null) { + entries["ExternalId"] = input.ExternalId; + } + if (input.SerialNumber != null) { + entries["SerialNumber"] = input.SerialNumber; + } + if (input.TokenCode != null) { + entries["TokenCode"] = input.TokenCode; + } + if (input.SourceIdentity != null) { + entries["SourceIdentity"] = input.SourceIdentity; + } + return entries; +}; +const serializeAws_queryAssumeRoleWithSAMLRequest = (input, context) => { + const entries = {}; + if (input.RoleArn != null) { + entries["RoleArn"] = input.RoleArn; + } + if (input.PrincipalArn != null) { + entries["PrincipalArn"] = input.PrincipalArn; + } + if (input.SAMLAssertion != null) { + entries["SAMLAssertion"] = input.SAMLAssertion; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `PolicyArns.${key}`; + entries[loc] = value; + }); + } + if (input.Policy != null) { + entries["Policy"] = input.Policy; + } + if (input.DurationSeconds != null) { + entries["DurationSeconds"] = input.DurationSeconds; + } + return entries; +}; +const serializeAws_queryAssumeRoleWithWebIdentityRequest = (input, context) => { + const entries = {}; + if (input.RoleArn != null) { + entries["RoleArn"] = input.RoleArn; + } + if (input.RoleSessionName != null) { + entries["RoleSessionName"] = input.RoleSessionName; + } + if (input.WebIdentityToken != null) { + entries["WebIdentityToken"] = input.WebIdentityToken; + } + if (input.ProviderId != null) { + entries["ProviderId"] = input.ProviderId; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `PolicyArns.${key}`; + entries[loc] = value; + }); + } + if (input.Policy != null) { + entries["Policy"] = input.Policy; + } + if (input.DurationSeconds != null) { + entries["DurationSeconds"] = input.DurationSeconds; + } + return entries; +}; +const serializeAws_queryDecodeAuthorizationMessageRequest = (input, context) => { + const entries = {}; + if (input.EncodedMessage != null) { + entries["EncodedMessage"] = input.EncodedMessage; + } + return entries; +}; +const serializeAws_queryGetAccessKeyInfoRequest = (input, context) => { + const entries = {}; + if (input.AccessKeyId != null) { + entries["AccessKeyId"] = input.AccessKeyId; + } + return entries; +}; +const serializeAws_queryGetCallerIdentityRequest = (input, context) => { + const entries = {}; + return entries; +}; +const serializeAws_queryGetFederationTokenRequest = (input, context) => { + const entries = {}; + if (input.Name != null) { + entries["Name"] = input.Name; + } + if (input.Policy != null) { + entries["Policy"] = input.Policy; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `PolicyArns.${key}`; + entries[loc] = value; + }); + } + if (input.DurationSeconds != null) { + entries["DurationSeconds"] = input.DurationSeconds; + } + if (input.Tags != null) { + const memberEntries = serializeAws_querytagListType(input.Tags, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = `Tags.${key}`; + entries[loc] = value; + }); + } + return entries; +}; +const serializeAws_queryGetSessionTokenRequest = (input, context) => { + const entries = {}; + if (input.DurationSeconds != null) { + entries["DurationSeconds"] = input.DurationSeconds; + } + if (input.SerialNumber != null) { + entries["SerialNumber"] = input.SerialNumber; + } + if (input.TokenCode != null) { + entries["TokenCode"] = input.TokenCode; + } + return entries; +}; +const serializeAws_querypolicyDescriptorListType = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + const memberEntries = serializeAws_queryPolicyDescriptorType(entry, context); + Object.entries(memberEntries).forEach(([key, value]) => { + entries[`member.${counter}.${key}`] = value; + }); + counter++; + } + return entries; +}; +const serializeAws_queryPolicyDescriptorType = (input, context) => { + const entries = {}; + if (input.arn != null) { + entries["arn"] = input.arn; + } + return entries; +}; +const serializeAws_queryTag = (input, context) => { + const entries = {}; + if (input.Key != null) { + entries["Key"] = input.Key; + } + if (input.Value != null) { + entries["Value"] = input.Value; + } + return entries; +}; +const serializeAws_querytagKeyListType = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + entries[`member.${counter}`] = entry; + counter++; + } + return entries; +}; +const serializeAws_querytagListType = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + const memberEntries = serializeAws_queryTag(entry, context); + Object.entries(memberEntries).forEach(([key, value]) => { + entries[`member.${counter}.${key}`] = value; + }); + counter++; + } + return entries; +}; +const deserializeAws_queryAssumedRoleUser = (output, context) => { + const contents = { + AssumedRoleId: undefined, + Arn: undefined, + }; + if (output["AssumedRoleId"] !== undefined) { + contents.AssumedRoleId = (0, smithy_client_1.expectString)(output["AssumedRoleId"]); + } + if (output["Arn"] !== undefined) { + contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); + } + return contents; +}; +const deserializeAws_queryAssumeRoleResponse = (output, context) => { + const contents = { + Credentials: undefined, + AssumedRoleUser: undefined, + PackedPolicySize: undefined, + SourceIdentity: undefined, + }; + if (output["Credentials"] !== undefined) { + contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); + } + if (output["AssumedRoleUser"] !== undefined) { + contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context); + } + if (output["PackedPolicySize"] !== undefined) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); + } + if (output["SourceIdentity"] !== undefined) { + contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); + } + return contents; +}; +const deserializeAws_queryAssumeRoleWithSAMLResponse = (output, context) => { + const contents = { + Credentials: undefined, + AssumedRoleUser: undefined, + PackedPolicySize: undefined, + Subject: undefined, + SubjectType: undefined, + Issuer: undefined, + Audience: undefined, + NameQualifier: undefined, + SourceIdentity: undefined, + }; + if (output["Credentials"] !== undefined) { + contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); + } + if (output["AssumedRoleUser"] !== undefined) { + contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context); + } + if (output["PackedPolicySize"] !== undefined) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); + } + if (output["Subject"] !== undefined) { + contents.Subject = (0, smithy_client_1.expectString)(output["Subject"]); + } + if (output["SubjectType"] !== undefined) { + contents.SubjectType = (0, smithy_client_1.expectString)(output["SubjectType"]); + } + if (output["Issuer"] !== undefined) { + contents.Issuer = (0, smithy_client_1.expectString)(output["Issuer"]); + } + if (output["Audience"] !== undefined) { + contents.Audience = (0, smithy_client_1.expectString)(output["Audience"]); + } + if (output["NameQualifier"] !== undefined) { + contents.NameQualifier = (0, smithy_client_1.expectString)(output["NameQualifier"]); + } + if (output["SourceIdentity"] !== undefined) { + contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); + } + return contents; +}; +const deserializeAws_queryAssumeRoleWithWebIdentityResponse = (output, context) => { + const contents = { + Credentials: undefined, + SubjectFromWebIdentityToken: undefined, + AssumedRoleUser: undefined, + PackedPolicySize: undefined, + Provider: undefined, + Audience: undefined, + SourceIdentity: undefined, + }; + if (output["Credentials"] !== undefined) { + contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); + } + if (output["SubjectFromWebIdentityToken"] !== undefined) { + contents.SubjectFromWebIdentityToken = (0, smithy_client_1.expectString)(output["SubjectFromWebIdentityToken"]); + } + if (output["AssumedRoleUser"] !== undefined) { + contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context); + } + if (output["PackedPolicySize"] !== undefined) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); + } + if (output["Provider"] !== undefined) { + contents.Provider = (0, smithy_client_1.expectString)(output["Provider"]); + } + if (output["Audience"] !== undefined) { + contents.Audience = (0, smithy_client_1.expectString)(output["Audience"]); + } + if (output["SourceIdentity"] !== undefined) { + contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); + } + return contents; +}; +const deserializeAws_queryCredentials = (output, context) => { + const contents = { + AccessKeyId: undefined, + SecretAccessKey: undefined, + SessionToken: undefined, + Expiration: undefined, + }; + if (output["AccessKeyId"] !== undefined) { + contents.AccessKeyId = (0, smithy_client_1.expectString)(output["AccessKeyId"]); + } + if (output["SecretAccessKey"] !== undefined) { + contents.SecretAccessKey = (0, smithy_client_1.expectString)(output["SecretAccessKey"]); + } + if (output["SessionToken"] !== undefined) { + contents.SessionToken = (0, smithy_client_1.expectString)(output["SessionToken"]); + } + if (output["Expiration"] !== undefined) { + contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["Expiration"])); + } + return contents; +}; +const deserializeAws_queryDecodeAuthorizationMessageResponse = (output, context) => { + const contents = { + DecodedMessage: undefined, + }; + if (output["DecodedMessage"] !== undefined) { + contents.DecodedMessage = (0, smithy_client_1.expectString)(output["DecodedMessage"]); + } + return contents; +}; +const deserializeAws_queryExpiredTokenException = (output, context) => { + const contents = { + message: undefined, + }; + if (output["message"] !== undefined) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; +}; +const deserializeAws_queryFederatedUser = (output, context) => { + const contents = { + FederatedUserId: undefined, + Arn: undefined, + }; + if (output["FederatedUserId"] !== undefined) { + contents.FederatedUserId = (0, smithy_client_1.expectString)(output["FederatedUserId"]); + } + if (output["Arn"] !== undefined) { + contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); + } + return contents; +}; +const deserializeAws_queryGetAccessKeyInfoResponse = (output, context) => { + const contents = { + Account: undefined, + }; + if (output["Account"] !== undefined) { + contents.Account = (0, smithy_client_1.expectString)(output["Account"]); + } + return contents; +}; +const deserializeAws_queryGetCallerIdentityResponse = (output, context) => { + const contents = { + UserId: undefined, + Account: undefined, + Arn: undefined, + }; + if (output["UserId"] !== undefined) { + contents.UserId = (0, smithy_client_1.expectString)(output["UserId"]); + } + if (output["Account"] !== undefined) { + contents.Account = (0, smithy_client_1.expectString)(output["Account"]); + } + if (output["Arn"] !== undefined) { + contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); + } + return contents; +}; +const deserializeAws_queryGetFederationTokenResponse = (output, context) => { + const contents = { + Credentials: undefined, + FederatedUser: undefined, + PackedPolicySize: undefined, + }; + if (output["Credentials"] !== undefined) { + contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); + } + if (output["FederatedUser"] !== undefined) { + contents.FederatedUser = deserializeAws_queryFederatedUser(output["FederatedUser"], context); + } + if (output["PackedPolicySize"] !== undefined) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); + } + return contents; +}; +const deserializeAws_queryGetSessionTokenResponse = (output, context) => { + const contents = { + Credentials: undefined, + }; + if (output["Credentials"] !== undefined) { + contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context); + } + return contents; +}; +const deserializeAws_queryIDPCommunicationErrorException = (output, context) => { + const contents = { + message: undefined, + }; + if (output["message"] !== undefined) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; +}; +const deserializeAws_queryIDPRejectedClaimException = (output, context) => { + const contents = { + message: undefined, + }; + if (output["message"] !== undefined) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; +}; +const deserializeAws_queryInvalidAuthorizationMessageException = (output, context) => { + const contents = { + message: undefined, + }; + if (output["message"] !== undefined) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; +}; +const deserializeAws_queryInvalidIdentityTokenException = (output, context) => { + const contents = { + message: undefined, + }; + if (output["message"] !== undefined) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; +}; +const deserializeAws_queryMalformedPolicyDocumentException = (output, context) => { + const contents = { + message: undefined, + }; + if (output["message"] !== undefined) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; +}; +const deserializeAws_queryPackedPolicyTooLargeException = (output, context) => { + const contents = { + message: undefined, + }; + if (output["message"] !== undefined) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; +}; +const deserializeAws_queryRegionDisabledException = (output, context) => { + const contents = { + message: undefined, + }; + if (output["message"] !== undefined) { + contents.message = (0, smithy_client_1.expectString)(output["message"]); + } + return contents; +}; +const deserializeMetadata = (output) => { + var _a; + return ({ + httpStatusCode: output.statusCode, + requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"], + extendedRequestId: output.headers["x-amz-id-2"], + cfId: output.headers["x-amz-cf-id"], + }); +}; +const collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); +}; +const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); +const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const contents = { + protocol, + hostname, + port, + method: "POST", + path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, + headers, + }; + if (resolvedHostname !== undefined) { + contents.hostname = resolvedHostname; + } + if (body !== undefined) { + contents.body = body; + } + return new protocol_http_1.HttpRequest(contents); +}; +const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + const parsedObj = (0, fast_xml_parser_1.parse)(encoded, { + attributeNamePrefix: "", + ignoreAttributes: false, + parseNodeValue: false, + trimValues: false, + tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : (0, entities_1.decodeHTML)(val)), + }); + const textNodeName = "#text"; + const key = Object.keys(parsedObj)[0]; + const parsedObjToReturn = parsedObj[key]; + if (parsedObjToReturn[textNodeName]) { + parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; + delete parsedObjToReturn[textNodeName]; + } + return (0, smithy_client_1.getValueFromTextNode)(parsedObjToReturn); + } + return {}; +}); +const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries) + .map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value)) + .join("&"); +const loadQueryErrorCode = (output, data) => { + if (data.Error.Code !== undefined) { + return data.Error.Code; + } + if (output.statusCode == 404) { + return "NotFound"; + } +}; + + +/***/ }), + +/***/ 83405: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getRuntimeConfig = void 0; +const tslib_1 = __nccwpck_require__(4351); +const package_json_1 = tslib_1.__importDefault(__nccwpck_require__(7947)); +const defaultStsRoleAssumers_1 = __nccwpck_require__(90048); +const config_resolver_1 = __nccwpck_require__(56153); +const credential_provider_node_1 = __nccwpck_require__(75531); +const hash_node_1 = __nccwpck_require__(97442); +const middleware_retry_1 = __nccwpck_require__(96064); +const node_config_provider_1 = __nccwpck_require__(87684); +const node_http_handler_1 = __nccwpck_require__(68805); +const util_base64_node_1 = __nccwpck_require__(18588); +const util_body_length_node_1 = __nccwpck_require__(74147); +const util_user_agent_node_1 = __nccwpck_require__(98095); +const util_utf8_node_1 = __nccwpck_require__(66278); +const runtimeConfig_shared_1 = __nccwpck_require__(52642); +const smithy_client_1 = __nccwpck_require__(4963); +const util_defaults_mode_node_1 = __nccwpck_require__(74243); +const smithy_client_2 = __nccwpck_require__(4963); +const getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; + (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); + const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); + const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); + const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, + base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, + bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, + credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, defaultStsRoleAssumers_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), + defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), + maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), + retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({ + ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE, + }), + sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"), + streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, + useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, + utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8, + }; +}; +exports.getRuntimeConfig = getRuntimeConfig; + + +/***/ }), + +/***/ 52642: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getRuntimeConfig = void 0; +const url_parser_1 = __nccwpck_require__(2992); +const endpoints_1 = __nccwpck_require__(3571); +const getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e; + return ({ + apiVersion: "2011-06-15", + disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, + logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, + regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, + serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "STS", + urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl, + }); +}; +exports.getRuntimeConfig = getRuntimeConfig; + + +/***/ }), + +/***/ 14723: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = exports.DEFAULT_USE_DUALSTACK_ENDPOINT = exports.CONFIG_USE_DUALSTACK_ENDPOINT = exports.ENV_USE_DUALSTACK_ENDPOINT = void 0; +const util_config_provider_1 = __nccwpck_require__(6168); +exports.ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT"; +exports.CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint"; +exports.DEFAULT_USE_DUALSTACK_ENDPOINT = false; +exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports.ENV_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.ENV), + configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports.CONFIG_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), + default: false, +}; + + +/***/ }), + +/***/ 42478: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = exports.DEFAULT_USE_FIPS_ENDPOINT = exports.CONFIG_USE_FIPS_ENDPOINT = exports.ENV_USE_FIPS_ENDPOINT = void 0; +const util_config_provider_1 = __nccwpck_require__(6168); +exports.ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT"; +exports.CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint"; +exports.DEFAULT_USE_FIPS_ENDPOINT = false; +exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports.ENV_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.ENV), + configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports.CONFIG_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), + default: false, +}; + + +/***/ }), + +/***/ 47392: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(14723), exports); +tslib_1.__exportStar(__nccwpck_require__(42478), exports); +tslib_1.__exportStar(__nccwpck_require__(92108), exports); +tslib_1.__exportStar(__nccwpck_require__(92327), exports); + + +/***/ }), + +/***/ 92108: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolveCustomEndpointsConfig = void 0; +const util_middleware_1 = __nccwpck_require__(10236); +const resolveCustomEndpointsConfig = (input) => { + var _a; + const { endpoint, urlParser } = input; + return { + ...input, + tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, + endpoint: (0, util_middleware_1.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint), + isCustomEndpoint: true, + useDualstackEndpoint: (0, util_middleware_1.normalizeProvider)(input.useDualstackEndpoint), + }; +}; +exports.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig; + + +/***/ }), + +/***/ 92327: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolveEndpointsConfig = void 0; +const util_middleware_1 = __nccwpck_require__(10236); +const getEndpointFromRegion_1 = __nccwpck_require__(94159); +const resolveEndpointsConfig = (input) => { + var _a; + const useDualstackEndpoint = (0, util_middleware_1.normalizeProvider)(input.useDualstackEndpoint); + const { endpoint, useFipsEndpoint, urlParser } = input; + return { + ...input, + tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, + endpoint: endpoint + ? (0, util_middleware_1.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) + : () => (0, getEndpointFromRegion_1.getEndpointFromRegion)({ ...input, useDualstackEndpoint, useFipsEndpoint }), + isCustomEndpoint: endpoint ? true : false, + useDualstackEndpoint, + }; +}; +exports.resolveEndpointsConfig = resolveEndpointsConfig; + + +/***/ }), + +/***/ 94159: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getEndpointFromRegion = void 0; +const getEndpointFromRegion = async (input) => { + var _a; + const { tls = true } = input; + const region = await input.region(); + const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); + if (!dnsHostRegex.test(region)) { + throw new Error("Invalid region in client config"); + } + const useDualstackEndpoint = await input.useDualstackEndpoint(); + const useFipsEndpoint = await input.useFipsEndpoint(); + const { hostname } = (_a = (await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint }))) !== null && _a !== void 0 ? _a : {}; + if (!hostname) { + throw new Error("Cannot resolve hostname from client config"); + } + return input.urlParser(`${tls ? "https:" : "http:"}//${hostname}`); +}; +exports.getEndpointFromRegion = getEndpointFromRegion; + + +/***/ }), + +/***/ 56153: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(47392), exports); +tslib_1.__exportStar(__nccwpck_require__(85441), exports); +tslib_1.__exportStar(__nccwpck_require__(86258), exports); + + +/***/ }), + +/***/ 70422: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NODE_REGION_CONFIG_FILE_OPTIONS = exports.NODE_REGION_CONFIG_OPTIONS = exports.REGION_INI_NAME = exports.REGION_ENV_NAME = void 0; +exports.REGION_ENV_NAME = "AWS_REGION"; +exports.REGION_INI_NAME = "region"; +exports.NODE_REGION_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.REGION_ENV_NAME], + configFileSelector: (profile) => profile[exports.REGION_INI_NAME], + default: () => { + throw new Error("Region is missing"); + }, +}; +exports.NODE_REGION_CONFIG_FILE_OPTIONS = { + preferredFile: "credentials", +}; + + +/***/ }), + +/***/ 52844: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getRealRegion = void 0; +const isFipsRegion_1 = __nccwpck_require__(82440); +const getRealRegion = (region) => (0, isFipsRegion_1.isFipsRegion)(region) + ? ["fips-aws-global", "aws-fips"].includes(region) + ? "us-east-1" + : region.replace(/fips-(dkr-|prod-)?|-fips/, "") + : region; +exports.getRealRegion = getRealRegion; + + +/***/ }), + +/***/ 85441: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(70422), exports); +tslib_1.__exportStar(__nccwpck_require__(60174), exports); + + +/***/ }), + +/***/ 82440: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isFipsRegion = void 0; +const isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")); +exports.isFipsRegion = isFipsRegion; + + +/***/ }), + +/***/ 60174: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolveRegionConfig = void 0; +const getRealRegion_1 = __nccwpck_require__(52844); +const isFipsRegion_1 = __nccwpck_require__(82440); +const resolveRegionConfig = (input) => { + const { region, useFipsEndpoint } = input; + if (!region) { + throw new Error("Region is missing"); + } + return { + ...input, + region: async () => { + if (typeof region === "string") { + return (0, getRealRegion_1.getRealRegion)(region); + } + const providedRegion = await region(); + return (0, getRealRegion_1.getRealRegion)(providedRegion); + }, + useFipsEndpoint: async () => { + const providedRegion = typeof region === "string" ? region : await region(); + if ((0, isFipsRegion_1.isFipsRegion)(providedRegion)) { + return true; + } + return typeof useFipsEndpoint === "boolean" ? Promise.resolve(useFipsEndpoint) : useFipsEndpoint(); + }, + }; +}; +exports.resolveRegionConfig = resolveRegionConfig; + + +/***/ }), + +/***/ 3566: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); + + +/***/ }), + +/***/ 56057: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); + + +/***/ }), + +/***/ 15280: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getHostnameFromVariants = void 0; +const getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { + var _a; + return (_a = variants.find(({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack"))) === null || _a === void 0 ? void 0 : _a.hostname; +}; +exports.getHostnameFromVariants = getHostnameFromVariants; + + +/***/ }), + +/***/ 26167: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getRegionInfo = void 0; +const getHostnameFromVariants_1 = __nccwpck_require__(15280); +const getResolvedHostname_1 = __nccwpck_require__(63877); +const getResolvedPartition_1 = __nccwpck_require__(37642); +const getResolvedSigningRegion_1 = __nccwpck_require__(53517); +const getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash, }) => { + var _a, _b, _c, _d, _e, _f; + const partition = (0, getResolvedPartition_1.getResolvedPartition)(region, { partitionHash }); + const resolvedRegion = region in regionHash ? region : (_b = (_a = partitionHash[partition]) === null || _a === void 0 ? void 0 : _a.endpoint) !== null && _b !== void 0 ? _b : region; + const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint }; + const regionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_c = regionHash[resolvedRegion]) === null || _c === void 0 ? void 0 : _c.variants, hostnameOptions); + const partitionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_d = partitionHash[partition]) === null || _d === void 0 ? void 0 : _d.variants, hostnameOptions); + const hostname = (0, getResolvedHostname_1.getResolvedHostname)(resolvedRegion, { regionHostname, partitionHostname }); + if (hostname === undefined) { + throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`); + } + const signingRegion = (0, getResolvedSigningRegion_1.getResolvedSigningRegion)(hostname, { + signingRegion: (_e = regionHash[resolvedRegion]) === null || _e === void 0 ? void 0 : _e.signingRegion, + regionRegex: partitionHash[partition].regionRegex, + useFipsEndpoint, + }); + return { + partition, + signingService, + hostname, + ...(signingRegion && { signingRegion }), + ...(((_f = regionHash[resolvedRegion]) === null || _f === void 0 ? void 0 : _f.signingService) && { + signingService: regionHash[resolvedRegion].signingService, + }), + }; +}; +exports.getRegionInfo = getRegionInfo; + + +/***/ }), + +/***/ 63877: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getResolvedHostname = void 0; +const getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname + ? regionHostname + : partitionHostname + ? partitionHostname.replace("{region}", resolvedRegion) + : undefined; +exports.getResolvedHostname = getResolvedHostname; + + +/***/ }), + +/***/ 37642: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getResolvedPartition = void 0; +const getResolvedPartition = (region, { partitionHash }) => { var _a; return (_a = Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region))) !== null && _a !== void 0 ? _a : "aws"; }; +exports.getResolvedPartition = getResolvedPartition; + + +/***/ }), + +/***/ 53517: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getResolvedSigningRegion = void 0; +const getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFipsEndpoint }) => { + if (signingRegion) { + return signingRegion; + } + else if (useFipsEndpoint) { + const regionRegexJs = regionRegex.replace("\\\\", "\\").replace(/^\^/g, "\\.").replace(/\$$/g, "\\."); + const regionRegexmatchArray = hostname.match(regionRegexJs); + if (regionRegexmatchArray) { + return regionRegexmatchArray[0].slice(1, -1); + } + } +}; +exports.getResolvedSigningRegion = getResolvedSigningRegion; + + +/***/ }), + +/***/ 86258: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(3566), exports); +tslib_1.__exportStar(__nccwpck_require__(56057), exports); +tslib_1.__exportStar(__nccwpck_require__(26167), exports); + + +/***/ }), + +/***/ 80255: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromEnv = exports.ENV_EXPIRATION = exports.ENV_SESSION = exports.ENV_SECRET = exports.ENV_KEY = void 0; +const property_provider_1 = __nccwpck_require__(74462); +exports.ENV_KEY = "AWS_ACCESS_KEY_ID"; +exports.ENV_SECRET = "AWS_SECRET_ACCESS_KEY"; +exports.ENV_SESSION = "AWS_SESSION_TOKEN"; +exports.ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION"; +const fromEnv = () => async () => { + const accessKeyId = process.env[exports.ENV_KEY]; + const secretAccessKey = process.env[exports.ENV_SECRET]; + const sessionToken = process.env[exports.ENV_SESSION]; + const expiry = process.env[exports.ENV_EXPIRATION]; + if (accessKeyId && secretAccessKey) { + return { + accessKeyId, + secretAccessKey, + ...(sessionToken && { sessionToken }), + ...(expiry && { expiration: new Date(expiry) }), + }; + } + throw new property_provider_1.CredentialsProviderError("Unable to find environment variable credentials."); +}; +exports.fromEnv = fromEnv; + + +/***/ }), + +/***/ 15972: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(80255), exports); + + +/***/ }), + +/***/ 3736: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Endpoint = void 0; +var Endpoint; +(function (Endpoint) { + Endpoint["IPv4"] = "http://169.254.169.254"; + Endpoint["IPv6"] = "http://[fd00:ec2::254]"; +})(Endpoint = exports.Endpoint || (exports.Endpoint = {})); + + +/***/ }), + +/***/ 18438: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ENDPOINT_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_NAME = exports.ENV_ENDPOINT_NAME = void 0; +exports.ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; +exports.CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; +exports.ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_NAME], + configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_NAME], + default: undefined, +}; + + +/***/ }), + +/***/ 21695: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.EndpointMode = void 0; +var EndpointMode; +(function (EndpointMode) { + EndpointMode["IPv4"] = "IPv4"; + EndpointMode["IPv6"] = "IPv6"; +})(EndpointMode = exports.EndpointMode || (exports.EndpointMode = {})); + + +/***/ }), + +/***/ 97824: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ENDPOINT_MODE_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_MODE_NAME = exports.ENV_ENDPOINT_MODE_NAME = void 0; +const EndpointMode_1 = __nccwpck_require__(21695); +exports.ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; +exports.CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; +exports.ENDPOINT_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_MODE_NAME], + configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_MODE_NAME], + default: EndpointMode_1.EndpointMode.IPv4, +}; + + +/***/ }), + +/***/ 75232: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromContainerMetadata = exports.ENV_CMDS_AUTH_TOKEN = exports.ENV_CMDS_RELATIVE_URI = exports.ENV_CMDS_FULL_URI = void 0; +const property_provider_1 = __nccwpck_require__(74462); +const url_1 = __nccwpck_require__(57310); +const httpRequest_1 = __nccwpck_require__(81303); +const ImdsCredentials_1 = __nccwpck_require__(91467); +const RemoteProviderInit_1 = __nccwpck_require__(72314); +const retry_1 = __nccwpck_require__(49912); +exports.ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; +exports.ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; +exports.ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; +const fromContainerMetadata = (init = {}) => { + const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); + return () => (0, retry_1.retry)(async () => { + const requestOptions = await getCmdsUri(); + const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions)); + if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { + throw new property_provider_1.CredentialsProviderError("Invalid response received from instance metadata service."); + } + return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); + }, maxRetries); +}; +exports.fromContainerMetadata = fromContainerMetadata; +const requestFromEcsImds = async (timeout, options) => { + if (process.env[exports.ENV_CMDS_AUTH_TOKEN]) { + options.headers = { + ...options.headers, + Authorization: process.env[exports.ENV_CMDS_AUTH_TOKEN], + }; + } + const buffer = await (0, httpRequest_1.httpRequest)({ + ...options, + timeout, + }); + return buffer.toString(); +}; +const CMDS_IP = "169.254.170.2"; +const GREENGRASS_HOSTS = { + localhost: true, + "127.0.0.1": true, +}; +const GREENGRASS_PROTOCOLS = { + "http:": true, + "https:": true, +}; +const getCmdsUri = async () => { + if (process.env[exports.ENV_CMDS_RELATIVE_URI]) { + return { + hostname: CMDS_IP, + path: process.env[exports.ENV_CMDS_RELATIVE_URI], + }; + } + if (process.env[exports.ENV_CMDS_FULL_URI]) { + const parsed = (0, url_1.parse)(process.env[exports.ENV_CMDS_FULL_URI]); + if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) { + throw new property_provider_1.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, false); + } + if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) { + throw new property_provider_1.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, false); + } + return { + ...parsed, + port: parsed.port ? parseInt(parsed.port, 10) : undefined, + }; + } + throw new property_provider_1.CredentialsProviderError("The container metadata credential provider cannot be used unless" + + ` the ${exports.ENV_CMDS_RELATIVE_URI} or ${exports.ENV_CMDS_FULL_URI} environment` + + " variable is set", false); +}; + + +/***/ }), + +/***/ 35813: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromInstanceMetadata = void 0; +const property_provider_1 = __nccwpck_require__(74462); +const httpRequest_1 = __nccwpck_require__(81303); +const ImdsCredentials_1 = __nccwpck_require__(91467); +const RemoteProviderInit_1 = __nccwpck_require__(72314); +const retry_1 = __nccwpck_require__(49912); +const getInstanceMetadataEndpoint_1 = __nccwpck_require__(41206); +const staticStabilityProvider_1 = __nccwpck_require__(54620); +const IMDS_PATH = "/latest/meta-data/iam/security-credentials/"; +const IMDS_TOKEN_PATH = "/latest/api/token"; +const fromInstanceMetadata = (init = {}) => (0, staticStabilityProvider_1.staticStabilityProvider)(getInstanceImdsProvider(init), { logger: init.logger }); +exports.fromInstanceMetadata = fromInstanceMetadata; +const getInstanceImdsProvider = (init) => { + let disableFetchToken = false; + const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); + const getCredentials = async (maxRetries, options) => { + const profile = (await (0, retry_1.retry)(async () => { + let profile; + try { + profile = await getProfile(options); + } + catch (err) { + if (err.statusCode === 401) { + disableFetchToken = false; + } + throw err; + } + return profile; + }, maxRetries)).trim(); + return (0, retry_1.retry)(async () => { + let creds; + try { + creds = await getCredentialsFromProfile(profile, options); + } + catch (err) { + if (err.statusCode === 401) { + disableFetchToken = false; + } + throw err; + } + return creds; + }, maxRetries); + }; + return async () => { + const endpoint = await (0, getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint)(); + if (disableFetchToken) { + return getCredentials(maxRetries, { ...endpoint, timeout }); + } + else { + let token; + try { + token = (await getMetadataToken({ ...endpoint, timeout })).toString(); + } + catch (error) { + if ((error === null || error === void 0 ? void 0 : error.statusCode) === 400) { + throw Object.assign(error, { + message: "EC2 Metadata token request returned error", + }); + } + else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) { + disableFetchToken = true; + } + return getCredentials(maxRetries, { ...endpoint, timeout }); + } + return getCredentials(maxRetries, { + ...endpoint, + headers: { + "x-aws-ec2-metadata-token": token, + }, + timeout, + }); + } + }; +}; +const getMetadataToken = async (options) => (0, httpRequest_1.httpRequest)({ + ...options, + path: IMDS_TOKEN_PATH, + method: "PUT", + headers: { + "x-aws-ec2-metadata-token-ttl-seconds": "21600", + }, +}); +const getProfile = async (options) => (await (0, httpRequest_1.httpRequest)({ ...options, path: IMDS_PATH })).toString(); +const getCredentialsFromProfile = async (profile, options) => { + const credsResponse = JSON.parse((await (0, httpRequest_1.httpRequest)({ + ...options, + path: IMDS_PATH + profile, + })).toString()); + if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { + throw new property_provider_1.CredentialsProviderError("Invalid response received from instance metadata service."); + } + return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); +}; + + +/***/ }), + +/***/ 25898: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getInstanceMetadataEndpoint = exports.httpRequest = void 0; +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(75232), exports); +tslib_1.__exportStar(__nccwpck_require__(35813), exports); +tslib_1.__exportStar(__nccwpck_require__(72314), exports); +tslib_1.__exportStar(__nccwpck_require__(91178), exports); +var httpRequest_1 = __nccwpck_require__(81303); +Object.defineProperty(exports, "httpRequest", ({ enumerable: true, get: function () { return httpRequest_1.httpRequest; } })); +var getInstanceMetadataEndpoint_1 = __nccwpck_require__(41206); +Object.defineProperty(exports, "getInstanceMetadataEndpoint", ({ enumerable: true, get: function () { return getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint; } })); + + +/***/ }), + +/***/ 91467: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromImdsCredentials = exports.isImdsCredentials = void 0; +const isImdsCredentials = (arg) => Boolean(arg) && + typeof arg === "object" && + typeof arg.AccessKeyId === "string" && + typeof arg.SecretAccessKey === "string" && + typeof arg.Token === "string" && + typeof arg.Expiration === "string"; +exports.isImdsCredentials = isImdsCredentials; +const fromImdsCredentials = (creds) => ({ + accessKeyId: creds.AccessKeyId, + secretAccessKey: creds.SecretAccessKey, + sessionToken: creds.Token, + expiration: new Date(creds.Expiration), +}); +exports.fromImdsCredentials = fromImdsCredentials; + + +/***/ }), + +/***/ 72314: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.providerConfigFromInit = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_TIMEOUT = void 0; +exports.DEFAULT_TIMEOUT = 1000; +exports.DEFAULT_MAX_RETRIES = 0; +const providerConfigFromInit = ({ maxRetries = exports.DEFAULT_MAX_RETRIES, timeout = exports.DEFAULT_TIMEOUT, }) => ({ maxRetries, timeout }); +exports.providerConfigFromInit = providerConfigFromInit; + + +/***/ }), + +/***/ 81303: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.httpRequest = void 0; +const property_provider_1 = __nccwpck_require__(74462); +const buffer_1 = __nccwpck_require__(14300); +const http_1 = __nccwpck_require__(13685); +function httpRequest(options) { + return new Promise((resolve, reject) => { + var _a; + const req = (0, http_1.request)({ + method: "GET", + ...options, + hostname: (_a = options.hostname) === null || _a === void 0 ? void 0 : _a.replace(/^\[(.+)\]$/, "$1"), + }); + req.on("error", (err) => { + reject(Object.assign(new property_provider_1.ProviderError("Unable to connect to instance metadata service"), err)); + req.destroy(); + }); + req.on("timeout", () => { + reject(new property_provider_1.ProviderError("TimeoutError from instance metadata service")); + req.destroy(); + }); + req.on("response", (res) => { + const { statusCode = 400 } = res; + if (statusCode < 200 || 300 <= statusCode) { + reject(Object.assign(new property_provider_1.ProviderError("Error response received from instance metadata service"), { statusCode })); + req.destroy(); + } + const chunks = []; + res.on("data", (chunk) => { + chunks.push(chunk); + }); + res.on("end", () => { + resolve(buffer_1.Buffer.concat(chunks)); + req.destroy(); + }); + }); + req.end(); + }); +} +exports.httpRequest = httpRequest; + + +/***/ }), + +/***/ 49912: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.retry = void 0; +const retry = (toRetry, maxRetries) => { + let promise = toRetry(); + for (let i = 0; i < maxRetries; i++) { + promise = promise.catch(toRetry); + } + return promise; +}; +exports.retry = retry; + + +/***/ }), + +/***/ 91178: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); + + +/***/ }), + +/***/ 8473: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getExtendedInstanceMetadataCredentials = void 0; +const STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60; +const STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60; +const STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html"; +const getExtendedInstanceMetadataCredentials = (credentials, logger) => { + var _a; + const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS); + const newExpiration = new Date(Date.now() + refreshInterval * 1000); + logger.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these " + + "credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: " + + STATIC_STABILITY_DOC_URL); + const originalExpiration = (_a = credentials.originalExpiration) !== null && _a !== void 0 ? _a : credentials.expiration; + return { + ...credentials, + ...(originalExpiration ? { originalExpiration } : {}), + expiration: newExpiration, + }; +}; +exports.getExtendedInstanceMetadataCredentials = getExtendedInstanceMetadataCredentials; + + +/***/ }), + +/***/ 41206: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getInstanceMetadataEndpoint = void 0; +const node_config_provider_1 = __nccwpck_require__(87684); +const url_parser_1 = __nccwpck_require__(2992); +const Endpoint_1 = __nccwpck_require__(3736); +const EndpointConfigOptions_1 = __nccwpck_require__(18438); +const EndpointMode_1 = __nccwpck_require__(21695); +const EndpointModeConfigOptions_1 = __nccwpck_require__(97824); +const getInstanceMetadataEndpoint = async () => (0, url_parser_1.parseUrl)((await getFromEndpointConfig()) || (await getFromEndpointModeConfig())); +exports.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint; +const getFromEndpointConfig = async () => (0, node_config_provider_1.loadConfig)(EndpointConfigOptions_1.ENDPOINT_CONFIG_OPTIONS)(); +const getFromEndpointModeConfig = async () => { + const endpointMode = await (0, node_config_provider_1.loadConfig)(EndpointModeConfigOptions_1.ENDPOINT_MODE_CONFIG_OPTIONS)(); + switch (endpointMode) { + case EndpointMode_1.EndpointMode.IPv4: + return Endpoint_1.Endpoint.IPv4; + case EndpointMode_1.EndpointMode.IPv6: + return Endpoint_1.Endpoint.IPv6; + default: + throw new Error(`Unsupported endpoint mode: ${endpointMode}.` + ` Select from ${Object.values(EndpointMode_1.EndpointMode)}`); + } +}; + + +/***/ }), + +/***/ 54620: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.staticStabilityProvider = void 0; +const getExtendedInstanceMetadataCredentials_1 = __nccwpck_require__(8473); +const staticStabilityProvider = (provider, options = {}) => { + const logger = (options === null || options === void 0 ? void 0 : options.logger) || console; + let pastCredentials; + return async () => { + let credentials; + try { + credentials = await provider(); + if (credentials.expiration && credentials.expiration.getTime() < Date.now()) { + credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(credentials, logger); + } + } + catch (e) { + if (pastCredentials) { + logger.warn("Credential renew failed: ", e); + credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(pastCredentials, logger); + } + else { + throw e; + } + } + pastCredentials = credentials; + return credentials; + }; +}; +exports.staticStabilityProvider = staticStabilityProvider; + + +/***/ }), + +/***/ 7077: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromIni = void 0; +const shared_ini_file_loader_1 = __nccwpck_require__(67387); +const resolveProfileData_1 = __nccwpck_require__(95653); +const fromIni = (init = {}) => async () => { + const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); + return (0, resolveProfileData_1.resolveProfileData)((0, shared_ini_file_loader_1.getProfileName)(init), profiles, init); +}; +exports.fromIni = fromIni; + + +/***/ }), + +/***/ 74203: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(7077), exports); + + +/***/ }), + +/***/ 60853: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolveAssumeRoleCredentials = exports.isAssumeRoleProfile = void 0; +const property_provider_1 = __nccwpck_require__(74462); +const shared_ini_file_loader_1 = __nccwpck_require__(67387); +const resolveCredentialSource_1 = __nccwpck_require__(82458); +const resolveProfileData_1 = __nccwpck_require__(95653); +const isAssumeRoleProfile = (arg) => Boolean(arg) && + typeof arg === "object" && + typeof arg.role_arn === "string" && + ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && + ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && + ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && + (isAssumeRoleWithSourceProfile(arg) || isAssumeRoleWithProviderProfile(arg)); +exports.isAssumeRoleProfile = isAssumeRoleProfile; +const isAssumeRoleWithSourceProfile = (arg) => typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined"; +const isAssumeRoleWithProviderProfile = (arg) => typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined"; +const resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => { + const data = profiles[profileName]; + if (!options.roleAssumer) { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires a role to be assumed, but no role assumption callback was provided.`, false); + } + const { source_profile } = data; + if (source_profile && source_profile in visitedProfiles) { + throw new property_provider_1.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile` + + ` ${(0, shared_ini_file_loader_1.getProfileName)(options)}. Profiles visited: ` + + Object.keys(visitedProfiles).join(", "), false); + } + const sourceCredsProvider = source_profile + ? (0, resolveProfileData_1.resolveProfileData)(source_profile, profiles, options, { + ...visitedProfiles, + [source_profile]: true, + }) + : (0, resolveCredentialSource_1.resolveCredentialSource)(data.credential_source, profileName)(); + const params = { + RoleArn: data.role_arn, + RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`, + ExternalId: data.external_id, + }; + const { mfa_serial } = data; + if (mfa_serial) { + if (!options.mfaCodeProvider) { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, false); + } + params.SerialNumber = mfa_serial; + params.TokenCode = await options.mfaCodeProvider(mfa_serial); + } + const sourceCreds = await sourceCredsProvider; + return options.roleAssumer(sourceCreds, params); +}; +exports.resolveAssumeRoleCredentials = resolveAssumeRoleCredentials; + + +/***/ }), + +/***/ 82458: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolveCredentialSource = void 0; +const credential_provider_env_1 = __nccwpck_require__(15972); +const credential_provider_imds_1 = __nccwpck_require__(25898); +const property_provider_1 = __nccwpck_require__(74462); +const resolveCredentialSource = (credentialSource, profileName) => { + const sourceProvidersMap = { + EcsContainer: credential_provider_imds_1.fromContainerMetadata, + Ec2InstanceMetadata: credential_provider_imds_1.fromInstanceMetadata, + Environment: credential_provider_env_1.fromEnv, + }; + if (credentialSource in sourceProvidersMap) { + return sourceProvidersMap[credentialSource](); + } + else { + throw new property_provider_1.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, ` + + `expected EcsContainer or Ec2InstanceMetadata or Environment.`); + } +}; +exports.resolveCredentialSource = resolveCredentialSource; + + +/***/ }), + +/***/ 95653: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolveProfileData = void 0; +const property_provider_1 = __nccwpck_require__(74462); +const resolveAssumeRoleCredentials_1 = __nccwpck_require__(60853); +const resolveSsoCredentials_1 = __nccwpck_require__(59867); +const resolveStaticCredentials_1 = __nccwpck_require__(33071); +const resolveWebIdentityCredentials_1 = __nccwpck_require__(58342); +const resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}) => { + const data = profiles[profileName]; + if (Object.keys(visitedProfiles).length > 0 && (0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { + return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); + } + if ((0, resolveAssumeRoleCredentials_1.isAssumeRoleProfile)(data)) { + return (0, resolveAssumeRoleCredentials_1.resolveAssumeRoleCredentials)(profileName, profiles, options, visitedProfiles); + } + if ((0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { + return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); + } + if ((0, resolveWebIdentityCredentials_1.isWebIdentityProfile)(data)) { + return (0, resolveWebIdentityCredentials_1.resolveWebIdentityCredentials)(data, options); + } + if ((0, resolveSsoCredentials_1.isSsoProfile)(data)) { + return (0, resolveSsoCredentials_1.resolveSsoCredentials)(data); + } + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared credentials file.`); +}; +exports.resolveProfileData = resolveProfileData; + + +/***/ }), + +/***/ 59867: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolveSsoCredentials = exports.isSsoProfile = void 0; +const credential_provider_sso_1 = __nccwpck_require__(26414); +var credential_provider_sso_2 = __nccwpck_require__(26414); +Object.defineProperty(exports, "isSsoProfile", ({ enumerable: true, get: function () { return credential_provider_sso_2.isSsoProfile; } })); +const resolveSsoCredentials = (data) => { + const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, credential_provider_sso_1.validateSsoProfile)(data); + return (0, credential_provider_sso_1.fromSSO)({ + ssoStartUrl: sso_start_url, + ssoAccountId: sso_account_id, + ssoRegion: sso_region, + ssoRoleName: sso_role_name, + })(); +}; +exports.resolveSsoCredentials = resolveSsoCredentials; + + +/***/ }), + +/***/ 33071: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolveStaticCredentials = exports.isStaticCredsProfile = void 0; +const isStaticCredsProfile = (arg) => Boolean(arg) && + typeof arg === "object" && + typeof arg.aws_access_key_id === "string" && + typeof arg.aws_secret_access_key === "string" && + ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1; +exports.isStaticCredsProfile = isStaticCredsProfile; +const resolveStaticCredentials = (profile) => Promise.resolve({ + accessKeyId: profile.aws_access_key_id, + secretAccessKey: profile.aws_secret_access_key, + sessionToken: profile.aws_session_token, +}); +exports.resolveStaticCredentials = resolveStaticCredentials; + + +/***/ }), + +/***/ 58342: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolveWebIdentityCredentials = exports.isWebIdentityProfile = void 0; +const credential_provider_web_identity_1 = __nccwpck_require__(15646); +const isWebIdentityProfile = (arg) => Boolean(arg) && + typeof arg === "object" && + typeof arg.web_identity_token_file === "string" && + typeof arg.role_arn === "string" && + ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1; +exports.isWebIdentityProfile = isWebIdentityProfile; +const resolveWebIdentityCredentials = async (profile, options) => (0, credential_provider_web_identity_1.fromTokenFile)({ + webIdentityTokenFile: profile.web_identity_token_file, + roleArn: profile.role_arn, + roleSessionName: profile.role_session_name, + roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity, +})(); +exports.resolveWebIdentityCredentials = resolveWebIdentityCredentials; + + +/***/ }), + +/***/ 15560: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.defaultProvider = void 0; +const credential_provider_env_1 = __nccwpck_require__(15972); +const credential_provider_ini_1 = __nccwpck_require__(74203); +const credential_provider_process_1 = __nccwpck_require__(89969); +const credential_provider_sso_1 = __nccwpck_require__(26414); +const credential_provider_web_identity_1 = __nccwpck_require__(15646); +const property_provider_1 = __nccwpck_require__(74462); +const shared_ini_file_loader_1 = __nccwpck_require__(67387); +const remoteProvider_1 = __nccwpck_require__(30604); +const defaultProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)(...(init.profile || process.env[shared_ini_file_loader_1.ENV_PROFILE] ? [] : [(0, credential_provider_env_1.fromEnv)()]), (0, credential_provider_sso_1.fromSSO)(init), (0, credential_provider_ini_1.fromIni)(init), (0, credential_provider_process_1.fromProcess)(init), (0, credential_provider_web_identity_1.fromTokenFile)(init), (0, remoteProvider_1.remoteProvider)(init), async () => { + throw new property_provider_1.CredentialsProviderError("Could not load credentials from any providers", false); +}), (credentials) => credentials.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000, (credentials) => credentials.expiration !== undefined); +exports.defaultProvider = defaultProvider; + + +/***/ }), + +/***/ 75531: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(15560), exports); + + +/***/ }), + +/***/ 30604: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.remoteProvider = exports.ENV_IMDS_DISABLED = void 0; +const credential_provider_imds_1 = __nccwpck_require__(25898); +const property_provider_1 = __nccwpck_require__(74462); +exports.ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; +const remoteProvider = (init) => { + if (process.env[credential_provider_imds_1.ENV_CMDS_RELATIVE_URI] || process.env[credential_provider_imds_1.ENV_CMDS_FULL_URI]) { + return (0, credential_provider_imds_1.fromContainerMetadata)(init); + } + if (process.env[exports.ENV_IMDS_DISABLED]) { + return async () => { + throw new property_provider_1.CredentialsProviderError("EC2 Instance Metadata Service access disabled"); + }; + } + return (0, credential_provider_imds_1.fromInstanceMetadata)(init); +}; +exports.remoteProvider = remoteProvider; + + +/***/ }), + +/***/ 72650: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromProcess = void 0; +const shared_ini_file_loader_1 = __nccwpck_require__(67387); +const resolveProcessCredentials_1 = __nccwpck_require__(74926); +const fromProcess = (init = {}) => async () => { + const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); + return (0, resolveProcessCredentials_1.resolveProcessCredentials)((0, shared_ini_file_loader_1.getProfileName)(init), profiles); +}; +exports.fromProcess = fromProcess; + + +/***/ }), + +/***/ 41104: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getValidatedProcessCredentials = void 0; +const getValidatedProcessCredentials = (profileName, data) => { + if (data.Version !== 1) { + throw Error(`Profile ${profileName} credential_process did not return Version 1.`); + } + if (data.AccessKeyId === undefined || data.SecretAccessKey === undefined) { + throw Error(`Profile ${profileName} credential_process returned invalid credentials.`); + } + if (data.Expiration) { + const currentTime = new Date(); + const expireTime = new Date(data.Expiration); + if (expireTime < currentTime) { + throw Error(`Profile ${profileName} credential_process returned expired credentials.`); + } + } + return { + accessKeyId: data.AccessKeyId, + secretAccessKey: data.SecretAccessKey, + ...(data.SessionToken && { sessionToken: data.SessionToken }), + ...(data.Expiration && { expiration: new Date(data.Expiration) }), + }; +}; +exports.getValidatedProcessCredentials = getValidatedProcessCredentials; + + +/***/ }), + +/***/ 89969: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(72650), exports); + + +/***/ }), + +/***/ 74926: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolveProcessCredentials = void 0; +const property_provider_1 = __nccwpck_require__(74462); +const child_process_1 = __nccwpck_require__(32081); +const util_1 = __nccwpck_require__(73837); +const getValidatedProcessCredentials_1 = __nccwpck_require__(41104); +const resolveProcessCredentials = async (profileName, profiles) => { + const profile = profiles[profileName]; + if (profiles[profileName]) { + const credentialProcess = profile["credential_process"]; + if (credentialProcess !== undefined) { + const execPromise = (0, util_1.promisify)(child_process_1.exec); + try { + const { stdout } = await execPromise(credentialProcess); + let data; + try { + data = JSON.parse(stdout.trim()); + } + catch (_a) { + throw Error(`Profile ${profileName} credential_process returned invalid JSON.`); + } + return (0, getValidatedProcessCredentials_1.getValidatedProcessCredentials)(profileName, data); + } + catch (error) { + throw new property_provider_1.CredentialsProviderError(error.message); + } + } + else { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`); + } + } + else { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`); + } +}; +exports.resolveProcessCredentials = resolveProcessCredentials; + + +/***/ }), + +/***/ 35959: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromSSO = void 0; +const property_provider_1 = __nccwpck_require__(74462); +const shared_ini_file_loader_1 = __nccwpck_require__(67387); +const isSsoProfile_1 = __nccwpck_require__(32572); +const resolveSSOCredentials_1 = __nccwpck_require__(94729); +const validateSsoProfile_1 = __nccwpck_require__(48098); +const fromSSO = (init = {}) => async () => { + const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient } = init; + if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName) { + const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); + const profileName = (0, shared_ini_file_loader_1.getProfileName)(init); + const profile = profiles[profileName]; + if (!(0, isSsoProfile_1.isSsoProfile)(profile)) { + throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`); + } + const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, validateSsoProfile_1.validateSsoProfile)(profile); + return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ + ssoStartUrl: sso_start_url, + ssoAccountId: sso_account_id, + ssoRegion: sso_region, + ssoRoleName: sso_role_name, + ssoClient: ssoClient, + }); + } + else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) { + throw new property_provider_1.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl",' + + ' "ssoAccountId", "ssoRegion", "ssoRoleName"'); + } + else { + return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient }); + } +}; +exports.fromSSO = fromSSO; + + +/***/ }), + +/***/ 26414: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(35959), exports); +tslib_1.__exportStar(__nccwpck_require__(32572), exports); +tslib_1.__exportStar(__nccwpck_require__(86623), exports); +tslib_1.__exportStar(__nccwpck_require__(48098), exports); + + +/***/ }), + +/***/ 32572: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isSsoProfile = void 0; +const isSsoProfile = (arg) => arg && + (typeof arg.sso_start_url === "string" || + typeof arg.sso_account_id === "string" || + typeof arg.sso_region === "string" || + typeof arg.sso_role_name === "string"); +exports.isSsoProfile = isSsoProfile; + + +/***/ }), + +/***/ 94729: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolveSSOCredentials = void 0; +const client_sso_1 = __nccwpck_require__(82666); +const property_provider_1 = __nccwpck_require__(74462); +const shared_ini_file_loader_1 = __nccwpck_require__(67387); +const EXPIRE_WINDOW_MS = 15 * 60 * 1000; +const SHOULD_FAIL_CREDENTIAL_CHAIN = false; +const resolveSSOCredentials = async ({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, }) => { + let token; + const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`; + try { + token = await (0, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoStartUrl); + } + catch (e) { + throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN); + } + if (new Date(token.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) { + throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN); + } + const { accessToken } = token; + const sso = ssoClient || new client_sso_1.SSOClient({ region: ssoRegion }); + let ssoResp; + try { + ssoResp = await sso.send(new client_sso_1.GetRoleCredentialsCommand({ + accountId: ssoAccountId, + roleName: ssoRoleName, + accessToken, + })); + } + catch (e) { + throw property_provider_1.CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN); + } + const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp; + if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) { + throw new property_provider_1.CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN); + } + return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) }; +}; +exports.resolveSSOCredentials = resolveSSOCredentials; + + +/***/ }), + +/***/ 86623: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); + + +/***/ }), + +/***/ 48098: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.validateSsoProfile = void 0; +const property_provider_1 = __nccwpck_require__(74462); +const validateSsoProfile = (profile) => { + const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile; + if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) { + throw new property_provider_1.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", ` + + `"sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, false); + } + return profile; +}; +exports.validateSsoProfile = validateSsoProfile; + + +/***/ }), + +/***/ 35614: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromTokenFile = void 0; +const property_provider_1 = __nccwpck_require__(74462); +const fs_1 = __nccwpck_require__(57147); +const fromWebToken_1 = __nccwpck_require__(47905); +const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE"; +const ENV_ROLE_ARN = "AWS_ROLE_ARN"; +const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME"; +const fromTokenFile = (init = {}) => async () => { + return resolveTokenFile(init); +}; +exports.fromTokenFile = fromTokenFile; +const resolveTokenFile = (init) => { + var _a, _b, _c; + const webIdentityTokenFile = (_a = init === null || init === void 0 ? void 0 : init.webIdentityTokenFile) !== null && _a !== void 0 ? _a : process.env[ENV_TOKEN_FILE]; + const roleArn = (_b = init === null || init === void 0 ? void 0 : init.roleArn) !== null && _b !== void 0 ? _b : process.env[ENV_ROLE_ARN]; + const roleSessionName = (_c = init === null || init === void 0 ? void 0 : init.roleSessionName) !== null && _c !== void 0 ? _c : process.env[ENV_ROLE_SESSION_NAME]; + if (!webIdentityTokenFile || !roleArn) { + throw new property_provider_1.CredentialsProviderError("Web identity configuration not specified"); + } + return (0, fromWebToken_1.fromWebToken)({ + ...init, + webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }), + roleArn, + roleSessionName, + })(); +}; + + +/***/ }), + +/***/ 47905: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromWebToken = void 0; +const property_provider_1 = __nccwpck_require__(74462); +const fromWebToken = (init) => () => { + const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds, roleAssumerWithWebIdentity, } = init; + if (!roleAssumerWithWebIdentity) { + throw new property_provider_1.CredentialsProviderError(`Role Arn '${roleArn}' needs to be assumed with web identity,` + + ` but no role assumption callback was provided.`, false); + } + return roleAssumerWithWebIdentity({ + RoleArn: roleArn, + RoleSessionName: roleSessionName !== null && roleSessionName !== void 0 ? roleSessionName : `aws-sdk-js-session-${Date.now()}`, + WebIdentityToken: webIdentityToken, + ProviderId: providerId, + PolicyArns: policyArns, + Policy: policy, + DurationSeconds: durationSeconds, + }); +}; +exports.fromWebToken = fromWebToken; + + +/***/ }), + +/***/ 15646: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(35614), exports); +tslib_1.__exportStar(__nccwpck_require__(47905), exports); + + +/***/ }), + +/***/ 97442: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Hash = void 0; +const util_buffer_from_1 = __nccwpck_require__(36010); +const buffer_1 = __nccwpck_require__(14300); +const crypto_1 = __nccwpck_require__(6113); +class Hash { + constructor(algorithmIdentifier, secret) { + this.hash = secret ? (0, crypto_1.createHmac)(algorithmIdentifier, castSourceData(secret)) : (0, crypto_1.createHash)(algorithmIdentifier); + } + update(toHash, encoding) { + this.hash.update(castSourceData(toHash, encoding)); + } + digest() { + return Promise.resolve(this.hash.digest()); + } +} +exports.Hash = Hash; +function castSourceData(toCast, encoding) { + if (buffer_1.Buffer.isBuffer(toCast)) { + return toCast; + } + if (typeof toCast === "string") { + return (0, util_buffer_from_1.fromString)(toCast, encoding); + } + if (ArrayBuffer.isView(toCast)) { + return (0, util_buffer_from_1.fromArrayBuffer)(toCast.buffer, toCast.byteOffset, toCast.byteLength); + } + return (0, util_buffer_from_1.fromArrayBuffer)(toCast); +} + + +/***/ }), + +/***/ 69126: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isArrayBuffer = void 0; +const isArrayBuffer = (arg) => (typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer) || + Object.prototype.toString.call(arg) === "[object ArrayBuffer]"; +exports.isArrayBuffer = isArrayBuffer; + + +/***/ }), + +/***/ 42245: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getContentLengthPlugin = exports.contentLengthMiddlewareOptions = exports.contentLengthMiddleware = void 0; +const protocol_http_1 = __nccwpck_require__(70223); +const CONTENT_LENGTH_HEADER = "content-length"; +function contentLengthMiddleware(bodyLengthChecker) { + return (next) => async (args) => { + const request = args.request; + if (protocol_http_1.HttpRequest.isInstance(request)) { + const { body, headers } = request; + if (body && + Object.keys(headers) + .map((str) => str.toLowerCase()) + .indexOf(CONTENT_LENGTH_HEADER) === -1) { + try { + const length = bodyLengthChecker(body); + request.headers = { + ...request.headers, + [CONTENT_LENGTH_HEADER]: String(length), + }; + } + catch (error) { + } + } + } + return next({ + ...args, + request, + }); + }; +} +exports.contentLengthMiddleware = contentLengthMiddleware; +exports.contentLengthMiddlewareOptions = { + step: "build", + tags: ["SET_CONTENT_LENGTH", "CONTENT_LENGTH"], + name: "contentLengthMiddleware", + override: true, +}; +const getContentLengthPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), exports.contentLengthMiddlewareOptions); + }, +}); +exports.getContentLengthPlugin = getContentLengthPlugin; + + +/***/ }), + +/***/ 22545: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getHostHeaderPlugin = exports.hostHeaderMiddlewareOptions = exports.hostHeaderMiddleware = exports.resolveHostHeaderConfig = void 0; +const protocol_http_1 = __nccwpck_require__(70223); +function resolveHostHeaderConfig(input) { + return input; +} +exports.resolveHostHeaderConfig = resolveHostHeaderConfig; +const hostHeaderMiddleware = (options) => (next) => async (args) => { + if (!protocol_http_1.HttpRequest.isInstance(args.request)) + return next(args); + const { request } = args; + const { handlerProtocol = "" } = options.requestHandler.metadata || {}; + if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) { + delete request.headers["host"]; + request.headers[":authority"] = ""; + } + else if (!request.headers["host"]) { + request.headers["host"] = request.hostname; + } + return next(args); +}; +exports.hostHeaderMiddleware = hostHeaderMiddleware; +exports.hostHeaderMiddlewareOptions = { + name: "hostHeaderMiddleware", + step: "build", + priority: "low", + tags: ["HOST"], + override: true, +}; +const getHostHeaderPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.hostHeaderMiddleware)(options), exports.hostHeaderMiddlewareOptions); + }, +}); +exports.getHostHeaderPlugin = getHostHeaderPlugin; + + +/***/ }), + +/***/ 20014: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(9754), exports); + + +/***/ }), + +/***/ 9754: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getLoggerPlugin = exports.loggerMiddlewareOptions = exports.loggerMiddleware = void 0; +const loggerMiddleware = () => (next, context) => async (args) => { + const { clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog } = context; + const response = await next(args); + if (!logger) { + return response; + } + if (typeof logger.info === "function") { + const { $metadata, ...outputWithoutMetadata } = response.output; + logger.info({ + clientName, + commandName, + input: inputFilterSensitiveLog(args.input), + output: outputFilterSensitiveLog(outputWithoutMetadata), + metadata: $metadata, + }); + } + return response; +}; +exports.loggerMiddleware = loggerMiddleware; +exports.loggerMiddlewareOptions = { + name: "loggerMiddleware", + tags: ["LOGGER"], + step: "initialize", + override: true, +}; +const getLoggerPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.loggerMiddleware)(), exports.loggerMiddlewareOptions); + }, +}); +exports.getLoggerPlugin = getLoggerPlugin; + + +/***/ }), + +/***/ 85525: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getRecursionDetectionPlugin = exports.addRecursionDetectionMiddlewareOptions = exports.recursionDetectionMiddleware = void 0; +const protocol_http_1 = __nccwpck_require__(70223); +const TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id"; +const ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; +const ENV_TRACE_ID = "_X_AMZN_TRACE_ID"; +const recursionDetectionMiddleware = (options) => (next) => async (args) => { + const { request } = args; + if (!protocol_http_1.HttpRequest.isInstance(request) || + options.runtime !== "node" || + request.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { + return next(args); + } + const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; + const traceId = process.env[ENV_TRACE_ID]; + const nonEmptyString = (str) => typeof str === "string" && str.length > 0; + if (nonEmptyString(functionName) && nonEmptyString(traceId)) { + request.headers[TRACE_ID_HEADER_NAME] = traceId; + } + return next({ + ...args, + request, + }); +}; +exports.recursionDetectionMiddleware = recursionDetectionMiddleware; +exports.addRecursionDetectionMiddlewareOptions = { + step: "build", + tags: ["RECURSION_DETECTION"], + name: "recursionDetectionMiddleware", + override: true, + priority: "low", +}; +const getRecursionDetectionPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.recursionDetectionMiddleware)(options), exports.addRecursionDetectionMiddlewareOptions); + }, +}); +exports.getRecursionDetectionPlugin = getRecursionDetectionPlugin; + + +/***/ }), + +/***/ 47328: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AdaptiveRetryStrategy = void 0; +const config_1 = __nccwpck_require__(55192); +const DefaultRateLimiter_1 = __nccwpck_require__(6402); +const StandardRetryStrategy_1 = __nccwpck_require__(533); +class AdaptiveRetryStrategy extends StandardRetryStrategy_1.StandardRetryStrategy { + constructor(maxAttemptsProvider, options) { + const { rateLimiter, ...superOptions } = options !== null && options !== void 0 ? options : {}; + super(maxAttemptsProvider, superOptions); + this.rateLimiter = rateLimiter !== null && rateLimiter !== void 0 ? rateLimiter : new DefaultRateLimiter_1.DefaultRateLimiter(); + this.mode = config_1.RETRY_MODES.ADAPTIVE; + } + async retry(next, args) { + return super.retry(next, args, { + beforeRequest: async () => { + return this.rateLimiter.getSendToken(); + }, + afterRequest: (response) => { + this.rateLimiter.updateClientSendingRate(response); + }, + }); + } +} +exports.AdaptiveRetryStrategy = AdaptiveRetryStrategy; + + +/***/ }), + +/***/ 6402: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DefaultRateLimiter = void 0; +const service_error_classification_1 = __nccwpck_require__(61921); +class DefaultRateLimiter { + constructor(options) { + var _a, _b, _c, _d, _e; + this.currentCapacity = 0; + this.enabled = false; + this.lastMaxRate = 0; + this.measuredTxRate = 0; + this.requestCount = 0; + this.lastTimestamp = 0; + this.timeWindow = 0; + this.beta = (_a = options === null || options === void 0 ? void 0 : options.beta) !== null && _a !== void 0 ? _a : 0.7; + this.minCapacity = (_b = options === null || options === void 0 ? void 0 : options.minCapacity) !== null && _b !== void 0 ? _b : 1; + this.minFillRate = (_c = options === null || options === void 0 ? void 0 : options.minFillRate) !== null && _c !== void 0 ? _c : 0.5; + this.scaleConstant = (_d = options === null || options === void 0 ? void 0 : options.scaleConstant) !== null && _d !== void 0 ? _d : 0.4; + this.smooth = (_e = options === null || options === void 0 ? void 0 : options.smooth) !== null && _e !== void 0 ? _e : 0.8; + const currentTimeInSeconds = this.getCurrentTimeInSeconds(); + this.lastThrottleTime = currentTimeInSeconds; + this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); + this.fillRate = this.minFillRate; + this.maxCapacity = this.minCapacity; + } + getCurrentTimeInSeconds() { + return Date.now() / 1000; + } + async getSendToken() { + return this.acquireTokenBucket(1); + } + async acquireTokenBucket(amount) { + if (!this.enabled) { + return; + } + this.refillTokenBucket(); + if (amount > this.currentCapacity) { + const delay = ((amount - this.currentCapacity) / this.fillRate) * 1000; + await new Promise((resolve) => setTimeout(resolve, delay)); + } + this.currentCapacity = this.currentCapacity - amount; + } + refillTokenBucket() { + const timestamp = this.getCurrentTimeInSeconds(); + if (!this.lastTimestamp) { + this.lastTimestamp = timestamp; + return; + } + const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate; + this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount); + this.lastTimestamp = timestamp; + } + updateClientSendingRate(response) { + let calculatedRate; + this.updateMeasuredRate(); + if ((0, service_error_classification_1.isThrottlingError)(response)) { + const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate); + this.lastMaxRate = rateToUse; + this.calculateTimeWindow(); + this.lastThrottleTime = this.getCurrentTimeInSeconds(); + calculatedRate = this.cubicThrottle(rateToUse); + this.enableTokenBucket(); + } + else { + this.calculateTimeWindow(); + calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds()); + } + const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); + this.updateTokenBucketRate(newRate); + } + calculateTimeWindow() { + this.timeWindow = this.getPrecise(Math.pow((this.lastMaxRate * (1 - this.beta)) / this.scaleConstant, 1 / 3)); + } + cubicThrottle(rateToUse) { + return this.getPrecise(rateToUse * this.beta); + } + cubicSuccess(timestamp) { + return this.getPrecise(this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate); + } + enableTokenBucket() { + this.enabled = true; + } + updateTokenBucketRate(newRate) { + this.refillTokenBucket(); + this.fillRate = Math.max(newRate, this.minFillRate); + this.maxCapacity = Math.max(newRate, this.minCapacity); + this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); + } + updateMeasuredRate() { + const t = this.getCurrentTimeInSeconds(); + const timeBucket = Math.floor(t * 2) / 2; + this.requestCount++; + if (timeBucket > this.lastTxRateBucket) { + const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); + this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); + this.requestCount = 0; + this.lastTxRateBucket = timeBucket; + } + } + getPrecise(num) { + return parseFloat(num.toFixed(8)); + } +} +exports.DefaultRateLimiter = DefaultRateLimiter; + + +/***/ }), + +/***/ 533: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.StandardRetryStrategy = void 0; +const protocol_http_1 = __nccwpck_require__(70223); +const service_error_classification_1 = __nccwpck_require__(61921); +const uuid_1 = __nccwpck_require__(75840); +const config_1 = __nccwpck_require__(55192); +const constants_1 = __nccwpck_require__(30041); +const defaultRetryQuota_1 = __nccwpck_require__(12568); +const delayDecider_1 = __nccwpck_require__(55940); +const retryDecider_1 = __nccwpck_require__(19572); +class StandardRetryStrategy { + constructor(maxAttemptsProvider, options) { + var _a, _b, _c; + this.maxAttemptsProvider = maxAttemptsProvider; + this.mode = config_1.RETRY_MODES.STANDARD; + this.retryDecider = (_a = options === null || options === void 0 ? void 0 : options.retryDecider) !== null && _a !== void 0 ? _a : retryDecider_1.defaultRetryDecider; + this.delayDecider = (_b = options === null || options === void 0 ? void 0 : options.delayDecider) !== null && _b !== void 0 ? _b : delayDecider_1.defaultDelayDecider; + this.retryQuota = (_c = options === null || options === void 0 ? void 0 : options.retryQuota) !== null && _c !== void 0 ? _c : (0, defaultRetryQuota_1.getDefaultRetryQuota)(constants_1.INITIAL_RETRY_TOKENS); + } + shouldRetry(error, attempts, maxAttempts) { + return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error); + } + async getMaxAttempts() { + let maxAttempts; + try { + maxAttempts = await this.maxAttemptsProvider(); + } + catch (error) { + maxAttempts = config_1.DEFAULT_MAX_ATTEMPTS; + } + return maxAttempts; + } + async retry(next, args, options) { + let retryTokenAmount; + let attempts = 0; + let totalDelay = 0; + const maxAttempts = await this.getMaxAttempts(); + const { request } = args; + if (protocol_http_1.HttpRequest.isInstance(request)) { + request.headers[constants_1.INVOCATION_ID_HEADER] = (0, uuid_1.v4)(); + } + while (true) { + try { + if (protocol_http_1.HttpRequest.isInstance(request)) { + request.headers[constants_1.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; + } + if (options === null || options === void 0 ? void 0 : options.beforeRequest) { + await options.beforeRequest(); + } + const { response, output } = await next(args); + if (options === null || options === void 0 ? void 0 : options.afterRequest) { + options.afterRequest(response); + } + this.retryQuota.releaseRetryTokens(retryTokenAmount); + output.$metadata.attempts = attempts + 1; + output.$metadata.totalRetryDelay = totalDelay; + return { response, output }; + } + catch (e) { + const err = asSdkError(e); + attempts++; + if (this.shouldRetry(err, attempts, maxAttempts)) { + retryTokenAmount = this.retryQuota.retrieveRetryTokens(err); + const delay = this.delayDecider((0, service_error_classification_1.isThrottlingError)(err) ? constants_1.THROTTLING_RETRY_DELAY_BASE : constants_1.DEFAULT_RETRY_DELAY_BASE, attempts); + totalDelay += delay; + await new Promise((resolve) => setTimeout(resolve, delay)); + continue; + } + if (!err.$metadata) { + err.$metadata = {}; + } + err.$metadata.attempts = attempts; + err.$metadata.totalRetryDelay = totalDelay; + throw err; + } + } + } +} +exports.StandardRetryStrategy = StandardRetryStrategy; +const asSdkError = (error) => { + if (error instanceof Error) + return error; + if (error instanceof Object) + return Object.assign(new Error(), error); + if (typeof error === "string") + return new Error(error); + return new Error(`AWS SDK error wrapper for ${error}`); +}; + + +/***/ }), + +/***/ 55192: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.DEFAULT_RETRY_MODE = exports.DEFAULT_MAX_ATTEMPTS = exports.RETRY_MODES = void 0; +var RETRY_MODES; +(function (RETRY_MODES) { + RETRY_MODES["STANDARD"] = "standard"; + RETRY_MODES["ADAPTIVE"] = "adaptive"; +})(RETRY_MODES = exports.RETRY_MODES || (exports.RETRY_MODES = {})); +exports.DEFAULT_MAX_ATTEMPTS = 3; +exports.DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; + + +/***/ }), + +/***/ 76160: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NODE_RETRY_MODE_CONFIG_OPTIONS = exports.CONFIG_RETRY_MODE = exports.ENV_RETRY_MODE = exports.resolveRetryConfig = exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = exports.CONFIG_MAX_ATTEMPTS = exports.ENV_MAX_ATTEMPTS = void 0; +const util_middleware_1 = __nccwpck_require__(10236); +const AdaptiveRetryStrategy_1 = __nccwpck_require__(47328); +const config_1 = __nccwpck_require__(55192); +const StandardRetryStrategy_1 = __nccwpck_require__(533); +exports.ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; +exports.CONFIG_MAX_ATTEMPTS = "max_attempts"; +exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => { + const value = env[exports.ENV_MAX_ATTEMPTS]; + if (!value) + return undefined; + const maxAttempt = parseInt(value); + if (Number.isNaN(maxAttempt)) { + throw new Error(`Environment variable ${exports.ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`); + } + return maxAttempt; + }, + configFileSelector: (profile) => { + const value = profile[exports.CONFIG_MAX_ATTEMPTS]; + if (!value) + return undefined; + const maxAttempt = parseInt(value); + if (Number.isNaN(maxAttempt)) { + throw new Error(`Shared config file entry ${exports.CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`); + } + return maxAttempt; + }, + default: config_1.DEFAULT_MAX_ATTEMPTS, +}; +const resolveRetryConfig = (input) => { + var _a; + const maxAttempts = (0, util_middleware_1.normalizeProvider)((_a = input.maxAttempts) !== null && _a !== void 0 ? _a : config_1.DEFAULT_MAX_ATTEMPTS); + return { + ...input, + maxAttempts, + retryStrategy: async () => { + if (input.retryStrategy) { + return input.retryStrategy; + } + const retryMode = await (0, util_middleware_1.normalizeProvider)(input.retryMode)(); + if (retryMode === config_1.RETRY_MODES.ADAPTIVE) { + return new AdaptiveRetryStrategy_1.AdaptiveRetryStrategy(maxAttempts); + } + return new StandardRetryStrategy_1.StandardRetryStrategy(maxAttempts); + }, + }; +}; +exports.resolveRetryConfig = resolveRetryConfig; +exports.ENV_RETRY_MODE = "AWS_RETRY_MODE"; +exports.CONFIG_RETRY_MODE = "retry_mode"; +exports.NODE_RETRY_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports.ENV_RETRY_MODE], + configFileSelector: (profile) => profile[exports.CONFIG_RETRY_MODE], + default: config_1.DEFAULT_RETRY_MODE, +}; + + +/***/ }), + +/***/ 30041: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.REQUEST_HEADER = exports.INVOCATION_ID_HEADER = exports.NO_RETRY_INCREMENT = exports.TIMEOUT_RETRY_COST = exports.RETRY_COST = exports.INITIAL_RETRY_TOKENS = exports.THROTTLING_RETRY_DELAY_BASE = exports.MAXIMUM_RETRY_DELAY = exports.DEFAULT_RETRY_DELAY_BASE = void 0; +exports.DEFAULT_RETRY_DELAY_BASE = 100; +exports.MAXIMUM_RETRY_DELAY = 20 * 1000; +exports.THROTTLING_RETRY_DELAY_BASE = 500; +exports.INITIAL_RETRY_TOKENS = 500; +exports.RETRY_COST = 5; +exports.TIMEOUT_RETRY_COST = 10; +exports.NO_RETRY_INCREMENT = 1; +exports.INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; +exports.REQUEST_HEADER = "amz-sdk-request"; + + +/***/ }), + +/***/ 12568: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getDefaultRetryQuota = void 0; +const constants_1 = __nccwpck_require__(30041); +const getDefaultRetryQuota = (initialRetryTokens, options) => { + var _a, _b, _c; + const MAX_CAPACITY = initialRetryTokens; + const noRetryIncrement = (_a = options === null || options === void 0 ? void 0 : options.noRetryIncrement) !== null && _a !== void 0 ? _a : constants_1.NO_RETRY_INCREMENT; + const retryCost = (_b = options === null || options === void 0 ? void 0 : options.retryCost) !== null && _b !== void 0 ? _b : constants_1.RETRY_COST; + const timeoutRetryCost = (_c = options === null || options === void 0 ? void 0 : options.timeoutRetryCost) !== null && _c !== void 0 ? _c : constants_1.TIMEOUT_RETRY_COST; + let availableCapacity = initialRetryTokens; + const getCapacityAmount = (error) => (error.name === "TimeoutError" ? timeoutRetryCost : retryCost); + const hasRetryTokens = (error) => getCapacityAmount(error) <= availableCapacity; + const retrieveRetryTokens = (error) => { + if (!hasRetryTokens(error)) { + throw new Error("No retry token available"); + } + const capacityAmount = getCapacityAmount(error); + availableCapacity -= capacityAmount; + return capacityAmount; + }; + const releaseRetryTokens = (capacityReleaseAmount) => { + availableCapacity += capacityReleaseAmount !== null && capacityReleaseAmount !== void 0 ? capacityReleaseAmount : noRetryIncrement; + availableCapacity = Math.min(availableCapacity, MAX_CAPACITY); + }; + return Object.freeze({ + hasRetryTokens, + retrieveRetryTokens, + releaseRetryTokens, + }); +}; +exports.getDefaultRetryQuota = getDefaultRetryQuota; + + +/***/ }), + +/***/ 55940: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.defaultDelayDecider = void 0; +const constants_1 = __nccwpck_require__(30041); +const defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(constants_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); +exports.defaultDelayDecider = defaultDelayDecider; + + +/***/ }), + +/***/ 96064: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(47328), exports); +tslib_1.__exportStar(__nccwpck_require__(6402), exports); +tslib_1.__exportStar(__nccwpck_require__(533), exports); +tslib_1.__exportStar(__nccwpck_require__(55192), exports); +tslib_1.__exportStar(__nccwpck_require__(76160), exports); +tslib_1.__exportStar(__nccwpck_require__(55940), exports); +tslib_1.__exportStar(__nccwpck_require__(43521), exports); +tslib_1.__exportStar(__nccwpck_require__(19572), exports); +tslib_1.__exportStar(__nccwpck_require__(11806), exports); +tslib_1.__exportStar(__nccwpck_require__(48580), exports); + + +/***/ }), + +/***/ 43521: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getOmitRetryHeadersPlugin = exports.omitRetryHeadersMiddlewareOptions = exports.omitRetryHeadersMiddleware = void 0; +const protocol_http_1 = __nccwpck_require__(70223); +const constants_1 = __nccwpck_require__(30041); +const omitRetryHeadersMiddleware = () => (next) => async (args) => { + const { request } = args; + if (protocol_http_1.HttpRequest.isInstance(request)) { + delete request.headers[constants_1.INVOCATION_ID_HEADER]; + delete request.headers[constants_1.REQUEST_HEADER]; + } + return next(args); +}; +exports.omitRetryHeadersMiddleware = omitRetryHeadersMiddleware; +exports.omitRetryHeadersMiddlewareOptions = { + name: "omitRetryHeadersMiddleware", + tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"], + relation: "before", + toMiddleware: "awsAuthMiddleware", + override: true, +}; +const getOmitRetryHeadersPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo((0, exports.omitRetryHeadersMiddleware)(), exports.omitRetryHeadersMiddlewareOptions); + }, +}); +exports.getOmitRetryHeadersPlugin = getOmitRetryHeadersPlugin; + + +/***/ }), + +/***/ 19572: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.defaultRetryDecider = void 0; +const service_error_classification_1 = __nccwpck_require__(61921); +const defaultRetryDecider = (error) => { + if (!error) { + return false; + } + return (0, service_error_classification_1.isRetryableByTrait)(error) || (0, service_error_classification_1.isClockSkewError)(error) || (0, service_error_classification_1.isThrottlingError)(error) || (0, service_error_classification_1.isTransientError)(error); +}; +exports.defaultRetryDecider = defaultRetryDecider; + + +/***/ }), + +/***/ 11806: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getRetryPlugin = exports.retryMiddlewareOptions = exports.retryMiddleware = void 0; +const retryMiddleware = (options) => (next, context) => async (args) => { + const retryStrategy = await options.retryStrategy(); + if (retryStrategy === null || retryStrategy === void 0 ? void 0 : retryStrategy.mode) + context.userAgent = [...(context.userAgent || []), ["cfg/retry-mode", retryStrategy.mode]]; + return retryStrategy.retry(next, args); +}; +exports.retryMiddleware = retryMiddleware; +exports.retryMiddlewareOptions = { + name: "retryMiddleware", + tags: ["RETRY"], + step: "finalizeRequest", + priority: "high", + override: true, +}; +const getRetryPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.retryMiddleware)(options), exports.retryMiddlewareOptions); + }, +}); +exports.getRetryPlugin = getRetryPlugin; + + +/***/ }), + +/***/ 48580: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); + + +/***/ }), + +/***/ 55959: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolveStsAuthConfig = void 0; +const middleware_signing_1 = __nccwpck_require__(14935); +const resolveStsAuthConfig = (input, { stsClientCtor }) => (0, middleware_signing_1.resolveAwsAuthConfig)({ + ...input, + stsClientCtor, +}); +exports.resolveStsAuthConfig = resolveStsAuthConfig; + + +/***/ }), + +/***/ 65648: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.deserializerMiddleware = void 0; +const deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => { + const { response } = await next(args); + try { + const parsed = await deserializer(response, options); + return { + response, + output: parsed, + }; + } + catch (error) { + Object.defineProperty(error, "$response", { + value: response, + }); + throw error; + } +}; +exports.deserializerMiddleware = deserializerMiddleware; + + +/***/ }), + +/***/ 93631: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(65648), exports); +tslib_1.__exportStar(__nccwpck_require__(99328), exports); +tslib_1.__exportStar(__nccwpck_require__(19511), exports); + + +/***/ }), + +/***/ 99328: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getSerdePlugin = exports.serializerMiddlewareOption = exports.deserializerMiddlewareOption = void 0; +const deserializerMiddleware_1 = __nccwpck_require__(65648); +const serializerMiddleware_1 = __nccwpck_require__(19511); +exports.deserializerMiddlewareOption = { + name: "deserializerMiddleware", + step: "deserialize", + tags: ["DESERIALIZER"], + override: true, +}; +exports.serializerMiddlewareOption = { + name: "serializerMiddleware", + step: "serialize", + tags: ["SERIALIZER"], + override: true, +}; +function getSerdePlugin(config, serializer, deserializer) { + return { + applyToStack: (commandStack) => { + commandStack.add((0, deserializerMiddleware_1.deserializerMiddleware)(config, deserializer), exports.deserializerMiddlewareOption); + commandStack.add((0, serializerMiddleware_1.serializerMiddleware)(config, serializer), exports.serializerMiddlewareOption); + }, + }; +} +exports.getSerdePlugin = getSerdePlugin; + + +/***/ }), + +/***/ 19511: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.serializerMiddleware = void 0; +const serializerMiddleware = (options, serializer) => (next, context) => async (args) => { + const request = await serializer(args.input, options); + return next({ + ...args, + request, + }); +}; +exports.serializerMiddleware = serializerMiddleware; + + +/***/ }), + +/***/ 63061: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolveSigV4AuthConfig = exports.resolveAwsAuthConfig = void 0; +const property_provider_1 = __nccwpck_require__(74462); +const signature_v4_1 = __nccwpck_require__(37776); +const CREDENTIAL_EXPIRE_WINDOW = 300000; +const resolveAwsAuthConfig = (input) => { + const normalizedCreds = input.credentials + ? normalizeCredentialProvider(input.credentials) + : input.credentialDefaultProvider(input); + const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; + let signer; + if (input.signer) { + signer = normalizeProvider(input.signer); + } + else { + signer = () => normalizeProvider(input.region)() + .then(async (region) => [ + (await input.regionInfoProvider(region, { + useFipsEndpoint: await input.useFipsEndpoint(), + useDualstackEndpoint: await input.useDualstackEndpoint(), + })) || {}, + region, + ]) + .then(([regionInfo, region]) => { + const { signingRegion, signingService } = regionInfo; + input.signingRegion = input.signingRegion || signingRegion || region; + input.signingName = input.signingName || signingService || input.serviceId; + const params = { + ...input, + credentials: normalizedCreds, + region: input.signingRegion, + service: input.signingName, + sha256, + uriEscapePath: signingEscapePath, + }; + const signerConstructor = input.signerConstructor || signature_v4_1.SignatureV4; + return new signerConstructor(params); + }); + } + return { + ...input, + systemClockOffset, + signingEscapePath, + credentials: normalizedCreds, + signer, + }; +}; +exports.resolveAwsAuthConfig = resolveAwsAuthConfig; +const resolveSigV4AuthConfig = (input) => { + const normalizedCreds = input.credentials + ? normalizeCredentialProvider(input.credentials) + : input.credentialDefaultProvider(input); + const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; + let signer; + if (input.signer) { + signer = normalizeProvider(input.signer); + } + else { + signer = normalizeProvider(new signature_v4_1.SignatureV4({ + credentials: normalizedCreds, + region: input.region, + service: input.signingName, + sha256, + uriEscapePath: signingEscapePath, + })); + } + return { + ...input, + systemClockOffset, + signingEscapePath, + credentials: normalizedCreds, + signer, + }; +}; +exports.resolveSigV4AuthConfig = resolveSigV4AuthConfig; +const normalizeProvider = (input) => { + if (typeof input === "object") { + const promisified = Promise.resolve(input); + return () => promisified; + } + return input; +}; +const normalizeCredentialProvider = (credentials) => { + if (typeof credentials === "function") { + return (0, property_provider_1.memoize)(credentials, (credentials) => credentials.expiration !== undefined && + credentials.expiration.getTime() - Date.now() < CREDENTIAL_EXPIRE_WINDOW, (credentials) => credentials.expiration !== undefined); + } + return normalizeProvider(credentials); +}; + + +/***/ }), + +/***/ 14935: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(63061), exports); +tslib_1.__exportStar(__nccwpck_require__(42509), exports); + + +/***/ }), + +/***/ 42509: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin = exports.awsAuthMiddlewareOptions = exports.awsAuthMiddleware = void 0; +const protocol_http_1 = __nccwpck_require__(70223); +const getSkewCorrectedDate_1 = __nccwpck_require__(68253); +const getUpdatedSystemClockOffset_1 = __nccwpck_require__(35863); +const awsAuthMiddleware = (options) => (next, context) => async function (args) { + if (!protocol_http_1.HttpRequest.isInstance(args.request)) + return next(args); + const signer = await options.signer(); + const output = await next({ + ...args, + request: await signer.sign(args.request, { + signingDate: (0, getSkewCorrectedDate_1.getSkewCorrectedDate)(options.systemClockOffset), + signingRegion: context["signing_region"], + signingService: context["signing_service"], + }), + }).catch((error) => { + var _a; + const serverTime = (_a = error.ServerTime) !== null && _a !== void 0 ? _a : getDateHeader(error.$response); + if (serverTime) { + options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(serverTime, options.systemClockOffset); + } + throw error; + }); + const dateHeader = getDateHeader(output.response); + if (dateHeader) { + options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(dateHeader, options.systemClockOffset); + } + return output; +}; +exports.awsAuthMiddleware = awsAuthMiddleware; +const getDateHeader = (response) => { var _a, _b, _c; return protocol_http_1.HttpResponse.isInstance(response) ? (_b = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.date) !== null && _b !== void 0 ? _b : (_c = response.headers) === null || _c === void 0 ? void 0 : _c.Date : undefined; }; +exports.awsAuthMiddlewareOptions = { + name: "awsAuthMiddleware", + tags: ["SIGNATURE", "AWSAUTH"], + relation: "after", + toMiddleware: "retryMiddleware", + override: true, +}; +const getAwsAuthPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo((0, exports.awsAuthMiddleware)(options), exports.awsAuthMiddlewareOptions); + }, +}); +exports.getAwsAuthPlugin = getAwsAuthPlugin; +exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin; + + +/***/ }), + +/***/ 68253: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getSkewCorrectedDate = void 0; +const getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset); +exports.getSkewCorrectedDate = getSkewCorrectedDate; + + +/***/ }), + +/***/ 35863: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getUpdatedSystemClockOffset = void 0; +const isClockSkewed_1 = __nccwpck_require__(85301); +const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => { + const clockTimeInMs = Date.parse(clockTime); + if ((0, isClockSkewed_1.isClockSkewed)(clockTimeInMs, currentSystemClockOffset)) { + return clockTimeInMs - Date.now(); + } + return currentSystemClockOffset; +}; +exports.getUpdatedSystemClockOffset = getUpdatedSystemClockOffset; + + +/***/ }), + +/***/ 85301: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isClockSkewed = void 0; +const getSkewCorrectedDate_1 = __nccwpck_require__(68253); +const isClockSkewed = (clockTime, systemClockOffset) => Math.abs((0, getSkewCorrectedDate_1.getSkewCorrectedDate)(systemClockOffset).getTime() - clockTime) >= 300000; +exports.isClockSkewed = isClockSkewed; + + +/***/ }), + +/***/ 38399: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.constructStack = void 0; +const constructStack = () => { + let absoluteEntries = []; + let relativeEntries = []; + const entriesNameSet = new Set(); + const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] || + priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"]); + const removeByName = (toRemove) => { + let isRemoved = false; + const filterCb = (entry) => { + if (entry.name && entry.name === toRemove) { + isRemoved = true; + entriesNameSet.delete(toRemove); + return false; + } + return true; + }; + absoluteEntries = absoluteEntries.filter(filterCb); + relativeEntries = relativeEntries.filter(filterCb); + return isRemoved; + }; + const removeByReference = (toRemove) => { + let isRemoved = false; + const filterCb = (entry) => { + if (entry.middleware === toRemove) { + isRemoved = true; + if (entry.name) + entriesNameSet.delete(entry.name); + return false; + } + return true; + }; + absoluteEntries = absoluteEntries.filter(filterCb); + relativeEntries = relativeEntries.filter(filterCb); + return isRemoved; + }; + const cloneTo = (toStack) => { + absoluteEntries.forEach((entry) => { + toStack.add(entry.middleware, { ...entry }); + }); + relativeEntries.forEach((entry) => { + toStack.addRelativeTo(entry.middleware, { ...entry }); + }); + return toStack; + }; + const expandRelativeMiddlewareList = (from) => { + const expandedMiddlewareList = []; + from.before.forEach((entry) => { + if (entry.before.length === 0 && entry.after.length === 0) { + expandedMiddlewareList.push(entry); + } + else { + expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); + } + }); + expandedMiddlewareList.push(from); + from.after.reverse().forEach((entry) => { + if (entry.before.length === 0 && entry.after.length === 0) { + expandedMiddlewareList.push(entry); + } + else { + expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); + } + }); + return expandedMiddlewareList; + }; + const getMiddlewareList = () => { + const normalizedAbsoluteEntries = []; + const normalizedRelativeEntries = []; + const normalizedEntriesNameMap = {}; + absoluteEntries.forEach((entry) => { + const normalizedEntry = { + ...entry, + before: [], + after: [], + }; + if (normalizedEntry.name) + normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; + normalizedAbsoluteEntries.push(normalizedEntry); + }); + relativeEntries.forEach((entry) => { + const normalizedEntry = { + ...entry, + before: [], + after: [], + }; + if (normalizedEntry.name) + normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; + normalizedRelativeEntries.push(normalizedEntry); + }); + normalizedRelativeEntries.forEach((entry) => { + if (entry.toMiddleware) { + const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware]; + if (toMiddleware === undefined) { + throw new Error(`${entry.toMiddleware} is not found when adding ${entry.name || "anonymous"} middleware ${entry.relation} ${entry.toMiddleware}`); + } + if (entry.relation === "after") { + toMiddleware.after.push(entry); + } + if (entry.relation === "before") { + toMiddleware.before.push(entry); + } + } + }); + const mainChain = sort(normalizedAbsoluteEntries) + .map(expandRelativeMiddlewareList) + .reduce((wholeList, expendedMiddlewareList) => { + wholeList.push(...expendedMiddlewareList); + return wholeList; + }, []); + return mainChain.map((entry) => entry.middleware); + }; + const stack = { + add: (middleware, options = {}) => { + const { name, override } = options; + const entry = { + step: "initialize", + priority: "normal", + middleware, + ...options, + }; + if (name) { + if (entriesNameSet.has(name)) { + if (!override) + throw new Error(`Duplicate middleware name '${name}'`); + const toOverrideIndex = absoluteEntries.findIndex((entry) => entry.name === name); + const toOverride = absoluteEntries[toOverrideIndex]; + if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) { + throw new Error(`"${name}" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be ` + + `overridden by same-name middleware with ${entry.priority} priority in ${entry.step} step.`); + } + absoluteEntries.splice(toOverrideIndex, 1); + } + entriesNameSet.add(name); + } + absoluteEntries.push(entry); + }, + addRelativeTo: (middleware, options) => { + const { name, override } = options; + const entry = { + middleware, + ...options, + }; + if (name) { + if (entriesNameSet.has(name)) { + if (!override) + throw new Error(`Duplicate middleware name '${name}'`); + const toOverrideIndex = relativeEntries.findIndex((entry) => entry.name === name); + const toOverride = relativeEntries[toOverrideIndex]; + if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) { + throw new Error(`"${name}" middleware ${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden ` + + `by same-name middleware ${entry.relation} "${entry.toMiddleware}" middleware.`); + } + relativeEntries.splice(toOverrideIndex, 1); + } + entriesNameSet.add(name); + } + relativeEntries.push(entry); + }, + clone: () => cloneTo((0, exports.constructStack)()), + use: (plugin) => { + plugin.applyToStack(stack); + }, + remove: (toRemove) => { + if (typeof toRemove === "string") + return removeByName(toRemove); + else + return removeByReference(toRemove); + }, + removeByTag: (toRemove) => { + let isRemoved = false; + const filterCb = (entry) => { + const { tags, name } = entry; + if (tags && tags.includes(toRemove)) { + if (name) + entriesNameSet.delete(name); + isRemoved = true; + return false; + } + return true; + }; + absoluteEntries = absoluteEntries.filter(filterCb); + relativeEntries = relativeEntries.filter(filterCb); + return isRemoved; + }, + concat: (from) => { + const cloned = cloneTo((0, exports.constructStack)()); + cloned.use(from); + return cloned; + }, + applyToStack: cloneTo, + resolve: (handler, context) => { + for (const middleware of getMiddlewareList().reverse()) { + handler = middleware(handler, context); + } + return handler; + }, + }; + return stack; +}; +exports.constructStack = constructStack; +const stepWeights = { + initialize: 5, + serialize: 4, + build: 3, + finalizeRequest: 2, + deserialize: 1, +}; +const priorityWeights = { + high: 3, + normal: 2, + low: 1, +}; + + +/***/ }), + +/***/ 11461: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(38399), exports); + + +/***/ }), + +/***/ 36546: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolveUserAgentConfig = void 0; +function resolveUserAgentConfig(input) { + return { + ...input, + customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent, + }; +} +exports.resolveUserAgentConfig = resolveUserAgentConfig; + + +/***/ }), + +/***/ 28025: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UA_ESCAPE_REGEX = exports.SPACE = exports.X_AMZ_USER_AGENT = exports.USER_AGENT = void 0; +exports.USER_AGENT = "user-agent"; +exports.X_AMZ_USER_AGENT = "x-amz-user-agent"; +exports.SPACE = " "; +exports.UA_ESCAPE_REGEX = /[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g; + + +/***/ }), + +/***/ 64688: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(36546), exports); +tslib_1.__exportStar(__nccwpck_require__(76236), exports); + + +/***/ }), + +/***/ 76236: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getUserAgentPlugin = exports.getUserAgentMiddlewareOptions = exports.userAgentMiddleware = void 0; +const protocol_http_1 = __nccwpck_require__(70223); +const constants_1 = __nccwpck_require__(28025); +const userAgentMiddleware = (options) => (next, context) => async (args) => { + var _a, _b; + const { request } = args; + if (!protocol_http_1.HttpRequest.isInstance(request)) + return next(args); + const { headers } = request; + const userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || []; + const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); + const customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || []; + const sdkUserAgentValue = [...defaultUserAgent, ...userAgent, ...customUserAgent].join(constants_1.SPACE); + const normalUAValue = [ + ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), + ...customUserAgent, + ].join(constants_1.SPACE); + if (options.runtime !== "browser") { + if (normalUAValue) { + headers[constants_1.X_AMZ_USER_AGENT] = headers[constants_1.X_AMZ_USER_AGENT] + ? `${headers[constants_1.USER_AGENT]} ${normalUAValue}` + : normalUAValue; + } + headers[constants_1.USER_AGENT] = sdkUserAgentValue; + } + else { + headers[constants_1.X_AMZ_USER_AGENT] = sdkUserAgentValue; + } + return next({ + ...args, + request, + }); +}; +exports.userAgentMiddleware = userAgentMiddleware; +const escapeUserAgent = ([name, version]) => { + const prefixSeparatorIndex = name.indexOf("/"); + const prefix = name.substring(0, prefixSeparatorIndex); + let uaName = name.substring(prefixSeparatorIndex + 1); + if (prefix === "api") { + uaName = uaName.toLowerCase(); + } + return [prefix, uaName, version] + .filter((item) => item && item.length > 0) + .map((item) => item === null || item === void 0 ? void 0 : item.replace(constants_1.UA_ESCAPE_REGEX, "_")) + .join("/"); +}; +exports.getUserAgentMiddlewareOptions = { + name: "getUserAgentMiddleware", + step: "build", + priority: "low", + tags: ["SET_USER_AGENT", "USER_AGENT"], + override: true, +}; +const getUserAgentPlugin = (config) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports.userAgentMiddleware)(config), exports.getUserAgentMiddlewareOptions); + }, +}); +exports.getUserAgentPlugin = getUserAgentPlugin; + + +/***/ }), + +/***/ 52175: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.loadConfig = void 0; +const property_provider_1 = __nccwpck_require__(74462); +const fromEnv_1 = __nccwpck_require__(46161); +const fromSharedConfigFiles_1 = __nccwpck_require__(63905); +const fromStatic_1 = __nccwpck_require__(5881); +const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromEnv_1.fromEnv)(environmentVariableSelector), (0, fromSharedConfigFiles_1.fromSharedConfigFiles)(configFileSelector, configuration), (0, fromStatic_1.fromStatic)(defaultValue))); +exports.loadConfig = loadConfig; + + +/***/ }), + +/***/ 46161: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromEnv = void 0; +const property_provider_1 = __nccwpck_require__(74462); +const fromEnv = (envVarSelector) => async () => { + try { + const config = envVarSelector(process.env); + if (config === undefined) { + throw new Error(); + } + return config; + } + catch (e) { + throw new property_provider_1.CredentialsProviderError(e.message || `Cannot load config from environment variables with getter: ${envVarSelector}`); + } +}; +exports.fromEnv = fromEnv; + + +/***/ }), + +/***/ 63905: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromSharedConfigFiles = void 0; +const property_provider_1 = __nccwpck_require__(74462); +const shared_ini_file_loader_1 = __nccwpck_require__(67387); +const fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => { + const profile = (0, shared_ini_file_loader_1.getProfileName)(init); + const { configFile, credentialsFile } = await (0, shared_ini_file_loader_1.loadSharedConfigFiles)(init); + const profileFromCredentials = credentialsFile[profile] || {}; + const profileFromConfig = configFile[profile] || {}; + const mergedProfile = preferredFile === "config" + ? { ...profileFromCredentials, ...profileFromConfig } + : { ...profileFromConfig, ...profileFromCredentials }; + try { + const configValue = configSelector(mergedProfile); + if (configValue === undefined) { + throw new Error(); + } + return configValue; + } + catch (e) { + throw new property_provider_1.CredentialsProviderError(e.message || + `Cannot load config for profile ${profile} in SDK configuration files with getter: ${configSelector}`); + } +}; +exports.fromSharedConfigFiles = fromSharedConfigFiles; + + +/***/ }), + +/***/ 5881: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromStatic = void 0; +const property_provider_1 = __nccwpck_require__(74462); +const isFunction = (func) => typeof func === "function"; +const fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, property_provider_1.fromStatic)(defaultValue); +exports.fromStatic = fromStatic; + + +/***/ }), + +/***/ 87684: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(52175), exports); + + +/***/ }), + +/***/ 33647: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NODEJS_TIMEOUT_ERROR_CODES = void 0; +exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; + + +/***/ }), + +/***/ 96225: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getTransformedHeaders = void 0; +const getTransformedHeaders = (headers) => { + const transformedHeaders = {}; + for (const name of Object.keys(headers)) { + const headerValues = headers[name]; + transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues; + } + return transformedHeaders; +}; +exports.getTransformedHeaders = getTransformedHeaders; + + +/***/ }), + +/***/ 68805: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(2298), exports); +tslib_1.__exportStar(__nccwpck_require__(92533), exports); +tslib_1.__exportStar(__nccwpck_require__(72198), exports); + + +/***/ }), + +/***/ 2298: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NodeHttpHandler = void 0; +const protocol_http_1 = __nccwpck_require__(70223); +const querystring_builder_1 = __nccwpck_require__(43402); +const http_1 = __nccwpck_require__(13685); +const https_1 = __nccwpck_require__(95687); +const constants_1 = __nccwpck_require__(33647); +const get_transformed_headers_1 = __nccwpck_require__(96225); +const set_connection_timeout_1 = __nccwpck_require__(63598); +const set_socket_timeout_1 = __nccwpck_require__(44751); +const write_request_body_1 = __nccwpck_require__(5248); +class NodeHttpHandler { + constructor(options) { + this.metadata = { handlerProtocol: "http/1.1" }; + this.configProvider = new Promise((resolve, reject) => { + if (typeof options === "function") { + options() + .then((_options) => { + resolve(this.resolveDefaultConfig(_options)); + }) + .catch(reject); + } + else { + resolve(this.resolveDefaultConfig(options)); + } + }); + } + resolveDefaultConfig(options) { + const { connectionTimeout, socketTimeout, httpAgent, httpsAgent } = options || {}; + const keepAlive = true; + const maxSockets = 50; + return { + connectionTimeout, + socketTimeout, + httpAgent: httpAgent || new http_1.Agent({ keepAlive, maxSockets }), + httpsAgent: httpsAgent || new https_1.Agent({ keepAlive, maxSockets }), + }; + } + destroy() { + var _a, _b, _c, _d; + (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.httpAgent) === null || _b === void 0 ? void 0 : _b.destroy(); + (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.httpsAgent) === null || _d === void 0 ? void 0 : _d.destroy(); + } + async handle(request, { abortSignal } = {}) { + if (!this.config) { + this.config = await this.configProvider; + } + return new Promise((resolve, reject) => { + if (!this.config) { + throw new Error("Node HTTP request handler config is not resolved"); + } + if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { + const abortError = new Error("Request aborted"); + abortError.name = "AbortError"; + reject(abortError); + return; + } + const isSSL = request.protocol === "https:"; + const queryString = (0, querystring_builder_1.buildQueryString)(request.query || {}); + const nodeHttpsOptions = { + headers: request.headers, + host: request.hostname, + method: request.method, + path: queryString ? `${request.path}?${queryString}` : request.path, + port: request.port, + agent: isSSL ? this.config.httpsAgent : this.config.httpAgent, + }; + const requestFunc = isSSL ? https_1.request : http_1.request; + const req = requestFunc(nodeHttpsOptions, (res) => { + const httpResponse = new protocol_http_1.HttpResponse({ + statusCode: res.statusCode || -1, + headers: (0, get_transformed_headers_1.getTransformedHeaders)(res.headers), + body: res, + }); + resolve({ response: httpResponse }); + }); + req.on("error", (err) => { + if (constants_1.NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) { + reject(Object.assign(err, { name: "TimeoutError" })); + } + else { + reject(err); + } + }); + (0, set_connection_timeout_1.setConnectionTimeout)(req, reject, this.config.connectionTimeout); + (0, set_socket_timeout_1.setSocketTimeout)(req, reject, this.config.socketTimeout); + if (abortSignal) { + abortSignal.onabort = () => { + req.abort(); + const abortError = new Error("Request aborted"); + abortError.name = "AbortError"; + reject(abortError); + }; + } + (0, write_request_body_1.writeRequestBody)(req, request); + }); + } +} +exports.NodeHttpHandler = NodeHttpHandler; + + +/***/ }), + +/***/ 92533: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NodeHttp2Handler = void 0; +const protocol_http_1 = __nccwpck_require__(70223); +const querystring_builder_1 = __nccwpck_require__(43402); +const http2_1 = __nccwpck_require__(85158); +const get_transformed_headers_1 = __nccwpck_require__(96225); +const write_request_body_1 = __nccwpck_require__(5248); +class NodeHttp2Handler { + constructor(options) { + this.metadata = { handlerProtocol: "h2" }; + this.configProvider = new Promise((resolve, reject) => { + if (typeof options === "function") { + options() + .then((opts) => { + resolve(opts || {}); + }) + .catch(reject); + } + else { + resolve(options || {}); + } + }); + this.sessionCache = new Map(); + } + destroy() { + for (const sessions of this.sessionCache.values()) { + sessions.forEach((session) => this.destroySession(session)); + } + this.sessionCache.clear(); + } + async handle(request, { abortSignal } = {}) { + if (!this.config) { + this.config = await this.configProvider; + } + const { requestTimeout, disableConcurrentStreams } = this.config; + return new Promise((resolve, rejectOriginal) => { + let fulfilled = false; + if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { + fulfilled = true; + const abortError = new Error("Request aborted"); + abortError.name = "AbortError"; + rejectOriginal(abortError); + return; + } + const { hostname, method, port, protocol, path, query } = request; + const authority = `${protocol}//${hostname}${port ? `:${port}` : ""}`; + const session = this.getSession(authority, disableConcurrentStreams || false); + const reject = (err) => { + if (disableConcurrentStreams) { + this.destroySession(session); + } + fulfilled = true; + rejectOriginal(err); + }; + const queryString = (0, querystring_builder_1.buildQueryString)(query || {}); + const req = session.request({ + ...request.headers, + [http2_1.constants.HTTP2_HEADER_PATH]: queryString ? `${path}?${queryString}` : path, + [http2_1.constants.HTTP2_HEADER_METHOD]: method, + }); + session.ref(); + req.on("response", (headers) => { + const httpResponse = new protocol_http_1.HttpResponse({ + statusCode: headers[":status"] || -1, + headers: (0, get_transformed_headers_1.getTransformedHeaders)(headers), + body: req, + }); + fulfilled = true; + resolve({ response: httpResponse }); + if (disableConcurrentStreams) { + session.close(); + this.deleteSessionFromCache(authority, session); + } + }); + if (requestTimeout) { + req.setTimeout(requestTimeout, () => { + req.close(); + const timeoutError = new Error(`Stream timed out because of no activity for ${requestTimeout} ms`); + timeoutError.name = "TimeoutError"; + reject(timeoutError); + }); + } + if (abortSignal) { + abortSignal.onabort = () => { + req.close(); + const abortError = new Error("Request aborted"); + abortError.name = "AbortError"; + reject(abortError); + }; + } + req.on("frameError", (type, code, id) => { + reject(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`)); + }); + req.on("error", reject); + req.on("aborted", () => { + reject(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`)); + }); + req.on("close", () => { + session.unref(); + if (disableConcurrentStreams) { + session.destroy(); + } + if (!fulfilled) { + reject(new Error("Unexpected error: http2 request did not get a response")); + } + }); + (0, write_request_body_1.writeRequestBody)(req, request); + }); + } + getSession(authority, disableConcurrentStreams) { + var _a; + const sessionCache = this.sessionCache; + const existingSessions = sessionCache.get(authority) || []; + if (existingSessions.length > 0 && !disableConcurrentStreams) + return existingSessions[0]; + const newSession = (0, http2_1.connect)(authority); + newSession.unref(); + const destroySessionCb = () => { + this.destroySession(newSession); + this.deleteSessionFromCache(authority, newSession); + }; + newSession.on("goaway", destroySessionCb); + newSession.on("error", destroySessionCb); + newSession.on("frameError", destroySessionCb); + newSession.on("close", () => this.deleteSessionFromCache(authority, newSession)); + if ((_a = this.config) === null || _a === void 0 ? void 0 : _a.sessionTimeout) { + newSession.setTimeout(this.config.sessionTimeout, destroySessionCb); + } + existingSessions.push(newSession); + sessionCache.set(authority, existingSessions); + return newSession; + } + destroySession(session) { + if (!session.destroyed) { + session.destroy(); + } + } + deleteSessionFromCache(authority, session) { + const existingSessions = this.sessionCache.get(authority) || []; + if (!existingSessions.includes(session)) { + return; + } + this.sessionCache.set(authority, existingSessions.filter((s) => s !== session)); + } +} +exports.NodeHttp2Handler = NodeHttp2Handler; + + +/***/ }), + +/***/ 63598: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.setConnectionTimeout = void 0; +const setConnectionTimeout = (request, reject, timeoutInMs = 0) => { + if (!timeoutInMs) { + return; + } + request.on("socket", (socket) => { + if (socket.connecting) { + const timeoutId = setTimeout(() => { + request.destroy(); + reject(Object.assign(new Error(`Socket timed out without establishing a connection within ${timeoutInMs} ms`), { + name: "TimeoutError", + })); + }, timeoutInMs); + socket.on("connect", () => { + clearTimeout(timeoutId); + }); + } + }); +}; +exports.setConnectionTimeout = setConnectionTimeout; + + +/***/ }), + +/***/ 44751: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.setSocketTimeout = void 0; +const setSocketTimeout = (request, reject, timeoutInMs = 0) => { + request.setTimeout(timeoutInMs, () => { + request.destroy(); + reject(Object.assign(new Error(`Connection timed out after ${timeoutInMs} ms`), { name: "TimeoutError" })); + }); +}; +exports.setSocketTimeout = setSocketTimeout; + + +/***/ }), + +/***/ 84362: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Collector = void 0; +const stream_1 = __nccwpck_require__(12781); +class Collector extends stream_1.Writable { + constructor() { + super(...arguments); + this.bufferedBytes = []; + } + _write(chunk, encoding, callback) { + this.bufferedBytes.push(chunk); + callback(); + } +} +exports.Collector = Collector; + + +/***/ }), + +/***/ 72198: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.streamCollector = void 0; +const collector_1 = __nccwpck_require__(84362); +const streamCollector = (stream) => new Promise((resolve, reject) => { + const collector = new collector_1.Collector(); + stream.pipe(collector); + stream.on("error", (err) => { + collector.end(); + reject(err); + }); + collector.on("error", reject); + collector.on("finish", function () { + const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes)); + resolve(bytes); + }); +}); +exports.streamCollector = streamCollector; + + +/***/ }), + +/***/ 5248: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.writeRequestBody = void 0; +const stream_1 = __nccwpck_require__(12781); +function writeRequestBody(httpRequest, request) { + const expect = request.headers["Expect"] || request.headers["expect"]; + if (expect === "100-continue") { + httpRequest.on("continue", () => { + writeBody(httpRequest, request.body); + }); + } + else { + writeBody(httpRequest, request.body); + } +} +exports.writeRequestBody = writeRequestBody; +function writeBody(httpRequest, body) { + if (body instanceof stream_1.Readable) { + body.pipe(httpRequest); + } + else if (body) { + httpRequest.end(Buffer.from(body)); + } + else { + httpRequest.end(); + } +} + + +/***/ }), + +/***/ 96875: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.CredentialsProviderError = void 0; +const ProviderError_1 = __nccwpck_require__(81786); +class CredentialsProviderError extends ProviderError_1.ProviderError { + constructor(message, tryNextLink = true) { + super(message, tryNextLink); + this.tryNextLink = tryNextLink; + this.name = "CredentialsProviderError"; + Object.setPrototypeOf(this, CredentialsProviderError.prototype); + } +} +exports.CredentialsProviderError = CredentialsProviderError; + + +/***/ }), + +/***/ 81786: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ProviderError = void 0; +class ProviderError extends Error { + constructor(message, tryNextLink = true) { + super(message); + this.tryNextLink = tryNextLink; + this.name = "ProviderError"; + Object.setPrototypeOf(this, ProviderError.prototype); + } + static from(error, tryNextLink = true) { + return Object.assign(new this(error.message, tryNextLink), error); + } +} +exports.ProviderError = ProviderError; + + +/***/ }), + +/***/ 51444: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.chain = void 0; +const ProviderError_1 = __nccwpck_require__(81786); +function chain(...providers) { + return () => { + let promise = Promise.reject(new ProviderError_1.ProviderError("No providers in chain")); + for (const provider of providers) { + promise = promise.catch((err) => { + if (err === null || err === void 0 ? void 0 : err.tryNextLink) { + return provider(); + } + throw err; + }); + } + return promise; + }; +} +exports.chain = chain; + + +/***/ }), + +/***/ 10529: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromStatic = void 0; +const fromStatic = (staticValue) => () => Promise.resolve(staticValue); +exports.fromStatic = fromStatic; + + +/***/ }), + +/***/ 74462: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(96875), exports); +tslib_1.__exportStar(__nccwpck_require__(81786), exports); +tslib_1.__exportStar(__nccwpck_require__(51444), exports); +tslib_1.__exportStar(__nccwpck_require__(10529), exports); +tslib_1.__exportStar(__nccwpck_require__(714), exports); + + +/***/ }), + +/***/ 714: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.memoize = void 0; +const memoize = (provider, isExpired, requiresRefresh) => { + let resolved; + let pending; + let hasResult; + let isConstant = false; + const coalesceProvider = async () => { + if (!pending) { + pending = provider(); + } + try { + resolved = await pending; + hasResult = true; + isConstant = false; + } + finally { + pending = undefined; + } + return resolved; + }; + if (isExpired === undefined) { + return async (options) => { + if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { + resolved = await coalesceProvider(); + } + return resolved; + }; + } + return async (options) => { + if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { + resolved = await coalesceProvider(); + } + if (isConstant) { + return resolved; + } + if (requiresRefresh && !requiresRefresh(resolved)) { + isConstant = true; + return resolved; + } + if (isExpired(resolved)) { + await coalesceProvider(); + return resolved; + } + return resolved; + }; +}; +exports.memoize = memoize; + + +/***/ }), + +/***/ 56779: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); + + +/***/ }), + +/***/ 52872: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HttpRequest = void 0; +class HttpRequest { + constructor(options) { + this.method = options.method || "GET"; + this.hostname = options.hostname || "localhost"; + this.port = options.port; + this.query = options.query || {}; + this.headers = options.headers || {}; + this.body = options.body; + this.protocol = options.protocol + ? options.protocol.slice(-1) !== ":" + ? `${options.protocol}:` + : options.protocol + : "https:"; + this.path = options.path ? (options.path.charAt(0) !== "/" ? `/${options.path}` : options.path) : "/"; + } + static isInstance(request) { + if (!request) + return false; + const req = request; + return ("method" in req && + "protocol" in req && + "hostname" in req && + "path" in req && + typeof req["query"] === "object" && + typeof req["headers"] === "object"); + } + clone() { + const cloned = new HttpRequest({ + ...this, + headers: { ...this.headers }, + }); + if (cloned.query) + cloned.query = cloneQuery(cloned.query); + return cloned; + } +} +exports.HttpRequest = HttpRequest; +function cloneQuery(query) { + return Object.keys(query).reduce((carry, paramName) => { + const param = query[paramName]; + return { + ...carry, + [paramName]: Array.isArray(param) ? [...param] : param, + }; + }, {}); +} + + +/***/ }), + +/***/ 92348: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HttpResponse = void 0; +class HttpResponse { + constructor(options) { + this.statusCode = options.statusCode; + this.headers = options.headers || {}; + this.body = options.body; + } + static isInstance(response) { + if (!response) + return false; + const resp = response; + return typeof resp.statusCode === "number" && typeof resp.headers === "object"; + } +} +exports.HttpResponse = HttpResponse; + + +/***/ }), + +/***/ 70223: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(56779), exports); +tslib_1.__exportStar(__nccwpck_require__(52872), exports); +tslib_1.__exportStar(__nccwpck_require__(92348), exports); +tslib_1.__exportStar(__nccwpck_require__(85694), exports); + + +/***/ }), + +/***/ 85694: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isValidHostname = void 0; +function isValidHostname(hostname) { + const hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/; + return hostPattern.test(hostname); +} +exports.isValidHostname = isValidHostname; + + +/***/ }), + +/***/ 43402: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.buildQueryString = void 0; +const util_uri_escape_1 = __nccwpck_require__(57952); +function buildQueryString(query) { + const parts = []; + for (let key of Object.keys(query).sort()) { + const value = query[key]; + key = (0, util_uri_escape_1.escapeUri)(key); + if (Array.isArray(value)) { + for (let i = 0, iLen = value.length; i < iLen; i++) { + parts.push(`${key}=${(0, util_uri_escape_1.escapeUri)(value[i])}`); + } + } + else { + let qsEntry = key; + if (value || typeof value === "string") { + qsEntry += `=${(0, util_uri_escape_1.escapeUri)(value)}`; + } + parts.push(qsEntry); + } + } + return parts.join("&"); +} +exports.buildQueryString = buildQueryString; + + +/***/ }), + +/***/ 47424: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.parseQueryString = void 0; +function parseQueryString(querystring) { + const query = {}; + querystring = querystring.replace(/^\?/, ""); + if (querystring) { + for (const pair of querystring.split("&")) { + let [key, value = null] = pair.split("="); + key = decodeURIComponent(key); + if (value) { + value = decodeURIComponent(value); + } + if (!(key in query)) { + query[key] = value; + } + else if (Array.isArray(query[key])) { + query[key].push(value); + } + else { + query[key] = [query[key], value]; + } + } + } + return query; +} +exports.parseQueryString = parseQueryString; + + +/***/ }), + +/***/ 7352: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.TRANSIENT_ERROR_STATUS_CODES = exports.TRANSIENT_ERROR_CODES = exports.THROTTLING_ERROR_CODES = exports.CLOCK_SKEW_ERROR_CODES = void 0; +exports.CLOCK_SKEW_ERROR_CODES = [ + "AuthFailure", + "InvalidSignatureException", + "RequestExpired", + "RequestInTheFuture", + "RequestTimeTooSkewed", + "SignatureDoesNotMatch", +]; +exports.THROTTLING_ERROR_CODES = [ + "BandwidthLimitExceeded", + "EC2ThrottledException", + "LimitExceededException", + "PriorRequestNotComplete", + "ProvisionedThroughputExceededException", + "RequestLimitExceeded", + "RequestThrottled", + "RequestThrottledException", + "SlowDown", + "ThrottledException", + "Throttling", + "ThrottlingException", + "TooManyRequestsException", + "TransactionInProgressException", +]; +exports.TRANSIENT_ERROR_CODES = ["AbortError", "TimeoutError", "RequestTimeout", "RequestTimeoutException"]; +exports.TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; + + +/***/ }), + +/***/ 61921: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isTransientError = exports.isThrottlingError = exports.isClockSkewError = exports.isRetryableByTrait = void 0; +const constants_1 = __nccwpck_require__(7352); +const isRetryableByTrait = (error) => error.$retryable !== undefined; +exports.isRetryableByTrait = isRetryableByTrait; +const isClockSkewError = (error) => constants_1.CLOCK_SKEW_ERROR_CODES.includes(error.name); +exports.isClockSkewError = isClockSkewError; +const isThrottlingError = (error) => { + var _a, _b; + return ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 429 || + constants_1.THROTTLING_ERROR_CODES.includes(error.name) || + ((_b = error.$retryable) === null || _b === void 0 ? void 0 : _b.throttling) == true; +}; +exports.isThrottlingError = isThrottlingError; +const isTransientError = (error) => { + var _a; + return constants_1.TRANSIENT_ERROR_CODES.includes(error.name) || + constants_1.TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) || 0); +}; +exports.isTransientError = isTransientError; + + +/***/ }), + +/***/ 75216: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getConfigFilepath = exports.ENV_CONFIG_PATH = void 0; +const path_1 = __nccwpck_require__(71017); +const getHomeDir_1 = __nccwpck_require__(97363); +exports.ENV_CONFIG_PATH = "AWS_CONFIG_FILE"; +const getConfigFilepath = () => process.env[exports.ENV_CONFIG_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "config"); +exports.getConfigFilepath = getConfigFilepath; + + +/***/ }), + +/***/ 91569: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getCredentialsFilepath = exports.ENV_CREDENTIALS_PATH = void 0; +const path_1 = __nccwpck_require__(71017); +const getHomeDir_1 = __nccwpck_require__(97363); +exports.ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE"; +const getCredentialsFilepath = () => process.env[exports.ENV_CREDENTIALS_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "credentials"); +exports.getCredentialsFilepath = getCredentialsFilepath; + + +/***/ }), + +/***/ 97363: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getHomeDir = void 0; +const os_1 = __nccwpck_require__(22037); +const path_1 = __nccwpck_require__(71017); +const getHomeDir = () => { + const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${path_1.sep}` } = process.env; + if (HOME) + return HOME; + if (USERPROFILE) + return USERPROFILE; + if (HOMEPATH) + return `${HOMEDRIVE}${HOMEPATH}`; + return (0, os_1.homedir)(); +}; +exports.getHomeDir = getHomeDir; + + +/***/ }), + +/***/ 53592: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getProfileData = void 0; +const profileKeyRegex = /^profile\s(["'])?([^\1]+)\1$/; +const getProfileData = (data) => Object.entries(data) + .filter(([key]) => profileKeyRegex.test(key)) + .reduce((acc, [key, value]) => ({ ...acc, [profileKeyRegex.exec(key)[2]]: value }), { + ...(data.default && { default: data.default }), +}); +exports.getProfileData = getProfileData; + + +/***/ }), + +/***/ 36776: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getProfileName = exports.DEFAULT_PROFILE = exports.ENV_PROFILE = void 0; +exports.ENV_PROFILE = "AWS_PROFILE"; +exports.DEFAULT_PROFILE = "default"; +const getProfileName = (init) => init.profile || process.env[exports.ENV_PROFILE] || exports.DEFAULT_PROFILE; +exports.getProfileName = getProfileName; + + +/***/ }), + +/***/ 42992: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getSSOTokenFilepath = void 0; +const crypto_1 = __nccwpck_require__(6113); +const path_1 = __nccwpck_require__(71017); +const getHomeDir_1 = __nccwpck_require__(97363); +const getSSOTokenFilepath = (ssoStartUrl) => { + const hasher = (0, crypto_1.createHash)("sha1"); + const cacheName = hasher.update(ssoStartUrl).digest("hex"); + return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "sso", "cache", `${cacheName}.json`); +}; +exports.getSSOTokenFilepath = getSSOTokenFilepath; + + +/***/ }), + +/***/ 18553: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getSSOTokenFromFile = void 0; +const fs_1 = __nccwpck_require__(57147); +const getSSOTokenFilepath_1 = __nccwpck_require__(42992); +const { readFile } = fs_1.promises; +const getSSOTokenFromFile = async (ssoStartUrl) => { + const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(ssoStartUrl); + const ssoTokenText = await readFile(ssoTokenFilepath, "utf8"); + return JSON.parse(ssoTokenText); +}; +exports.getSSOTokenFromFile = getSSOTokenFromFile; + + +/***/ }), + +/***/ 67387: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(97363), exports); +tslib_1.__exportStar(__nccwpck_require__(36776), exports); +tslib_1.__exportStar(__nccwpck_require__(42992), exports); +tslib_1.__exportStar(__nccwpck_require__(18553), exports); +tslib_1.__exportStar(__nccwpck_require__(57871), exports); +tslib_1.__exportStar(__nccwpck_require__(26533), exports); +tslib_1.__exportStar(__nccwpck_require__(84105), exports); + + +/***/ }), + +/***/ 57871: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.loadSharedConfigFiles = void 0; +const getConfigFilepath_1 = __nccwpck_require__(75216); +const getCredentialsFilepath_1 = __nccwpck_require__(91569); +const getProfileData_1 = __nccwpck_require__(53592); +const parseIni_1 = __nccwpck_require__(82806); +const slurpFile_1 = __nccwpck_require__(79242); +const swallowError = () => ({}); +const loadSharedConfigFiles = async (init = {}) => { + const { filepath = (0, getCredentialsFilepath_1.getCredentialsFilepath)(), configFilepath = (0, getConfigFilepath_1.getConfigFilepath)() } = init; + const parsedFiles = await Promise.all([ + (0, slurpFile_1.slurpFile)(configFilepath).then(parseIni_1.parseIni).then(getProfileData_1.getProfileData).catch(swallowError), + (0, slurpFile_1.slurpFile)(filepath).then(parseIni_1.parseIni).catch(swallowError), + ]); + return { + configFile: parsedFiles[0], + credentialsFile: parsedFiles[1], + }; +}; +exports.loadSharedConfigFiles = loadSharedConfigFiles; + + +/***/ }), + +/***/ 82806: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.parseIni = void 0; +const profileNameBlockList = ["__proto__", "profile __proto__"]; +const parseIni = (iniData) => { + const map = {}; + let currentSection; + for (let line of iniData.split(/\r?\n/)) { + line = line.split(/(^|\s)[;#]/)[0].trim(); + const isSection = line[0] === "[" && line[line.length - 1] === "]"; + if (isSection) { + currentSection = line.substring(1, line.length - 1); + if (profileNameBlockList.includes(currentSection)) { + throw new Error(`Found invalid profile name "${currentSection}"`); + } + } + else if (currentSection) { + const indexOfEqualsSign = line.indexOf("="); + const start = 0; + const end = line.length - 1; + const isAssignment = indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end; + if (isAssignment) { + const [name, value] = [ + line.substring(0, indexOfEqualsSign).trim(), + line.substring(indexOfEqualsSign + 1).trim(), + ]; + map[currentSection] = map[currentSection] || {}; + map[currentSection][name] = value; + } + } + } + return map; +}; +exports.parseIni = parseIni; + + +/***/ }), + +/***/ 26533: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.parseKnownFiles = void 0; +const loadSharedConfigFiles_1 = __nccwpck_require__(57871); +const parseKnownFiles = async (init) => { + const parsedFiles = await (0, loadSharedConfigFiles_1.loadSharedConfigFiles)(init); + return { + ...parsedFiles.configFile, + ...parsedFiles.credentialsFile, + }; +}; +exports.parseKnownFiles = parseKnownFiles; + + +/***/ }), + +/***/ 79242: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.slurpFile = void 0; +const fs_1 = __nccwpck_require__(57147); +const { readFile } = fs_1.promises; +const filePromisesHash = {}; +const slurpFile = (path) => { + if (!filePromisesHash[path]) { + filePromisesHash[path] = readFile(path, "utf8"); + } + return filePromisesHash[path]; +}; +exports.slurpFile = slurpFile; + + +/***/ }), + +/***/ 84105: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); + + +/***/ }), + +/***/ 75086: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SignatureV4 = void 0; +const util_hex_encoding_1 = __nccwpck_require__(1968); +const util_middleware_1 = __nccwpck_require__(10236); +const constants_1 = __nccwpck_require__(30342); +const credentialDerivation_1 = __nccwpck_require__(11424); +const getCanonicalHeaders_1 = __nccwpck_require__(93590); +const getCanonicalQuery_1 = __nccwpck_require__(92019); +const getPayloadHash_1 = __nccwpck_require__(47080); +const headerUtil_1 = __nccwpck_require__(34120); +const moveHeadersToQuery_1 = __nccwpck_require__(98201); +const prepareRequest_1 = __nccwpck_require__(75772); +const utilDate_1 = __nccwpck_require__(94799); +class SignatureV4 { + constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true, }) { + this.service = service; + this.sha256 = sha256; + this.uriEscapePath = uriEscapePath; + this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true; + this.regionProvider = (0, util_middleware_1.normalizeProvider)(region); + this.credentialProvider = (0, util_middleware_1.normalizeProvider)(credentials); + } + async presign(originalRequest, options = {}) { + const { signingDate = new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, signingRegion, signingService, } = options; + const credentials = await this.credentialProvider(); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); + const { longDate, shortDate } = formatDate(signingDate); + if (expiresIn > constants_1.MAX_PRESIGNED_TTL) { + return Promise.reject("Signature version 4 presigned URLs" + " must have an expiration date less than one week in" + " the future"); + } + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + const request = (0, moveHeadersToQuery_1.moveHeadersToQuery)((0, prepareRequest_1.prepareRequest)(originalRequest), { unhoistableHeaders }); + if (credentials.sessionToken) { + request.query[constants_1.TOKEN_QUERY_PARAM] = credentials.sessionToken; + } + request.query[constants_1.ALGORITHM_QUERY_PARAM] = constants_1.ALGORITHM_IDENTIFIER; + request.query[constants_1.CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`; + request.query[constants_1.AMZ_DATE_QUERY_PARAM] = longDate; + request.query[constants_1.EXPIRES_QUERY_PARAM] = expiresIn.toString(10); + const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); + request.query[constants_1.SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders); + request.query[constants_1.SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, await (0, getPayloadHash_1.getPayloadHash)(originalRequest, this.sha256))); + return request; + } + async sign(toSign, options) { + if (typeof toSign === "string") { + return this.signString(toSign, options); + } + else if (toSign.headers && toSign.payload) { + return this.signEvent(toSign, options); + } + else { + return this.signRequest(toSign, options); + } + } + async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService }) { + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); + const { shortDate, longDate } = formatDate(signingDate); + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + const hashedPayload = await (0, getPayloadHash_1.getPayloadHash)({ headers: {}, body: payload }, this.sha256); + const hash = new this.sha256(); + hash.update(headers); + const hashedHeaders = (0, util_hex_encoding_1.toHex)(await hash.digest()); + const stringToSign = [ + constants_1.EVENT_ALGORITHM_IDENTIFIER, + longDate, + scope, + priorSignature, + hashedHeaders, + hashedPayload, + ].join("\n"); + return this.signString(stringToSign, { signingDate, signingRegion: region, signingService }); + } + async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService } = {}) { + const credentials = await this.credentialProvider(); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); + const { shortDate } = formatDate(signingDate); + const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService)); + hash.update(stringToSign); + return (0, util_hex_encoding_1.toHex)(await hash.digest()); + } + async signRequest(requestToSign, { signingDate = new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService, } = {}) { + const credentials = await this.credentialProvider(); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); + const request = (0, prepareRequest_1.prepareRequest)(requestToSign); + const { longDate, shortDate } = formatDate(signingDate); + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + request.headers[constants_1.AMZ_DATE_HEADER] = longDate; + if (credentials.sessionToken) { + request.headers[constants_1.TOKEN_HEADER] = credentials.sessionToken; + } + const payloadHash = await (0, getPayloadHash_1.getPayloadHash)(request, this.sha256); + if (!(0, headerUtil_1.hasHeader)(constants_1.SHA256_HEADER, request.headers) && this.applyChecksum) { + request.headers[constants_1.SHA256_HEADER] = payloadHash; + } + const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); + const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, payloadHash)); + request.headers[constants_1.AUTH_HEADER] = + `${constants_1.ALGORITHM_IDENTIFIER} ` + + `Credential=${credentials.accessKeyId}/${scope}, ` + + `SignedHeaders=${getCanonicalHeaderList(canonicalHeaders)}, ` + + `Signature=${signature}`; + return request; + } + createCanonicalRequest(request, canonicalHeaders, payloadHash) { + const sortedHeaders = Object.keys(canonicalHeaders).sort(); + return `${request.method} +${this.getCanonicalPath(request)} +${(0, getCanonicalQuery_1.getCanonicalQuery)(request)} +${sortedHeaders.map((name) => `${name}:${canonicalHeaders[name]}`).join("\n")} + +${sortedHeaders.join(";")} +${payloadHash}`; + } + async createStringToSign(longDate, credentialScope, canonicalRequest) { + const hash = new this.sha256(); + hash.update(canonicalRequest); + const hashedRequest = await hash.digest(); + return `${constants_1.ALGORITHM_IDENTIFIER} +${longDate} +${credentialScope} +${(0, util_hex_encoding_1.toHex)(hashedRequest)}`; + } + getCanonicalPath({ path }) { + if (this.uriEscapePath) { + const normalizedPathSegments = []; + for (const pathSegment of path.split("/")) { + if ((pathSegment === null || pathSegment === void 0 ? void 0 : pathSegment.length) === 0) + continue; + if (pathSegment === ".") + continue; + if (pathSegment === "..") { + normalizedPathSegments.pop(); + } + else { + normalizedPathSegments.push(pathSegment); + } + } + const normalizedPath = `${(path === null || path === void 0 ? void 0 : path.startsWith("/")) ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && (path === null || path === void 0 ? void 0 : path.endsWith("/")) ? "/" : ""}`; + const doubleEncoded = encodeURIComponent(normalizedPath); + return doubleEncoded.replace(/%2F/g, "/"); + } + return path; + } + async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) { + const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest); + const hash = new this.sha256(await keyPromise); + hash.update(stringToSign); + return (0, util_hex_encoding_1.toHex)(await hash.digest()); + } + getSigningKey(credentials, region, shortDate, service) { + return (0, credentialDerivation_1.getSigningKey)(this.sha256, credentials, shortDate, region, service || this.service); + } +} +exports.SignatureV4 = SignatureV4; +const formatDate = (now) => { + const longDate = (0, utilDate_1.iso8601)(now).replace(/[\-:]/g, ""); + return { + longDate, + shortDate: longDate.slice(0, 8), + }; +}; +const getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(";"); + + +/***/ }), + +/***/ 53141: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloneQuery = exports.cloneRequest = void 0; +const cloneRequest = ({ headers, query, ...rest }) => ({ + ...rest, + headers: { ...headers }, + query: query ? (0, exports.cloneQuery)(query) : undefined, +}); +exports.cloneRequest = cloneRequest; +const cloneQuery = (query) => Object.keys(query).reduce((carry, paramName) => { + const param = query[paramName]; + return { + ...carry, + [paramName]: Array.isArray(param) ? [...param] : param, + }; +}, {}); +exports.cloneQuery = cloneQuery; + + +/***/ }), + +/***/ 30342: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.MAX_PRESIGNED_TTL = exports.KEY_TYPE_IDENTIFIER = exports.MAX_CACHE_SIZE = exports.UNSIGNED_PAYLOAD = exports.EVENT_ALGORITHM_IDENTIFIER = exports.ALGORITHM_IDENTIFIER_V4A = exports.ALGORITHM_IDENTIFIER = exports.UNSIGNABLE_PATTERNS = exports.SEC_HEADER_PATTERN = exports.PROXY_HEADER_PATTERN = exports.ALWAYS_UNSIGNABLE_HEADERS = exports.HOST_HEADER = exports.TOKEN_HEADER = exports.SHA256_HEADER = exports.SIGNATURE_HEADER = exports.GENERATED_HEADERS = exports.DATE_HEADER = exports.AMZ_DATE_HEADER = exports.AUTH_HEADER = exports.REGION_SET_PARAM = exports.TOKEN_QUERY_PARAM = exports.SIGNATURE_QUERY_PARAM = exports.EXPIRES_QUERY_PARAM = exports.SIGNED_HEADERS_QUERY_PARAM = exports.AMZ_DATE_QUERY_PARAM = exports.CREDENTIAL_QUERY_PARAM = exports.ALGORITHM_QUERY_PARAM = void 0; +exports.ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; +exports.CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; +exports.AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; +exports.SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; +exports.EXPIRES_QUERY_PARAM = "X-Amz-Expires"; +exports.SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; +exports.TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; +exports.REGION_SET_PARAM = "X-Amz-Region-Set"; +exports.AUTH_HEADER = "authorization"; +exports.AMZ_DATE_HEADER = exports.AMZ_DATE_QUERY_PARAM.toLowerCase(); +exports.DATE_HEADER = "date"; +exports.GENERATED_HEADERS = [exports.AUTH_HEADER, exports.AMZ_DATE_HEADER, exports.DATE_HEADER]; +exports.SIGNATURE_HEADER = exports.SIGNATURE_QUERY_PARAM.toLowerCase(); +exports.SHA256_HEADER = "x-amz-content-sha256"; +exports.TOKEN_HEADER = exports.TOKEN_QUERY_PARAM.toLowerCase(); +exports.HOST_HEADER = "host"; +exports.ALWAYS_UNSIGNABLE_HEADERS = { + authorization: true, + "cache-control": true, + connection: true, + expect: true, + from: true, + "keep-alive": true, + "max-forwards": true, + pragma: true, + referer: true, + te: true, + trailer: true, + "transfer-encoding": true, + upgrade: true, + "user-agent": true, + "x-amzn-trace-id": true, +}; +exports.PROXY_HEADER_PATTERN = /^proxy-/; +exports.SEC_HEADER_PATTERN = /^sec-/; +exports.UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; +exports.ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; +exports.ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; +exports.EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; +exports.UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; +exports.MAX_CACHE_SIZE = 50; +exports.KEY_TYPE_IDENTIFIER = "aws4_request"; +exports.MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; + + +/***/ }), + +/***/ 11424: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.clearCredentialCache = exports.getSigningKey = exports.createScope = void 0; +const util_hex_encoding_1 = __nccwpck_require__(1968); +const constants_1 = __nccwpck_require__(30342); +const signingKeyCache = {}; +const cacheQueue = []; +const createScope = (shortDate, region, service) => `${shortDate}/${region}/${service}/${constants_1.KEY_TYPE_IDENTIFIER}`; +exports.createScope = createScope; +const getSigningKey = async (sha256Constructor, credentials, shortDate, region, service) => { + const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId); + const cacheKey = `${shortDate}:${region}:${service}:${(0, util_hex_encoding_1.toHex)(credsHash)}:${credentials.sessionToken}`; + if (cacheKey in signingKeyCache) { + return signingKeyCache[cacheKey]; + } + cacheQueue.push(cacheKey); + while (cacheQueue.length > constants_1.MAX_CACHE_SIZE) { + delete signingKeyCache[cacheQueue.shift()]; + } + let key = `AWS4${credentials.secretAccessKey}`; + for (const signable of [shortDate, region, service, constants_1.KEY_TYPE_IDENTIFIER]) { + key = await hmac(sha256Constructor, key, signable); + } + return (signingKeyCache[cacheKey] = key); +}; +exports.getSigningKey = getSigningKey; +const clearCredentialCache = () => { + cacheQueue.length = 0; + Object.keys(signingKeyCache).forEach((cacheKey) => { + delete signingKeyCache[cacheKey]; + }); +}; +exports.clearCredentialCache = clearCredentialCache; +const hmac = (ctor, secret, data) => { + const hash = new ctor(secret); + hash.update(data); + return hash.digest(); +}; + + +/***/ }), + +/***/ 93590: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getCanonicalHeaders = void 0; +const constants_1 = __nccwpck_require__(30342); +const getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => { + const canonical = {}; + for (const headerName of Object.keys(headers).sort()) { + if (headers[headerName] == undefined) { + continue; + } + const canonicalHeaderName = headerName.toLowerCase(); + if (canonicalHeaderName in constants_1.ALWAYS_UNSIGNABLE_HEADERS || + (unsignableHeaders === null || unsignableHeaders === void 0 ? void 0 : unsignableHeaders.has(canonicalHeaderName)) || + constants_1.PROXY_HEADER_PATTERN.test(canonicalHeaderName) || + constants_1.SEC_HEADER_PATTERN.test(canonicalHeaderName)) { + if (!signableHeaders || (signableHeaders && !signableHeaders.has(canonicalHeaderName))) { + continue; + } + } + canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " "); + } + return canonical; +}; +exports.getCanonicalHeaders = getCanonicalHeaders; + + +/***/ }), + +/***/ 92019: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getCanonicalQuery = void 0; +const util_uri_escape_1 = __nccwpck_require__(57952); +const constants_1 = __nccwpck_require__(30342); +const getCanonicalQuery = ({ query = {} }) => { + const keys = []; + const serialized = {}; + for (const key of Object.keys(query).sort()) { + if (key.toLowerCase() === constants_1.SIGNATURE_HEADER) { + continue; + } + keys.push(key); + const value = query[key]; + if (typeof value === "string") { + serialized[key] = `${(0, util_uri_escape_1.escapeUri)(key)}=${(0, util_uri_escape_1.escapeUri)(value)}`; + } + else if (Array.isArray(value)) { + serialized[key] = value + .slice(0) + .sort() + .reduce((encoded, value) => encoded.concat([`${(0, util_uri_escape_1.escapeUri)(key)}=${(0, util_uri_escape_1.escapeUri)(value)}`]), []) + .join("&"); + } + } + return keys + .map((key) => serialized[key]) + .filter((serialized) => serialized) + .join("&"); +}; +exports.getCanonicalQuery = getCanonicalQuery; + + +/***/ }), + +/***/ 47080: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getPayloadHash = void 0; +const is_array_buffer_1 = __nccwpck_require__(69126); +const util_hex_encoding_1 = __nccwpck_require__(1968); +const constants_1 = __nccwpck_require__(30342); +const getPayloadHash = async ({ headers, body }, hashConstructor) => { + for (const headerName of Object.keys(headers)) { + if (headerName.toLowerCase() === constants_1.SHA256_HEADER) { + return headers[headerName]; + } + } + if (body == undefined) { + return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; + } + else if (typeof body === "string" || ArrayBuffer.isView(body) || (0, is_array_buffer_1.isArrayBuffer)(body)) { + const hashCtor = new hashConstructor(); + hashCtor.update(body); + return (0, util_hex_encoding_1.toHex)(await hashCtor.digest()); + } + return constants_1.UNSIGNED_PAYLOAD; +}; +exports.getPayloadHash = getPayloadHash; + + +/***/ }), + +/***/ 34120: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.deleteHeader = exports.getHeaderValue = exports.hasHeader = void 0; +const hasHeader = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return true; + } + } + return false; +}; +exports.hasHeader = hasHeader; +const getHeaderValue = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return headers[headerName]; + } + } + return undefined; +}; +exports.getHeaderValue = getHeaderValue; +const deleteHeader = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + delete headers[headerName]; + } + } +}; +exports.deleteHeader = deleteHeader; + + +/***/ }), + +/***/ 37776: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.prepareRequest = exports.moveHeadersToQuery = exports.getPayloadHash = exports.getCanonicalQuery = exports.getCanonicalHeaders = void 0; +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(75086), exports); +var getCanonicalHeaders_1 = __nccwpck_require__(93590); +Object.defineProperty(exports, "getCanonicalHeaders", ({ enumerable: true, get: function () { return getCanonicalHeaders_1.getCanonicalHeaders; } })); +var getCanonicalQuery_1 = __nccwpck_require__(92019); +Object.defineProperty(exports, "getCanonicalQuery", ({ enumerable: true, get: function () { return getCanonicalQuery_1.getCanonicalQuery; } })); +var getPayloadHash_1 = __nccwpck_require__(47080); +Object.defineProperty(exports, "getPayloadHash", ({ enumerable: true, get: function () { return getPayloadHash_1.getPayloadHash; } })); +var moveHeadersToQuery_1 = __nccwpck_require__(98201); +Object.defineProperty(exports, "moveHeadersToQuery", ({ enumerable: true, get: function () { return moveHeadersToQuery_1.moveHeadersToQuery; } })); +var prepareRequest_1 = __nccwpck_require__(75772); +Object.defineProperty(exports, "prepareRequest", ({ enumerable: true, get: function () { return prepareRequest_1.prepareRequest; } })); +tslib_1.__exportStar(__nccwpck_require__(11424), exports); + + +/***/ }), + +/***/ 98201: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.moveHeadersToQuery = void 0; +const cloneRequest_1 = __nccwpck_require__(53141); +const moveHeadersToQuery = (request, options = {}) => { + var _a; + const { headers, query = {} } = typeof request.clone === "function" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); + for (const name of Object.keys(headers)) { + const lname = name.toLowerCase(); + if (lname.slice(0, 6) === "x-amz-" && !((_a = options.unhoistableHeaders) === null || _a === void 0 ? void 0 : _a.has(lname))) { + query[name] = headers[name]; + delete headers[name]; + } + } + return { + ...request, + headers, + query, + }; +}; +exports.moveHeadersToQuery = moveHeadersToQuery; + + +/***/ }), + +/***/ 75772: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.prepareRequest = void 0; +const cloneRequest_1 = __nccwpck_require__(53141); +const constants_1 = __nccwpck_require__(30342); +const prepareRequest = (request) => { + request = typeof request.clone === "function" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); + for (const headerName of Object.keys(request.headers)) { + if (constants_1.GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { + delete request.headers[headerName]; + } + } + return request; +}; +exports.prepareRequest = prepareRequest; + + +/***/ }), + +/***/ 94799: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.toDate = exports.iso8601 = void 0; +const iso8601 = (time) => (0, exports.toDate)(time) + .toISOString() + .replace(/\.\d{3}Z$/, "Z"); +exports.iso8601 = iso8601; +const toDate = (time) => { + if (typeof time === "number") { + return new Date(time * 1000); + } + if (typeof time === "string") { + if (Number(time)) { + return new Date(Number(time) * 1000); + } + return new Date(time); + } + return time; +}; +exports.toDate = toDate; + + +/***/ }), + +/***/ 36034: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Client = void 0; +const middleware_stack_1 = __nccwpck_require__(11461); +class Client { + constructor(config) { + this.middlewareStack = (0, middleware_stack_1.constructStack)(); + this.config = config; + } + send(command, optionsOrCb, cb) { + const options = typeof optionsOrCb !== "function" ? optionsOrCb : undefined; + const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb; + const handler = command.resolveMiddleware(this.middlewareStack, this.config, options); + if (callback) { + handler(command) + .then((result) => callback(null, result.output), (err) => callback(err)) + .catch(() => { }); + } + else { + return handler(command).then((result) => result.output); + } + } + destroy() { + if (this.config.requestHandler.destroy) + this.config.requestHandler.destroy(); + } +} +exports.Client = Client; + + +/***/ }), + +/***/ 4014: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Command = void 0; +const middleware_stack_1 = __nccwpck_require__(11461); +class Command { + constructor() { + this.middlewareStack = (0, middleware_stack_1.constructStack)(); + } +} +exports.Command = Command; + + +/***/ }), + +/***/ 78392: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.SENSITIVE_STRING = void 0; +exports.SENSITIVE_STRING = "***SensitiveInformation***"; + + +/***/ }), + +/***/ 24695: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.parseEpochTimestamp = exports.parseRfc7231DateTime = exports.parseRfc3339DateTime = exports.dateToUtcString = void 0; +const parse_utils_1 = __nccwpck_require__(34014); +const DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; +const MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; +function dateToUtcString(date) { + const year = date.getUTCFullYear(); + const month = date.getUTCMonth(); + const dayOfWeek = date.getUTCDay(); + const dayOfMonthInt = date.getUTCDate(); + const hoursInt = date.getUTCHours(); + const minutesInt = date.getUTCMinutes(); + const secondsInt = date.getUTCSeconds(); + const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`; + const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`; + const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`; + const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`; + return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`; +} +exports.dateToUtcString = dateToUtcString; +const RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/); +const parseRfc3339DateTime = (value) => { + if (value === null || value === undefined) { + return undefined; + } + if (typeof value !== "string") { + throw new TypeError("RFC-3339 date-times must be expressed as strings"); + } + const match = RFC3339.exec(value); + if (!match) { + throw new TypeError("Invalid RFC-3339 date-time value"); + } + const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; + const year = (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)); + const month = parseDateValue(monthStr, "month", 1, 12); + const day = parseDateValue(dayStr, "day", 1, 31); + return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); +}; +exports.parseRfc3339DateTime = parseRfc3339DateTime; +const IMF_FIXDATE = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/); +const RFC_850_DATE = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/); +const ASC_TIME = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/); +const parseRfc7231DateTime = (value) => { + if (value === null || value === undefined) { + return undefined; + } + if (typeof value !== "string") { + throw new TypeError("RFC-7231 date-times must be expressed as strings"); + } + let match = IMF_FIXDATE.exec(value); + if (match) { + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); + } + match = RFC_850_DATE.exec(value); + if (match) { + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { + hours, + minutes, + seconds, + fractionalMilliseconds, + })); + } + match = ASC_TIME.exec(value); + if (match) { + const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; + return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); + } + throw new TypeError("Invalid RFC-7231 date-time value"); +}; +exports.parseRfc7231DateTime = parseRfc7231DateTime; +const parseEpochTimestamp = (value) => { + if (value === null || value === undefined) { + return undefined; + } + let valueAsDouble; + if (typeof value === "number") { + valueAsDouble = value; + } + else if (typeof value === "string") { + valueAsDouble = (0, parse_utils_1.strictParseDouble)(value); + } + else { + throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation"); + } + if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) { + throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics"); + } + return new Date(Math.round(valueAsDouble * 1000)); +}; +exports.parseEpochTimestamp = parseEpochTimestamp; +const buildDate = (year, month, day, time) => { + const adjustedMonth = month - 1; + validateDayOfMonth(year, adjustedMonth, day); + return new Date(Date.UTC(year, adjustedMonth, day, parseDateValue(time.hours, "hour", 0, 23), parseDateValue(time.minutes, "minute", 0, 59), parseDateValue(time.seconds, "seconds", 0, 60), parseMilliseconds(time.fractionalMilliseconds))); +}; +const parseTwoDigitYear = (value) => { + const thisYear = new Date().getUTCFullYear(); + const valueInThisCentury = Math.floor(thisYear / 100) * 100 + (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(value)); + if (valueInThisCentury < thisYear) { + return valueInThisCentury + 100; + } + return valueInThisCentury; +}; +const FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1000; +const adjustRfc850Year = (input) => { + if (input.getTime() - new Date().getTime() > FIFTY_YEARS_IN_MILLIS) { + return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds())); + } + return input; +}; +const parseMonthByShortName = (value) => { + const monthIdx = MONTHS.indexOf(value); + if (monthIdx < 0) { + throw new TypeError(`Invalid month: ${value}`); + } + return monthIdx + 1; +}; +const DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; +const validateDayOfMonth = (year, month, day) => { + let maxDays = DAYS_IN_MONTH[month]; + if (month === 1 && isLeapYear(year)) { + maxDays = 29; + } + if (day > maxDays) { + throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`); + } +}; +const isLeapYear = (year) => { + return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); +}; +const parseDateValue = (value, type, lower, upper) => { + const dateVal = (0, parse_utils_1.strictParseByte)(stripLeadingZeroes(value)); + if (dateVal < lower || dateVal > upper) { + throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`); + } + return dateVal; +}; +const parseMilliseconds = (value) => { + if (value === null || value === undefined) { + return 0; + } + return (0, parse_utils_1.strictParseFloat32)("0." + value) * 1000; +}; +const stripLeadingZeroes = (value) => { + let idx = 0; + while (idx < value.length - 1 && value.charAt(idx) === "0") { + idx++; + } + if (idx === 0) { + return value; + } + return value.slice(idx); +}; + + +/***/ }), + +/***/ 47222: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.throwDefaultError = void 0; +const exceptions_1 = __nccwpck_require__(57778); +const throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => { + const $metadata = deserializeMetadata(output); + const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; + const response = new exceptionCtor({ + name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError", + $fault: "client", + $metadata, + }); + throw (0, exceptions_1.decorateServiceException)(response, parsedBody); +}; +exports.throwDefaultError = throwDefaultError; +const deserializeMetadata = (output) => { + var _a; + return ({ + httpStatusCode: output.statusCode, + requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"], + extendedRequestId: output.headers["x-amz-id-2"], + cfId: output.headers["x-amz-cf-id"], + }); +}; + + +/***/ }), + +/***/ 33088: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.loadConfigsForDefaultMode = void 0; +const loadConfigsForDefaultMode = (mode) => { + switch (mode) { + case "standard": + return { + retryMode: "standard", + connectionTimeout: 3100, + }; + case "in-region": + return { + retryMode: "standard", + connectionTimeout: 1100, + }; + case "cross-region": + return { + retryMode: "standard", + connectionTimeout: 3100, + }; + case "mobile": + return { + retryMode: "standard", + connectionTimeout: 30000, + }; + default: + return {}; + } +}; +exports.loadConfigsForDefaultMode = loadConfigsForDefaultMode; + + +/***/ }), + +/***/ 12363: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.emitWarningIfUnsupportedVersion = void 0; +let warningEmitted = false; +const emitWarningIfUnsupportedVersion = (version) => { + if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 14) { + warningEmitted = true; + process.emitWarning(`The AWS SDK for JavaScript (v3) will\n` + + `no longer support Node.js ${version} on November 1, 2022.\n\n` + + `To continue receiving updates to AWS services, bug fixes, and security\n` + + `updates please upgrade to Node.js 14.x or later.\n\n` + + `For details, please refer our blog post: https://a.co/48dbdYz`, `NodeDeprecationWarning`); + } +}; +exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion; + + +/***/ }), + +/***/ 57778: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.decorateServiceException = exports.ServiceException = void 0; +class ServiceException extends Error { + constructor(options) { + super(options.message); + Object.setPrototypeOf(this, ServiceException.prototype); + this.name = options.name; + this.$fault = options.$fault; + this.$metadata = options.$metadata; + } +} +exports.ServiceException = ServiceException; +const decorateServiceException = (exception, additions = {}) => { + Object.entries(additions) + .filter(([, v]) => v !== undefined) + .forEach(([k, v]) => { + if (exception[k] == undefined || exception[k] === "") { + exception[k] = v; + } + }); + const message = exception.message || exception.Message || "UnknownError"; + exception.message = message; + delete exception.Message; + return exception; +}; +exports.decorateServiceException = decorateServiceException; + + +/***/ }), + +/***/ 91927: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.extendedEncodeURIComponent = void 0; +function extendedEncodeURIComponent(str) { + return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { + return "%" + c.charCodeAt(0).toString(16).toUpperCase(); + }); +} +exports.extendedEncodeURIComponent = extendedEncodeURIComponent; + + +/***/ }), + +/***/ 86457: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getArrayIfSingleItem = void 0; +const getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray]; +exports.getArrayIfSingleItem = getArrayIfSingleItem; + + +/***/ }), + +/***/ 95830: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getValueFromTextNode = void 0; +const getValueFromTextNode = (obj) => { + const textNodeName = "#text"; + for (const key in obj) { + if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== undefined) { + obj[key] = obj[key][textNodeName]; + } + else if (typeof obj[key] === "object" && obj[key] !== null) { + obj[key] = (0, exports.getValueFromTextNode)(obj[key]); + } + } + return obj; +}; +exports.getValueFromTextNode = getValueFromTextNode; + + +/***/ }), + +/***/ 4963: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(36034), exports); +tslib_1.__exportStar(__nccwpck_require__(4014), exports); +tslib_1.__exportStar(__nccwpck_require__(78392), exports); +tslib_1.__exportStar(__nccwpck_require__(24695), exports); +tslib_1.__exportStar(__nccwpck_require__(47222), exports); +tslib_1.__exportStar(__nccwpck_require__(33088), exports); +tslib_1.__exportStar(__nccwpck_require__(12363), exports); +tslib_1.__exportStar(__nccwpck_require__(57778), exports); +tslib_1.__exportStar(__nccwpck_require__(91927), exports); +tslib_1.__exportStar(__nccwpck_require__(86457), exports); +tslib_1.__exportStar(__nccwpck_require__(95830), exports); +tslib_1.__exportStar(__nccwpck_require__(93613), exports); +tslib_1.__exportStar(__nccwpck_require__(21599), exports); +tslib_1.__exportStar(__nccwpck_require__(34014), exports); +tslib_1.__exportStar(__nccwpck_require__(80308), exports); +tslib_1.__exportStar(__nccwpck_require__(38000), exports); +tslib_1.__exportStar(__nccwpck_require__(48730), exports); + + +/***/ }), + +/***/ 93613: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.LazyJsonString = exports.StringWrapper = void 0; +const StringWrapper = function () { + const Class = Object.getPrototypeOf(this).constructor; + const Constructor = Function.bind.apply(String, [null, ...arguments]); + const instance = new Constructor(); + Object.setPrototypeOf(instance, Class.prototype); + return instance; +}; +exports.StringWrapper = StringWrapper; +exports.StringWrapper.prototype = Object.create(String.prototype, { + constructor: { + value: exports.StringWrapper, + enumerable: false, + writable: true, + configurable: true, + }, +}); +Object.setPrototypeOf(exports.StringWrapper, String); +class LazyJsonString extends exports.StringWrapper { + deserializeJSON() { + return JSON.parse(super.toString()); + } + toJSON() { + return super.toString(); + } + static fromObject(object) { + if (object instanceof LazyJsonString) { + return object; + } + else if (object instanceof String || typeof object === "string") { + return new LazyJsonString(object); + } + return new LazyJsonString(JSON.stringify(object)); + } +} +exports.LazyJsonString = LazyJsonString; + + +/***/ }), + +/***/ 21599: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.convertMap = exports.map = void 0; +function map(arg0, arg1, arg2) { + let target; + let filter; + let instructions; + if (typeof arg1 === "undefined" && typeof arg2 === "undefined") { + target = {}; + instructions = arg0; + } + else { + target = arg0; + if (typeof arg1 === "function") { + filter = arg1; + instructions = arg2; + return mapWithFilter(target, filter, instructions); + } + else { + instructions = arg1; + } + } + for (const key of Object.keys(instructions)) { + if (!Array.isArray(instructions[key])) { + target[key] = instructions[key]; + continue; + } + let [filter, value] = instructions[key]; + if (typeof value === "function") { + let _value; + const defaultFilterPassed = filter === undefined && (_value = value()) != null; + const customFilterPassed = (typeof filter === "function" && !!filter(void 0)) || (typeof filter !== "function" && !!filter); + if (defaultFilterPassed) { + target[key] = _value; + } + else if (customFilterPassed) { + target[key] = value(); + } + } + else { + const defaultFilterPassed = filter === undefined && value != null; + const customFilterPassed = (typeof filter === "function" && !!filter(value)) || (typeof filter !== "function" && !!filter); + if (defaultFilterPassed || customFilterPassed) { + target[key] = value; + } + } + } + return target; +} +exports.map = map; +const convertMap = (target) => { + const output = {}; + for (const [k, v] of Object.entries(target || {})) { + output[k] = [, v]; + } + return output; +}; +exports.convertMap = convertMap; +const mapWithFilter = (target, filter, instructions) => { + return map(target, Object.entries(instructions).reduce((_instructions, [key, value]) => { + if (Array.isArray(value)) { + _instructions[key] = value; + } + else { + if (typeof value === "function") { + _instructions[key] = [filter, value()]; + } + else { + _instructions[key] = [filter, value]; + } + } + return _instructions; + }, {})); +}; + + +/***/ }), + +/***/ 34014: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.strictParseByte = exports.strictParseShort = exports.strictParseInt32 = exports.strictParseInt = exports.strictParseLong = exports.limitedParseFloat32 = exports.limitedParseFloat = exports.handleFloat = exports.limitedParseDouble = exports.strictParseFloat32 = exports.strictParseFloat = exports.strictParseDouble = exports.expectUnion = exports.expectString = exports.expectObject = exports.expectNonNull = exports.expectByte = exports.expectShort = exports.expectInt32 = exports.expectInt = exports.expectLong = exports.expectFloat32 = exports.expectNumber = exports.expectBoolean = exports.parseBoolean = void 0; +const parseBoolean = (value) => { + switch (value) { + case "true": + return true; + case "false": + return false; + default: + throw new Error(`Unable to parse boolean value "${value}"`); + } +}; +exports.parseBoolean = parseBoolean; +const expectBoolean = (value) => { + if (value === null || value === undefined) { + return undefined; + } + if (typeof value === "boolean") { + return value; + } + throw new TypeError(`Expected boolean, got ${typeof value}`); +}; +exports.expectBoolean = expectBoolean; +const expectNumber = (value) => { + if (value === null || value === undefined) { + return undefined; + } + if (typeof value === "number") { + return value; + } + throw new TypeError(`Expected number, got ${typeof value}`); +}; +exports.expectNumber = expectNumber; +const MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); +const expectFloat32 = (value) => { + const expected = (0, exports.expectNumber)(value); + if (expected !== undefined && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { + if (Math.abs(expected) > MAX_FLOAT) { + throw new TypeError(`Expected 32-bit float, got ${value}`); + } + } + return expected; +}; +exports.expectFloat32 = expectFloat32; +const expectLong = (value) => { + if (value === null || value === undefined) { + return undefined; + } + if (Number.isInteger(value) && !Number.isNaN(value)) { + return value; + } + throw new TypeError(`Expected integer, got ${typeof value}`); +}; +exports.expectLong = expectLong; +exports.expectInt = exports.expectLong; +const expectInt32 = (value) => expectSizedInt(value, 32); +exports.expectInt32 = expectInt32; +const expectShort = (value) => expectSizedInt(value, 16); +exports.expectShort = expectShort; +const expectByte = (value) => expectSizedInt(value, 8); +exports.expectByte = expectByte; +const expectSizedInt = (value, size) => { + const expected = (0, exports.expectLong)(value); + if (expected !== undefined && castInt(expected, size) !== expected) { + throw new TypeError(`Expected ${size}-bit integer, got ${value}`); + } + return expected; +}; +const castInt = (value, size) => { + switch (size) { + case 32: + return Int32Array.of(value)[0]; + case 16: + return Int16Array.of(value)[0]; + case 8: + return Int8Array.of(value)[0]; + } +}; +const expectNonNull = (value, location) => { + if (value === null || value === undefined) { + if (location) { + throw new TypeError(`Expected a non-null value for ${location}`); + } + throw new TypeError("Expected a non-null value"); + } + return value; +}; +exports.expectNonNull = expectNonNull; +const expectObject = (value) => { + if (value === null || value === undefined) { + return undefined; + } + if (typeof value === "object" && !Array.isArray(value)) { + return value; + } + throw new TypeError(`Expected object, got ${typeof value}`); +}; +exports.expectObject = expectObject; +const expectString = (value) => { + if (value === null || value === undefined) { + return undefined; + } + if (typeof value === "string") { + return value; + } + throw new TypeError(`Expected string, got ${typeof value}`); +}; +exports.expectString = expectString; +const expectUnion = (value) => { + if (value === null || value === undefined) { + return undefined; + } + const asObject = (0, exports.expectObject)(value); + const setKeys = Object.entries(asObject) + .filter(([_, v]) => v !== null && v !== undefined) + .map(([k, _]) => k); + if (setKeys.length === 0) { + throw new TypeError(`Unions must have exactly one non-null member`); + } + if (setKeys.length > 1) { + throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`); + } + return asObject; +}; +exports.expectUnion = expectUnion; +const strictParseDouble = (value) => { + if (typeof value == "string") { + return (0, exports.expectNumber)(parseNumber(value)); + } + return (0, exports.expectNumber)(value); +}; +exports.strictParseDouble = strictParseDouble; +exports.strictParseFloat = exports.strictParseDouble; +const strictParseFloat32 = (value) => { + if (typeof value == "string") { + return (0, exports.expectFloat32)(parseNumber(value)); + } + return (0, exports.expectFloat32)(value); +}; +exports.strictParseFloat32 = strictParseFloat32; +const NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g; +const parseNumber = (value) => { + const matches = value.match(NUMBER_REGEX); + if (matches === null || matches[0].length !== value.length) { + throw new TypeError(`Expected real number, got implicit NaN`); + } + return parseFloat(value); +}; +const limitedParseDouble = (value) => { + if (typeof value == "string") { + return parseFloatString(value); + } + return (0, exports.expectNumber)(value); +}; +exports.limitedParseDouble = limitedParseDouble; +exports.handleFloat = exports.limitedParseDouble; +exports.limitedParseFloat = exports.limitedParseDouble; +const limitedParseFloat32 = (value) => { + if (typeof value == "string") { + return parseFloatString(value); + } + return (0, exports.expectFloat32)(value); +}; +exports.limitedParseFloat32 = limitedParseFloat32; +const parseFloatString = (value) => { + switch (value) { + case "NaN": + return NaN; + case "Infinity": + return Infinity; + case "-Infinity": + return -Infinity; + default: + throw new Error(`Unable to parse float value: ${value}`); + } +}; +const strictParseLong = (value) => { + if (typeof value === "string") { + return (0, exports.expectLong)(parseNumber(value)); + } + return (0, exports.expectLong)(value); +}; +exports.strictParseLong = strictParseLong; +exports.strictParseInt = exports.strictParseLong; +const strictParseInt32 = (value) => { + if (typeof value === "string") { + return (0, exports.expectInt32)(parseNumber(value)); + } + return (0, exports.expectInt32)(value); +}; +exports.strictParseInt32 = strictParseInt32; +const strictParseShort = (value) => { + if (typeof value === "string") { + return (0, exports.expectShort)(parseNumber(value)); + } + return (0, exports.expectShort)(value); +}; +exports.strictParseShort = strictParseShort; +const strictParseByte = (value) => { + if (typeof value === "string") { + return (0, exports.expectByte)(parseNumber(value)); + } + return (0, exports.expectByte)(value); +}; +exports.strictParseByte = strictParseByte; + + +/***/ }), + +/***/ 80308: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolvedPath = void 0; +const extended_encode_uri_component_1 = __nccwpck_require__(91927); +const resolvedPath = (resolvedPath, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { + if (input != null && input[memberName] !== undefined) { + const labelValue = labelValueProvider(); + if (labelValue.length <= 0) { + throw new Error("Empty value provided for input HTTP label: " + memberName + "."); + } + resolvedPath = resolvedPath.replace(uriLabel, isGreedyLabel + ? labelValue + .split("/") + .map((segment) => (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(segment)) + .join("/") + : (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(labelValue)); + } + else { + throw new Error("No value provided for input HTTP label: " + memberName + "."); + } + return resolvedPath; +}; +exports.resolvedPath = resolvedPath; + + +/***/ }), + +/***/ 38000: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.serializeFloat = void 0; +const serializeFloat = (value) => { + if (value !== value) { + return "NaN"; + } + switch (value) { + case Infinity: + return "Infinity"; + case -Infinity: + return "-Infinity"; + default: + return value; + } +}; +exports.serializeFloat = serializeFloat; + + +/***/ }), + +/***/ 48730: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.splitEvery = void 0; +function splitEvery(value, delimiter, numDelimiters) { + if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { + throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery."); + } + const segments = value.split(delimiter); + if (numDelimiters === 1) { + return segments; + } + const compoundSegments = []; + let currentSegment = ""; + for (let i = 0; i < segments.length; i++) { + if (currentSegment === "") { + currentSegment = segments[i]; + } + else { + currentSegment += delimiter + segments[i]; + } + if ((i + 1) % numDelimiters === 0) { + compoundSegments.push(currentSegment); + currentSegment = ""; + } + } + if (currentSegment !== "") { + compoundSegments.push(currentSegment); + } + return compoundSegments; +} +exports.splitEvery = splitEvery; + + +/***/ }), + +/***/ 2992: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.parseUrl = void 0; +const querystring_parser_1 = __nccwpck_require__(47424); +const parseUrl = (url) => { + const { hostname, pathname, port, protocol, search } = new URL(url); + let query; + if (search) { + query = (0, querystring_parser_1.parseQueryString)(search); + } + return { + hostname, + port: port ? parseInt(port) : undefined, + protocol, + path: pathname, + query, + }; +}; +exports.parseUrl = parseUrl; + + +/***/ }), + +/***/ 18588: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.toBase64 = exports.fromBase64 = void 0; +const util_buffer_from_1 = __nccwpck_require__(36010); +const BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/; +function fromBase64(input) { + if ((input.length * 3) % 4 !== 0) { + throw new TypeError(`Incorrect padding on base64 string.`); + } + if (!BASE64_REGEX.exec(input)) { + throw new TypeError(`Invalid base64 string.`); + } + const buffer = (0, util_buffer_from_1.fromString)(input, "base64"); + return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); +} +exports.fromBase64 = fromBase64; +function toBase64(input) { + return (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("base64"); +} +exports.toBase64 = toBase64; + + +/***/ }), + +/***/ 89190: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.calculateBodyLength = void 0; +const fs_1 = __nccwpck_require__(57147); +const calculateBodyLength = (body) => { + if (!body) { + return 0; + } + if (typeof body === "string") { + return Buffer.from(body).length; + } + else if (typeof body.byteLength === "number") { + return body.byteLength; + } + else if (typeof body.size === "number") { + return body.size; + } + else if (typeof body.path === "string" || Buffer.isBuffer(body.path)) { + return (0, fs_1.lstatSync)(body.path).size; + } + else if (typeof body.fd === "number") { + return (0, fs_1.fstatSync)(body.fd).size; + } + throw new Error(`Body Length computation failed for ${body}`); +}; +exports.calculateBodyLength = calculateBodyLength; + + +/***/ }), + +/***/ 74147: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(89190), exports); + + +/***/ }), + +/***/ 36010: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fromString = exports.fromArrayBuffer = void 0; +const is_array_buffer_1 = __nccwpck_require__(69126); +const buffer_1 = __nccwpck_require__(14300); +const fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => { + if (!(0, is_array_buffer_1.isArrayBuffer)(input)) { + throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`); + } + return buffer_1.Buffer.from(input, offset, length); +}; +exports.fromArrayBuffer = fromArrayBuffer; +const fromString = (input, encoding) => { + if (typeof input !== "string") { + throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`); + } + return encoding ? buffer_1.Buffer.from(input, encoding) : buffer_1.Buffer.from(input); +}; +exports.fromString = fromString; + + +/***/ }), + +/***/ 79509: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.booleanSelector = exports.SelectorType = void 0; +var SelectorType; +(function (SelectorType) { + SelectorType["ENV"] = "env"; + SelectorType["CONFIG"] = "shared config entry"; +})(SelectorType = exports.SelectorType || (exports.SelectorType = {})); +const booleanSelector = (obj, key, type) => { + if (!(key in obj)) + return undefined; + if (obj[key] === "true") + return true; + if (obj[key] === "false") + return false; + throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`); +}; +exports.booleanSelector = booleanSelector; + + +/***/ }), + +/***/ 6168: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(79509), exports); + + +/***/ }), + +/***/ 16488: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.IMDS_REGION_PATH = exports.DEFAULTS_MODE_OPTIONS = exports.ENV_IMDS_DISABLED = exports.AWS_DEFAULT_REGION_ENV = exports.AWS_REGION_ENV = exports.AWS_EXECUTION_ENV = void 0; +exports.AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV"; +exports.AWS_REGION_ENV = "AWS_REGION"; +exports.AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION"; +exports.ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; +exports.DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"]; +exports.IMDS_REGION_PATH = "/latest/meta-data/placement/region"; + + +/***/ }), + +/***/ 28450: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = void 0; +const AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE"; +const AWS_DEFAULTS_MODE_CONFIG = "defaults_mode"; +exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => { + return env[AWS_DEFAULTS_MODE_ENV]; + }, + configFileSelector: (profile) => { + return profile[AWS_DEFAULTS_MODE_CONFIG]; + }, + default: "legacy", +}; + + +/***/ }), + +/***/ 74243: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(18238), exports); + + +/***/ }), + +/***/ 18238: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.resolveDefaultsModeConfig = void 0; +const config_resolver_1 = __nccwpck_require__(56153); +const credential_provider_imds_1 = __nccwpck_require__(25898); +const node_config_provider_1 = __nccwpck_require__(87684); +const property_provider_1 = __nccwpck_require__(74462); +const constants_1 = __nccwpck_require__(16488); +const defaultsModeConfig_1 = __nccwpck_require__(28450); +const resolveDefaultsModeConfig = ({ region = (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS), defaultsMode = (0, node_config_provider_1.loadConfig)(defaultsModeConfig_1.NODE_DEFAULTS_MODE_CONFIG_OPTIONS), } = {}) => (0, property_provider_1.memoize)(async () => { + const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode; + switch (mode === null || mode === void 0 ? void 0 : mode.toLowerCase()) { + case "auto": + return resolveNodeDefaultsModeAuto(region); + case "in-region": + case "cross-region": + case "mobile": + case "standard": + case "legacy": + return Promise.resolve(mode === null || mode === void 0 ? void 0 : mode.toLocaleLowerCase()); + case undefined: + return Promise.resolve("legacy"); + default: + throw new Error(`Invalid parameter for "defaultsMode", expect ${constants_1.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${mode}`); + } +}); +exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig; +const resolveNodeDefaultsModeAuto = async (clientRegion) => { + if (clientRegion) { + const resolvedRegion = typeof clientRegion === "function" ? await clientRegion() : clientRegion; + const inferredRegion = await inferPhysicalRegion(); + if (!inferredRegion) { + return "standard"; + } + if (resolvedRegion === inferredRegion) { + return "in-region"; + } + else { + return "cross-region"; + } + } + return "standard"; +}; +const inferPhysicalRegion = async () => { + var _a; + if (process.env[constants_1.AWS_EXECUTION_ENV] && (process.env[constants_1.AWS_REGION_ENV] || process.env[constants_1.AWS_DEFAULT_REGION_ENV])) { + return (_a = process.env[constants_1.AWS_REGION_ENV]) !== null && _a !== void 0 ? _a : process.env[constants_1.AWS_DEFAULT_REGION_ENV]; + } + if (!process.env[constants_1.ENV_IMDS_DISABLED]) { + try { + const endpoint = await (0, credential_provider_imds_1.getInstanceMetadataEndpoint)(); + return (await (0, credential_provider_imds_1.httpRequest)({ ...endpoint, path: constants_1.IMDS_REGION_PATH })).toString(); + } + catch (e) { + } + } +}; + + +/***/ }), + +/***/ 1968: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.toHex = exports.fromHex = void 0; +const SHORT_TO_HEX = {}; +const HEX_TO_SHORT = {}; +for (let i = 0; i < 256; i++) { + let encodedByte = i.toString(16).toLowerCase(); + if (encodedByte.length === 1) { + encodedByte = `0${encodedByte}`; + } + SHORT_TO_HEX[i] = encodedByte; + HEX_TO_SHORT[encodedByte] = i; +} +function fromHex(encoded) { + if (encoded.length % 2 !== 0) { + throw new Error("Hex encoded strings must have an even number length"); + } + const out = new Uint8Array(encoded.length / 2); + for (let i = 0; i < encoded.length; i += 2) { + const encodedByte = encoded.slice(i, i + 2).toLowerCase(); + if (encodedByte in HEX_TO_SHORT) { + out[i / 2] = HEX_TO_SHORT[encodedByte]; + } + else { + throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`); + } + } + return out; +} +exports.fromHex = fromHex; +function toHex(bytes) { + let out = ""; + for (let i = 0; i < bytes.byteLength; i++) { + out += SHORT_TO_HEX[bytes[i]]; + } + return out; +} +exports.toHex = toHex; + + +/***/ }), + +/***/ 10236: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(77776), exports); + + +/***/ }), + +/***/ 77776: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.normalizeProvider = void 0; +const normalizeProvider = (input) => { + if (typeof input === "function") + return input; + const promisified = Promise.resolve(input); + return () => promisified; +}; +exports.normalizeProvider = normalizeProvider; + + +/***/ }), + +/***/ 15774: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.escapeUriPath = void 0; +const escape_uri_1 = __nccwpck_require__(24652); +const escapeUriPath = (uri) => uri.split("/").map(escape_uri_1.escapeUri).join("/"); +exports.escapeUriPath = escapeUriPath; + + +/***/ }), + +/***/ 24652: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.escapeUri = void 0; +const escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); +exports.escapeUri = escapeUri; +const hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`; + + +/***/ }), + +/***/ 57952: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(24652), exports); +tslib_1.__exportStar(__nccwpck_require__(15774), exports); + + +/***/ }), + +/***/ 98095: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.defaultUserAgent = exports.UA_APP_ID_INI_NAME = exports.UA_APP_ID_ENV_NAME = void 0; +const node_config_provider_1 = __nccwpck_require__(87684); +const os_1 = __nccwpck_require__(22037); +const process_1 = __nccwpck_require__(77282); +const is_crt_available_1 = __nccwpck_require__(68390); +exports.UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID"; +exports.UA_APP_ID_INI_NAME = "sdk-ua-app-id"; +const defaultUserAgent = ({ serviceId, clientVersion }) => { + const sections = [ + ["aws-sdk-js", clientVersion], + [`os/${(0, os_1.platform)()}`, (0, os_1.release)()], + ["lang/js"], + ["md/nodejs", `${process_1.versions.node}`], + ]; + const crtAvailable = (0, is_crt_available_1.isCrtAvailable)(); + if (crtAvailable) { + sections.push(crtAvailable); + } + if (serviceId) { + sections.push([`api/${serviceId}`, clientVersion]); + } + if (process_1.env.AWS_EXECUTION_ENV) { + sections.push([`exec-env/${process_1.env.AWS_EXECUTION_ENV}`]); + } + const appIdPromise = (0, node_config_provider_1.loadConfig)({ + environmentVariableSelector: (env) => env[exports.UA_APP_ID_ENV_NAME], + configFileSelector: (profile) => profile[exports.UA_APP_ID_INI_NAME], + default: undefined, + })(); + let resolvedUserAgent = undefined; + return async () => { + if (!resolvedUserAgent) { + const appId = await appIdPromise; + resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections]; + } + return resolvedUserAgent; + }; +}; +exports.defaultUserAgent = defaultUserAgent; + + +/***/ }), + +/***/ 68390: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isCrtAvailable = void 0; +const isCrtAvailable = () => { + try { + if ( true && __nccwpck_require__(87578)) { + return ["md/crt-avail"]; + } + return null; + } + catch (e) { + return null; + } +}; +exports.isCrtAvailable = isCrtAvailable; + + +/***/ }), + +/***/ 66278: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.toUtf8 = exports.fromUtf8 = void 0; +const util_buffer_from_1 = __nccwpck_require__(36010); +const fromUtf8 = (input) => { + const buf = (0, util_buffer_from_1.fromString)(input, "utf8"); + return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); +}; +exports.fromUtf8 = fromUtf8; +const toUtf8 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8"); +exports.toUtf8 = toUtf8; + + +/***/ }), + +/***/ 38880: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.createWaiter = void 0; +const poller_1 = __nccwpck_require__(92105); +const utils_1 = __nccwpck_require__(36001); +const waiter_1 = __nccwpck_require__(4996); +const abortTimeout = async (abortSignal) => { + return new Promise((resolve) => { + abortSignal.onabort = () => resolve({ state: waiter_1.WaiterState.ABORTED }); + }); +}; +const createWaiter = async (options, input, acceptorChecks) => { + const params = { + ...waiter_1.waiterServiceDefaults, + ...options, + }; + (0, utils_1.validateWaiterOptions)(params); + const exitConditions = [(0, poller_1.runPolling)(params, input, acceptorChecks)]; + if (options.abortController) { + exitConditions.push(abortTimeout(options.abortController.signal)); + } + if (options.abortSignal) { + exitConditions.push(abortTimeout(options.abortSignal)); + } + return Promise.race(exitConditions); +}; +exports.createWaiter = createWaiter; + + +/***/ }), + +/***/ 21627: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(38880), exports); +tslib_1.__exportStar(__nccwpck_require__(4996), exports); + + +/***/ }), + +/***/ 92105: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.runPolling = void 0; +const sleep_1 = __nccwpck_require__(17397); +const waiter_1 = __nccwpck_require__(4996); +const exponentialBackoffWithJitter = (minDelay, maxDelay, attemptCeiling, attempt) => { + if (attempt > attemptCeiling) + return maxDelay; + const delay = minDelay * 2 ** (attempt - 1); + return randomInRange(minDelay, delay); +}; +const randomInRange = (min, max) => min + Math.random() * (max - min); +const runPolling = async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => { + var _a; + const { state } = await acceptorChecks(client, input); + if (state !== waiter_1.WaiterState.RETRY) { + return { state }; + } + let currentAttempt = 1; + const waitUntil = Date.now() + maxWaitTime * 1000; + const attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1; + while (true) { + if (((_a = abortController === null || abortController === void 0 ? void 0 : abortController.signal) === null || _a === void 0 ? void 0 : _a.aborted) || (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted)) { + return { state: waiter_1.WaiterState.ABORTED }; + } + const delay = exponentialBackoffWithJitter(minDelay, maxDelay, attemptCeiling, currentAttempt); + if (Date.now() + delay * 1000 > waitUntil) { + return { state: waiter_1.WaiterState.TIMEOUT }; + } + await (0, sleep_1.sleep)(delay); + const { state } = await acceptorChecks(client, input); + if (state !== waiter_1.WaiterState.RETRY) { + return { state }; + } + currentAttempt += 1; + } +}; +exports.runPolling = runPolling; + + +/***/ }), + +/***/ 36001: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const tslib_1 = __nccwpck_require__(4351); +tslib_1.__exportStar(__nccwpck_require__(17397), exports); +tslib_1.__exportStar(__nccwpck_require__(23931), exports); + + +/***/ }), + +/***/ 17397: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.sleep = void 0; +const sleep = (seconds) => { + return new Promise((resolve) => setTimeout(resolve, seconds * 1000)); +}; +exports.sleep = sleep; + + +/***/ }), + +/***/ 23931: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.validateWaiterOptions = void 0; +const validateWaiterOptions = (options) => { + if (options.maxWaitTime < 1) { + throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`); + } + else if (options.minDelay < 1) { + throw new Error(`WaiterConfiguration.minDelay must be greater than 0`); + } + else if (options.maxDelay < 1) { + throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`); + } + else if (options.maxWaitTime <= options.minDelay) { + throw new Error(`WaiterConfiguration.maxWaitTime [${options.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`); + } + else if (options.maxDelay < options.minDelay) { + throw new Error(`WaiterConfiguration.maxDelay [${options.maxDelay}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`); + } +}; +exports.validateWaiterOptions = validateWaiterOptions; + + +/***/ }), + +/***/ 4996: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.checkExceptions = exports.WaiterState = exports.waiterServiceDefaults = void 0; +exports.waiterServiceDefaults = { + minDelay: 2, + maxDelay: 120, +}; +var WaiterState; +(function (WaiterState) { + WaiterState["ABORTED"] = "ABORTED"; + WaiterState["FAILURE"] = "FAILURE"; + WaiterState["SUCCESS"] = "SUCCESS"; + WaiterState["RETRY"] = "RETRY"; + WaiterState["TIMEOUT"] = "TIMEOUT"; +})(WaiterState = exports.WaiterState || (exports.WaiterState = {})); +const checkExceptions = (result) => { + if (result.state === WaiterState.ABORTED) { + const abortError = new Error(`${JSON.stringify({ + ...result, + reason: "Request was aborted", + })}`); + abortError.name = "AbortError"; + throw abortError; + } + else if (result.state === WaiterState.TIMEOUT) { + const timeoutError = new Error(`${JSON.stringify({ + ...result, + reason: "Waiter has timed out", + })}`); + timeoutError.name = "TimeoutError"; + throw timeoutError; + } + else if (result.state !== WaiterState.SUCCESS) { + throw new Error(`${JSON.stringify({ result })}`); + } + return result; +}; +exports.checkExceptions = checkExceptions; + + +/***/ }), + +/***/ 85107: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.decodeHTML = exports.decodeHTMLStrict = exports.decodeXML = void 0; +var entities_json_1 = __importDefault(__nccwpck_require__(59323)); +var legacy_json_1 = __importDefault(__nccwpck_require__(29591)); +var xml_json_1 = __importDefault(__nccwpck_require__(2586)); +var decode_codepoint_1 = __importDefault(__nccwpck_require__(31227)); +var strictEntityRe = /&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g; +exports.decodeXML = getStrictDecoder(xml_json_1.default); +exports.decodeHTMLStrict = getStrictDecoder(entities_json_1.default); +function getStrictDecoder(map) { + var replace = getReplacer(map); + return function (str) { return String(str).replace(strictEntityRe, replace); }; +} +var sorter = function (a, b) { return (a < b ? 1 : -1); }; +exports.decodeHTML = (function () { + var legacy = Object.keys(legacy_json_1.default).sort(sorter); + var keys = Object.keys(entities_json_1.default).sort(sorter); + for (var i = 0, j = 0; i < keys.length; i++) { + if (legacy[j] === keys[i]) { + keys[i] += ";?"; + j++; + } + else { + keys[i] += ";"; + } + } + var re = new RegExp("&(?:" + keys.join("|") + "|#[xX][\\da-fA-F]+;?|#\\d+;?)", "g"); + var replace = getReplacer(entities_json_1.default); + function replacer(str) { + if (str.substr(-1) !== ";") + str += ";"; + return replace(str); + } + // TODO consider creating a merged map + return function (str) { return String(str).replace(re, replacer); }; +})(); +function getReplacer(map) { + return function replace(str) { + if (str.charAt(1) === "#") { + var secondChar = str.charAt(2); + if (secondChar === "X" || secondChar === "x") { + return decode_codepoint_1.default(parseInt(str.substr(3), 16)); + } + return decode_codepoint_1.default(parseInt(str.substr(2), 10)); + } + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing + return map[str.slice(1, -1)] || str; + }; +} + + +/***/ }), + +/***/ 31227: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +var decode_json_1 = __importDefault(__nccwpck_require__(33600)); +// Adapted from https://github.com/mathiasbynens/he/blob/master/src/he.js#L94-L119 +var fromCodePoint = +// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition +String.fromCodePoint || + function (codePoint) { + var output = ""; + if (codePoint > 0xffff) { + codePoint -= 0x10000; + output += String.fromCharCode(((codePoint >>> 10) & 0x3ff) | 0xd800); + codePoint = 0xdc00 | (codePoint & 0x3ff); + } + output += String.fromCharCode(codePoint); + return output; + }; +function decodeCodePoint(codePoint) { + if ((codePoint >= 0xd800 && codePoint <= 0xdfff) || codePoint > 0x10ffff) { + return "\uFFFD"; + } + if (codePoint in decode_json_1.default) { + codePoint = decode_json_1.default[codePoint]; + } + return fromCodePoint(codePoint); +} +exports["default"] = decodeCodePoint; + + +/***/ }), + +/***/ 2006: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = void 0; +var xml_json_1 = __importDefault(__nccwpck_require__(2586)); +var inverseXML = getInverseObj(xml_json_1.default); +var xmlReplacer = getInverseReplacer(inverseXML); +/** + * Encodes all non-ASCII characters, as well as characters not valid in XML + * documents using XML entities. + * + * If a character has no equivalent entity, a + * numeric hexadecimal reference (eg. `ü`) will be used. + */ +exports.encodeXML = getASCIIEncoder(inverseXML); +var entities_json_1 = __importDefault(__nccwpck_require__(59323)); +var inverseHTML = getInverseObj(entities_json_1.default); +var htmlReplacer = getInverseReplacer(inverseHTML); +/** + * Encodes all entities and non-ASCII characters in the input. + * + * This includes characters that are valid ASCII characters in HTML documents. + * For example `#` will be encoded as `#`. To get a more compact output, + * consider using the `encodeNonAsciiHTML` function. + * + * If a character has no equivalent entity, a + * numeric hexadecimal reference (eg. `ü`) will be used. + */ +exports.encodeHTML = getInverse(inverseHTML, htmlReplacer); +/** + * Encodes all non-ASCII characters, as well as characters not valid in HTML + * documents using HTML entities. + * + * If a character has no equivalent entity, a + * numeric hexadecimal reference (eg. `ü`) will be used. + */ +exports.encodeNonAsciiHTML = getASCIIEncoder(inverseHTML); +function getInverseObj(obj) { + return Object.keys(obj) + .sort() + .reduce(function (inverse, name) { + inverse[obj[name]] = "&" + name + ";"; + return inverse; + }, {}); +} +function getInverseReplacer(inverse) { + var single = []; + var multiple = []; + for (var _i = 0, _a = Object.keys(inverse); _i < _a.length; _i++) { + var k = _a[_i]; + if (k.length === 1) { + // Add value to single array + single.push("\\" + k); + } + else { + // Add value to multiple array + multiple.push(k); + } + } + // Add ranges to single characters. + single.sort(); + for (var start = 0; start < single.length - 1; start++) { + // Find the end of a run of characters + var end = start; + while (end < single.length - 1 && + single[end].charCodeAt(1) + 1 === single[end + 1].charCodeAt(1)) { + end += 1; + } + var count = 1 + end - start; + // We want to replace at least three characters + if (count < 3) + continue; + single.splice(start, count, single[start] + "-" + single[end]); + } + multiple.unshift("[" + single.join("") + "]"); + return new RegExp(multiple.join("|"), "g"); +} +// /[^\0-\x7F]/gu +var reNonASCII = /(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g; +var getCodePoint = +// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition +String.prototype.codePointAt != null + ? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + function (str) { return str.codePointAt(0); } + : // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae + function (c) { + return (c.charCodeAt(0) - 0xd800) * 0x400 + + c.charCodeAt(1) - + 0xdc00 + + 0x10000; + }; +function singleCharReplacer(c) { + return "&#x" + (c.length > 1 ? getCodePoint(c) : c.charCodeAt(0)) + .toString(16) + .toUpperCase() + ";"; +} +function getInverse(inverse, re) { + return function (data) { + return data + .replace(re, function (name) { return inverse[name]; }) + .replace(reNonASCII, singleCharReplacer); + }; +} +var reEscapeChars = new RegExp(xmlReplacer.source + "|" + reNonASCII.source, "g"); +/** + * Encodes all non-ASCII characters, as well as characters not valid in XML + * documents using numeric hexadecimal reference (eg. `ü`). + * + * Have a look at `escapeUTF8` if you want a more concise output at the expense + * of reduced transportability. + * + * @param data String to escape. + */ +function escape(data) { + return data.replace(reEscapeChars, singleCharReplacer); +} +exports.escape = escape; +/** + * Encodes all characters not valid in XML documents using numeric hexadecimal + * reference (eg. `ü`). + * + * Note that the output will be character-set dependent. + * + * @param data String to escape. + */ +function escapeUTF8(data) { + return data.replace(xmlReplacer, singleCharReplacer); +} +exports.escapeUTF8 = escapeUTF8; +function getASCIIEncoder(obj) { + return function (data) { + return data.replace(reEscapeChars, function (c) { return obj[c] || singleCharReplacer(c); }); + }; +} + + +/***/ }), + +/***/ 3000: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.encodeHTML5 = exports.encodeHTML4 = exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = exports.encode = exports.decodeStrict = exports.decode = void 0; +var decode_1 = __nccwpck_require__(85107); +var encode_1 = __nccwpck_require__(2006); +/** + * Decodes a string with entities. + * + * @param data String to decode. + * @param level Optional level to decode at. 0 = XML, 1 = HTML. Default is 0. + * @deprecated Use `decodeXML` or `decodeHTML` directly. + */ +function decode(data, level) { + return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTML)(data); +} +exports.decode = decode; +/** + * Decodes a string with entities. Does not allow missing trailing semicolons for entities. + * + * @param data String to decode. + * @param level Optional level to decode at. 0 = XML, 1 = HTML. Default is 0. + * @deprecated Use `decodeHTMLStrict` or `decodeXML` directly. + */ +function decodeStrict(data, level) { + return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTMLStrict)(data); +} +exports.decodeStrict = decodeStrict; +/** + * Encodes a string with entities. + * + * @param data String to encode. + * @param level Optional level to encode at. 0 = XML, 1 = HTML. Default is 0. + * @deprecated Use `encodeHTML`, `encodeXML` or `encodeNonAsciiHTML` directly. + */ +function encode(data, level) { + return (!level || level <= 0 ? encode_1.encodeXML : encode_1.encodeHTML)(data); +} +exports.encode = encode; +var encode_2 = __nccwpck_require__(2006); +Object.defineProperty(exports, "encodeXML", ({ enumerable: true, get: function () { return encode_2.encodeXML; } })); +Object.defineProperty(exports, "encodeHTML", ({ enumerable: true, get: function () { return encode_2.encodeHTML; } })); +Object.defineProperty(exports, "encodeNonAsciiHTML", ({ enumerable: true, get: function () { return encode_2.encodeNonAsciiHTML; } })); +Object.defineProperty(exports, "escape", ({ enumerable: true, get: function () { return encode_2.escape; } })); +Object.defineProperty(exports, "escapeUTF8", ({ enumerable: true, get: function () { return encode_2.escapeUTF8; } })); +// Legacy aliases (deprecated) +Object.defineProperty(exports, "encodeHTML4", ({ enumerable: true, get: function () { return encode_2.encodeHTML; } })); +Object.defineProperty(exports, "encodeHTML5", ({ enumerable: true, get: function () { return encode_2.encodeHTML; } })); +var decode_2 = __nccwpck_require__(85107); +Object.defineProperty(exports, "decodeXML", ({ enumerable: true, get: function () { return decode_2.decodeXML; } })); +Object.defineProperty(exports, "decodeHTML", ({ enumerable: true, get: function () { return decode_2.decodeHTML; } })); +Object.defineProperty(exports, "decodeHTMLStrict", ({ enumerable: true, get: function () { return decode_2.decodeHTMLStrict; } })); +// Legacy aliases (deprecated) +Object.defineProperty(exports, "decodeHTML4", ({ enumerable: true, get: function () { return decode_2.decodeHTML; } })); +Object.defineProperty(exports, "decodeHTML5", ({ enumerable: true, get: function () { return decode_2.decodeHTML; } })); +Object.defineProperty(exports, "decodeHTML4Strict", ({ enumerable: true, get: function () { return decode_2.decodeHTMLStrict; } })); +Object.defineProperty(exports, "decodeHTML5Strict", ({ enumerable: true, get: function () { return decode_2.decodeHTMLStrict; } })); +Object.defineProperty(exports, "decodeXMLStrict", ({ enumerable: true, get: function () { return decode_2.decodeXML; } })); + + +/***/ }), + +/***/ 35152: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + +//parse Empty Node as self closing node +const buildOptions = (__nccwpck_require__(38280).buildOptions); + +const defaultOptions = { + attributeNamePrefix: '@_', + attrNodeName: false, + textNodeName: '#text', + ignoreAttributes: true, + cdataTagName: false, + cdataPositionChar: '\\c', + format: false, + indentBy: ' ', + supressEmptyNode: false, + tagValueProcessor: function(a) { + return a; + }, + attrValueProcessor: function(a) { + return a; + }, +}; + +const props = [ + 'attributeNamePrefix', + 'attrNodeName', + 'textNodeName', + 'ignoreAttributes', + 'cdataTagName', + 'cdataPositionChar', + 'format', + 'indentBy', + 'supressEmptyNode', + 'tagValueProcessor', + 'attrValueProcessor', +]; + +function Parser(options) { + this.options = buildOptions(options, defaultOptions, props); + if (this.options.ignoreAttributes || this.options.attrNodeName) { + this.isAttribute = function(/*a*/) { + return false; + }; + } else { + this.attrPrefixLen = this.options.attributeNamePrefix.length; + this.isAttribute = isAttribute; + } + if (this.options.cdataTagName) { + this.isCDATA = isCDATA; + } else { + this.isCDATA = function(/*a*/) { + return false; + }; + } + this.replaceCDATAstr = replaceCDATAstr; + this.replaceCDATAarr = replaceCDATAarr; + + if (this.options.format) { + this.indentate = indentate; + this.tagEndChar = '>\n'; + this.newLine = '\n'; + } else { + this.indentate = function() { + return ''; + }; + this.tagEndChar = '>'; + this.newLine = ''; + } + + if (this.options.supressEmptyNode) { + this.buildTextNode = buildEmptyTextNode; + this.buildObjNode = buildEmptyObjNode; + } else { + this.buildTextNode = buildTextValNode; + this.buildObjNode = buildObjectNode; + } + + this.buildTextValNode = buildTextValNode; + this.buildObjectNode = buildObjectNode; +} + +Parser.prototype.parse = function(jObj) { + return this.j2x(jObj, 0).val; +}; + +Parser.prototype.j2x = function(jObj, level) { + let attrStr = ''; + let val = ''; + const keys = Object.keys(jObj); + const len = keys.length; + for (let i = 0; i < len; i++) { + const key = keys[i]; + if (typeof jObj[key] === 'undefined') { + // supress undefined node + } else if (jObj[key] === null) { + val += this.indentate(level) + '<' + key + '/' + this.tagEndChar; + } else if (jObj[key] instanceof Date) { + val += this.buildTextNode(jObj[key], key, '', level); + } else if (typeof jObj[key] !== 'object') { + //premitive type + const attr = this.isAttribute(key); + if (attr) { + attrStr += ' ' + attr + '="' + this.options.attrValueProcessor('' + jObj[key]) + '"'; + } else if (this.isCDATA(key)) { + if (jObj[this.options.textNodeName]) { + val += this.replaceCDATAstr(jObj[this.options.textNodeName], jObj[key]); + } else { + val += this.replaceCDATAstr('', jObj[key]); + } + } else { + //tag value + if (key === this.options.textNodeName) { + if (jObj[this.options.cdataTagName]) { + //value will added while processing cdata + } else { + val += this.options.tagValueProcessor('' + jObj[key]); + } + } else { + val += this.buildTextNode(jObj[key], key, '', level); + } + } + } else if (Array.isArray(jObj[key])) { + //repeated nodes + if (this.isCDATA(key)) { + val += this.indentate(level); + if (jObj[this.options.textNodeName]) { + val += this.replaceCDATAarr(jObj[this.options.textNodeName], jObj[key]); + } else { + val += this.replaceCDATAarr('', jObj[key]); + } + } else { + //nested nodes + const arrLen = jObj[key].length; + for (let j = 0; j < arrLen; j++) { + const item = jObj[key][j]; + if (typeof item === 'undefined') { + // supress undefined node + } else if (item === null) { + val += this.indentate(level) + '<' + key + '/' + this.tagEndChar; + } else if (typeof item === 'object') { + const result = this.j2x(item, level + 1); + val += this.buildObjNode(result.val, key, result.attrStr, level); + } else { + val += this.buildTextNode(item, key, '', level); + } + } + } + } else { + //nested node + if (this.options.attrNodeName && key === this.options.attrNodeName) { + const Ks = Object.keys(jObj[key]); + const L = Ks.length; + for (let j = 0; j < L; j++) { + attrStr += ' ' + Ks[j] + '="' + this.options.attrValueProcessor('' + jObj[key][Ks[j]]) + '"'; + } + } else { + const result = this.j2x(jObj[key], level + 1); + val += this.buildObjNode(result.val, key, result.attrStr, level); + } + } + } + return {attrStr: attrStr, val: val}; +}; + +function replaceCDATAstr(str, cdata) { + str = this.options.tagValueProcessor('' + str); + if (this.options.cdataPositionChar === '' || str === '') { + return str + ''); + } + return str + this.newLine; + } +} + +function buildObjectNode(val, key, attrStr, level) { + if (attrStr && !val.includes('<')) { + return ( + this.indentate(level) + + '<' + + key + + attrStr + + '>' + + val + + //+ this.newLine + // + this.indentate(level) + '' + + this.options.tagValueProcessor(val) + + ' { + +"use strict"; + +const char = function(a) { + return String.fromCharCode(a); +}; + +const chars = { + nilChar: char(176), + missingChar: char(201), + nilPremitive: char(175), + missingPremitive: char(200), + + emptyChar: char(178), + emptyValue: char(177), //empty Premitive + + boundryChar: char(179), + + objStart: char(198), + arrStart: char(204), + arrayEnd: char(185), +}; + +const charsArr = [ + chars.nilChar, + chars.nilPremitive, + chars.missingChar, + chars.missingPremitive, + chars.boundryChar, + chars.emptyChar, + chars.emptyValue, + chars.arrayEnd, + chars.objStart, + chars.arrStart, +]; + +const _e = function(node, e_schema, options) { + if (typeof e_schema === 'string') { + //premitive + if (node && node[0] && node[0].val !== undefined) { + return getValue(node[0].val, e_schema); + } else { + return getValue(node, e_schema); + } + } else { + const hasValidData = hasData(node); + if (hasValidData === true) { + let str = ''; + if (Array.isArray(e_schema)) { + //attributes can't be repeated. hence check in children tags only + str += chars.arrStart; + const itemSchema = e_schema[0]; + //var itemSchemaType = itemSchema; + const arr_len = node.length; + + if (typeof itemSchema === 'string') { + for (let arr_i = 0; arr_i < arr_len; arr_i++) { + const r = getValue(node[arr_i].val, itemSchema); + str = processValue(str, r); + } + } else { + for (let arr_i = 0; arr_i < arr_len; arr_i++) { + const r = _e(node[arr_i], itemSchema, options); + str = processValue(str, r); + } + } + str += chars.arrayEnd; //indicates that next item is not array item + } else { + //object + str += chars.objStart; + const keys = Object.keys(e_schema); + if (Array.isArray(node)) { + node = node[0]; + } + for (let i in keys) { + const key = keys[i]; + //a property defined in schema can be present either in attrsMap or children tags + //options.textNodeName will not present in both maps, take it's value from val + //options.attrNodeName will be present in attrsMap + let r; + if (!options.ignoreAttributes && node.attrsMap && node.attrsMap[key]) { + r = _e(node.attrsMap[key], e_schema[key], options); + } else if (key === options.textNodeName) { + r = _e(node.val, e_schema[key], options); + } else { + r = _e(node.child[key], e_schema[key], options); + } + str = processValue(str, r); + } + } + return str; + } else { + return hasValidData; + } + } +}; + +const getValue = function(a /*, type*/) { + switch (a) { + case undefined: + return chars.missingPremitive; + case null: + return chars.nilPremitive; + case '': + return chars.emptyValue; + default: + return a; + } +}; + +const processValue = function(str, r) { + if (!isAppChar(r[0]) && !isAppChar(str[str.length - 1])) { + str += chars.boundryChar; + } + return str + r; +}; + +const isAppChar = function(ch) { + return charsArr.indexOf(ch) !== -1; +}; + +function hasData(jObj) { + if (jObj === undefined) { + return chars.missingChar; + } else if (jObj === null) { + return chars.nilChar; + } else if ( + jObj.child && + Object.keys(jObj.child).length === 0 && + (!jObj.attrsMap || Object.keys(jObj.attrsMap).length === 0) + ) { + return chars.emptyChar; + } else { + return true; + } +} + +const x2j = __nccwpck_require__(6712); +const buildOptions = (__nccwpck_require__(38280).buildOptions); + +const convert2nimn = function(node, e_schema, options) { + options = buildOptions(options, x2j.defaultOptions, x2j.props); + return _e(node, e_schema, options); +}; + +exports.convert2nimn = convert2nimn; + + +/***/ }), + +/***/ 88270: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +const util = __nccwpck_require__(38280); + +const convertToJson = function(node, options, parentTagName) { + const jObj = {}; + + // when no child node or attr is present + if ((!node.child || util.isEmptyObject(node.child)) && (!node.attrsMap || util.isEmptyObject(node.attrsMap))) { + return util.isExist(node.val) ? node.val : ''; + } + + // otherwise create a textnode if node has some text + if (util.isExist(node.val) && !(typeof node.val === 'string' && (node.val === '' || node.val === options.cdataPositionChar))) { + const asArray = util.isTagNameInArrayMode(node.tagname, options.arrayMode, parentTagName) + jObj[options.textNodeName] = asArray ? [node.val] : node.val; + } + + util.merge(jObj, node.attrsMap, options.arrayMode); + + const keys = Object.keys(node.child); + for (let index = 0; index < keys.length; index++) { + const tagName = keys[index]; + if (node.child[tagName] && node.child[tagName].length > 1) { + jObj[tagName] = []; + for (let tag in node.child[tagName]) { + if (node.child[tagName].hasOwnProperty(tag)) { + jObj[tagName].push(convertToJson(node.child[tagName][tag], options, tagName)); + } + } + } else { + const result = convertToJson(node.child[tagName][0], options, tagName); + const asArray = (options.arrayMode === true && typeof result === 'object') || util.isTagNameInArrayMode(tagName, options.arrayMode, parentTagName); + jObj[tagName] = asArray ? [result] : result; + } + } + + //add value + return jObj; +}; + +exports.convertToJson = convertToJson; + + +/***/ }), + +/***/ 16014: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +const util = __nccwpck_require__(38280); +const buildOptions = (__nccwpck_require__(38280).buildOptions); +const x2j = __nccwpck_require__(6712); + +//TODO: do it later +const convertToJsonString = function(node, options) { + options = buildOptions(options, x2j.defaultOptions, x2j.props); + + options.indentBy = options.indentBy || ''; + return _cToJsonStr(node, options, 0); +}; + +const _cToJsonStr = function(node, options, level) { + let jObj = '{'; + + //traver through all the children + const keys = Object.keys(node.child); + + for (let index = 0; index < keys.length; index++) { + var tagname = keys[index]; + if (node.child[tagname] && node.child[tagname].length > 1) { + jObj += '"' + tagname + '" : [ '; + for (var tag in node.child[tagname]) { + jObj += _cToJsonStr(node.child[tagname][tag], options) + ' , '; + } + jObj = jObj.substr(0, jObj.length - 1) + ' ] '; //remove extra comma in last + } else { + jObj += '"' + tagname + '" : ' + _cToJsonStr(node.child[tagname][0], options) + ' ,'; + } + } + util.merge(jObj, node.attrsMap); + //add attrsMap as new children + if (util.isEmptyObject(jObj)) { + return util.isExist(node.val) ? node.val : ''; + } else { + if (util.isExist(node.val)) { + if (!(typeof node.val === 'string' && (node.val === '' || node.val === options.cdataPositionChar))) { + jObj += '"' + options.textNodeName + '" : ' + stringval(node.val); + } + } + } + //add value + if (jObj[jObj.length - 1] === ',') { + jObj = jObj.substr(0, jObj.length - 2); + } + return jObj + '}'; +}; + +function stringval(v) { + if (v === true || v === false || !isNaN(v)) { + return v; + } else { + return '"' + v + '"'; + } +} + +function indentate(options, level) { + return options.indentBy.repeat(level); +} + +exports.convertToJsonString = convertToJsonString; + + +/***/ }), + +/***/ 27448: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +const nodeToJson = __nccwpck_require__(88270); +const xmlToNodeobj = __nccwpck_require__(6712); +const x2xmlnode = __nccwpck_require__(6712); +const buildOptions = (__nccwpck_require__(38280).buildOptions); +const validator = __nccwpck_require__(61739); + +exports.parse = function(xmlData, options, validationOption) { + if( validationOption){ + if(validationOption === true) validationOption = {} + + const result = validator.validate(xmlData, validationOption); + if (result !== true) { + throw Error( result.err.msg) + } + } + options = buildOptions(options, x2xmlnode.defaultOptions, x2xmlnode.props); + const traversableObj = xmlToNodeobj.getTraversalObj(xmlData, options) + //print(traversableObj, " "); + return nodeToJson.convertToJson(traversableObj, options); +}; +exports.convertTonimn = __nccwpck_require__(41901).convert2nimn; +exports.getTraversalObj = xmlToNodeobj.getTraversalObj; +exports.convertToJson = nodeToJson.convertToJson; +exports.convertToJsonString = __nccwpck_require__(16014).convertToJsonString; +exports.validate = validator.validate; +exports.j2xParser = __nccwpck_require__(35152); +exports.parseToNimn = function(xmlData, schema, options) { + return exports.convertTonimn(exports.getTraversalObj(xmlData, options), schema, options); +}; + + +function print(xmlNode, indentation){ + if(xmlNode){ + console.log(indentation + "{") + console.log(indentation + " \"tagName\": \"" + xmlNode.tagname + "\", "); + if(xmlNode.parent){ + console.log(indentation + " \"parent\": \"" + xmlNode.parent.tagname + "\", "); + } + console.log(indentation + " \"val\": \"" + xmlNode.val + "\", "); + console.log(indentation + " \"attrs\": " + JSON.stringify(xmlNode.attrsMap,null,4) + ", "); + + if(xmlNode.child){ + console.log(indentation + "\"child\": {") + const indentation2 = indentation + indentation; + Object.keys(xmlNode.child).forEach( function(key) { + const node = xmlNode.child[key]; + + if(Array.isArray(node)){ + console.log(indentation + "\""+key+"\" :[") + node.forEach( function(item,index) { + //console.log(indentation + " \""+index+"\" : [") + print(item, indentation2); + }) + console.log(indentation + "],") + }else{ + console.log(indentation + " \""+key+"\" : {") + print(node, indentation2); + console.log(indentation + "},") + } + }); + console.log(indentation + "},") + } + console.log(indentation + "},") + } +} + + +/***/ }), + +/***/ 38280: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + + +const nameStartChar = ':A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD'; +const nameChar = nameStartChar + '\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040'; +const nameRegexp = '[' + nameStartChar + '][' + nameChar + ']*' +const regexName = new RegExp('^' + nameRegexp + '$'); + +const getAllMatches = function(string, regex) { + const matches = []; + let match = regex.exec(string); + while (match) { + const allmatches = []; + const len = match.length; + for (let index = 0; index < len; index++) { + allmatches.push(match[index]); + } + matches.push(allmatches); + match = regex.exec(string); + } + return matches; +}; + +const isName = function(string) { + const match = regexName.exec(string); + return !(match === null || typeof match === 'undefined'); +}; + +exports.isExist = function(v) { + return typeof v !== 'undefined'; +}; + +exports.isEmptyObject = function(obj) { + return Object.keys(obj).length === 0; +}; + +/** + * Copy all the properties of a into b. + * @param {*} target + * @param {*} a + */ +exports.merge = function(target, a, arrayMode) { + if (a) { + const keys = Object.keys(a); // will return an array of own properties + const len = keys.length; //don't make it inline + for (let i = 0; i < len; i++) { + if (arrayMode === 'strict') { + target[keys[i]] = [ a[keys[i]] ]; + } else { + target[keys[i]] = a[keys[i]]; + } + } + } +}; +/* exports.merge =function (b,a){ + return Object.assign(b,a); +} */ + +exports.getValue = function(v) { + if (exports.isExist(v)) { + return v; + } else { + return ''; + } +}; + +// const fakeCall = function(a) {return a;}; +// const fakeCallNoReturn = function() {}; + +exports.buildOptions = function(options, defaultOptions, props) { + var newOptions = {}; + if (!options) { + return defaultOptions; //if there are not options + } + + for (let i = 0; i < props.length; i++) { + if (options[props[i]] !== undefined) { + newOptions[props[i]] = options[props[i]]; + } else { + newOptions[props[i]] = defaultOptions[props[i]]; + } + } + return newOptions; +}; + +/** + * Check if a tag name should be treated as array + * + * @param tagName the node tagname + * @param arrayMode the array mode option + * @param parentTagName the parent tag name + * @returns {boolean} true if node should be parsed as array + */ +exports.isTagNameInArrayMode = function (tagName, arrayMode, parentTagName) { + if (arrayMode === false) { + return false; + } else if (arrayMode instanceof RegExp) { + return arrayMode.test(tagName); + } else if (typeof arrayMode === 'function') { + return !!arrayMode(tagName, parentTagName); + } + + return arrayMode === "strict"; +} + +exports.isName = isName; +exports.getAllMatches = getAllMatches; +exports.nameRegexp = nameRegexp; + + +/***/ }), + +/***/ 61739: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +const util = __nccwpck_require__(38280); + +const defaultOptions = { + allowBooleanAttributes: false, //A tag can have attributes without any value +}; + +const props = ['allowBooleanAttributes']; + +//const tagsPattern = new RegExp("<\\/?([\\w:\\-_\.]+)\\s*\/?>","g"); +exports.validate = function (xmlData, options) { + options = util.buildOptions(options, defaultOptions, props); + + //xmlData = xmlData.replace(/(\r\n|\n|\r)/gm,"");//make it single line + //xmlData = xmlData.replace(/(^\s*<\?xml.*?\?>)/g,"");//Remove XML starting tag + //xmlData = xmlData.replace(/()/g,"");//Remove DOCTYPE + const tags = []; + let tagFound = false; + + //indicates that the root tag has been closed (aka. depth 0 has been reached) + let reachedRoot = false; + + if (xmlData[0] === '\ufeff') { + // check for byte order mark (BOM) + xmlData = xmlData.substr(1); + } + + for (let i = 0; i < xmlData.length; i++) { + + if (xmlData[i] === '<' && xmlData[i+1] === '?') { + i+=2; + i = readPI(xmlData,i); + if (i.err) return i; + }else if (xmlData[i] === '<') { + //starting of tag + //read until you reach to '>' avoiding any '>' in attribute value + + i++; + + if (xmlData[i] === '!') { + i = readCommentAndCDATA(xmlData, i); + continue; + } else { + let closingTag = false; + if (xmlData[i] === '/') { + //closing tag + closingTag = true; + i++; + } + //read tagname + let tagName = ''; + for (; i < xmlData.length && + xmlData[i] !== '>' && + xmlData[i] !== ' ' && + xmlData[i] !== '\t' && + xmlData[i] !== '\n' && + xmlData[i] !== '\r'; i++ + ) { + tagName += xmlData[i]; + } + tagName = tagName.trim(); + //console.log(tagName); + + if (tagName[tagName.length - 1] === '/') { + //self closing tag without attributes + tagName = tagName.substring(0, tagName.length - 1); + //continue; + i--; + } + if (!validateTagName(tagName)) { + let msg; + if (tagName.trim().length === 0) { + msg = "There is an unnecessary space between tag name and backward slash ' 0) { + return getErrorObject('InvalidTag', "Closing tag '"+tagName+"' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData, i)); + } else { + const otg = tags.pop(); + if (tagName !== otg) { + return getErrorObject('InvalidTag', "Closing tag '"+otg+"' is expected inplace of '"+tagName+"'.", getLineNumberForPosition(xmlData, i)); + } + + //when there are no more tags, we reached the root level. + if (tags.length == 0) { + reachedRoot = true; + } + } + } else { + const isValid = validateAttributeString(attrStr, options); + if (isValid !== true) { + //the result from the nested function returns the position of the error within the attribute + //in order to get the 'true' error line, we need to calculate the position where the attribute begins (i - attrStr.length) and then add the position within the attribute + //this gives us the absolute index in the entire xml, which we can use to find the line at last + return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line)); + } + + //if the root level has been reached before ... + if (reachedRoot === true) { + return getErrorObject('InvalidXml', 'Multiple possible root nodes found.', getLineNumberForPosition(xmlData, i)); + } else { + tags.push(tagName); + } + tagFound = true; + } + + //skip tag text value + //It may include comments and CDATA value + for (i++; i < xmlData.length; i++) { + if (xmlData[i] === '<') { + if (xmlData[i + 1] === '!') { + //comment or CADATA + i++; + i = readCommentAndCDATA(xmlData, i); + continue; + } else if (xmlData[i+1] === '?') { + i = readPI(xmlData, ++i); + if (i.err) return i; + } else{ + break; + } + } else if (xmlData[i] === '&') { + const afterAmp = validateAmpersand(xmlData, i); + if (afterAmp == -1) + return getErrorObject('InvalidChar', "char '&' is not expected.", getLineNumberForPosition(xmlData, i)); + i = afterAmp; + } + } //end of reading tag text value + if (xmlData[i] === '<') { + i--; + } + } + } else { + if (xmlData[i] === ' ' || xmlData[i] === '\t' || xmlData[i] === '\n' || xmlData[i] === '\r') { + continue; + } + return getErrorObject('InvalidChar', "char '"+xmlData[i]+"' is not expected.", getLineNumberForPosition(xmlData, i)); + } + } + + if (!tagFound) { + return getErrorObject('InvalidXml', 'Start tag expected.', 1); + } else if (tags.length > 0) { + return getErrorObject('InvalidXml', "Invalid '"+JSON.stringify(tags, null, 4).replace(/\r?\n/g, '')+"' found.", 1); + } + + return true; +}; + +/** + * Read Processing insstructions and skip + * @param {*} xmlData + * @param {*} i + */ +function readPI(xmlData, i) { + var start = i; + for (; i < xmlData.length; i++) { + if (xmlData[i] == '?' || xmlData[i] == ' ') { + //tagname + var tagname = xmlData.substr(start, i - start); + if (i > 5 && tagname === 'xml') { + return getErrorObject('InvalidXml', 'XML declaration allowed only at the start of the document.', getLineNumberForPosition(xmlData, i)); + } else if (xmlData[i] == '?' && xmlData[i + 1] == '>') { + //check if valid attribut string + i++; + break; + } else { + continue; + } + } + } + return i; +} + +function readCommentAndCDATA(xmlData, i) { + if (xmlData.length > i + 5 && xmlData[i + 1] === '-' && xmlData[i + 2] === '-') { + //comment + for (i += 3; i < xmlData.length; i++) { + if (xmlData[i] === '-' && xmlData[i + 1] === '-' && xmlData[i + 2] === '>') { + i += 2; + break; + } + } + } else if ( + xmlData.length > i + 8 && + xmlData[i + 1] === 'D' && + xmlData[i + 2] === 'O' && + xmlData[i + 3] === 'C' && + xmlData[i + 4] === 'T' && + xmlData[i + 5] === 'Y' && + xmlData[i + 6] === 'P' && + xmlData[i + 7] === 'E' + ) { + let angleBracketsCount = 1; + for (i += 8; i < xmlData.length; i++) { + if (xmlData[i] === '<') { + angleBracketsCount++; + } else if (xmlData[i] === '>') { + angleBracketsCount--; + if (angleBracketsCount === 0) { + break; + } + } + } + } else if ( + xmlData.length > i + 9 && + xmlData[i + 1] === '[' && + xmlData[i + 2] === 'C' && + xmlData[i + 3] === 'D' && + xmlData[i + 4] === 'A' && + xmlData[i + 5] === 'T' && + xmlData[i + 6] === 'A' && + xmlData[i + 7] === '[' + ) { + for (i += 8; i < xmlData.length; i++) { + if (xmlData[i] === ']' && xmlData[i + 1] === ']' && xmlData[i + 2] === '>') { + i += 2; + break; + } + } + } + + return i; +} + +var doubleQuote = '"'; +var singleQuote = "'"; + +/** + * Keep reading xmlData until '<' is found outside the attribute value. + * @param {string} xmlData + * @param {number} i + */ +function readAttributeStr(xmlData, i) { + let attrStr = ''; + let startChar = ''; + let tagClosed = false; + for (; i < xmlData.length; i++) { + if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) { + if (startChar === '') { + startChar = xmlData[i]; + } else if (startChar !== xmlData[i]) { + //if vaue is enclosed with double quote then single quotes are allowed inside the value and vice versa + continue; + } else { + startChar = ''; + } + } else if (xmlData[i] === '>') { + if (startChar === '') { + tagClosed = true; + break; + } + } + attrStr += xmlData[i]; + } + if (startChar !== '') { + return false; + } + + return { + value: attrStr, + index: i, + tagClosed: tagClosed + }; +} + +/** + * Select all the attributes whether valid or invalid. + */ +const validAttrStrRegxp = new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?', 'g'); + +//attr, ="sd", a="amit's", a="sd"b="saf", ab cd="" + +function validateAttributeString(attrStr, options) { + //console.log("start:"+attrStr+":end"); + + //if(attrStr.trim().length === 0) return true; //empty string + + const matches = util.getAllMatches(attrStr, validAttrStrRegxp); + const attrNames = {}; + + for (let i = 0; i < matches.length; i++) { + if (matches[i][1].length === 0) { + //nospace before attribute name: a="sd"b="saf" + return getErrorObject('InvalidAttr', "Attribute '"+matches[i][2]+"' has no space in starting.", getPositionFromMatch(attrStr, matches[i][0])) + } else if (matches[i][3] === undefined && !options.allowBooleanAttributes) { + //independent attribute: ab + return getErrorObject('InvalidAttr', "boolean attribute '"+matches[i][2]+"' is not allowed.", getPositionFromMatch(attrStr, matches[i][0])); + } + /* else if(matches[i][6] === undefined){//attribute without value: ab= + return { err: { code:"InvalidAttr",msg:"attribute " + matches[i][2] + " has no value assigned."}}; + } */ + const attrName = matches[i][2]; + if (!validateAttrName(attrName)) { + return getErrorObject('InvalidAttr', "Attribute '"+attrName+"' is an invalid name.", getPositionFromMatch(attrStr, matches[i][0])); + } + if (!attrNames.hasOwnProperty(attrName)) { + //check for duplicate attribute. + attrNames[attrName] = 1; + } else { + return getErrorObject('InvalidAttr', "Attribute '"+attrName+"' is repeated.", getPositionFromMatch(attrStr, matches[i][0])); + } + } + + return true; +} + +function validateNumberAmpersand(xmlData, i) { + let re = /\d/; + if (xmlData[i] === 'x') { + i++; + re = /[\da-fA-F]/; + } + for (; i < xmlData.length; i++) { + if (xmlData[i] === ';') + return i; + if (!xmlData[i].match(re)) + break; + } + return -1; +} + +function validateAmpersand(xmlData, i) { + // https://www.w3.org/TR/xml/#dt-charref + i++; + if (xmlData[i] === ';') + return -1; + if (xmlData[i] === '#') { + i++; + return validateNumberAmpersand(xmlData, i); + } + let count = 0; + for (; i < xmlData.length; i++, count++) { + if (xmlData[i].match(/\w/) && count < 20) + continue; + if (xmlData[i] === ';') + break; + return -1; + } + return i; +} + +function getErrorObject(code, message, lineNumber) { + return { + err: { + code: code, + msg: message, + line: lineNumber, + }, + }; +} + +function validateAttrName(attrName) { + return util.isName(attrName); +} + +// const startsWithXML = /^xml/i; + +function validateTagName(tagname) { + return util.isName(tagname) /* && !tagname.match(startsWithXML) */; +} + +//this function returns the line number for the character at the given index +function getLineNumberForPosition(xmlData, index) { + var lines = xmlData.substring(0, index).split(/\r?\n/); + return lines.length; +} + +//this function returns the position of the last character of match within attrStr +function getPositionFromMatch(attrStr, match) { + return attrStr.indexOf(match) + match.length; +} + + +/***/ }), + +/***/ 49539: +/***/ ((module) => { + +"use strict"; + + +module.exports = function(tagname, parent, val) { + this.tagname = tagname; + this.parent = parent; + this.child = {}; //child tags + this.attrsMap = {}; //attributes map + this.val = val; //text only + this.addChild = function(child) { + if (Array.isArray(this.child[child.tagname])) { + //already presents + this.child[child.tagname].push(child); + } else { + this.child[child.tagname] = [child]; + } + }; +}; + + +/***/ }), + +/***/ 6712: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +const util = __nccwpck_require__(38280); +const buildOptions = (__nccwpck_require__(38280).buildOptions); +const xmlNode = __nccwpck_require__(49539); +const regx = + '<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)' + .replace(/NAME/g, util.nameRegexp); + +//const tagsRegx = new RegExp("<(\\/?[\\w:\\-\._]+)([^>]*)>(\\s*"+cdataRegx+")*([^<]+)?","g"); +//const tagsRegx = new RegExp("<(\\/?)((\\w*:)?([\\w:\\-\._]+))([^>]*)>([^<]*)("+cdataRegx+"([^<]*))*([^<]+)?","g"); + +//polyfill +if (!Number.parseInt && window.parseInt) { + Number.parseInt = window.parseInt; +} +if (!Number.parseFloat && window.parseFloat) { + Number.parseFloat = window.parseFloat; +} + +const defaultOptions = { + attributeNamePrefix: '@_', + attrNodeName: false, + textNodeName: '#text', + ignoreAttributes: true, + ignoreNameSpace: false, + allowBooleanAttributes: false, //a tag can have attributes without any value + //ignoreRootElement : false, + parseNodeValue: true, + parseAttributeValue: false, + arrayMode: false, + trimValues: true, //Trim string values of tag and attributes + cdataTagName: false, + cdataPositionChar: '\\c', + tagValueProcessor: function(a, tagName) { + return a; + }, + attrValueProcessor: function(a, attrName) { + return a; + }, + stopNodes: [] + //decodeStrict: false, +}; + +exports.defaultOptions = defaultOptions; + +const props = [ + 'attributeNamePrefix', + 'attrNodeName', + 'textNodeName', + 'ignoreAttributes', + 'ignoreNameSpace', + 'allowBooleanAttributes', + 'parseNodeValue', + 'parseAttributeValue', + 'arrayMode', + 'trimValues', + 'cdataTagName', + 'cdataPositionChar', + 'tagValueProcessor', + 'attrValueProcessor', + 'parseTrueNumberOnly', + 'stopNodes' +]; +exports.props = props; + +/** + * Trim -> valueProcessor -> parse value + * @param {string} tagName + * @param {string} val + * @param {object} options + */ +function processTagValue(tagName, val, options) { + if (val) { + if (options.trimValues) { + val = val.trim(); + } + val = options.tagValueProcessor(val, tagName); + val = parseValue(val, options.parseNodeValue, options.parseTrueNumberOnly); + } + + return val; +} + +function resolveNameSpace(tagname, options) { + if (options.ignoreNameSpace) { + const tags = tagname.split(':'); + const prefix = tagname.charAt(0) === '/' ? '/' : ''; + if (tags[0] === 'xmlns') { + return ''; + } + if (tags.length === 2) { + tagname = prefix + tags[1]; + } + } + return tagname; +} + +function parseValue(val, shouldParse, parseTrueNumberOnly) { + if (shouldParse && typeof val === 'string') { + let parsed; + if (val.trim() === '' || isNaN(val)) { + parsed = val === 'true' ? true : val === 'false' ? false : val; + } else { + if (val.indexOf('0x') !== -1) { + //support hexa decimal + parsed = Number.parseInt(val, 16); + } else if (val.indexOf('.') !== -1) { + parsed = Number.parseFloat(val); + val = val.replace(/\.?0+$/, ""); + } else { + parsed = Number.parseInt(val, 10); + } + if (parseTrueNumberOnly) { + parsed = String(parsed) === val ? parsed : val; + } + } + return parsed; + } else { + if (util.isExist(val)) { + return val; + } else { + return ''; + } + } +} + +//TODO: change regex to capture NS +//const attrsRegx = new RegExp("([\\w\\-\\.\\:]+)\\s*=\\s*(['\"])((.|\n)*?)\\2","gm"); +const attrsRegx = new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])(.*?)\\3)?', 'g'); + +function buildAttributesMap(attrStr, options) { + if (!options.ignoreAttributes && typeof attrStr === 'string') { + attrStr = attrStr.replace(/\r?\n/g, ' '); + //attrStr = attrStr || attrStr.trim(); + + const matches = util.getAllMatches(attrStr, attrsRegx); + const len = matches.length; //don't make it inline + const attrs = {}; + for (let i = 0; i < len; i++) { + const attrName = resolveNameSpace(matches[i][1], options); + if (attrName.length) { + if (matches[i][4] !== undefined) { + if (options.trimValues) { + matches[i][4] = matches[i][4].trim(); + } + matches[i][4] = options.attrValueProcessor(matches[i][4], attrName); + attrs[options.attributeNamePrefix + attrName] = parseValue( + matches[i][4], + options.parseAttributeValue, + options.parseTrueNumberOnly + ); + } else if (options.allowBooleanAttributes) { + attrs[options.attributeNamePrefix + attrName] = true; + } + } + } + if (!Object.keys(attrs).length) { + return; + } + if (options.attrNodeName) { + const attrCollection = {}; + attrCollection[options.attrNodeName] = attrs; + return attrCollection; + } + return attrs; + } +} + +const getTraversalObj = function(xmlData, options) { + xmlData = xmlData.replace(/\r\n?/g, "\n"); + options = buildOptions(options, defaultOptions, props); + const xmlObj = new xmlNode('!xml'); + let currentNode = xmlObj; + let textData = ""; + +//function match(xmlData){ + for(let i=0; i< xmlData.length; i++){ + const ch = xmlData[i]; + if(ch === '<'){ + if( xmlData[i+1] === '/') {//Closing Tag + const closeIndex = findClosingIndex(xmlData, ">", i, "Closing Tag is not closed.") + let tagName = xmlData.substring(i+2,closeIndex).trim(); + + if(options.ignoreNameSpace){ + const colonIndex = tagName.indexOf(":"); + if(colonIndex !== -1){ + tagName = tagName.substr(colonIndex+1); + } + } + + /* if (currentNode.parent) { + currentNode.parent.val = util.getValue(currentNode.parent.val) + '' + processTagValue2(tagName, textData , options); + } */ + if(currentNode){ + if(currentNode.val){ + currentNode.val = util.getValue(currentNode.val) + '' + processTagValue(tagName, textData , options); + }else{ + currentNode.val = processTagValue(tagName, textData , options); + } + } + + if (options.stopNodes.length && options.stopNodes.includes(currentNode.tagname)) { + currentNode.child = [] + if (currentNode.attrsMap == undefined) { currentNode.attrsMap = {}} + currentNode.val = xmlData.substr(currentNode.startIndex + 1, i - currentNode.startIndex - 1) + } + currentNode = currentNode.parent; + textData = ""; + i = closeIndex; + } else if( xmlData[i+1] === '?') { + i = findClosingIndex(xmlData, "?>", i, "Pi Tag is not closed.") + } else if(xmlData.substr(i + 1, 3) === '!--') { + i = findClosingIndex(xmlData, "-->", i, "Comment is not closed.") + } else if( xmlData.substr(i + 1, 2) === '!D') { + const closeIndex = findClosingIndex(xmlData, ">", i, "DOCTYPE is not closed.") + const tagExp = xmlData.substring(i, closeIndex); + if(tagExp.indexOf("[") >= 0){ + i = xmlData.indexOf("]>", i) + 1; + }else{ + i = closeIndex; + } + }else if(xmlData.substr(i + 1, 2) === '![') { + const closeIndex = findClosingIndex(xmlData, "]]>", i, "CDATA is not closed.") - 2 + const tagExp = xmlData.substring(i + 9,closeIndex); + + //considerations + //1. CDATA will always have parent node + //2. A tag with CDATA is not a leaf node so it's value would be string type. + if(textData){ + currentNode.val = util.getValue(currentNode.val) + '' + processTagValue(currentNode.tagname, textData , options); + textData = ""; + } + + if (options.cdataTagName) { + //add cdata node + const childNode = new xmlNode(options.cdataTagName, currentNode, tagExp); + currentNode.addChild(childNode); + //for backtracking + currentNode.val = util.getValue(currentNode.val) + options.cdataPositionChar; + //add rest value to parent node + if (tagExp) { + childNode.val = tagExp; + } + } else { + currentNode.val = (currentNode.val || '') + (tagExp || ''); + } + + i = closeIndex + 2; + }else {//Opening tag + const result = closingIndexForOpeningTag(xmlData, i+1) + let tagExp = result.data; + const closeIndex = result.index; + const separatorIndex = tagExp.indexOf(" "); + let tagName = tagExp; + let shouldBuildAttributesMap = true; + if(separatorIndex !== -1){ + tagName = tagExp.substr(0, separatorIndex).replace(/\s\s*$/, ''); + tagExp = tagExp.substr(separatorIndex + 1); + } + + if(options.ignoreNameSpace){ + const colonIndex = tagName.indexOf(":"); + if(colonIndex !== -1){ + tagName = tagName.substr(colonIndex+1); + shouldBuildAttributesMap = tagName !== result.data.substr(colonIndex + 1); + } + } + + //save text to parent node + if (currentNode && textData) { + if(currentNode.tagname !== '!xml'){ + currentNode.val = util.getValue(currentNode.val) + '' + processTagValue( currentNode.tagname, textData, options); + } + } + + if(tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1){//selfClosing tag + + if(tagName[tagName.length - 1] === "/"){ //remove trailing '/' + tagName = tagName.substr(0, tagName.length - 1); + tagExp = tagName; + }else{ + tagExp = tagExp.substr(0, tagExp.length - 1); + } + + const childNode = new xmlNode(tagName, currentNode, ''); + if(tagName !== tagExp){ + childNode.attrsMap = buildAttributesMap(tagExp, options); + } + currentNode.addChild(childNode); + }else{//opening tag + + const childNode = new xmlNode( tagName, currentNode ); + if (options.stopNodes.length && options.stopNodes.includes(childNode.tagname)) { + childNode.startIndex=closeIndex; + } + if(tagName !== tagExp && shouldBuildAttributesMap){ + childNode.attrsMap = buildAttributesMap(tagExp, options); + } + currentNode.addChild(childNode); + currentNode = childNode; + } + textData = ""; + i = closeIndex; + } + }else{ + textData += xmlData[i]; + } + } + return xmlObj; +} + +function closingIndexForOpeningTag(data, i){ + let attrBoundary; + let tagExp = ""; + for (let index = i; index < data.length; index++) { + let ch = data[index]; + if (attrBoundary) { + if (ch === attrBoundary) attrBoundary = "";//reset + } else if (ch === '"' || ch === "'") { + attrBoundary = ch; + } else if (ch === '>') { + return { + data: tagExp, + index: index + } + } else if (ch === '\t') { + ch = " " + } + tagExp += ch; + } +} + +function findClosingIndex(xmlData, str, i, errMsg){ + const closingIndex = xmlData.indexOf(str, i); + if(closingIndex === -1){ + throw new Error(errMsg) + }else{ + return closingIndex + str.length - 1; + } +} + +exports.getTraversalObj = getTraversalObj; + + +/***/ }), + +/***/ 4351: +/***/ ((module) => { + +/****************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global global, define, System, Reflect, Promise */ +var __extends; +var __assign; +var __rest; +var __decorate; +var __param; +var __metadata; +var __awaiter; +var __generator; +var __exportStar; +var __values; +var __read; +var __spread; +var __spreadArrays; +var __spreadArray; +var __await; +var __asyncGenerator; +var __asyncDelegator; +var __asyncValues; +var __makeTemplateObject; +var __importStar; +var __importDefault; +var __classPrivateFieldGet; +var __classPrivateFieldSet; +var __classPrivateFieldIn; +var __createBinding; +(function (factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (typeof define === "function" && define.amd) { + define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); + } + else if ( true && typeof module.exports === "object") { + factory(createExporter(root, createExporter(module.exports))); + } + else { + factory(createExporter(root)); + } + function createExporter(exports, previous) { + if (exports !== root) { + if (typeof Object.create === "function") { + Object.defineProperty(exports, "__esModule", { value: true }); + } + else { + exports.__esModule = true; + } + } + return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; + } +}) +(function (exporter) { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + + __extends = function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + + __assign = Object.assign || function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + + __rest = function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + + __decorate = function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + + __param = function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; + + __metadata = function (metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); + }; + + __awaiter = function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + + __generator = function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + + __exportStar = function(m, o) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); + }; + + __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); + + __values = function (o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + + __read = function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + }; + + /** @deprecated */ + __spread = function () { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + + /** @deprecated */ + __spreadArrays = function () { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + + __spreadArray = function (to, from, pack) { + if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + }; + + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + + __asyncGenerator = function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + }; + + __asyncDelegator = function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } + }; + + __asyncValues = function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + }; + + __makeTemplateObject = function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + }; + + var __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + }; + + __importStar = function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; + + __importDefault = function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; + + __classPrivateFieldGet = function (receiver, state, kind, f) { + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + }; + + __classPrivateFieldSet = function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; + }; + + __classPrivateFieldIn = function (state, receiver) { + if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + }; + + exporter("__extends", __extends); + exporter("__assign", __assign); + exporter("__rest", __rest); + exporter("__decorate", __decorate); + exporter("__param", __param); + exporter("__metadata", __metadata); + exporter("__awaiter", __awaiter); + exporter("__generator", __generator); + exporter("__exportStar", __exportStar); + exporter("__createBinding", __createBinding); + exporter("__values", __values); + exporter("__read", __read); + exporter("__spread", __spread); + exporter("__spreadArrays", __spreadArrays); + exporter("__spreadArray", __spreadArray); + exporter("__await", __await); + exporter("__asyncGenerator", __asyncGenerator); + exporter("__asyncDelegator", __asyncDelegator); + exporter("__asyncValues", __asyncValues); + exporter("__makeTemplateObject", __makeTemplateObject); + exporter("__importStar", __importStar); + exporter("__importDefault", __importDefault); + exporter("__classPrivateFieldGet", __classPrivateFieldGet); + exporter("__classPrivateFieldSet", __classPrivateFieldSet); + exporter("__classPrivateFieldIn", __classPrivateFieldIn); +}); + + +/***/ }), + +/***/ 74294: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +module.exports = __nccwpck_require__(54219); + + +/***/ }), + +/***/ 54219: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +var net = __nccwpck_require__(41808); +var tls = __nccwpck_require__(24404); +var http = __nccwpck_require__(13685); +var https = __nccwpck_require__(95687); +var events = __nccwpck_require__(82361); +var assert = __nccwpck_require__(39491); +var util = __nccwpck_require__(73837); + + +exports.httpOverHttp = httpOverHttp; +exports.httpsOverHttp = httpsOverHttp; +exports.httpOverHttps = httpOverHttps; +exports.httpsOverHttps = httpsOverHttps; + + +function httpOverHttp(options) { + var agent = new TunnelingAgent(options); + agent.request = http.request; + return agent; +} + +function httpsOverHttp(options) { + var agent = new TunnelingAgent(options); + agent.request = http.request; + agent.createSocket = createSecureSocket; + agent.defaultPort = 443; + return agent; +} + +function httpOverHttps(options) { + var agent = new TunnelingAgent(options); + agent.request = https.request; + return agent; +} + +function httpsOverHttps(options) { + var agent = new TunnelingAgent(options); + agent.request = https.request; + agent.createSocket = createSecureSocket; + agent.defaultPort = 443; + return agent; +} + + +function TunnelingAgent(options) { + var self = this; + self.options = options || {}; + self.proxyOptions = self.options.proxy || {}; + self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets; + self.requests = []; + self.sockets = []; + + self.on('free', function onFree(socket, host, port, localAddress) { + var options = toOptions(host, port, localAddress); + for (var i = 0, len = self.requests.length; i < len; ++i) { + var pending = self.requests[i]; + if (pending.host === options.host && pending.port === options.port) { + // Detect the request to connect same origin server, + // reuse the connection. + self.requests.splice(i, 1); + pending.request.onSocket(socket); + return; + } + } + socket.destroy(); + self.removeSocket(socket); + }); +} +util.inherits(TunnelingAgent, events.EventEmitter); + +TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) { + var self = this; + var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress)); + + if (self.sockets.length >= this.maxSockets) { + // We are over limit so we'll add it to the queue. + self.requests.push(options); + return; + } + + // If we are under maxSockets create a new one. + self.createSocket(options, function(socket) { + socket.on('free', onFree); + socket.on('close', onCloseOrRemove); + socket.on('agentRemove', onCloseOrRemove); + req.onSocket(socket); + + function onFree() { + self.emit('free', socket, options); + } + + function onCloseOrRemove(err) { + self.removeSocket(socket); + socket.removeListener('free', onFree); + socket.removeListener('close', onCloseOrRemove); + socket.removeListener('agentRemove', onCloseOrRemove); + } + }); +}; + +TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { + var self = this; + var placeholder = {}; + self.sockets.push(placeholder); + + var connectOptions = mergeOptions({}, self.proxyOptions, { + method: 'CONNECT', + path: options.host + ':' + options.port, + agent: false, + headers: { + host: options.host + ':' + options.port + } + }); + if (options.localAddress) { + connectOptions.localAddress = options.localAddress; + } + if (connectOptions.proxyAuth) { + connectOptions.headers = connectOptions.headers || {}; + connectOptions.headers['Proxy-Authorization'] = 'Basic ' + + new Buffer(connectOptions.proxyAuth).toString('base64'); + } + + debug('making CONNECT request'); + var connectReq = self.request(connectOptions); + connectReq.useChunkedEncodingByDefault = false; // for v0.6 + connectReq.once('response', onResponse); // for v0.6 + connectReq.once('upgrade', onUpgrade); // for v0.6 + connectReq.once('connect', onConnect); // for v0.7 or later + connectReq.once('error', onError); + connectReq.end(); + + function onResponse(res) { + // Very hacky. This is necessary to avoid http-parser leaks. + res.upgrade = true; + } + + function onUpgrade(res, socket, head) { + // Hacky. + process.nextTick(function() { + onConnect(res, socket, head); + }); + } + + function onConnect(res, socket, head) { + connectReq.removeAllListeners(); + socket.removeAllListeners(); + + if (res.statusCode !== 200) { + debug('tunneling socket could not be established, statusCode=%d', + res.statusCode); + socket.destroy(); + var error = new Error('tunneling socket could not be established, ' + + 'statusCode=' + res.statusCode); + error.code = 'ECONNRESET'; + options.request.emit('error', error); + self.removeSocket(placeholder); + return; + } + if (head.length > 0) { + debug('got illegal response body from proxy'); + socket.destroy(); + var error = new Error('got illegal response body from proxy'); + error.code = 'ECONNRESET'; + options.request.emit('error', error); + self.removeSocket(placeholder); + return; + } + debug('tunneling connection has established'); + self.sockets[self.sockets.indexOf(placeholder)] = socket; + return cb(socket); + } + + function onError(cause) { + connectReq.removeAllListeners(); + + debug('tunneling socket could not be established, cause=%s\n', + cause.message, cause.stack); + var error = new Error('tunneling socket could not be established, ' + + 'cause=' + cause.message); + error.code = 'ECONNRESET'; + options.request.emit('error', error); + self.removeSocket(placeholder); + } +}; + +TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { + var pos = this.sockets.indexOf(socket) + if (pos === -1) { + return; + } + this.sockets.splice(pos, 1); + + var pending = this.requests.shift(); + if (pending) { + // If we have pending requests and a socket gets closed a new one + // needs to be created to take over in the pool for the one that closed. + this.createSocket(pending, function(socket) { + pending.request.onSocket(socket); + }); + } +}; + +function createSecureSocket(options, cb) { + var self = this; + TunnelingAgent.prototype.createSocket.call(self, options, function(socket) { + var hostHeader = options.request.getHeader('host'); + var tlsOptions = mergeOptions({}, self.options, { + socket: socket, + servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host + }); + + // 0 is dummy port for v0.6 + var secureSocket = tls.connect(0, tlsOptions); + self.sockets[self.sockets.indexOf(socket)] = secureSocket; + cb(secureSocket); + }); +} + + +function toOptions(host, port, localAddress) { + if (typeof host === 'string') { // since v0.10 + return { + host: host, + port: port, + localAddress: localAddress + }; + } + return host; // for v0.11 or later +} + +function mergeOptions(target) { + for (var i = 1, len = arguments.length; i < len; ++i) { + var overrides = arguments[i]; + if (typeof overrides === 'object') { + var keys = Object.keys(overrides); + for (var j = 0, keyLen = keys.length; j < keyLen; ++j) { + var k = keys[j]; + if (overrides[k] !== undefined) { + target[k] = overrides[k]; + } + } + } + } + return target; +} + + +var debug; +if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { + debug = function() { + var args = Array.prototype.slice.call(arguments); + if (typeof args[0] === 'string') { + args[0] = 'TUNNEL: ' + args[0]; + } else { + args.unshift('TUNNEL:'); + } + console.error.apply(console, args); + } +} else { + debug = function() {}; +} +exports.debug = debug; // for test + + +/***/ }), + +/***/ 75840: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "v1", ({ + enumerable: true, + get: function () { + return _v.default; + } +})); +Object.defineProperty(exports, "v3", ({ + enumerable: true, + get: function () { + return _v2.default; + } +})); +Object.defineProperty(exports, "v4", ({ + enumerable: true, + get: function () { + return _v3.default; + } +})); +Object.defineProperty(exports, "v5", ({ + enumerable: true, + get: function () { + return _v4.default; + } +})); +Object.defineProperty(exports, "NIL", ({ + enumerable: true, + get: function () { + return _nil.default; + } +})); +Object.defineProperty(exports, "version", ({ + enumerable: true, + get: function () { + return _version.default; + } +})); +Object.defineProperty(exports, "validate", ({ + enumerable: true, + get: function () { + return _validate.default; + } +})); +Object.defineProperty(exports, "stringify", ({ + enumerable: true, + get: function () { + return _stringify.default; + } +})); +Object.defineProperty(exports, "parse", ({ + enumerable: true, + get: function () { + return _parse.default; + } +})); + +var _v = _interopRequireDefault(__nccwpck_require__(78628)); + +var _v2 = _interopRequireDefault(__nccwpck_require__(86409)); + +var _v3 = _interopRequireDefault(__nccwpck_require__(85122)); + +var _v4 = _interopRequireDefault(__nccwpck_require__(79120)); + +var _nil = _interopRequireDefault(__nccwpck_require__(25332)); + +var _version = _interopRequireDefault(__nccwpck_require__(81595)); + +var _validate = _interopRequireDefault(__nccwpck_require__(66900)); + +var _stringify = _interopRequireDefault(__nccwpck_require__(18950)); + +var _parse = _interopRequireDefault(__nccwpck_require__(62746)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/***/ }), + +/***/ 4569: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + + return _crypto.default.createHash('md5').update(bytes).digest(); +} + +var _default = md5; +exports["default"] = _default; + +/***/ }), + +/***/ 25332: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _default = '00000000-0000-0000-0000-000000000000'; +exports["default"] = _default; + +/***/ }), + +/***/ 62746: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _validate = _interopRequireDefault(__nccwpck_require__(66900)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function parse(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError('Invalid UUID'); + } + + let v; + const arr = new Uint8Array(16); // Parse ########-....-....-....-............ + + arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v >>> 16 & 0xff; + arr[2] = v >>> 8 & 0xff; + arr[3] = v & 0xff; // Parse ........-####-....-....-............ + + arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v & 0xff; // Parse ........-....-####-....-............ + + arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v & 0xff; // Parse ........-....-....-####-............ + + arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v & 0xff; // Parse ........-....-....-....-############ + // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) + + arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; + arr[11] = v / 0x100000000 & 0xff; + arr[12] = v >>> 24 & 0xff; + arr[13] = v >>> 16 & 0xff; + arr[14] = v >>> 8 & 0xff; + arr[15] = v & 0xff; + return arr; +} + +var _default = parse; +exports["default"] = _default; + +/***/ }), + +/***/ 40814: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; +exports["default"] = _default; + +/***/ }), + +/***/ 50807: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = rng; + +var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate + +let poolPtr = rnds8Pool.length; + +function rng() { + if (poolPtr > rnds8Pool.length - 16) { + _crypto.default.randomFillSync(rnds8Pool); + + poolPtr = 0; + } + + return rnds8Pool.slice(poolPtr, poolPtr += 16); +} + +/***/ }), + +/***/ 85274: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + + return _crypto.default.createHash('sha1').update(bytes).digest(); +} + +var _default = sha1; +exports["default"] = _default; + +/***/ }), + +/***/ 18950: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _validate = _interopRequireDefault(__nccwpck_require__(66900)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * Convert array of 16 byte values to UUID string format of the form: + * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + */ +const byteToHex = []; + +for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 0x100).toString(16).substr(1)); +} + +function stringify(arr, offset = 0) { + // Note: Be careful editing this code! It's been tuned for performance + // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 + const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one + // of the following: + // - One or more input array values don't map to a hex octet (leading to + // "undefined" in the uuid) + // - Invalid input values for the RFC `version` or `variant` fields + + if (!(0, _validate.default)(uuid)) { + throw TypeError('Stringified UUID is invalid'); + } + + return uuid; +} + +var _default = stringify; +exports["default"] = _default; + +/***/ }), + +/***/ 78628: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _rng = _interopRequireDefault(__nccwpck_require__(50807)); + +var _stringify = _interopRequireDefault(__nccwpck_require__(18950)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// **`v1()` - Generate time-based UUID** +// +// Inspired by https://github.com/LiosK/UUID.js +// and http://docs.python.org/library/uuid.html +let _nodeId; + +let _clockseq; // Previous uuid creation time + + +let _lastMSecs = 0; +let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details + +function v1(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || new Array(16); + options = options || {}; + let node = options.node || _nodeId; + let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not + // specified. We do this lazily to minimize issues related to insufficient + // system entropy. See #189 + + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || _rng.default)(); + + if (node == null) { + // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) + node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } + + if (clockseq == null) { + // Per 4.2.2, randomize (14 bit) clockseq + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; + } + } // UUID timestamps are 100 nano-second units since the Gregorian epoch, + // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so + // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' + // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. + + + let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock + // cycle to simulate higher resolution clock + + let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) + + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression + + if (dt < 0 && options.clockseq === undefined) { + clockseq = clockseq + 1 & 0x3fff; + } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new + // time interval + + + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { + nsecs = 0; + } // Per 4.2.1.2 Throw error if too many uuids are requested + + + if (nsecs >= 10000) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + } + + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch + + msecs += 12219292800000; // `time_low` + + const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + b[i++] = tl >>> 24 & 0xff; + b[i++] = tl >>> 16 & 0xff; + b[i++] = tl >>> 8 & 0xff; + b[i++] = tl & 0xff; // `time_mid` + + const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; + b[i++] = tmh >>> 8 & 0xff; + b[i++] = tmh & 0xff; // `time_high_and_version` + + b[i++] = tmh >>> 24 & 0xf | 0x10; // include version + + b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) + + b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` + + b[i++] = clockseq & 0xff; // `node` + + for (let n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + + return buf || (0, _stringify.default)(b); +} + +var _default = v1; +exports["default"] = _default; + +/***/ }), + +/***/ 86409: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _v = _interopRequireDefault(__nccwpck_require__(65998)); + +var _md = _interopRequireDefault(__nccwpck_require__(4569)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const v3 = (0, _v.default)('v3', 0x30, _md.default); +var _default = v3; +exports["default"] = _default; + +/***/ }), + +/***/ 65998: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = _default; +exports.URL = exports.DNS = void 0; + +var _stringify = _interopRequireDefault(__nccwpck_require__(18950)); + +var _parse = _interopRequireDefault(__nccwpck_require__(62746)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); // UTF8 escape + + const bytes = []; + + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + + return bytes; +} + +const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; +exports.DNS = DNS; +const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; +exports.URL = URL; + +function _default(name, version, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === 'string') { + value = stringToBytes(value); + } + + if (typeof namespace === 'string') { + namespace = (0, _parse.default)(namespace); + } + + if (namespace.length !== 16) { + throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); + } // Compute hash of namespace and value, Per 4.3 + // Future: Use spread syntax when supported on all platforms, e.g. `bytes = + // hashfunc([...namespace, ... value])` + + + let bytes = new Uint8Array(16 + value.length); + bytes.set(namespace); + bytes.set(value, namespace.length); + bytes = hashfunc(bytes); + bytes[6] = bytes[6] & 0x0f | version; + bytes[8] = bytes[8] & 0x3f | 0x80; + + if (buf) { + offset = offset || 0; + + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + + return buf; + } + + return (0, _stringify.default)(bytes); + } // Function#name is not settable on some platforms (#270) + + + try { + generateUUID.name = name; // eslint-disable-next-line no-empty + } catch (err) {} // For CommonJS default export support + + + generateUUID.DNS = DNS; + generateUUID.URL = URL; + return generateUUID; +} + +/***/ }), + +/***/ 85122: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _rng = _interopRequireDefault(__nccwpck_require__(50807)); + +var _stringify = _interopRequireDefault(__nccwpck_require__(18950)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function v4(options, buf, offset) { + options = options || {}; + + const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + + + rnds[6] = rnds[6] & 0x0f | 0x40; + rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided + + if (buf) { + offset = offset || 0; + + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + + return buf; + } + + return (0, _stringify.default)(rnds); +} + +var _default = v4; +exports["default"] = _default; + +/***/ }), + +/***/ 79120: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _v = _interopRequireDefault(__nccwpck_require__(65998)); + +var _sha = _interopRequireDefault(__nccwpck_require__(85274)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const v5 = (0, _v.default)('v5', 0x50, _sha.default); +var _default = v5; +exports["default"] = _default; + +/***/ }), + +/***/ 66900: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _regex = _interopRequireDefault(__nccwpck_require__(40814)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function validate(uuid) { + return typeof uuid === 'string' && _regex.default.test(uuid); +} + +var _default = validate; +exports["default"] = _default; + +/***/ }), + +/***/ 81595: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _validate = _interopRequireDefault(__nccwpck_require__(66900)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function version(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError('Invalid UUID'); + } + + return parseInt(uuid.substr(14, 1), 16); +} + +var _default = version; +exports["default"] = _default; + +/***/ }), + +/***/ 87578: +/***/ ((module) => { + +module.exports = eval("require")("aws-crt"); + + +/***/ }), + +/***/ 39491: +/***/ ((module) => { + +"use strict"; +module.exports = require("assert"); + +/***/ }), + +/***/ 14300: +/***/ ((module) => { + +"use strict"; +module.exports = require("buffer"); + +/***/ }), + +/***/ 32081: +/***/ ((module) => { + +"use strict"; +module.exports = require("child_process"); + +/***/ }), + +/***/ 6113: +/***/ ((module) => { + +"use strict"; +module.exports = require("crypto"); + +/***/ }), + +/***/ 82361: +/***/ ((module) => { + +"use strict"; +module.exports = require("events"); + +/***/ }), + +/***/ 57147: +/***/ ((module) => { + +"use strict"; +module.exports = require("fs"); + +/***/ }), + +/***/ 13685: +/***/ ((module) => { + +"use strict"; +module.exports = require("http"); + +/***/ }), + +/***/ 85158: +/***/ ((module) => { + +"use strict"; +module.exports = require("http2"); + +/***/ }), + +/***/ 95687: +/***/ ((module) => { + +"use strict"; +module.exports = require("https"); + +/***/ }), + +/***/ 41808: +/***/ ((module) => { + +"use strict"; +module.exports = require("net"); + +/***/ }), + +/***/ 22037: +/***/ ((module) => { + +"use strict"; +module.exports = require("os"); + +/***/ }), + +/***/ 71017: +/***/ ((module) => { + +"use strict"; +module.exports = require("path"); + +/***/ }), + +/***/ 77282: +/***/ ((module) => { + +"use strict"; +module.exports = require("process"); + +/***/ }), + +/***/ 12781: +/***/ ((module) => { + +"use strict"; +module.exports = require("stream"); + +/***/ }), + +/***/ 24404: +/***/ ((module) => { + +"use strict"; +module.exports = require("tls"); + +/***/ }), + +/***/ 57310: +/***/ ((module) => { + +"use strict"; +module.exports = require("url"); + +/***/ }), + +/***/ 73837: +/***/ ((module) => { + +"use strict"; +module.exports = require("util"); + +/***/ }), + +/***/ 50466: +/***/ ((module) => { + +"use strict"; +module.exports = JSON.parse('{"name":"@aws-sdk/client-ssm","description":"AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native","version":"3.154.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.154.0","@aws-sdk/config-resolver":"3.130.0","@aws-sdk/credential-provider-node":"3.154.0","@aws-sdk/fetch-http-handler":"3.131.0","@aws-sdk/hash-node":"3.127.0","@aws-sdk/invalid-dependency":"3.127.0","@aws-sdk/middleware-content-length":"3.127.0","@aws-sdk/middleware-host-header":"3.127.0","@aws-sdk/middleware-logger":"3.127.0","@aws-sdk/middleware-recursion-detection":"3.127.0","@aws-sdk/middleware-retry":"3.127.0","@aws-sdk/middleware-serde":"3.127.0","@aws-sdk/middleware-signing":"3.130.0","@aws-sdk/middleware-stack":"3.127.0","@aws-sdk/middleware-user-agent":"3.127.0","@aws-sdk/node-config-provider":"3.127.0","@aws-sdk/node-http-handler":"3.127.0","@aws-sdk/protocol-http":"3.127.0","@aws-sdk/smithy-client":"3.142.0","@aws-sdk/types":"3.127.0","@aws-sdk/url-parser":"3.127.0","@aws-sdk/util-base64-browser":"3.109.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.154.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.142.0","@aws-sdk/util-defaults-mode-node":"3.142.0","@aws-sdk/util-user-agent-browser":"3.127.0","@aws-sdk/util-user-agent-node":"3.127.0","@aws-sdk/util-utf8-browser":"3.109.0","@aws-sdk/util-utf8-node":"3.109.0","@aws-sdk/util-waiter":"3.127.0","tslib":"^2.3.1","uuid":"^8.3.2"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","@types/uuid":"^8.3.0","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.6.2"},"overrides":{"typedoc":{"typescript":"~4.6.2"}},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ssm","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ssm"}}'); + +/***/ }), + +/***/ 91092: +/***/ ((module) => { + +"use strict"; +module.exports = JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.154.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.130.0","@aws-sdk/fetch-http-handler":"3.131.0","@aws-sdk/hash-node":"3.127.0","@aws-sdk/invalid-dependency":"3.127.0","@aws-sdk/middleware-content-length":"3.127.0","@aws-sdk/middleware-host-header":"3.127.0","@aws-sdk/middleware-logger":"3.127.0","@aws-sdk/middleware-recursion-detection":"3.127.0","@aws-sdk/middleware-retry":"3.127.0","@aws-sdk/middleware-serde":"3.127.0","@aws-sdk/middleware-stack":"3.127.0","@aws-sdk/middleware-user-agent":"3.127.0","@aws-sdk/node-config-provider":"3.127.0","@aws-sdk/node-http-handler":"3.127.0","@aws-sdk/protocol-http":"3.127.0","@aws-sdk/smithy-client":"3.142.0","@aws-sdk/types":"3.127.0","@aws-sdk/url-parser":"3.127.0","@aws-sdk/util-base64-browser":"3.109.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.154.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.142.0","@aws-sdk/util-defaults-mode-node":"3.142.0","@aws-sdk/util-user-agent-browser":"3.127.0","@aws-sdk/util-user-agent-node":"3.127.0","@aws-sdk/util-utf8-browser":"3.109.0","@aws-sdk/util-utf8-node":"3.109.0","tslib":"^2.3.1"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.6.2"},"overrides":{"typedoc":{"typescript":"~4.6.2"}},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}'); + +/***/ }), + +/***/ 7947: +/***/ ((module) => { + +"use strict"; +module.exports = JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.154.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.130.0","@aws-sdk/credential-provider-node":"3.154.0","@aws-sdk/fetch-http-handler":"3.131.0","@aws-sdk/hash-node":"3.127.0","@aws-sdk/invalid-dependency":"3.127.0","@aws-sdk/middleware-content-length":"3.127.0","@aws-sdk/middleware-host-header":"3.127.0","@aws-sdk/middleware-logger":"3.127.0","@aws-sdk/middleware-recursion-detection":"3.127.0","@aws-sdk/middleware-retry":"3.127.0","@aws-sdk/middleware-sdk-sts":"3.130.0","@aws-sdk/middleware-serde":"3.127.0","@aws-sdk/middleware-signing":"3.130.0","@aws-sdk/middleware-stack":"3.127.0","@aws-sdk/middleware-user-agent":"3.127.0","@aws-sdk/node-config-provider":"3.127.0","@aws-sdk/node-http-handler":"3.127.0","@aws-sdk/protocol-http":"3.127.0","@aws-sdk/smithy-client":"3.142.0","@aws-sdk/types":"3.127.0","@aws-sdk/url-parser":"3.127.0","@aws-sdk/util-base64-browser":"3.109.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.154.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.142.0","@aws-sdk/util-defaults-mode-node":"3.142.0","@aws-sdk/util-user-agent-browser":"3.127.0","@aws-sdk/util-user-agent-node":"3.127.0","@aws-sdk/util-utf8-browser":"3.109.0","@aws-sdk/util-utf8-node":"3.109.0","entities":"2.2.0","fast-xml-parser":"3.19.0","tslib":"^2.3.1"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","concurrently":"7.0.0","downlevel-dts":"0.7.0","rimraf":"3.0.2","typedoc":"0.19.2","typescript":"~4.6.2"},"overrides":{"typedoc":{"typescript":"~4.6.2"}},"engines":{"node":">=12.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}'); + +/***/ }), + +/***/ 33600: +/***/ ((module) => { + +"use strict"; +module.exports = JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}'); + +/***/ }), + +/***/ 59323: +/***/ ((module) => { + +"use strict"; +module.exports = JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}'); + +/***/ }), + +/***/ 29591: +/***/ ((module) => { + +"use strict"; +module.exports = JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}'); + +/***/ }), + +/***/ 2586: +/***/ ((module) => { + +"use strict"; +module.exports = JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}'); + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __nccwpck_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ var threw = true; +/******/ try { +/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nccwpck_require__); +/******/ threw = false; +/******/ } finally { +/******/ if(threw) delete __webpack_module_cache__[moduleId]; +/******/ } +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __nccwpck_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __nccwpck_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __nccwpck_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __nccwpck_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat */ +/******/ +/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +// This entry need to be wrapped in an IIFE because it need to be in strict mode. +(() => { +"use strict"; +__nccwpck_require__.r(__webpack_exports__); +/* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(42186); +/* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(_actions_core__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _aws_sdk_client_ssm__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(20341); +/* harmony import */ var _aws_sdk_client_ssm__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nccwpck_require__.n(_aws_sdk_client_ssm__WEBPACK_IMPORTED_MODULE_1__); +var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __generator = (undefined && undefined.__generator) || function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; + + +function get_document_name(os) { + var documentName; + if (os === 'linux') { + documentName = "AWS-RunShellScript"; + } + else if (os === 'windows') { + documentName = "AWS-RunPowerShellScript"; + } + else { + throw Error("".concat(os, " is not supported. Only linux or windows OS is supported.")); + } + return documentName; +} +function get_parameters(commands, working_directory) { + var parameters = { commands: commands }; + if (working_directory) { + parameters['workingDirectory'] = [working_directory]; + } + return parameters; +} +function run_ssm_send_command() { + var _a; + return __awaiter(this, void 0, void 0, function () { + var AWS_REGION, INSTANCE_IDS, COMMANDS, OS, WORKING_DIRECTORY, COMMENT, client, DOCUMENT_NAME, PARAMETERS, command, response, error_1; + return __generator(this, function (_b) { + switch (_b.label) { + case 0: + AWS_REGION = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput('aws-region'); + INSTANCE_IDS = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getMultilineInput('instance-ids'); + COMMANDS = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getMultilineInput('commands'); + OS = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput('os'); + WORKING_DIRECTORY = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput('working-directory'); + COMMENT = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput('comment'); + client = new _aws_sdk_client_ssm__WEBPACK_IMPORTED_MODULE_1__.SSMClient({ + region: AWS_REGION, + }); + DOCUMENT_NAME = get_document_name(OS); + PARAMETERS = get_parameters(COMMANDS, WORKING_DIRECTORY); + console.log("Document: ".concat(DOCUMENT_NAME)); + console.log("Parameters: ".concat(JSON.stringify(PARAMETERS))); + command = new _aws_sdk_client_ssm__WEBPACK_IMPORTED_MODULE_1__.SendCommandCommand({ + InstanceIds: INSTANCE_IDS, + DocumentName: DOCUMENT_NAME, + Comment: COMMENT, + Parameters: PARAMETERS, + }); + _b.label = 1; + case 1: + _b.trys.push([1, 3, , 4]); + return [4 /*yield*/, client.send(command)]; + case 2: + response = _b.sent(); + _actions_core__WEBPACK_IMPORTED_MODULE_0__.setOutput("command-id", (_a = response.Command) === null || _a === void 0 ? void 0 : _a.CommandId); + return [3 /*break*/, 4]; + case 3: + error_1 = _b.sent(); + console.log(error_1); + _actions_core__WEBPACK_IMPORTED_MODULE_0__.error(String(error_1)); + return [3 /*break*/, 4]; + case 4: return [2 /*return*/]; + } + }); + }); +} +run_ssm_send_command(); + +})(); + +module.exports = __webpack_exports__; +/******/ })() +; \ No newline at end of file From 2ed20ddf93e95629c21c13f20d2833568e3bb412 Mon Sep 17 00:00:00 2001 From: Noel Ferreria Date: Thu, 25 Apr 2024 16:00:53 -0700 Subject: [PATCH 08/14] fix workflow and scripts to also not use deprecated set-output (#3) --- .github/scripts/check-release.sh | 4 ++-- .github/scripts/source-tag-sha.sh | 2 +- .github/scripts/verify-build.sh | 2 +- .github/workflows/build-release.yaml | 2 +- .github/workflows/major-release.yaml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/scripts/check-release.sh b/.github/scripts/check-release.sh index 1f43668..2572a71 100755 --- a/.github/scripts/check-release.sh +++ b/.github/scripts/check-release.sh @@ -16,7 +16,7 @@ exists=$( if [[ "$exists" == true ]]; then echo "Release ${release_version} already exists." - echo '::set-output name=release_exists::true' + echo "release_exists=true" >>$GITHUB_ENV else - echo '::set-output name=release_exists::false' + echo "release_exists=false" >>$GITHUB_ENV fi diff --git a/.github/scripts/source-tag-sha.sh b/.github/scripts/source-tag-sha.sh index 6b9119c..9156ed9 100755 --- a/.github/scripts/source-tag-sha.sh +++ b/.github/scripts/source-tag-sha.sh @@ -18,4 +18,4 @@ if [[ $sha == 'null' ]]; then fi echo "SHA for ${tag_name}: ${sha}" -echo "::set-output name=sha::$sha" +echo "sha=${sha}" >>$GITHUB_ENV diff --git a/.github/scripts/verify-build.sh b/.github/scripts/verify-build.sh index ae6b34f..614f1ae 100755 --- a/.github/scripts/verify-build.sh +++ b/.github/scripts/verify-build.sh @@ -6,7 +6,7 @@ git diff git status dist -s -## Raise error if more than 1 files changed in working dir +# Raise error if more than 1 files changed in working dir if [[ ! -z $(git status dist -s) ]]; then echo "Build at dist is outdated. Update build, push and try again." exit 1 diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index 90e81ad..744fe03 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -46,7 +46,7 @@ jobs: run: | version=$(cat package.json | jq '.version' --raw-output) echo "Version: v${version}" - echo "::set-output name=version::v${version}" + echo "version=v${version}" >> $GITHUB_ENV - name: Check if release exists id: release-check diff --git a/.github/workflows/major-release.yaml b/.github/workflows/major-release.yaml index 73d56ed..8523eb4 100644 --- a/.github/workflows/major-release.yaml +++ b/.github/workflows/major-release.yaml @@ -37,7 +37,7 @@ jobs: echo "Tag name: ${TAG_NAME}" major_version=${TAG_NAME%.*.*} echo "Major Version: ${major_version}" - echo "::set-output name=major_version::$major_version" + echo "major_version=${major_version}" >> $GITHUB_ENV - name: Check if major version exists id: check-release From a31b74206010218cebae680beb9adee144198f48 Mon Sep 17 00:00:00 2001 From: Noel Ferreria Date: Thu, 25 Apr 2024 16:08:20 -0700 Subject: [PATCH 09/14] Updates (#4) * fix workflow and scripts to also not use deprecated set-output * bump versions of actions in some workflows --- .github/workflows/build-release.yaml | 2 +- .github/workflows/major-release.yaml | 2 +- .github/workflows/test-branch.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index 744fe03..873a0ce 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -39,7 +39,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Get version id: get-version diff --git a/.github/workflows/major-release.yaml b/.github/workflows/major-release.yaml index 8523eb4..eefd12c 100644 --- a/.github/workflows/major-release.yaml +++ b/.github/workflows/major-release.yaml @@ -29,7 +29,7 @@ jobs: environment: major-release-update steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Get major release version id: get-major-version diff --git a/.github/workflows/test-branch.yaml b/.github/workflows/test-branch.yaml index f7562cc..e208ab0 100644 --- a/.github/workflows/test-branch.yaml +++ b/.github/workflows/test-branch.yaml @@ -16,7 +16,7 @@ jobs: name: Test Linux steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: From 52cbdbeb54d450fab2e957fa26d513a4f9fba032 Mon Sep 17 00:00:00 2001 From: Noel Ferreria Date: Thu, 25 Apr 2024 16:27:55 -0700 Subject: [PATCH 10/14] Updates (#5) * fix workflow and scripts to also not use deprecated set-output * bump versions of actions in some workflows * use github outputs context --- .github/scripts/check-release.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/scripts/check-release.sh b/.github/scripts/check-release.sh index 2572a71..f43bc17 100755 --- a/.github/scripts/check-release.sh +++ b/.github/scripts/check-release.sh @@ -16,7 +16,8 @@ exists=$( if [[ "$exists" == true ]]; then echo "Release ${release_version} already exists." - echo "release_exists=true" >>$GITHUB_ENV + echo "release_exists=true" >>$GITHUB_OUTPUTS else - echo "release_exists=false" >>$GITHUB_ENV + echo "release_exists=false" >>$GITHUB_OUTPUTS + fi From 597255b3d1e261e39ff6b5a035a3934e34ca4516 Mon Sep 17 00:00:00 2001 From: Noel Ferreria Date: Thu, 25 Apr 2024 16:36:43 -0700 Subject: [PATCH 11/14] Updates (#6) * fix workflow and scripts to also not use deprecated set-output * bump versions of actions in some workflows * use github outputs context * OUTPUT not OUTPUTS --- .github/scripts/check-release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/check-release.sh b/.github/scripts/check-release.sh index f43bc17..cad6161 100755 --- a/.github/scripts/check-release.sh +++ b/.github/scripts/check-release.sh @@ -16,8 +16,8 @@ exists=$( if [[ "$exists" == true ]]; then echo "Release ${release_version} already exists." - echo "release_exists=true" >>$GITHUB_OUTPUTS + echo "release_exists=true" >>"$GITHUB_OUTPUT" else - echo "release_exists=false" >>$GITHUB_OUTPUTS + echo "release_exists=false" >>"$GITHUB_OUTPUT" fi From d38eea73f4c3013fbace29d06920a6599b706ae8 Mon Sep 17 00:00:00 2001 From: Noel Ferreria Date: Thu, 25 Apr 2024 16:42:57 -0700 Subject: [PATCH 12/14] Updates (#7) * fix workflow and scripts to also not use deprecated set-output * bump versions of actions in some workflows * use github outputs context * OUTPUT not OUTPUTS * output wrong for source tag --- .github/scripts/source-tag-sha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/source-tag-sha.sh b/.github/scripts/source-tag-sha.sh index 9156ed9..522ed2d 100755 --- a/.github/scripts/source-tag-sha.sh +++ b/.github/scripts/source-tag-sha.sh @@ -18,4 +18,4 @@ if [[ $sha == 'null' ]]; then fi echo "SHA for ${tag_name}: ${sha}" -echo "sha=${sha}" >>$GITHUB_ENV +echo "sha=${sha}" >>"$GITHUB_OUTPUT" From 45668e5bf4d7b8a8b62a97e66dd5002be0a843e1 Mon Sep 17 00:00:00 2001 From: Noel Ferreria Date: Thu, 25 Apr 2024 16:53:44 -0700 Subject: [PATCH 13/14] Updates (#8) * fix workflow and scripts to also not use deprecated set-output * bump versions of actions in some workflows * use github outputs context * OUTPUT not OUTPUTS * output wrong for source tag * bump version of another action and fix outputs again --- .github/workflows/build-release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index 873a0ce..822a6d3 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -46,7 +46,7 @@ jobs: run: | version=$(cat package.json | jq '.version' --raw-output) echo "Version: v${version}" - echo "version=v${version}" >> $GITHUB_ENV + echo "version=v${version}" >> "$GITHUB_OUTPUT" - name: Check if release exists id: release-check @@ -71,7 +71,7 @@ jobs: if: needs.release-check.outputs.release_exists == 'false' steps: - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: name: ${{ needs.release-check.outputs.version }} tag_name: ${{ needs.release-check.outputs.version }} From b323fb1286051c6aacf666d44b4a1f1b471dbba8 Mon Sep 17 00:00:00 2001 From: Noel Ferreria Date: Thu, 25 Apr 2024 16:58:46 -0700 Subject: [PATCH 14/14] Updates (#9) * fix workflow and scripts to also not use deprecated set-output * bump versions of actions in some workflows * use github outputs context * OUTPUT not OUTPUTS * output wrong for source tag * bump version of another action and fix outputs again * outfix for major release workflow --- .github/workflows/major-release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/major-release.yaml b/.github/workflows/major-release.yaml index eefd12c..ab56489 100644 --- a/.github/workflows/major-release.yaml +++ b/.github/workflows/major-release.yaml @@ -37,7 +37,7 @@ jobs: echo "Tag name: ${TAG_NAME}" major_version=${TAG_NAME%.*.*} echo "Major Version: ${major_version}" - echo "major_version=${major_version}" >> $GITHUB_ENV + echo "major_version=${major_version}" >> "$GITHUB_OUTPUT" - name: Check if major version exists id: check-release @@ -56,7 +56,7 @@ jobs: ${{ secrets.GITHUB_TOKEN }} - name: Create Major Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 if: steps.check-release.outputs.release_exists == 'false' id: create_release with: